DataContractGate

Cloud Free needs no credit card

Sign inSign up
← Catalog
Payments

Square — data contract (compatible with Square’s documented schema; not affiliated with Square)

Square Payment object — core fields from the Payments API. Compatible with Square's documented Payment object; not affiliated with Square.

Validate a client's Square export at ingest into your warehouse, or with POST /egress before sending the same shape to a partner, reverse ETL, or an AI agent.

Download YAML

Also available: ODCS v3.1.0 YAML. “Use this contract” forks it into your org, then opens the validation playground so you can upload the client file.

Fields

NameTypeRequiredRuleDescription
idstringrequired——
statusstringoptionalone of: APPROVED, PENDING, COMPLETED, CANCELED, FAILEDStatus of the payment.
amount_moneyobjectrequired—The amount of money processed for the payment.
source_typestringoptionalone of: CARD, BANK_ACCOUNT, WALLET, BUY_NOW_PAY_LATER, SQUARE_ACCOUNT, CASH, EXTERNALThe source type for the payment.
location_idstringoptional——
order_idstringoptional——
reference_idstringoptional——
receipt_numberstringoptional——
created_attimestampoptional——
updated_attimestampoptional——

Sample rows

Three synthetic rows we wrote. They validate against this contract with zero violations. No real customer data.

[
  {
    "amount_money": {
      "amount": 4200,
      "currency": "USD"
    },
    "created_at": "2026-01-15T09:30:00Z",
    "id": "h4Yk3EXAMPLEPAY0000001",
    "location_id": "L8EXAMPLELOC1",
    "order_id": "aB3EXAMPLEORD0000001",
    "receipt_number": "ABCD",
    "reference_id": "client-ref-1001",
    "source_type": "CARD",
    "status": "COMPLETED",
    "updated_at": "2026-01-15T09:30:05Z"
  },
  {
    "amount_money": {
      "amount": 1599,
      "currency": "USD"
    },
    "created_at": "2026-01-16T14:05:00Z",
    "id": "p9Qm2EXAMPLEPAY0000002",
    "location_id": "L8EXAMPLELOC1",
    "source_type": "BUY_NOW_PAY_LATER",
    "status": "APPROVED"
  },
  {
    "amount_money": {
      "amount": 0,
      "currency": "CAD"
    },
    "created_at": "2026-01-17T11:45:00Z",
    "id": "n7Ls8EXAMPLEPAY0000003",
    "location_id": "L9EXAMPLELOC2",
    "source_type": "SQUARE_ACCOUNT",
    "status": "FAILED"
  }
]

Provenance

Checked
2026-11-06
Version
v1.0
Author
DataContractGate
License
MIT

Spotted a mismatch with the vendor’s current schema? Report an issue.

Stripe, Shopify, QuickBooks, Xero, HubSpot, Salesforce, Google Analytics and Square are trademarks of their respective owners. DataContractGate is not affiliated with or endorsed by them. These contracts describe data shaped like these vendors’ documented schemas; they are not official and are not certified by any vendor.