Dataset
Square order and payment records datasets for AI training
A Square dataset is an export of a seller's Square account: orders with line items, modifiers, discounts and taxes, the payments, refunds and disputes recorded against them, and the catalog of items, variations and modifier lists across the seller's locations. SourceX sources it to a buyer's spec from established businesses that run Square, with customer directory entries, card fragments and team members replaced by pseudonymous keys or removed. Each dataset is de-identified and licensed for an agreed permitted use.
Dataset manifest
Sourced to your spec- What it is
- Orders, payments, refunds and disputes from a seller's Square account, with its catalog and locations
- Typical systems
- Square Point of Sale with Square for Retail, Square for Restaurants, Square Appointments, Square Invoices or Square Online where the seller uses them
- Typical history
- Varies by seller and product; specify a date range per location and record type
- Modality
- Structured order, payment and catalog records with short free text in item notes, refund reasons and custom-amount names
- Delivery formats
- JSONL or Parquet per object from the Square APIs, or Dashboard CSV reports
- Preparation
- Customer entries and card fingerprints re-keyed or dropped; card digits, expiry, buyer emails and addresses removed; team member names and wages removed; notes screened
- Licensing
- Scoped per seller, location and date range; permitted use agreed per license; Square's seller and developer terms checked by owner and buyer
- Availability
- Sourced to your spec; business type, products in use and history depend on the seller, 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 line items, payments, refunds and any return order. |
| location | object | The Order's Location: keyed ID, type (physical or mobile), time zone and, where set, the merchant category code that says what kind of goods or services it sells. |
| state_and_source | object | The Order's state (open, completed, canceled or draft), created and closed times, and source name, the application that created it. |
| customer_key | string | Pseudonymous key for the Customer directory entry, with its creation source, since some are instant profiles Square made from a card payment. |
| line_items | array | OrderLineItem records with name, variation name, quantity, base price, total and typed note, amounts in the currency's smallest unit. |
| line_items[].catalog_ref | object | The OrderLineItem's catalog object ID and catalog version with its item type: item, custom amount or gift card. |
| line_items[].modifiers | array | OrderLineItemModifier records with name, price and the CatalogModifier they reference, an entry in a CatalogModifierList. |
| discounts_and_taxes | array | The Order's discounts, taxes and service charges with scope (line or order) and amounts applied per OrderLineItem. |
| payments | array | Payment records with source type (card, cash, external and others), status, amount, tip and the device that took it. |
| payments[].card_details | object | The Payment's card brand, card type, entry method and CVV and address check results; first six and last four digits, expiry and fingerprint handled as agreed. |
| payments[].processing_fee | array | The Payment's processing fee entries with type, amount and effective time, as Square assessed them. |
| refunds_and_returns | array | Refund records (amount, status, typed reason) and the Order's returns, which list returned line items and the source order. |
| disputes | array | Dispute records against the Order's payments with reason, state, disputed amount, card brand and evidence due date. |
| catalog_objects | array | CatalogItem, CatalogItemVariation and CatalogModifierList records with version, deleted flag, per-location presence and price overrides, plus InventoryCount where tracked. |
Field names from the table above; values are masked placeholders.
Example record
{
"order_ref": "ord_c41d09",
"location": {
"location_key": "loc_03",
"type": "PHYSICAL",
"timezone": "America/Chicago",
"mcc": "5814"
},
"state_and_source": {
"state": "COMPLETED",
"created_at": "2025-04-18T17:22:41Z",
"source_name": "Point of Sale"
},
"customer_key": "cst_8a2f",
"line_items": [
{
"name": "Cold Brew",
"variation_name": "Large",
"quantity": "2",
"base_price_money": {"amount": 475, "currency": "USD"},
"catalog_ref": {
"item_type": "ITEM",
"catalog_object_key": "var_19be",
"catalog_version": 1744300044120
},
"modifiers": [
{
"name": "Oat Milk",
"catalog_object_key": "mod_77a0",
"base_price_money": {"amount": 75, "currency": "USD"}
}
],
"total_money": {"amount": 1100, "currency": "USD"}
},
{
"name": "",
"note": "cup sleeves for office",
"quantity": "1",
"base_price_money": {"amount": 500, "currency": "USD"},
"catalog_ref": {"item_type": "CUSTOM_AMOUNT", "catalog_object_key": null},
"total_money": {"amount": 500, "currency": "USD"}
}
],
"discounts_and_taxes": [
{
"kind": "tax",
"name": "Sales Tax",
"percentage": "8.25",
"applied_money": {"amount": 132, "currency": "USD"}
}
],
"payments": [
{
"payment_key": "pay_5e90",
"source_type": "CARD",
"status": "COMPLETED",
"amount_money": {"amount": 1732, "currency": "USD"},
"tip_money": {"amount": 300, "currency": "USD"},
"card_details": {"card_type": "CREDIT", "entry_method": "CONTACTLESS", "card_key": "crd_f31c"},
"processing_fee": [
{
"type": "INITIAL",
"amount_money": {"amount": 63, "currency": "USD"},
"effective_at": "2025-04-18T19:23:31Z"
}
]
}
],
"refunds_and_returns": [
{
"refund_key": "rfd_22b7",
"status": "COMPLETED",
"amount_money": {"amount": 595, "currency": "USD"},
"reason": "One drink made wrong"
}
],
"disputes": [],
"catalog_objects": [
{
"catalog_object_key": "var_19be",
"type": "ITEM_VARIATION",
"version": 1744300044120,
"is_deleted": false
}
]
}Synthetic record for illustration. Field names, structure and format are agreed per order.
What AI teams use it for
Train payment-operations agents on whole payment lifecycles
Payments with their fees, refunds and disputes show how a sale is completed, partly refunded or challenged.
Model dispute risk from basket and card context
Dispute reason and state joined to entry method, check results and the items sold give labeled outcomes for chargeback models.
Explain sales against deposits
Net amounts, tips and processing fees per payment let an agent explain why a day's sales differ from the deposit.
Learn basket structure across business formats
Line items with modifiers and catalog versions from shops, cafes and service businesses give varied baskets in one schema.
Build evaluation sets for point-of-sale assistants
Held-out orders with known refunds, returns or disputes let a lab score an agent's answer against the recorded outcome.
Use-case guides: Finance and accounting agents, Enterprise and computer-use agents, Private evaluation sets
What makes this data valuable
Orders joined to payments
Every payment carries an order ID that resolves in the delivery.
Catalog versions resolvable
Line items whose catalog object and version return a record let each sale be matched to the item as it was.
Low custom-amount share
Few quick-sale lines lack a catalog item, so most revenue has a product behind it.
Locations typed
Each location is labeled by business type and the Square product it runs.
Fees and disputes present
Processing fee entries and dispute records show the processor side came with the export.
Fingerprints re-keyed consistently
One key per card fingerprint, customer entry and team member across locations keeps repeat visits linked without identity.
Value drivers
Square dataset
Square holds the basket and the card outcome in one account
Many point of sale systems hand the card to a separate processor and keep only a tender line. Square is the processor. A Payment in a Square account carries its order ID, source type, status, tip, the card's entry method and the results of the CVV and address checks, plus a list of processing fee entries assessed on that payment. A PaymentRefund points back to its payment. A Dispute names the disputed payment with a reason, a due date and a state that runs from evidence required to won, lost or accepted. Basket, fee, refund and chargeback join by ID, with no bank file to match.
An OrderLineItem holds the catalog object ID of the item variation sold and a catalog version, a number that fixes the state of the catalog the line was rung against. Each catalog object carries its own version, an update time and a deleted flag, and the Catalog API's retrieve call takes a catalog version through a parameter Square marks as beta. So a sale can be matched to the item as it was, if old versions still come back for that seller, which is something to test on the sample. The name and price are copied onto the line as well.
These joins hold only for money Square moved. Cash and external payments are recorded with no card details and cannot become a Square dispute. A return can be an order of its own whose returns point to the source order.
One Square export can hold a cafe, a salon and an invoicing desk
Square sells one account type to very different businesses: a counter-service cafe on Square for Restaurants, a boutique on Square for Retail, a salon on Square Appointments, a contractor sending Square Invoices. All produce orders and payments of the same shape, and one seller's locations can mix them. Pooled, they give a model baskets in which a line is a latte, a haircut or a deposit on a remodel. Split the data by location first, using the location's merchant category code where one is set, the order's source name and the catalog item's product type, which marks an appointment service apart from a regular item.
Then count the lines with no catalog item. A cashier can key an amount and take payment without choosing an item, and the line comes back with the item type custom amount, no catalog object ID and a name that may be missing or whatever was typed. Those lines support payment and time-of-day analysis and say nothing about products. Card data comes back as fragments: brand, first six and last four digits, expiry, entry method, check results and a fingerprint that Square derives from the card number to recognize the same card again, which makes it a repeat-customer key to re-key before delivery.
Ask which route produced the file. The Dashboard's transactions export is one row per payment with the items written into a description column, and its item detail export is one row per item sold with modifiers as text. The Orders and Payments APIs return the nested objects, but both are read by location. An order search names its locations, at most ten per request. A payment listing that names none returns only the seller's main location, and with no start time only the past year. Test a sample by joining every card payment to its order and checking the locations and months present against the seller's own list.
What to check before licensing
- Have the data owner and your counsel read Square's seller terms and developer terms on exported data and API use before a permitted use is agreed.
- Get the seller's full list of locations with the Square product each one runs, and confirm each is in both the order extract and the payment extract.
- Measure the share of line items with the item type custom amount per location, and set the share you will accept.
- Check that customer directory entries, buyer emails and addresses on payments, card first six and last four digits, expiry dates and card fingerprints were removed or re-keyed, instant profiles included.
- Confirm that team member names, wages, shift or timecard records and declared tips are removed or keyed, including the team member ID on each payment.
- Take twenty line items from the oldest month and test whether their catalog objects come back at the recorded version.
- Ask whether refunds, return orders and disputes cover the same date range as orders, and whether processing fees were populated at the pull.
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 Square dataset contain that other point-of-sale data does not?
The processor's side of each sale. Because Square moves the money as well as recording the basket, a payment in the export carries its entry method, card check results and processing fee entries, and links by ID to any refund or dispute. Line items also carry a catalog object ID and catalog version.
Can Square data be separated by business type?
Yes, if the fields for it are kept. Each order belongs to a location, and a location can carry a merchant category code. The order's source name shows the application that created it, and catalog items carry a product type. Ask for a location table stating which Square product each location ran and over what dates, because sellers switch.
What card information is in Square payment records?
Only fragments of the card, never the full number. A card payment returns the brand, first six and last four digits, expiry, card type, entry method, CVV and address check results and a card fingerprint. Specify that the digits and expiry are dropped and the fingerprint re-keyed, and that buyer email and address fields on the payment are removed.
How are custom-amount sales handled?
They are kept and flagged. A quick sale keyed as an amount has no catalog item behind it, so the line has the item type custom amount, no catalog reference and a name that may be empty or typed by the cashier. State in your request the largest share of such lines you would accept.
Does a Square export include labor, bookings and invoices?
It can, where the seller uses those products and agrees to include them. Team members, their shifts or timecards and wages, bookings and invoices are separate objects linked to orders or locations by ID. They describe named staff and clients, so say which you need and how those details should be treated.
Is SourceX affiliated with Block?
Square is named to identify the system the records come from. That does not imply a partnership with or endorsement by Block. The records belong to the business that runs Square, 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
- Retail point-of-sale transaction data
Receipt-level till transactions with every line, discount, tender, void and return, plus the store context needed to read them
- Payment and card transaction records
Payment-level logs with every authorization attempt, its response, the money movement after it and the confirmed outcome
- Toast restaurant order and check records
Orders, checks, selections, modifiers, discounts and payments per restaurant, with menu configuration and time entries
- Clover point-of-sale order and payment records
Orders with per-unit line items, modifications and discounts, joined to payments, refunds, tenders and the item catalog from one merchant's Clover account
- Lightspeed retail and restaurant POS records
A merchant's sales, sale lines with cost, items, purchasing, stock movements and work orders from one named Lightspeed product
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.