Dataset
Loop Returns return and exchange datasets for AI training
A Loop Returns dataset is an export of the Returns in a merchant's Loop account, each with its line items, the parent and child return reason the shopper picked, comments, the outcome taken (refund, exchange, store credit or a Shop Now purchase), labels, tracking and handling fees, joined to the store orders they came from. SourceX sources it to a buyer's spec from established businesses that run Loop on their stores, mainly on Shopify. Each dataset is de-identified, with shopper identity, addresses and uploaded photos removed or cleared, and licensed for an agreed permitted use.
Dataset manifest
Sourced to your spec- What it is
- Return requests with line items, two-level reasons, comments, the outcome taken, credit amounts and labels, keyed to the store orders they came from
- Typical systems
- Loop on a Shopify store, with Workflows, Shop Now, Instant Exchanges, Happy Returns drop-off and item grading where the merchant uses them
- Typical history
- Specified by the buyer; starts when the merchant moved returns onto Loop; policies and Workflows exist only as now set unless copies were kept
- Modality
- Structured return, line and label records with free-text shopper comments and, where cleared, shopper-uploaded photos
- Delivery formats
- Agreed per order; JSONL per return or Parquet tables for returns, lines and labels, with reason, policy and Workflow reference tables
- Preparation
- Shopper emails, names, order names, tracking numbers and label links removed or keyed; comments scrubbed; photos removed or reviewed
- Licensing
- Rights reviewed per merchant; permitted use set in the license; vendor and store platform terms checked by the buyer and the data owner
- Availability
- Sourced to your spec from merchants that agree; 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 |
|---|---|---|
| return_key | string | Pseudonymous key made from the Return's id, which its line items, Labels and Exchanges refer to. |
| order_key | string | Key made from the Return's provider_order_id, the store's own order ID, mapped the same way as any store order extract delivered with it. |
| state | enum | The Return's state as Loop stores it: open, closed, cancelled, expired or review, delivered with its type, standard or warranty. |
| outcome | enum | The Return's outcome: refund, credit, exchange, upsell, exchange+refund or exchange+credit. |
| created_at | datetime | The Return's created_at, delivered with updated_at and edited_at. |
| line_items | array | One entry per Return line item with sku, title, price, discount, tax and a key made from provider_line_item_id. |
| line_items[].reason | object | The line's parent_return_reason and return_reason, the two levels of the merchant's own Return reasons list. |
| line_items[].comment | string | The shopper's return_comment on that line, with personal details scrubbed. |
| line_items[].line_outcome | enum | The line item's own outcome: default, keep, donate, reject or review. |
| exchange | object | The exchange_variant asked for on each line, the Exchanges on the Return and a key for the exchange order. |
| money | object | The Return's totals: return_total, exchange_credit_total, gift_card, refund, upsell and handling_fee, in the Return's currency. |
| return_method | object | How the items came back, from return_method and Labels: carrier, label status and label_rate, with tracking numbers removed. |
| line_items[].inspection | object | The line's condition and disposition objects, with condition_category and disposition_outcome; null on every line nobody graded. |
| policy_context | object | Derived, not a Loop field: from dated copies of Return policies and Workflows, the policy that applied, bonus credit offered and rules matched. |
Field names from the table above; values are masked placeholders.
Example record
{
"return_key": "ret_5e81c2",
"order_key": "ord_a7730f",
"state": "closed",
"type": "standard",
"outcome": "exchange+credit",
"created_at": "2025-03-04T16:22:10Z",
"updated_at": "2025-03-13T09:05:41Z",
"line_items": [
{
"order_line_key": "ol_3391",
"sku": "JKT-RAIN-M-OLV",
"title": "Packable rain jacket, olive, M",
"price": 128.0,
"discount": 12.8,
"tax": 9.22,
"reason": {
"parent": "Size or fit",
"child": "Too small"
},
"comment": "Tight across the shoulders. I usually wear a medium.",
"line_outcome": "default",
"exchange_variant": {
"sku": "JKT-RAIN-L-OLV",
"title": "Packable rain jacket, olive, L"
},
"inspection": {
"condition_category": "grade_a",
"disposition_outcome": "back_to_stock"
}
},
{
"order_line_key": "ol_3392",
"sku": "CAP-WOOL-GRY",
"title": "Wool cap, grey",
"price": 34.0,
"tax": 2.72,
"reason": {
"parent": "Changed my mind",
"child": "No longer needed"
},
"comment": null,
"line_outcome": "keep",
"inspection": null
}
],
"exchange": {
"exchange_order_key": "ord_a7802c",
"exchange_total": 124.42
},
"money": {
"currency": "USD",
"return_total": 161.14,
"exchange_credit_total": 124.42,
"gift_card": 41.72,
"refund": 0.0,
"handling_fee": 0.0
},
"return_method": {
"kind": "prepaid_label",
"label_status": "delivered",
"label_rate": 7.85
},
"policy_context": {
"derived": true,
"policy_key": "pol_us_30d",
"bonus_credit": {
"store_credit": 5.0
},
"workflows_matched": [
"wf_keep_under_40"
]
}
}Synthetic record for illustration. Field names, structure and format are agreed per order.
What AI teams use it for
Predict which outcome a shopper takes
Product, reason, bonus credit and the outcome taken give labeled examples of a refund avoided or not.
Train returns support agents
Policies and Workflows beside real returns show which requests were allowed, held for review, rejected or settled by letting the shopper keep the item.
Classify return reasons from comments
Comments paired with the parent and child reason the shopper picked are labeled text in the shopper's own words.
Model return rates by variant
Return lines keyed to store order lines show which sizes and colors come back.
Evaluate policy reasoning
A dated policy, an order and a return request make test items with one right answer for what could be offered.
Use-case guides: Customer support agents, Enterprise and computer-use agents, Private evaluation sets
What makes this data valuable
Order line keys resolve
A high share of return lines matching a line in the store's order extract shows the join survived de-identification.
Both reason levels filled
Parent and child reasons on every line, with a dated reason list, stay comparable over time.
Comments kept
Comments delivered as scrubbed text, not dropped, make a reason more than a menu pick.
Graded lines
Condition and disposition on a known share of lines show how far inspection can be trusted.
Dated policy and Workflow copies
Settings saved with dates let each return be read against the offer in force.
Every state included
Cancelled, expired and in-review returns show requests that never completed.
Process
Loop Returns dataset
Each return records a choice between refund and exchange
Loop is built to move a shopper away from a refund. When a return starts, the merchant's return policy and Workflows decide what that shopper may pick: a refund to the original payment, an exchange for another variant, store credit, or Shop Now, where the return value is spent on other products the store sells. The merchant can add bonus credit to Shop Now exchanges and store credit, and set handling fees that push shoppers toward the outcomes it prefers. The return then stores what was taken. Its outcome is one of refund, credit, exchange, upsell, exchange+refund or exchange+credit, and the totals split the value into exchange_credit_total, gift_card for store credit issued, refund and upsell.
That makes each return a decision with a known result, not only a refund line. For the same product and reason, some shoppers swapped a size, some took credit and some asked for the money back, and the record says which. Line items carry an outcome of their own, default, keep, donate, reject or review, so an item the shopper was told to keep and a rejected line can be told apart.
What the return does not hold is the menu the shopper saw. It names no policy and no Workflow, so the offer has to be rebuilt from the settings in force that day, and a rule changed last quarter is invisible unless the merchant kept dated copies or can produce a change history. The return has no bonus credit field either. Loop's admin reports on exchanges and store credit carry a bonus credit column, so ask for those exports. Then pick returns where gift_card exceeds the value of the returned lines and check the difference against the bonus the policy states.
Returns hang off store orders, and inspection is thin
Loop does not take the orders. It reads them from the store, mainly Shopify, and every return points back: provider_order_id is the store's order ID, and each return line carries provider_line_item_id, on Shopify the order's own line item ID. Exchange orders and gift cards are written to the store and referenced from the return. A Loop extract alone lacks the ship date and the lines nobody sent back, so it gives a count of returns where the joined data gives a return rate per variant. For a store on another platform the line reference is Loop's own order line ID, with the platform's ID in a separate external field. De-identification must key order and line IDs the same way in both extracts or the join is lost.
Reasons are two fields, parent_return_reason and return_reason, drawn from a list the merchant built, with free text in return_comment. Both reasons arrive as text, not as codes, so a reworded reason starts a new series, and two stores' size complaints match only after mapping.
What the warehouse found is the thin part. Each line has condition and disposition objects, with categories such as grade_a, incorrect_item, missing and junk, and dispositions such as back_to_stock, resale_hold and donate. They are filled only where the merchant, its warehouse or a returns partner recorded a grade and a disposition in Loop. Count the share of returned lines with a condition before treating the data as ground truth for item state. Shopper photos are served as links that expire, so the files must have been downloaded when the extract ran. The returns list hands back each return as it stands, in capped date windows filtered on created or updated date, and leaves out cancelled and in-review returns unless they are requested by state.
What to check before licensing
- Have the buyer's counsel and the data owner read Loop Returns' terms on exported data and API use, and the store platform's terms on order data.
- Search the sample for shopper emails, names, order names, tracking numbers and label links, and read return comments for addresses and phone numbers.
- If shopper photos are in scope, check them for faces and shipping labels, and confirm the files were downloaded before their links expired.
- Count the share of returned lines with a condition and a disposition, ask who wrote them, and confirm the processor's email address was removed.
- Match order and order line keys to the store's order extract, and ask whether the merchant runs on Shopify or another platform.
- Request the merchant's reason list with both levels, dated copies of return policies and Workflows, and Loop's exchange and store credit reports, and check bonus credit against the totals.
- Ask how the extract was paged, whether cancelled and in-review returns were requested by state, and whether warranty returns are included.
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
What does a Loop Returns dataset contain?
It contains one merchant's return requests and what became of them. Each return has its state, type and outcome, the lines sent back with price, discount and tax, the two-level reason and comment per line, any exchange variant, the credit, gift card, refund and handling fee totals, and label status. Name the stores and years you need.
Can returns be joined to the original Shopify orders?
Yes, when the store's orders are licensed with them and keyed the same way. Each return carries the store's order ID and each return line the store's order line ID, so a return line maps to one line that was sold. Loop records alone do not include unreturned lines or fulfillment dates. Test what share of return lines resolve.
Does the data show what the shopper was offered or only what they chose?
It shows what they chose, and the offer has to be rebuilt. The return stores the outcome and the amounts, while the options, bonus credit and fees come from the policy and Workflows in force at the time. The return names neither, so the offer can be rebuilt only where the merchant saved dated copies of those settings or can supply their change history. Without them, the returns are outcome data only.
Are warehouse inspection results included?
Only where someone wrote them into Loop. Each return line can hold a condition grade and a disposition, but these are written by the merchant, its warehouse or a returns partner, and are empty otherwise. Ask for the share of graded lines per year before planning work on item condition.
How are shopper comments and photos handled?
Comments are scrubbed and photos are removed unless cleared. Comments are free text and can hold names, addresses and phone numbers. Uploaded photos can show faces, homes and shipping labels, and are delivered only where the merchant may share them and they have been reviewed. Read a sample of comments yourself.
Is SourceX affiliated with Loop Returns?
Loop is named to identify the system the records come from. That does not imply a partnership with or endorsement by Loop Returns. The records belong to the business that runs Loop, 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
- Returns and reverse logistics records
Return files from request to final disposition, with stated reason, inspection grade, photos, route and refund
- 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
- E-commerce order histories
Order-level records that follow every line to its end: canceled, kept, exchanged, returned or refunded
- Shopify store order and catalog records
Orders, line items, transactions, fulfillments and refunds from one Shopify store, with its product, variant and inventory records
- Recharge subscription and charge records
Subscriptions with product, price and frequency, the charges attempted against them, the orders created and cancellation reasons from one merchant's Recharge account
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.