Skip to content

Dataset

Refund and return datasets with payment disputes for AI training

A refund and return dataset is a set of cases in which a customer asked for money back, each with the request and stated reason, the order and payment context, the policy rule applied, any exception approval, and the return authorization and inspection result. Card disputes add the evidence submitted and the issuer's decision. SourceX sources these to a buyer's spec from established retailers, marketplaces and subscription businesses, drawing on order management, returns platforms, help desks and processor dispute records. Each dataset is de-identified and licensed for an agreed permitted use.

Dataset manifest

Sourced to your spec
What it is
Money-back cases with the request, the rule applied, the decision, the returned item's inspection and any card dispute
Typical systems
Shopify, Salesforce Order Management, Loop Returns, Narvar, Zendesk, Stripe and PayPal dispute consoles
Typical history
Specified by the buyer; limited by how far back dated policy versions and dispute evidence were kept
Modality
Structured case and payment records, customer and agent text, policy documents and inspection photos
Delivery formats
JSON Lines cases with a dated policy archive; evidence files and photos referenced by ID
Preparation
Names, addresses, emails and order numbers removed or replaced; buyer confirms card numbers are absent or tokenized, evidence files included
Licensing
Permitted use agreed per license; dispute records depend on card-network and processor terms
Availability
Sourced to your spec; dispute coverage depends on the holder's processor access; not guaranteed
Structured recordsIllustrative

What a delivery contains

Fields vary by source system and are fixed per order. A typical delivery includes:

FieldTypeWhat it holds
case_keystringPseudonymous ID joining the support contact, the order, the return and any card dispute about one purchase.
case_typeenumRefund request, return, exchange, cancellation, pre-dispute inquiry or chargeback.
requestobjectThe customer's own words, the reason they selected, the channel and the days since delivery or billing.
order_contextobjectItems, prices, discounts, fulfillment and delivery status, and the customer's earlier returns as counts.
payment_contextobjectPayment method, card brand and funding type, a token in place of the card number, and address and security-code check results.
policy_snapshotobjectThe policy version in force on the request date, its effective dates and the text of the clause that applied.
rule_resultobjectWhat the written rule gave, such as eligible, outside the window or final sale, before any person stepped in.
decisionobjectWhat was done: full or partial refund, store credit, replacement, refund without return or denial, with amount and decider role.
exception_approvalobjectWhether the decision went beyond the rule, the approver's role and authority limit, and the reason written at the time.
return_authorizationobjectRMA number, return method, label, deadline and the dates the parcel was sent and received.
inspectionobjectCondition grade, whether the item matched what was shipped, the inspector's note and photos, and the restock decision.
disputeobjectNetwork, reason code, amount, response deadline, the evidence items submitted and the ruling at each stage.
risk_flagsarrayReturn-abuse or fraud signals with their source and a timestamp showing whether each was known at decision time.
money_movementsarrayRefunds, reversals, dispute withdrawals and fees with dates, tied to the original charge.
Sample recordIllustrative

Field names from the table above; values are masked placeholders.

Example record

{
  "case_key": "case_7f20c9",
  "case_type": "chargeback",
  "request": { "channel": "email", "selected_reason": "changed_mind", "days_since_delivery": 41,
    "text": "I never even opened it. I want my money back, not a credit." },
  "order_context": { "items": [{ "sku": "SKU-48213", "category": "small_appliance", "price": 189.00 }],
    "delivered": "2024-01-09", "prior_returns_12m": 0 },
  "payment_context": { "method": "card", "brand": "visa", "funding": "credit", "card_token": "tok_c1a9", "address_check": "match", "security_code_check": "match" },
  "policy_snapshot": { "policy_id": "returns_us", "version": "2023-11-01",
    "clause": "Unopened items may be returned within 30 days of delivery." },
  "rule_result": { "eligible": false, "reason": "outside_return_window" },
  "decision": { "action": "store_credit_offered", "amount": 189.00, "decided_by": "tier2_agent", "customer_response": "declined" },
  "exception_approval": { "outside_policy": true, "approver_role": "support_supervisor", "authority_limit": 250.00,
    "note": "First return, says unopened. Credit only, no cash refund past the window." },
  "return_authorization": null,
  "inspection": null,
  "dispute": { "network": "visa", "reason_code": "13.6", "processor_reason": "credit_not_processed", "amount": 189.00,
    "response_due": "2024-03-12", "responded": true,
    "evidence": ["refund_policy", "refund_policy_disclosure", "refund_refusal_explanation", "customer_communication"],
    "stages": [
      { "stage": "chargeback", "date": "2024-02-27" },
      { "stage": "response_submitted", "date": "2024-03-06" },
      { "stage": "issuer_ruling", "date": "2024-04-18", "result": "won" }
    ] },
  "risk_flags": [],
  "money_movements": [
    { "type": "dispute_withdrawal", "amount": -189.00, "date": "2024-02-27" },
    { "type": "dispute_reversal", "amount": 189.00, "date": "2024-04-18" }
  ]
}

