Skip to content

Square: Transactions schemas

3 Square schemas with complete fields and constraints.

← Transactions operations · All schemas

List Transactions — response body

FieldTypePresenceDescription and constraints
$objectRootDefines 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).
cursorstringOptionalA 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.
errorsarrayOptionalAny errors that occurred during the request.
errors[]ModelEach itemExpand Get Shift — response body — errors item
transactionsarrayOptionalAn array of transactions that match your query.
transactions[]ModelEach itemExpand Retrieve Transaction — response body — transaction

Referenced models: Get Shift — response body — errors item, Retrieve Transaction — response body — transaction

Retrieve Transaction — response body

FieldTypePresenceDescription and constraints
$objectRootDefines 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).
errorsarrayOptionalAny errors that occurred during the request.
errors[]ModelEach itemExpand Get Shift — response body — errors item
transactionModelOptionalExpand 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

FieldTypePresenceDescription and constraints
$objectRootRepresents 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_idJSONOptional
client_id (anyOf 1)stringAlternativeIf 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)nullAlternative
created_atstringOptionalThe timestamp for when the transaction was created, in RFC 3339 format.
Maximum length: 32
idstringOptionalThe transaction's unique ID, issued by Square payments servers.
Maximum length: 192
location_idJSONOptional
location_id (anyOf 1)stringAlternativeThe ID of the transaction's associated location.
Maximum length: 50
location_id (anyOf 2)nullAlternative
order_idJSONOptional
order_id (anyOf 1)stringAlternativeThe order_id is an identifier for the order associated with this transaction, if any.
Maximum length: 192
order_id (anyOf 2)nullAlternative
productJSONOptional
product (anyOf 1)stringAlternativeIndicates 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)nullAlternative
reference_idJSONOptional
reference_id (anyOf 1)stringAlternativeIf 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)nullAlternative
refundsJSONOptional
refunds (anyOf 1)arrayAlternativeRefunds that have been applied to any tender in the transaction.
refunds (anyOf 1)[]ModelEach itemExpand Pay Order — response body — order refunds item
refunds (anyOf 2)nullAlternative
shipping_addressJSONOptional
shipping_address (anyOf 1)ModelAlternativeExpand Get Payment — response body — payment billing address
The shipping address provided in the request, if any.
shipping_address (anyOf 2)nullAlternative
tendersJSONOptional
tenders (anyOf 1)arrayAlternativeThe tenders used to pay in the transaction.
tenders (anyOf 1)[]ModelEach itemExpand Pay Order — response body — order tenders item
tenders (anyOf 2)nullAlternative

Referenced models: Get Payment — response body — payment billing address, Pay Order — response body — order refunds item, Pay Order — response body — order tenders item

Report an issue with this page

Necessary

Required for sign-in, security, authorization, and remembering your choices.

Always active

Analytics

Helps us understand how our website, product, and documentation are used.

Performance diagnostics

Uses performance tracing and privacy-masked session replay to diagnose problems.

Advertising

Shares visits and sign-ups with Meta, Reddit, and X so we can measure which of our ads work.

You can change these choices at any time from Cookie settings.