E-commerce
Payment Transaction JSON Example
Payment transaction JSON example with amount, currency, method, gateway ID, and refund records. Copy-ready for Stripe, Razorpay, and other payment gateway integrations.
Field Reference
amountintegerrequiredAmount in the smallest currency unit (paise for INR, cents for USD). Avoids floating-point precision bugs.amountDecimalnumberoptionalHuman-readable amount with decimal point. Derived from amount / 100. Use only for display.currencystring (ISO 4217)requiredThree-letter currency code: INR, USD, EUR, GBP.statusstringrequiredPayment lifecycle: created, authorized, captured, failed, refunded, cancelled.gatewayTransactionIdstringrequiredTransaction ID from the payment gateway. Use this when initiating refunds or raising disputes.refundsarrayoptionalList of refund objects. Store refunds here rather than reducing the original amount.Variants
Card PaymentCredit/debit card transaction with masked card details.
RefundedPayment that has been fully refunded.
Common Use Cases
- →Payment gateway webhook handler data model
- →Financial ledger and accounting system integration
- →Invoice and receipt PDF generation
paymenttransactionStripeRazorpayfinancegateway
Validate or format this JSON
Paste the example above into JSONKit's tools to validate, minify, or explore the structure interactively.