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
amountrequiredintegerAmount in the smallest currency unit (paise for INR, cents for USD). Avoids floating-point precision bugs.amountDecimaloptionalnumberHuman-readable amount with decimal point. Derived from amount / 100. Use only for display.currencyrequiredstring (ISO 4217)Three-letter currency code: INR, USD, EUR, GBP.statusrequiredstringPayment lifecycle: created, authorized, captured, failed, refunded, cancelled.gatewayTransactionIdrequiredstringTransaction ID from the payment gateway. Use this when initiating refunds or raising disputes.refundsoptionalarrayList 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
One click loads this exact example into the tool — no copy-paste needed. Format it, validate it, explore the tree, or generate TypeScript types instantly.