Synthetic record for illustration. Field names, structure and format are agreed per order.

What AI teams use it for

Train refund and return decision agents

Cases with the rule, the decision and the approver teach when to follow policy and when a person bent it.

Draft dispute responses

Evidence lists matched to reason codes and rulings show what a response to each kind of claim contained.

Evaluate policy adherence

Held-out cases with a known rule result test whether an agent grants, denies or escalates as the dated policy required.

Weigh abuse signals without accusing

Flags with timestamps and later findings let a model treat risk as evidence, apart from the decision.

Build tool tasks across systems

One case touches the order record, the returns platform and the processor.

Use-case guides: Customer support agents, Finance and accounting agents, Private evaluation sets, Enterprise and computer-use agents

What makes this data valuable

A dated policy archive

Every policy version with effective dates, not only today's page.

Rule result apart from decision

What the policy gave and what was done, as two fields.

Exceptions with a reason

Approver role, authority limit and the note written at the time.

Linked across systems

One key joins the ticket, order, return and dispute.

Dispute stages kept

Inquiry, chargeback, response and each ruling, with dates.

Accepted disputes marked

Uncontested disputes are told apart from ones fought and lost.

Value drivers

Refund and return dataset

This page covers refund, return and payment dispute cases.Illustrative

The policy in force and the exceptions made outside it

A refund case is a small decision with a price on it. To learn from it a model needs the rule as it stood that day, and that is what most exports lack. Return windows are lengthened for the holidays and cut back afterwards, a category becomes final sale, a restocking fee appears, the amount under which the company refunds without asking for the item back goes up. The policy usually lives on a web page or in an agent knowledge base, outside the case system, and only the current version survives. Ask for the archive of versions with effective dates, and for each case to point at the one in force.

Then ask for two outcomes per case: what the rule gave and what was done. Where they agree, the case teaches the policy, which a model could have read anyway. Where they differ, it teaches judgment: the unopened item taken back on day 41 from a first-time returner, the shipping fee waived because the carrier was late, the refund paid to end an argument that would have cost more than the item. Many teams cap what an agent may refund and send larger amounts to a supervisor, so an exception often carries an approver, a limit and a written reason. Those short notes are the most valuable text in the dataset.

Exceptions carry the holder's habits too. Customers who complain loudly or threaten a chargeback may get more of them, and a model trained on outcomes alone can learn to pay whoever pushes. Check on a sample whether exception rates follow the customer's tone. The case also continues in the warehouse. Shopify's refund record, for example, marks each refunded line as returned to stock, canceled before fulfillment or not restocked, and a returns platform records what arrived and in what condition. That inspection can contradict the story the refund was granted on.

A chargeback is graded by someone outside the company

Almost every outcome label in support data was set by the company that holds it. A card dispute is the exception. The cardholder complains to the bank that issued the card, the bank files the dispute under a network reason code, such as Visa's 13.1 for goods not received or 10.4 for card-absent fraud, and the merchant answers with evidence against that code. The issuer then rules. Processors expose the process as fields. Stripe's dispute record carries a reason, a status that moves from inquiry or response needed through review to won or lost, named evidence slots such as shipping documentation and customer communication, and a due date for the response.

