Dataset
Razorpay payment records datasets for AI training
A Razorpay dataset is an export of a merchant's Razorpay account: Orders with every Payment attempt made against them by UPI, card, netbanking, wallet or EMI, the error detail on failed attempts, and the Refunds, Settlements and Disputes that followed, plus Payment Links, Subscriptions and Invoices where used. SourceX sources it to a buyer's spec from established businesses that run Razorpay, with UPI addresses, phone numbers, emails and bank references removed or tokenized. Each dataset is de-identified and licensed for an agreed permitted use.
Dataset manifest
Sourced to your spec- What it is
- Orders, payment attempts, refunds, settlements and disputes from one merchant's Razorpay account
- Typical systems
- Razorpay Payment Gateway, with Payment Links, Subscriptions, Invoices, Smart Collect virtual accounts and QR Codes where the merchant uses them
- Typical history
- Varies by merchant; specify a date range, and allow recent months time for refunds and disputes to arrive
- Modality
- Structured payment records with short free text in descriptions, notes and error descriptions
- Delivery formats
- JSONL per entity from the Razorpay API or a webhook log, or Dashboard report downloads as CSV
- Preparation
- UPI addresses, emails, contact numbers and card fragments removed or tokenized, bank references re-keyed, notes screened key by key
- Licensing
- Scoped per merchant account and date range; permitted use agreed per license; Razorpay's merchant terms checked by owner and buyer
- Availability
- Sourced to your spec; method mix, volume and products in use depend on the merchant, and supply is not guaranteed
What a delivery contains
Fields vary by source system and are fixed per order. A typical delivery includes:
| Field | Type | What it holds |
|---|---|---|
| order_ref | string | Pseudonymous key replacing the Order ID, stable across its Payments, Refunds and reconciliation rows. |
| order_state | object | The Order's status (created, attempted or paid), attempts counter, receipt reference and created_at as a Unix timestamp. |
| order_amounts | object | The Order's amount, amount_paid and amount_due with currency, as integers in the smallest unit, paise for INR. |
| origin | object | The product the payment came through, read from the Payment's invoice_id and the Payment Link, Subscription, QR Code or Virtual Account records that reference it. |
| payment_attempts | array | Every Payment entity on the Order in time order, with status (created, authorized, captured, refunded or failed) and the method used. |
| payment_attempts[].method_fields | object | The Payment's method-specific fields: the vpa as a token with the upi block's flow and payer_account_type, the netbanking bank code, the wallet, or the card's network, type and issuer. |
| payment_attempts[].error | object | The Payment's error_code, error_description, error_source, error_step and error_reason on a failed attempt, null otherwise. |
| payment_attempts[].acquirer_data | object | The Payment's acquirer_data references, such as the rrn, bank_transaction_id, auth_code or arn, re-keyed. |
| payment_attempts[].fee_and_tax | object | The Payment's fee, which includes GST, and its tax, the GST itself, present once the payment is captured. |
| customer_key | string | Pseudonymous key built from the Payment's email and contact or its Customer ID. |
| refunds | array | Refund entities with amount, status, speed_requested and speed_processed, linked by payment ID. |
| settlement_recon | array | Settlement reconciliation rows for the Order's payments and refunds: debit, credit, fee, tax, settled flag, keyed Settlement ID and settlement_utr. |
| disputes | array | Dispute entities with phase, reason_code, status, amount, amount_deducted and respond_by time, linked by payment ID. |
| notes | object | The merchant's own key-value notes on the Order or Payment, kept only for keys agreed as free of personal data. |
Field names from the table above; values are masked placeholders.
Example record
{
"order_ref": "ord_k3f92a",
"order_state": {
"status": "paid",
"attempts": 2,
"receipt": "rcpt_48213",
"created_at": 1739864512
},
"order_amounts": {
"amount": 249900,
"amount_paid": 249900,
"amount_due": 0,
"currency": "INR"
},
"origin": {
"type": "checkout",
"object_ref": null
},
"payment_attempts": [
{
"payment_ref": "pay_01",
"created_at": 1739864540,
"status": "failed",
"method": "card",
"method_fields": {
"network": "RuPay",
"type": "debit",
"issuer_key": "bnk_04",
"international": false
},
"error": {
"error_code": "BAD_REQUEST_ERROR",
"error_description": "Payment processing failed because of incorrect OTP",
"error_source": "customer",
"error_step": "payment_authentication",
"error_reason": "incorrect_otp"
},
"acquirer_data": {
"auth_code_ref": null
},
"fee_and_tax": null
},
{
"payment_ref": "pay_02",
"created_at": 1739864931,
"status": "captured",
"method": "upi",
"method_fields": {
"vpa_token": "vpa_7c1e",
"flow": "intent",
"payer_account_type": "bank_account"
},
"error": null,
"acquirer_data": {
"rrn_ref": "rrn_5510"
},
"fee_and_tax": {
"fee": 5898,
"tax": 900
}
}
],
"customer_key": "cus_b71f",
"refunds": [
{
"refund_ref": "rfnd_01",
"payment_ref": "pay_02",
"amount": 50000,
"status": "processed"
}
],
"settlement_recon": [
{
"entity_ref": "pay_02",
"type": "payment",
"credit": 244002,
"debit": 0,
"fee": 5898,
"tax": 900,
"settled": true,
"settlement_ref": "setl_a40c",
"settlement_utr_ref": "utr_a40c"
},
{
"entity_ref": "rfnd_01",
"type": "refund",
"credit": 0,
"debit": 50000,
"fee": 0,
"tax": 0,
"settled": true,
"settlement_ref": "setl_b93d",
"settlement_utr_ref": "utr_b93d"
}
],
"disputes": [],
"notes": {
"cart_type": "repeat_order"
}
}Synthetic record for illustration. Field names, structure and format are agreed per order.
What AI teams use it for
Model retries across Indian payment methods
Attempt sequences under one Order show which method a shopper tried first, what failed and what they switched to.
Train payment-failure triage
Error source, step and reason on failed Payments give labeled causes for routing a failure to the customer, the bank or the merchant.
Teach agents settlement reconciliation
Reconciliation rows with fee and tax per payment let an agent explain how captured sales became one bank credit.
Forecast refunds and disputes
Refund and Dispute entities linked by payment ID give outcomes by method, amount and product.
Build evaluation sets for payment-operations assistants
Held-out Orders with known status, refunds and settled amounts let a lab score an agent's diagnosis and arithmetic.
Use-case guides: Finance and accounting agents, Enterprise and computer-use agents, Private evaluation sets
What makes this data valuable
Failed attempts kept
Payments with status failed are delivered with all five error fields, not filtered out.
Attempts grouped
A high share of Payments carry an order ID, so retries read as sequences.
Fees tie out
Amount minus fee equals the reconciliation credit on a sample of captured payments.
Method fields intact
Tokenized UPI addresses, bank codes and card network and type survive de-identification.
Units stated
Amounts are confirmed as paise and times as Unix seconds, or the conversion rule is given.
Stable payer keys
One payer keeps one key across email, phone and UPI address where the merchant can link them.
Value drivers
Razorpay dataset
One Razorpay Order keeps every attempt, failed ones included
A Razorpay integration creates an Order for the amount due and then lets the shopper try to pay it. Each try is its own Payment entity with its own ID, linked to the Order by order ID. The Order carries an attempts counter and a status that moves from created to attempted to paid, and it stays paid even if the payment is later refunded. A shopper whose UPI request times out can return to checkout and pick netbanking, then a card, and all three Payments stay under the one Order. A finance report would show one sale. The account holds the two failures before it.
A failed Payment keeps the method that was tried and five error fields. The error code is a broad class such as BAD_REQUEST_ERROR, and the error description a sentence meant for display. Error source says where the failure arose, such as the customer or the business. Error step says how far the payment got, for example payment_initiation or payment_authentication. Error reason is a short label such as incorrect_otp. Read across methods, these show how each Indian rail fails. Typical cases are a UPI collect request left unapproved in the shopper's app, a netbanking payment abandoned on the bank's page, and a card stopped at the one-time password.
A Payment marked failed can later turn authorized when the bank confirms late, so a status depends on the day the extract was pulled, and a webhook log shows the change where the API shows only the end state. A Payment that is authorized but never captured is refunded automatically once the capture window passes, which looks like a refund and was never a sale. Payments created without an Order cannot be grouped into attempts at all, so ask what share carry an order ID.
Method fields, paise and GST on every payment
The Payment entity changes shape with the method. A UPI payment holds the payer's virtual payment address in a vpa field and a upi block that states the flow, collect or intent, and the type of account that paid. A netbanking payment holds a bank code and a wallet payment the wallet's name. A card payment points to a card record with network, type, issuer, last four digits and the cardholder's name, never the full number. Under acquirer data sit the references the banking side assigned, such as the RRN for UPI, a bank transaction ID for netbanking or an auth code for cards. A virtual payment address often has a phone number or a name before the @, and most Payments store an email and a contact number.
Money is stored as integers in the smallest currency unit, so 49900 means 499 rupees, and times are Unix timestamps. Each captured Payment carries a fee and a tax, where tax is the GST on Razorpay's fee and the fee figure already includes it. Settlement reconciliation returns one row per payment, refund, transfer or adjustment in a Settlement, with debit, credit, fee, tax and a settled flag, and each row repeats the UTR of the Settlement's bank transfer.
A Dashboard report is a flat file whose amount columns may be formatted in rupees where the API states paise, so a mixed delivery can be wrong by a factor of one hundred. Fee and tax are empty on payments that were never captured. Notes are key-value pairs the merchant fills with anything, often customer names, addresses and order contents, and need screening key by key. Test a sample by recomputing three settlements from their rows, and by searching every text field for an @ and for ten-digit numbers.
What to check before licensing
- Have the data owner and your counsel read Razorpay's merchant terms and API terms on use of account data before a permitted use is agreed.
- Review with counsel how Indian data-protection law and the Reserve Bank of India's rules on where payment data is stored apply to these records, de-identified or not.
- Search the sample for UPI addresses, emails, contact numbers, cardholder names, card digits and bank references in every field, notes and descriptions included.
- Confirm failed Payments are included, and count Payments with no order ID, which cannot be grouped into attempts.
- Get the unit of every amount column in writing and check it: paise from the API, possibly rupees from a Dashboard report.
- Recompute a sample of Settlements from their reconciliation rows, and confirm fee and tax are present on captured payments.
- Ask for the pull date and whether statuses came from the API or a webhook log, since late authorizations, refunds and disputes change a Payment later.
Delivery No files move before a signed license. A listing or a request grants no files by itself.
How licensing works through SourceX
- 1
Define
Send the domain, modality, volume, format, timeline and permitted use you need.
- 2
Source
SourceX identifies businesses that hold matching data and are open to licensing it.
- 3
Qualify
Fit, rights and quality are checked, and you review samples before committing.
- 4
License
Scope, permitted use, exclusivity, price and obligations are agreed in writing.
- 5
Deliver
Approved data is prepared, de-identified where required and transferred securely.
Questions Acquisition Partners ask
Does a Razorpay dataset include failed payments?
Yes, if the request asks for them. Razorpay keeps each failed attempt as its own Payment entity with the method tried and five error fields, linked to the Order the shopper was trying to pay. Finance extracts are often filtered to captured payments, so state that failed and authorized-only attempts are in scope and check the sample for Orders with more than one Payment.
Which payment methods does the data cover?
Whatever the merchant has enabled, usually UPI, cards, netbanking and wallets, with EMI, pay later, bank transfers to virtual accounts and QR payments in some accounts. The mix varies by business: a subscription app, a marketplace and a college collecting fees see different methods. Ask for a method breakdown by month on the sample, and specify minimum counts for any method your model depends on.
How are UPI addresses and phone numbers handled?
They are removed or replaced by tokens before delivery. A Payment holds an email, a contact number and, for UPI, a virtual payment address, which often contains a phone number or a name, and a card record holds the cardholder's name. A consistent token keeps repeat-payer structure without identity. The same values leak into notes and descriptions, so check those fields too.
Can settlements be reconciled from the data?
Yes, where settlement reconciliation rows are included. Each row ties a payment, refund, transfer or adjustment to a Settlement with debit, credit, fee and the tax on the fee, and the Settlement carries the bank transfer's UTR, which should be re-keyed. Route transfers and RazorpayX payouts follow other schemas and are a separate request.
Why are amounts and dates in an unusual form?
Because the API stores them that way. Amounts are integers in the smallest currency unit, so INR values are in paise, and created_at fields are Unix timestamps. Dashboard report downloads may format the same values differently. Ask the supplier to state the unit and time zone of every column, and check both on the sample.
Is SourceX affiliated with Razorpay?
Razorpay is named to identify the system the records come from. That does not imply a partnership with or endorsement by Razorpay. The records belong to the business that runs Razorpay, which licenses them under a signed agreement, and a request does not guarantee a matching dataset. Buyers should still confirm with counsel that the vendor's terms allow the intended use of exported data.
Related datasets
- Payment and card transaction records
Payment-level logs with every authorization attempt, its response, the money movement after it and the confirmed outcome
- Refund, return and payment dispute cases
Money-back cases with the request, the rule applied, the decision, the returned item's inspection and any card dispute
- Stripe payment and billing records
One merchant account's payment intents and charge attempts with outcomes, refunds, disputes, balance transactions with fees, payouts and, where used, subscriptions and invoices
- PayPal merchant transaction records
Balance-affecting transaction history from a merchant's PayPal business account, with its orders, refunds, disputes, payouts, invoices and subscriptions
- Adyen payment and settlement records
Payments with authorization results, the modification and dispute events tied to each, and settlement rows per payment with interchange, scheme fees, markup and commission
Evaluating this data for procurement?
Diligence packets are prepared per dataset. Rights, privacy processing and quality differ between datasets.
Request dataset diligenceTell us what your models need
Send your spec — domain, volume, format, timeline and permitted use — and SourceX will match it against partner data and come back with what can be licensed.
Updated 26 November 2026.