Square: Transactions schemas
3 Square schemas with complete fields and constraints.
← Transactions operations · All schemas
List Transactions — response body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Defines the fields that are included in the response body of a request to the [ListTransactions](api-endpoint:Transactions-ListTransactions) endpoint. One of `errors` or `transactions` is present in a given response (never both). |
cursor | string | Optional | A pagination cursor for retrieving the next set of results, if any remain. Provide this value as the `cursor` parameter in a subsequent request to this endpoint. See [Paginating results](https://developer.squareup.com/docs/working-with-apis/pagination) for more information. |
errors | array | Optional | Any errors that occurred during the request. |
errors[] | Model | Each item | Expand Get Shift — response body — errors item |
transactions | array | Optional | An array of transactions that match your query. |
transactions[] | Model | Each item | Expand Retrieve Transaction — response body — transaction |
Referenced models: Get Shift — response body — errors item, Retrieve Transaction — response body — transaction
Retrieve Transaction — response body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Defines the fields that are included in the response body of a request to the [RetrieveTransaction](api-endpoint:Transactions-RetrieveTransaction) endpoint. One of `errors` or `transaction` is present in a given response (never both). |
errors | array | Optional | Any errors that occurred during the request. |
errors[] | Model | Each item | Expand Get Shift — response body — errors item |
transaction | Model | Optional | Expand Retrieve Transaction — response body — transaction The requested transaction. |
Referenced models: Get Shift — response body — errors item, Retrieve Transaction — response body — transaction
Retrieve Transaction — response body — transaction
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Represents a transaction processed with Square, either with the Connect API or with Square Point of Sale. The `tenders` field of this object lists all methods of payment used to pay in the transaction. |
client_id | JSON | Optional | |
client_id (anyOf 1) | string | Alternative | If the transaction was created in the Square Point of Sale app, this value is the ID generated for the transaction by Square Point of Sale. This ID has no relationship to the transaction's canonical `id`, which is generated by Square's backend servers. This value is generated for bookkeeping purposes, in case the transaction cannot immediately be completed (for example, if the transaction is processed in offline mode). It is not currently possible with the Connect API to perform a transaction lookup by this value. Maximum length: 192 |
client_id (anyOf 2) | null | Alternative | |
created_at | string | Optional | The timestamp for when the transaction was created, in RFC 3339 format. Maximum length: 32 |
id | string | Optional | The transaction's unique ID, issued by Square payments servers. Maximum length: 192 |
location_id | JSON | Optional | |
location_id (anyOf 1) | string | Alternative | The ID of the transaction's associated location. Maximum length: 50 |
location_id (anyOf 2) | null | Alternative | |
order_id | JSON | Optional | |
order_id (anyOf 1) | string | Alternative | The order_id is an identifier for the order associated with this transaction, if any. Maximum length: 192 |
order_id (anyOf 2) | null | Alternative | |
product | JSON | Optional | |
product (anyOf 1) | string | Alternative | Indicates the Square product used to process a transaction. The Square product that processed the transaction. See [TransactionProduct](#type-transactionproduct) for possible values Known values: REGISTER, EXTERNAL_API, BILLING, APPOINTMENTS, INVOICES, ONLINE_STORE, PAYROLL, OTHER |
product (anyOf 2) | null | Alternative | |
reference_id | JSON | Optional | |
reference_id (anyOf 1) | string | Alternative | If the transaction was created with the [Charge](api-endpoint:Transactions-Charge) endpoint, this value is the same as the value provided for the `reference_id` parameter in the request to that endpoint. Otherwise, it is not set. Maximum length: 40 |
reference_id (anyOf 2) | null | Alternative | |
refunds | JSON | Optional | |
refunds (anyOf 1) | array | Alternative | Refunds that have been applied to any tender in the transaction. |
refunds (anyOf 1)[] | Model | Each item | Expand Pay Order — response body — order refunds item |
refunds (anyOf 2) | null | Alternative | |
shipping_address | JSON | Optional | |
shipping_address (anyOf 1) | Model | Alternative | Expand Get Payment — response body — payment billing address The shipping address provided in the request, if any. |
shipping_address (anyOf 2) | null | Alternative | |
tenders | JSON | Optional | |
tenders (anyOf 1) | array | Alternative | The tenders used to pay in the transaction. |
tenders (anyOf 1)[] | Model | Each item | Expand Pay Order — response body — order tenders item |
tenders (anyOf 2) | null | Alternative |
Referenced models: Get Payment — response body — payment billing address, Pay Order — response body — order refunds item, Pay Order — response body — order tenders item