Read the label with care. Lost does not mean the customer was right. Merchants often accept small disputes without answering because fighting costs more than the sale or the evidence the code calls for was never kept. Won does not mean the customer lied, only that the evidence met the code's test, and a case can go on to pre-arbitration and network arbitration after the first ruling. Ask for every stage with its date, whether a response was sent at all and whether a refund had already been issued.

Compare the two neighboring labels. An internal refund decision is the company grading itself. A return-fraud flag is weaker still: a rule or score fired, for a worn item sent back, an empty box or a parcel claimed as never delivered, and nobody adjudicated it. Use flags as features with a timestamp, never as the truth about a person. Card data needs its own check. PCI DSS restricts how card numbers are displayed and stored, so confirm the dataset holds tokens and at most a truncated number, in evidence screenshots and PDFs as well.

What to check before licensing

  • Search customer emails, agent notes, receipts and evidence screenshots in a sample for full card numbers, expiry dates and security codes, and have your security team review the handling against PCI DSS.
  • Ask the holder and counsel whether its processor agreement and the card networks' rules permit dispute records and issuer responses to be licensed for your use.
  • Check that fraud and return-abuse flags attach to pseudonymous keys only, with no route back to a named customer.
  • Ask for the archive of policy versions, and test on a sample that each case points to the version in force on its request date.
  • Count on the sample how many decisions differ from the rule result, and how many of those carry an approver and a reason.
  • For disputes, ask what share were answered, accepted without a response or refunded first, and whether rulings after the first stage are included.
  • Verify the joins. Follow ten cases from the customer's message to the order, the return receipt and the money movement.

Delivery No files move before a signed license. A listing or a request grants no files by itself.

How licensing works through SourceX

  1. 1

    Define

    Send the domain, modality, volume, format, timeline and permitted use you need.

  2. 2

    Source

    SourceX identifies businesses that hold matching data and are open to licensing it.

  3. 3

    Qualify

    Fit, rights and quality are checked, and you review samples before committing.

  4. 4

    License

    Scope, permitted use, exclusivity, price and obligations are agreed in writing.

  5. 5

    Deliver

    Approved data is prepared, de-identified where required and transferred securely.

Questions Acquisition Partners ask

Does a lost chargeback mean the customer was right?

No. It means the issuer ruled for the cardholder on the record it had. Merchants often accept disputes without responding because the amount is small, the deadline passed or the evidence was never kept. Ask for a field that separates disputes fought and lost from disputes accepted before treating the result as a label.

Is the refund policy included, or only the decisions?

It should be included, so require it. A decision cannot be judged without the rule in force that day, and policies change with seasons and categories. Ask for a dated archive of versions and a pointer from each case to its version. Where a holder kept only the current policy, older cases suit conversation modeling but not policy-adherence training.

Are card numbers or bank details in the data?

They should not be, and you should verify that on a sample. Personal details such as names and account numbers are removed or replaced before delivery, and a case should carry only a token, the card brand and check results such as an address match. The risk sits in free text and attachments: customers type card numbers into emails, and dispute evidence includes receipts and screenshots. Have your security team review a sample of those files.

How is this different from support ticket data?

A ticket dataset is organized around the conversation and covers every kind of contact. This one is organized around a money decision and joins records a ticket export lacks: the dated policy, the rule result, the approval, the warehouse inspection and the processor's dispute file. It shows whether the item came back and who kept the money.

Can return-fraud flags be used as training labels?

Only with care. A flag records that a rule or score fired, not that anyone established abuse. Use flags as inputs with their timestamp and source, and look for an inspection finding or a dispute ruling before treating a case as confirmed. Check that no flag can be linked back to an identifiable person.

What should we specify in a request?

Specify the business type, such as apparel, electronics, marketplace or subscription, since return behavior differs sharply between them. Then give the case types, the years of history, and whether you need the policy archive, inspection photos and dispute stages with rulings. State the share of exception cases you want. If disputes are the main interest, with full evidence packages or issuer-side files, ask for a chargeback dataset instead. Supply is not guaranteed.

Evaluating this data for procurement?

Diligence packets are prepared per dataset. Rights, privacy processing and quality differ between datasets.

Request dataset diligence

Tell 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 25 November 2026.

See if your company qualifies