Square: Terminal schemas
55 Square schemas with complete fields and constraints.
← Terminal operations · All schemas
Cancel Terminal Action — response body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | |
action | Model | Optional | Expand Get Terminal Action — response body — action The canceled `TerminalAction` |
errors | array | Optional | Information on errors encountered during the request. |
errors[] | Model | Each item | Expand Get Shift — response body — errors item |
Referenced models: Get Shift — response body — errors item, Get Terminal Action — response body — action
Cancel Terminal Checkout — response body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | |
checkout | Model | Optional | Expand Get Terminal Checkout — response body — checkout The canceled `TerminalCheckout`. |
errors | array | Optional | Information about errors encountered during the request. |
errors[] | Model | Each item | Expand Get Shift — response body — errors item |
Referenced models: Get Shift — response body — errors item, Get Terminal Checkout — response body — checkout
Cancel Terminal Refund — response body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | |
errors | array | Optional | Information about errors encountered during the request. |
errors[] | Model | Each item | Expand Get Shift — response body — errors item |
refund | Model | Optional | Expand Get Terminal Refund — response body — refund The updated `TerminalRefund`. |
Referenced models: Get Shift — response body — errors item, Get Terminal Refund — response body — refund
Create Terminal Action — request body — body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | |
action | Model | Required within parent | Expand Create Terminal Action — request body — body action The Action to create. |
idempotency_key | string | Required within parent | A unique string that identifies this `CreateAction` request. Keys can be any valid string but must be unique for every `CreateAction` request. See [Idempotency keys](https://developer.squareup.com/docs/build-basics/common-api-patterns/idempotency) for more information. Maximum length: 64 Minimum length: 1 |
Referenced models: Create Terminal Action — request body — body action
Create Terminal Action — request body — body action
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Represents an action processed by the Square Terminal. |
app_id | string | Optional | The ID of the application that created the action. Read only: true |
await_next_action | JSON | Optional | |
await_next_action (anyOf 1) | boolean | Alternative | Indicates the action will be linked to another action and requires a waiting dialog to be displayed instead of returning to the idle screen on completion of the action. Only supported on SIGNATURE, CONFIRMATION, DATA_COLLECTION, and SELECT types. |
await_next_action (anyOf 2) | null | Alternative | |
await_next_action_duration | JSON | Optional | |
await_next_action_duration (anyOf 1) | string | Alternative | The timeout duration of the waiting dialog as an RFC 3339 duration, after which the waiting dialog will no longer be displayed and the Terminal will return to the idle screen. Default: 5 minutes from when the waiting dialog is displayed Maximum: 5 minutes |
await_next_action_duration (anyOf 2) | null | Alternative | |
cancel_reason | string | Optional | The reason why `TerminalAction` is canceled. Present if the status is `CANCELED`. See [ActionCancelReason](#type-actioncancelreason) for possible values One of: BUYER_CANCELED, SELLER_CANCELED, TIMED_OUT Read only: true |
confirmation_options | JSON | Optional | |
confirmation_options (anyOf 1) | Model | Alternative | Expand Get Terminal Action — response body — action confirmation options agree button text, body, decision, disagree button text, title Describes configuration for the confirmation action. Requires `CONFIRMATION` type. |
confirmation_options (anyOf 2) | null | Alternative | |
created_at | string | Optional | The time when the `TerminalAction` was created as an RFC 3339 timestamp. Read only: true |
data_collection_options | JSON | Optional | |
data_collection_options (anyOf 1) | Model | Alternative | Expand CreateTerminalAction — request body — body / action / data_collection_options / input_type: EMAIL, PHONE NUMBER Describes configuration for the data collection action. Requires `DATA_COLLECTION` type. |
data_collection_options (anyOf 2) | null | Alternative | |
deadline_duration | JSON | Optional | |
deadline_duration (anyOf 1) | string | Alternative | The duration as an RFC 3339 duration, after which the action will be automatically canceled. TerminalActions that are `PENDING` will be automatically `CANCELED` and have a cancellation reason of `TIMED_OUT` Default: 5 minutes from creation Maximum: 5 minutes |
deadline_duration (anyOf 2) | null | Alternative | |
device_id | JSON | Optional | |
device_id (anyOf 1) | string | Alternative | The unique Id of the device intended for this `TerminalAction`. The Id can be retrieved from /v2/devices api. |
device_id (anyOf 2) | null | Alternative | |
device_metadata | Model | Optional | Expand Get Terminal Action — response body — action device metadata Details about the Terminal that received the action request (such as battery level, operating system version, and network connection settings). Only available for `PING` action type. Read only: true |
id | string | Optional | A unique ID for this `TerminalAction`. Maximum length: 255 Minimum length: 10 Read only: true |
location_id | string | Optional | The location id the action is attached to, if a link can be made. Maximum length: 64 Read only: true |
qr_code_options | JSON | Optional | |
qr_code_options (anyOf 1) | Model | Alternative | Expand Get Terminal Action — response body — action qr code options barcode contents, body, title Describes configuration for the QR code action. Requires `QR_CODE` type. |
qr_code_options (anyOf 2) | null | Alternative | |
receipt_options | JSON | Optional | |
receipt_options (anyOf 1) | Model | Alternative | Expand Get Terminal Action — response body — action receipt options Describes receipt action fields Describes configuration for the receipt action. Requires `RECEIPT` type. |
receipt_options (anyOf 2) | null | Alternative | |
save_card_options | JSON | Optional | |
save_card_options (anyOf 1) | Model | Alternative | Expand Get Terminal Action — response body — action save card options Describes save-card action fields Describes configuration for the save-card action. Requires `SAVE_CARD` type. |
save_card_options (anyOf 2) | null | Alternative | |
select_options | JSON | Optional | |
select_options (anyOf 1) | Model | Alternative | Expand Get Terminal Action — response body — action select options body, options, selected option, title Describes configuration for the select action. Requires `SELECT` type. |
select_options (anyOf 2) | null | Alternative | |
signature_options | JSON | Optional | |
signature_options (anyOf 1) | Model | Alternative | Expand Get Terminal Action — response body — action signature options body, signature, title Describes configuration for the signature capture action. Requires `SIGNATURE` type. |
signature_options (anyOf 2) | null | Alternative | |
status | string | Optional | The status of the `TerminalAction`. Options: `PENDING`, `IN_PROGRESS`, `CANCEL_REQUESTED`, `CANCELED`, `COMPLETED` Read only: true |
type | JSON | Optional | |
type (anyOf 1) | string | Alternative | Describes the type of this unit and indicates which field contains the unit information. This is an ‘open’ enum. Represents the type of the action. See [ActionType](#type-actiontype) for possible values One of: QR_CODE, PING, SAVE_CARD, SIGNATURE, CONFIRMATION, RECEIPT, DATA_COLLECTION, SELECT |
type (anyOf 2) | null | Alternative | |
updated_at | string | Optional | The time when the `TerminalAction` was last updated as an RFC 3339 timestamp. Read only: true |
Referenced models: Get Terminal Action — response body — action confirmation options agree button text, body, decision, disagree button text, title, CreateTerminalAction — request body — body / action / data_collection_options / input_type: EMAIL, PHONE NUMBER, Get Terminal Action — response body — action device metadata, Get Terminal Action — response body — action qr code options barcode contents, body, title, Get Terminal Action — response body — action receipt options Describes receipt action fields, Get Terminal Action — response body — action save card options Describes save-card action fields, Get Terminal Action — response body — action select options body, options, selected option, title, Get Terminal Action — response body — action signature options body, signature, title
Create Terminal Action — response body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | |
action | Model | Optional | Expand Get Terminal Action — response body — action The created `TerminalAction` |
errors | array | Optional | Information on errors encountered during the request. |
errors[] | Model | Each item | Expand Get Shift — response body — errors item |
Referenced models: Get Shift — response body — errors item, Get Terminal Action — response body — action
Create Terminal Checkout — request body — body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | |
checkout | Model | Required within parent | Expand Create Terminal Checkout — request body — body checkout The checkout to create. |
idempotency_key | string | Required within parent | A unique string that identifies this `CreateCheckout` request. Keys can be any valid string but must be unique for every `CreateCheckout` request. See [Idempotency keys](https://developer.squareup.com/docs/build-basics/common-api-patterns/idempotency) for more information. Maximum length: 64 Minimum length: 1 |
Referenced models: Create Terminal Checkout — request body — body checkout
Create Terminal Checkout — request body — body checkout
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Represents a checkout processed by the Square Terminal. |
amount_money | Model | Required within parent | Expand Create Payment — request body — body tip money The amount of money (including the tax amount) that the Square Terminal device should try to collect. |
app_fee_money | JSON | Optional | |
app_fee_money (anyOf 1) | Model | Alternative | Expand Create Payment — request body — body tip money The amount the developer is taking as a fee for facilitating the payment on behalf of the seller. The amount cannot be more than 90% of the total amount of the payment. The amount must be specified in the smallest denomination of the applicable currency (for example, US dollar amounts are specified in cents). For more information, see [Working with Monetary Amounts](https://developer.squareup.com/docs/build-basics/working-with-monetary-amounts). The fee currency code must match the currency associated with the seller that is accepting the payment. The application must be from a developer account in the same country and using the same currency code as the seller. For more information about the application fee scenario, see [Take Payments and Collect Fees](https://developer.squareup.com/docs/payments-api/take-payments-and-collect-fees). To set this field, PAYMENTS_WRITE_ADDITIONAL_RECIPIENTS OAuth permission is required. For more information, see [Permissions](https://developer.squareup.com/docs/payments-api/take-payments-and-collect-fees#permissions). |
app_fee_money (anyOf 2) | null | Alternative | |
app_id | string | Optional | The ID of the application that created the checkout. Read only: true |
cancel_reason | string | Optional | The reason why `TerminalCheckout` is canceled. Present if the status is `CANCELED`. See [ActionCancelReason](#type-actioncancelreason) for possible values One of: BUYER_CANCELED, SELLER_CANCELED, TIMED_OUT Read only: true |
created_at | string | Optional | The time when the `TerminalCheckout` was created, as an RFC 3339 timestamp. Read only: true |
customer_id | JSON | Optional | |
customer_id (anyOf 1) | string | Alternative | An optional ID of the customer associated with the checkout. |
customer_id (anyOf 2) | null | Alternative | |
deadline_duration | JSON | Optional | |
deadline_duration (anyOf 1) | string | Alternative | An RFC 3339 duration, after which the checkout is automatically canceled. A `TerminalCheckout` that is `PENDING` is automatically `CANCELED` and has a cancellation reason of `TIMED_OUT`. Default: 5 minutes from creation Maximum: 5 minutes |
deadline_duration (anyOf 2) | null | Alternative | |
device_options | Model | Required within parent | Expand Create Terminal Checkout — request body — body checkout device options Options to control the display and behavior of the Square Terminal device. |
id | string | Optional | A unique ID for this `TerminalCheckout`. Maximum length: 255 Minimum length: 10 Read only: true |
location_id | string | Optional | The location of the device where the `TerminalCheckout` was directed. Maximum length: 64 Read only: true |
note | JSON | Optional | |
note (anyOf 1) | string | Alternative | An optional note to associate with the checkout, as well as with any payments used to complete the checkout. Note: maximum 500 characters Maximum length: 500 |
note (anyOf 2) | null | Alternative | |
order_id | JSON | Optional | |
order_id (anyOf 1) | string | Alternative | The reference to the Square order ID for the checkout request. |
order_id (anyOf 2) | null | Alternative | |
payment_ids | array | Optional | A list of IDs for payments created by this `TerminalCheckout`. Read only: true |
payment_ids[] | string | Each item | |
payment_options | JSON | Optional | |
payment_options (anyOf 1) | Model | Alternative | Expand Create Terminal Checkout — request body — body checkout payment options accept partial authorization, autocomplete, delay action, delay duration Payment-specific options for the checkout request. |
payment_options (anyOf 2) | null | Alternative | |
payment_type | JSON | Optional | |
payment_type (anyOf 1) | string | Alternative | The type of payment the terminal should attempt to capture from. Defaults to `CARD_PRESENT`. See [CheckoutOptionsPaymentType](#type-checkoutoptionspaymenttype) for possible values One of: CARD_PRESENT, MANUAL_CARD_ENTRY, FELICA_ID, FELICA_QUICPAY, FELICA_TRANSPORTATION_GROUP, FELICA_ALL, PAYPAY, QR_CODE |
payment_type (anyOf 2) | null | Alternative | |
reference_id | JSON | Optional | |
reference_id (anyOf 1) | string | Alternative | An optional user-defined reference ID that can be used to associate this `TerminalCheckout` to another entity in an external system. For example, an order ID generated by a third-party shopping cart. The ID is also associated with any payments used to complete the checkout. Maximum length: 40 |
reference_id (anyOf 2) | null | Alternative | |
statement_description_identifier | JSON | Optional | |
statement_description_identifier (anyOf 1) | string | Alternative | Optional additional payment information to include on the customer's card statement as part of the statement description. This can be, for example, an invoice number, ticket number, or short description that uniquely identifies the purchase. Maximum length: 20 |
statement_description_identifier (anyOf 2) | null | Alternative | |
status | string | Optional | The status of the `TerminalCheckout`. Options: `PENDING`, `IN_PROGRESS`, `CANCEL_REQUESTED`, `CANCELED`, `COMPLETED` Read only: true |
team_member_id | JSON | Optional | |
team_member_id (anyOf 1) | string | Alternative | An optional ID of the team member associated with creating the checkout. |
team_member_id (anyOf 2) | null | Alternative | |
tip_money | JSON | Optional | |
tip_money (anyOf 1) | Model | Alternative | Expand Create Payment — request body — body tip money The amount designated as a tip, in addition to `amount_money`. This may only be set for a checkout that has tipping disabled (`tip_settings.allow_tipping` is `false`). |
tip_money (anyOf 2) | null | Alternative | |
updated_at | string | Optional | The time when the `TerminalCheckout` was last updated, as an RFC 3339 timestamp. Read only: true |
Referenced models: Create Terminal Checkout — request body — body checkout device options, Create Payment — request body — body tip money, Create Terminal Checkout — request body — body checkout payment options accept partial authorization, autocomplete, delay action, delay duration
Create Terminal Checkout — request body — body checkout device options
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | |
allow_auto_card_surcharge | JSON | Optional | |
allow_auto_card_surcharge (anyOf 1) | boolean | Alternative | Controls whether the mobile client applies Auto Card Surcharge (ACS) during checkout. If true, ACS is applied based on Dashboard configuration. If false, ACS is not applied regardless of that configuration. For more information, see [Add a Card Surcharge](https://developer.squareup.com/docs/terminal-api/additional-payment-checkout-features#add-a-card-surcharge). |
allow_auto_card_surcharge (anyOf 2) | null | Alternative | |
collect_signature | JSON | Optional | |
collect_signature (anyOf 1) | boolean | Alternative | Indicates that signature collection is desired during checkout. Defaults to false. |
collect_signature (anyOf 2) | null | Alternative | |
device_id | string | Required within parent | The unique ID of the device intended for this `TerminalCheckout`. A list of `DeviceCode` objects can be retrieved from the /v2/devices/codes endpoint. Match a `DeviceCode.device_id` value with `device_id` to get the associated device code. |
show_itemized_cart | JSON | Optional | |
show_itemized_cart (anyOf 1) | boolean | Alternative | Show the itemization screen prior to taking a payment. This field is only meaningful when the checkout includes an order ID. Defaults to true. |
show_itemized_cart (anyOf 2) | null | Alternative | |
skip_receipt_screen | JSON | Optional | |
skip_receipt_screen (anyOf 1) | boolean | Alternative | Instructs the device to skip the receipt screen. Defaults to false. |
skip_receipt_screen (anyOf 2) | null | Alternative | |
tip_settings | JSON | Optional | |
tip_settings (anyOf 1) | Model | Alternative | Expand Create Terminal Checkout — request body — body checkout device options tip settings allow tipping, custom tip field, separate tip screen, smart tipping, tip percentages Tip-specific settings. |
tip_settings (anyOf 2) | null | Alternative |
Referenced models: Create Terminal Checkout — request body — body checkout device options tip settings allow tipping, custom tip field, separate tip screen, smart tipping, tip percentages
Create Terminal Checkout — request body — body checkout device options tip settings allow tipping, custom tip field, separate tip screen, smart tipping, tip percentages
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | |
allow_tipping | JSON | Optional | |
allow_tipping (anyOf 1) | boolean | Alternative | Indicates whether tipping is enabled for this checkout. Defaults to false. |
allow_tipping (anyOf 2) | null | Alternative | |
custom_tip_field | JSON | Optional | |
custom_tip_field (anyOf 1) | boolean | Alternative | Indicates whether custom tip amounts are allowed during the checkout flow. Defaults to false. |
custom_tip_field (anyOf 2) | null | Alternative | |
separate_tip_screen | JSON | Optional | |
separate_tip_screen (anyOf 1) | boolean | Alternative | Indicates whether tip options should be presented on the screen before presenting the signature screen during card payment. Defaults to false. |
separate_tip_screen (anyOf 2) | null | Alternative | |
smart_tipping | JSON | Optional | |
smart_tipping (anyOf 1) | boolean | Alternative | Enables the "Smart Tip Amounts" behavior. Exact tipping options depend on the region in which the Square seller is active. For payments under 10.00, in the Australia, Canada, Ireland, United Kingdom, and United States, tipping options are presented as no tip, .50, 1.00 or 2.00. For payment amounts of 10.00 or greater, tipping options are presented as the following percentages: 0%, 5%, 10%, 15%. If set to true, the `tip_percentages` settings is ignored. Defaults to false. To learn more about smart tipping, see [Accept Tips with the Square App](https://squareup.com/help/us/en/article/5069-accept-tips-with-the-square-app). |
smart_tipping (anyOf 2) | null | Alternative | |
tip_percentages | JSON | Optional | |
tip_percentages (anyOf 1) | array | Alternative | A list of tip percentages that should be presented during the checkout flow, specified as up to 3 non-negative integers from 0 to 100 (inclusive). Defaults to 15, 20, and 25. |
tip_percentages (anyOf 1)[] | integer | Each item | |
tip_percentages (anyOf 2) | null | Alternative |
Create Terminal Checkout — request body — body checkout payment options accept partial authorization, autocomplete, delay action, delay duration
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | |
accept_partial_authorization | JSON | Optional | |
accept_partial_authorization (anyOf 1) | boolean | Alternative | If set to `true` and charging a Square Gift Card, a payment might be returned with `amount_money` equal to less than what was requested. For example, a request for $20 when charging a Square Gift Card with a balance of $5 results in an APPROVED payment of $5. You might choose to prompt the buyer for an additional payment to cover the remainder or cancel the Gift Card payment. This parameter can only be set for a delayed capture payment (`autocomplete=false`). For more information, see [Take Partial Payments](https://developer.squareup.com/docs/payments-api/take-payments/card-payments/partial-payments-with-gift-cards). Default: false |
accept_partial_authorization (anyOf 2) | null | Alternative | |
autocomplete | JSON | Optional | |
autocomplete (anyOf 1) | boolean | Alternative | Indicates whether the `Payment` objects created from this `TerminalCheckout` are automatically `COMPLETED` or left in an `APPROVED` state for later modification. Default: true |
autocomplete (anyOf 2) | null | Alternative | |
delay_action | JSON | Optional | |
delay_action (anyOf 1) | string | Alternative | Describes the action to be applied to a delayed capture payment when the delay_duration has elapsed. The action to be applied to the `Payment` when the delay_duration has elapsed. The action must be CANCEL or COMPLETE. The action cannot be set to COMPLETE if an `order_id` is present on the TerminalCheckout. This parameter can only be set for a delayed capture payment (`autocomplete=false`). For more information, see [Delayed Capture](https://developer.squareup.com/docs/payments-api/take-payments/card-payments/delayed-capture#time-threshold). Default: CANCEL See [DelayAction](#type-delayaction) for possible values One of: CANCEL, COMPLETE |
delay_action (anyOf 2) | null | Alternative | |
delay_duration | JSON | Optional | |
delay_duration (anyOf 1) | string | Alternative | The duration of time after the payment's creation when Square automatically resolves the payment. This automatic resolution applies only to payments that do not reach a terminal state (`COMPLETED` or `CANCELED`) before the `delay_duration` time period. This parameter should be specified as a time duration, in RFC 3339 format, with a minimum value of 1 minute and a maximum value of 36 hours. This feature is only supported for card payments, and all payments will be considered card-present. This parameter can only be set for a delayed capture payment (`autocomplete=false`). For more information, see [Delayed Capture](https://developer.squareup.com/docs/payments-api/take-payments/card-payments/delayed-capture#time-threshold). Default: "PT36H" (36 hours) from the creation time |
delay_duration (anyOf 2) | null | Alternative |
Create Terminal Checkout — response body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | |
checkout | Model | Optional | Expand Get Terminal Checkout — response body — checkout The created `TerminalCheckout`. |
errors | array | Optional | Information about errors encountered during the request. |
errors[] | Model | Each item | Expand Get Shift — response body — errors item |
Referenced models: Get Shift — response body — errors item, Get Terminal Checkout — response body — checkout
Create Terminal Refund — request body — body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | |
idempotency_key | string | Required within parent | A unique string that identifies this `CreateRefund` request. Keys can be any valid string but must be unique for every `CreateRefund` request. See [Idempotency keys](https://developer.squareup.com/docs/build-basics/common-api-patterns/idempotency) for more information. Maximum length: 64 Minimum length: 1 |
refund | Model | Optional | Expand Create Terminal Refund — request body — body refund The refund to create. |
Referenced models: Create Terminal Refund — request body — body refund
Create Terminal Refund — request body — body refund
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Represents a payment refund processed by the Square Terminal. Only supports Interac (Canadian debit network) payment refunds. |
amount_money | Model | Required within parent | Expand Create Payment — request body — body tip money The amount of money, inclusive of `tax_money`, that the `TerminalRefund` should return. This value is limited to the amount taken in the original payment minus any completed or pending refunds. |
app_id | string | Optional | The ID of the application that created the refund. Read only: true |
cancel_reason | string | Optional | Present if the status is `CANCELED`. See [ActionCancelReason](#type-actioncancelreason) for possible values One of: BUYER_CANCELED, SELLER_CANCELED, TIMED_OUT Read only: true |
created_at | string | Optional | The time when the `TerminalRefund` was created, as an RFC 3339 timestamp. Read only: true |
deadline_duration | JSON | Optional | |
deadline_duration (anyOf 1) | string | Alternative | The RFC 3339 duration, after which the refund is automatically canceled. A `TerminalRefund` that is `PENDING` is automatically `CANCELED` and has a cancellation reason of `TIMED_OUT`. Default: 5 minutes from creation. Maximum: 5 minutes |
deadline_duration (anyOf 2) | null | Alternative | |
device_id | string | Required within parent | The unique ID of the device intended for this `TerminalRefund`. The Id can be retrieved from /v2/devices api. |
id | string | Optional | A unique ID for this `TerminalRefund`. Maximum length: 255 Minimum length: 10 Read only: true |
location_id | string | Optional | The location of the device where the `TerminalRefund` was directed. Maximum length: 64 Read only: true |
order_id | string | Optional | The reference to the Square order ID for the payment identified by the `payment_id`. Read only: true |
payment_id | string | Required within parent | The unique ID of the payment being refunded. Minimum length: 1 |
reason | string | Required within parent | A description of the reason for the refund. Maximum length: 192 |
refund_id | string | Optional | The reference to the payment refund created by completing this `TerminalRefund`. Read only: true |
status | string | Optional | The status of the `TerminalRefund`. Options: `PENDING`, `IN_PROGRESS`, `CANCEL_REQUESTED`, `CANCELED`, or `COMPLETED`. Read only: true |
updated_at | string | Optional | The time when the `TerminalRefund` was last updated, as an RFC 3339 timestamp. Read only: true |
Referenced models: Create Payment — request body — body tip money
Create Terminal Refund — response body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | |
errors | array | Optional | Information about errors encountered during the request. |
errors[] | Model | Each item | Expand Get Shift — response body — errors item |
refund | Model | Optional | Expand Get Terminal Refund — response body — refund The created `TerminalRefund`. |
Referenced models: Get Shift — response body — errors item, Get Terminal Refund — response body — refund
CreateTerminalAction — request body — body / action / data_collection_options / input_type: EMAIL, PHONE NUMBER
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | |
body | string | Required within parent | The body text to display under the title in the data collection screen flow on the Terminal. Maximum length: 10000 Minimum length: 1 |
collected_data | Model | Optional | Expand GetTerminalAction — response body — action / data_collection_options / input_type: EMAIL, PHONE NUMBER collected data The buyer’s input text from the data collection screen. Read only: true |
input_type | string | Required within parent | Describes the input type of the data. Represents the type of the input text. See [InputType](#type-inputtype) for possible values One of: EMAIL, PHONE_NUMBER |
title | string | Required within parent | The title text to display in the data collection flow on the Terminal. Maximum length: 250 Minimum length: 1 |
Referenced models: GetTerminalAction — response body — action / data_collection_options / input_type: EMAIL, PHONE NUMBER collected data
Dismiss Terminal Action — response body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | |
action | Model | Optional | Expand Get Terminal Action — response body — action Current state of the action to be dismissed. |
errors | array | Optional | Information on errors encountered during the request. |
errors[] | Model | Each item | Expand Get Shift — response body — errors item |
Referenced models: Get Shift — response body — errors item, Get Terminal Action — response body — action
Dismiss Terminal Checkout — response body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | |
checkout | Model | Optional | Expand Get Terminal Checkout — response body — checkout Current state of the checkout to be dismissed. |
errors | array | Optional | Information on errors encountered during the request. |
errors[] | Model | Each item | Expand Get Shift — response body — errors item |
Referenced models: Get Shift — response body — errors item, Get Terminal Checkout — response body — checkout
Dismiss Terminal Refund — response body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | |
errors | array | Optional | Information on errors encountered during the request. |
errors[] | Model | Each item | Expand Get Shift — response body — errors item |
refund | Model | Optional | Expand Get Terminal Refund — response body — refund Current state of the refund to be dismissed. |
Referenced models: Get Shift — response body — errors item, Get Terminal Refund — response body — refund
Get Terminal Action — response body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | |
action | Model | Optional | Expand Get Terminal Action — response body — action The requested `TerminalAction` |
errors | array | Optional | Information on errors encountered during the request. |
errors[] | Model | Each item | Expand Get Shift — response body — errors item |
Referenced models: Get Shift — response body — errors item, Get Terminal Action — response body — action
Get Terminal Action — response body — action
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Represents an action processed by the Square Terminal. |
app_id | string | Optional | The ID of the application that created the action. Read only: true |
await_next_action | JSON | Optional | |
await_next_action (anyOf 1) | boolean | Alternative | Indicates the action will be linked to another action and requires a waiting dialog to be displayed instead of returning to the idle screen on completion of the action. Only supported on SIGNATURE, CONFIRMATION, DATA_COLLECTION, and SELECT types. |
await_next_action (anyOf 2) | null | Alternative | |
await_next_action_duration | JSON | Optional | |
await_next_action_duration (anyOf 1) | string | Alternative | The timeout duration of the waiting dialog as an RFC 3339 duration, after which the waiting dialog will no longer be displayed and the Terminal will return to the idle screen. Default: 5 minutes from when the waiting dialog is displayed Maximum: 5 minutes |
await_next_action_duration (anyOf 2) | null | Alternative | |
cancel_reason | string | Optional | The reason why `TerminalAction` is canceled. Present if the status is `CANCELED`. See [ActionCancelReason](#type-actioncancelreason) for possible values Known values: BUYER_CANCELED, SELLER_CANCELED, TIMED_OUT Read only: true |
confirmation_options | JSON | Optional | |
confirmation_options (anyOf 1) | Model | Alternative | Expand Get Terminal Action — response body — action confirmation options agree button text, body, decision, disagree button text, title Describes configuration for the confirmation action. Requires `CONFIRMATION` type. |
confirmation_options (anyOf 2) | null | Alternative | |
created_at | string | Optional | The time when the `TerminalAction` was created as an RFC 3339 timestamp. Read only: true |
data_collection_options | JSON | Optional | |
data_collection_options (anyOf 1) | Model | Alternative | Expand GetTerminalAction — response body — action / data_collection_options / input_type: EMAIL, PHONE NUMBER Describes configuration for the data collection action. Requires `DATA_COLLECTION` type. |
data_collection_options (anyOf 2) | null | Alternative | |
deadline_duration | JSON | Optional | |
deadline_duration (anyOf 1) | string | Alternative | The duration as an RFC 3339 duration, after which the action will be automatically canceled. TerminalActions that are `PENDING` will be automatically `CANCELED` and have a cancellation reason of `TIMED_OUT` Default: 5 minutes from creation Maximum: 5 minutes |
deadline_duration (anyOf 2) | null | Alternative | |
device_id | JSON | Optional | |
device_id (anyOf 1) | string | Alternative | The unique Id of the device intended for this `TerminalAction`. The Id can be retrieved from /v2/devices api. |
device_id (anyOf 2) | null | Alternative | |
device_metadata | Model | Optional | Expand Get Terminal Action — response body — action device metadata Details about the Terminal that received the action request (such as battery level, operating system version, and network connection settings). Only available for `PING` action type. Read only: true |
id | string | Optional | A unique ID for this `TerminalAction`. Maximum length: 255 Minimum length: 10 Read only: true |
location_id | string | Optional | The location id the action is attached to, if a link can be made. Maximum length: 64 Read only: true |
qr_code_options | JSON | Optional | |
qr_code_options (anyOf 1) | Model | Alternative | Expand Get Terminal Action — response body — action qr code options barcode contents, body, title Describes configuration for the QR code action. Requires `QR_CODE` type. |
qr_code_options (anyOf 2) | null | Alternative | |
receipt_options | JSON | Optional | |
receipt_options (anyOf 1) | Model | Alternative | Expand Get Terminal Action — response body — action receipt options Describes receipt action fields Describes configuration for the receipt action. Requires `RECEIPT` type. |
receipt_options (anyOf 2) | null | Alternative | |
save_card_options | JSON | Optional | |
save_card_options (anyOf 1) | Model | Alternative | Expand Get Terminal Action — response body — action save card options Describes save-card action fields Describes configuration for the save-card action. Requires `SAVE_CARD` type. |
save_card_options (anyOf 2) | null | Alternative | |
select_options | JSON | Optional | |
select_options (anyOf 1) | Model | Alternative | Expand Get Terminal Action — response body — action select options body, options, selected option, title Describes configuration for the select action. Requires `SELECT` type. |
select_options (anyOf 2) | null | Alternative | |
signature_options | JSON | Optional | |
signature_options (anyOf 1) | Model | Alternative | Expand Get Terminal Action — response body — action signature options body, signature, title Describes configuration for the signature capture action. Requires `SIGNATURE` type. |
signature_options (anyOf 2) | null | Alternative | |
status | string | Optional | The status of the `TerminalAction`. Options: `PENDING`, `IN_PROGRESS`, `CANCEL_REQUESTED`, `CANCELED`, `COMPLETED` Read only: true |
type | JSON | Optional | |
type (anyOf 1) | string | Alternative | Describes the type of this unit and indicates which field contains the unit information. This is an ‘open’ enum. Represents the type of the action. See [ActionType](#type-actiontype) for possible values Known values: QR_CODE, PING, SAVE_CARD, SIGNATURE, CONFIRMATION, RECEIPT, DATA_COLLECTION, SELECT |
type (anyOf 2) | null | Alternative | |
updated_at | string | Optional | The time when the `TerminalAction` was last updated as an RFC 3339 timestamp. Read only: true |
Referenced models: Get Terminal Action — response body — action confirmation options agree button text, body, decision, disagree button text, title, Get Terminal Action — response body — action device metadata, GetTerminalAction — response body — action / data_collection_options / input_type: EMAIL, PHONE NUMBER, Get Terminal Action — response body — action qr code options barcode contents, body, title, Get Terminal Action — response body — action receipt options Describes receipt action fields, Get Terminal Action — response body — action save card options Describes save-card action fields, Get Terminal Action — response body — action select options body, options, selected option, title, Get Terminal Action — response body — action signature options body, signature, title
Get Terminal Action — response body — action confirmation options agree button text, body, decision, disagree button text, title
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | |
agree_button_text | string | Required within parent | The button text to display indicating the customer agrees to the displayed terms. Maximum length: 250 Minimum length: 1 |
body | string | Required within parent | The agreement details to display in the confirmation flow on the Terminal. Maximum length: 10000 Minimum length: 1 |
decision | Model | Optional | Expand Get Terminal Action — response body — action confirmation options agree button text, body, decision, disagree button text, title decision The result of the buyer’s actions when presented with the confirmation screen. Read only: true |
disagree_button_text | JSON | Optional | |
disagree_button_text (anyOf 1) | string | Alternative | The button text to display indicating the customer does not agree to the displayed terms. Maximum length: 250 Minimum length: 1 |
disagree_button_text (anyOf 2) | null | Alternative | |
title | string | Required within parent | The title text to display in the confirmation screen flow on the Terminal. Maximum length: 250 Minimum length: 1 |
Referenced models: Get Terminal Action — response body — action confirmation options agree button text, body, decision, disagree button text, title decision
Get Terminal Action — response body — action confirmation options agree button text, body, decision, disagree button text, title decision
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | |
has_agreed | boolean | Optional | The buyer's decision to the displayed terms. Read only: true |
Get Terminal Action — response body — action device metadata
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | |
app_version | JSON | Optional | |
app_version (anyOf 1) | string | Alternative | The current version of the application running on the Terminal. |
app_version (anyOf 2) | null | Alternative | |
battery_percentage | JSON | Optional | |
battery_percentage (anyOf 1) | string | Alternative | The Terminal’s remaining battery percentage, between 1-100. |
battery_percentage (anyOf 2) | null | Alternative | |
charging_state | JSON | Optional | |
charging_state (anyOf 1) | string | Alternative | The current charging state of the Terminal. Options: `CHARGING`, `NOT_CHARGING` |
charging_state (anyOf 2) | null | Alternative | |
ip_address | JSON | Optional | |
ip_address (anyOf 1) | string | Alternative | The IP address of the Terminal. |
ip_address (anyOf 2) | null | Alternative | |
location_id | JSON | Optional | |
location_id (anyOf 1) | string | Alternative | The ID of the Square seller business location associated with the Terminal. |
location_id (anyOf 2) | null | Alternative | |
merchant_id | JSON | Optional | |
merchant_id (anyOf 1) | string | Alternative | The ID of the Square merchant account that is currently signed-in to the Terminal. |
merchant_id (anyOf 2) | null | Alternative | |
network_connection_type | JSON | Optional | |
network_connection_type (anyOf 1) | string | Alternative | The Terminal’s current network connection type. Options: `WIFI`, `ETHERNET` |
network_connection_type (anyOf 2) | null | Alternative | |
os_version | JSON | Optional | |
os_version (anyOf 1) | string | Alternative | The current version of the Terminal’s operating system. |
os_version (anyOf 2) | null | Alternative | |
payment_region | JSON | Optional | |
payment_region (anyOf 1) | string | Alternative | The country in which the Terminal is authorized to take payments. |
payment_region (anyOf 2) | null | Alternative | |
serial_number | JSON | Optional | |
serial_number (anyOf 1) | string | Alternative | The unique identifier assigned to the Terminal, which can be found on the lower back of the device. |
serial_number (anyOf 2) | null | Alternative | |
wifi_network_name | JSON | Optional | |
wifi_network_name (anyOf 1) | string | Alternative | The name of the Wi-Fi network to which the Terminal is connected. |
wifi_network_name (anyOf 2) | null | Alternative | |
wifi_network_strength | JSON | Optional | |
wifi_network_strength (anyOf 1) | string | Alternative | The signal strength of the Wi-FI network connection. Options: `POOR`, `FAIR`, `GOOD`, `EXCELLENT` |
wifi_network_strength (anyOf 2) | null | Alternative |
Get Terminal Action — response body — action qr code options barcode contents, body, title
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Fields to describe the action that displays QR-Codes. |
barcode_contents | string | Required within parent | The text representation of the data to show in the QR code as UTF8-encoded data. Maximum length: 1024 Minimum length: 1 |
body | string | Required within parent | The body text to display in the QR code flow on the Terminal. Maximum length: 10000 Minimum length: 1 |
title | string | Required within parent | The title text to display in the QR code flow on the Terminal. Maximum length: 250 Minimum length: 1 |
Get Terminal Action — response body — action receipt options Describes receipt action fields
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Describes receipt action fields. |
is_duplicate | JSON | Optional | |
is_duplicate (anyOf 1) | boolean | Alternative | Identify the receipt as a reprint rather than an original receipt. Defaults to false. |
is_duplicate (anyOf 2) | null | Alternative | |
payment_id | string | Required within parent | The reference to the Square payment ID for the receipt. |
print_only | JSON | Optional | |
print_only (anyOf 1) | boolean | Alternative | Instructs the device to print the receipt without displaying the receipt selection screen. Requires `printer_enabled` set to true. Defaults to false. |
print_only (anyOf 2) | null | Alternative |
Get Terminal Action — response body — action save card options Describes save-card action fields
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Describes save-card action fields. |
card_id | string | Optional | The id of the created card-on-file. Maximum length: 64 Read only: true |
customer_id | string | Required within parent | The square-assigned ID of the customer linked to the saved card. |
reference_id | JSON | Optional | |
reference_id (anyOf 1) | string | Alternative | An optional user-defined reference ID that can be used to associate this `Card` to another entity in an external system. For example, a customer ID generated by a third-party system. Maximum length: 128 |
reference_id (anyOf 2) | null | Alternative |
Get Terminal Action — response body — action select options body, options, selected option, title
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | |
body | string | Required within parent | The body text to display in the select flow on the Terminal. Maximum length: 10000 Minimum length: 1 |
options | array | Required within parent | Represents the buttons/options that should be displayed in the select flow on the Terminal. |
options[] | Model | Each item | Expand Get Terminal Action — response body — action select options body, options, selected option, title selected option |
selected_option | Model | Optional | Expand Get Terminal Action — response body — action select options body, options, selected option, title selected option The buyer’s selected option. Read only: true |
title | string | Required within parent | The title text to display in the select flow on the Terminal. Maximum length: 250 Minimum length: 1 |
Referenced models: Get Terminal Action — response body — action select options body, options, selected option, title selected option
Get Terminal Action — response body — action select options body, options, selected option, title selected option
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | |
reference_id | string | Required within parent | The reference id for the option. Maximum length: 40 Minimum length: 1 |
title | string | Required within parent | The title text that displays in the select option button. Maximum length: 250 Minimum length: 1 |
Get Terminal Action — response body — action signature options body, signature, title
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | |
body | string | Required within parent | The body text to display in the signature capture flow on the Terminal. Maximum length: 10000 Minimum length: 1 |
signature | array | Optional | An image representation of the collected signature. Read only: true |
signature[] | Model | Each item | Expand Get Terminal Action — response body — action signature options body, signature, title signature item |
title | string | Required within parent | The title text to display in the signature capture flow on the Terminal. Maximum length: 250 Minimum length: 1 |
Referenced models: Get Terminal Action — response body — action signature options body, signature, title signature item
Get Terminal Action — response body — action signature options body, signature, title signature item
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | |
data | string | Optional | The base64 representation of the image. Read only: true |
image_type | string | Optional | The mime/type of the image data. Use `image/png;base64` for png. Read only: true |
Get Terminal Checkout — response body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | |
checkout | Model | Optional | Expand Get Terminal Checkout — response body — checkout The requested `TerminalCheckout`. |
errors | array | Optional | Information about errors encountered during the request. |
errors[] | Model | Each item | Expand Get Shift — response body — errors item |
Referenced models: Get Shift — response body — errors item, Get Terminal Checkout — response body — checkout
Get Terminal Checkout — response body — checkout
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Represents a checkout processed by the Square Terminal. |
amount_money | Model | Required within parent | Expand Pay Order — response body — order total money The amount of money (including the tax amount) that the Square Terminal device should try to collect. |
app_fee_money | JSON | Optional | |
app_fee_money (anyOf 1) | Model | Alternative | Expand Pay Order — response body — order total money The amount the developer is taking as a fee for facilitating the payment on behalf of the seller. The amount cannot be more than 90% of the total amount of the payment. The amount must be specified in the smallest denomination of the applicable currency (for example, US dollar amounts are specified in cents). For more information, see [Working with Monetary Amounts](https://developer.squareup.com/docs/build-basics/working-with-monetary-amounts). The fee currency code must match the currency associated with the seller that is accepting the payment. The application must be from a developer account in the same country and using the same currency code as the seller. For more information about the application fee scenario, see [Take Payments and Collect Fees](https://developer.squareup.com/docs/payments-api/take-payments-and-collect-fees). To set this field, PAYMENTS_WRITE_ADDITIONAL_RECIPIENTS OAuth permission is required. For more information, see [Permissions](https://developer.squareup.com/docs/payments-api/take-payments-and-collect-fees#permissions). |
app_fee_money (anyOf 2) | null | Alternative | |
app_id | string | Optional | The ID of the application that created the checkout. Read only: true |
cancel_reason | string | Optional | The reason why `TerminalCheckout` is canceled. Present if the status is `CANCELED`. See [ActionCancelReason](#type-actioncancelreason) for possible values Known values: BUYER_CANCELED, SELLER_CANCELED, TIMED_OUT Read only: true |
created_at | string | Optional | The time when the `TerminalCheckout` was created, as an RFC 3339 timestamp. Read only: true |
customer_id | JSON | Optional | |
customer_id (anyOf 1) | string | Alternative | An optional ID of the customer associated with the checkout. |
customer_id (anyOf 2) | null | Alternative | |
deadline_duration | JSON | Optional | |
deadline_duration (anyOf 1) | string | Alternative | An RFC 3339 duration, after which the checkout is automatically canceled. A `TerminalCheckout` that is `PENDING` is automatically `CANCELED` and has a cancellation reason of `TIMED_OUT`. Default: 5 minutes from creation Maximum: 5 minutes |
deadline_duration (anyOf 2) | null | Alternative | |
device_options | Model | Required within parent | Expand Get Terminal Checkout — response body — checkout device options Options to control the display and behavior of the Square Terminal device. |
id | string | Optional | A unique ID for this `TerminalCheckout`. Maximum length: 255 Minimum length: 10 Read only: true |
location_id | string | Optional | The location of the device where the `TerminalCheckout` was directed. Maximum length: 64 Read only: true |
note | JSON | Optional | |
note (anyOf 1) | string | Alternative | An optional note to associate with the checkout, as well as with any payments used to complete the checkout. Note: maximum 500 characters Maximum length: 500 |
note (anyOf 2) | null | Alternative | |
order_id | JSON | Optional | |
order_id (anyOf 1) | string | Alternative | The reference to the Square order ID for the checkout request. |
order_id (anyOf 2) | null | Alternative | |
payment_ids | array | Optional | A list of IDs for payments created by this `TerminalCheckout`. Read only: true |
payment_ids[] | string | Each item | |
payment_options | JSON | Optional | |
payment_options (anyOf 1) | Model | Alternative | Expand Get Terminal Checkout — response body — checkout payment options accept partial authorization, autocomplete, delay action, delay duration Payment-specific options for the checkout request. |
payment_options (anyOf 2) | null | Alternative | |
payment_type | JSON | Optional | |
payment_type (anyOf 1) | string | Alternative | The type of payment the terminal should attempt to capture from. Defaults to `CARD_PRESENT`. See [CheckoutOptionsPaymentType](#type-checkoutoptionspaymenttype) for possible values Known values: CARD_PRESENT, MANUAL_CARD_ENTRY, FELICA_ID, FELICA_QUICPAY, FELICA_TRANSPORTATION_GROUP, FELICA_ALL, PAYPAY, QR_CODE |
payment_type (anyOf 2) | null | Alternative | |
reference_id | JSON | Optional | |
reference_id (anyOf 1) | string | Alternative | An optional user-defined reference ID that can be used to associate this `TerminalCheckout` to another entity in an external system. For example, an order ID generated by a third-party shopping cart. The ID is also associated with any payments used to complete the checkout. Maximum length: 40 |
reference_id (anyOf 2) | null | Alternative | |
statement_description_identifier | JSON | Optional | |
statement_description_identifier (anyOf 1) | string | Alternative | Optional additional payment information to include on the customer's card statement as part of the statement description. This can be, for example, an invoice number, ticket number, or short description that uniquely identifies the purchase. Maximum length: 20 |
statement_description_identifier (anyOf 2) | null | Alternative | |
status | string | Optional | The status of the `TerminalCheckout`. Options: `PENDING`, `IN_PROGRESS`, `CANCEL_REQUESTED`, `CANCELED`, `COMPLETED` Read only: true |
team_member_id | JSON | Optional | |
team_member_id (anyOf 1) | string | Alternative | An optional ID of the team member associated with creating the checkout. |
team_member_id (anyOf 2) | null | Alternative | |
tip_money | JSON | Optional | |
tip_money (anyOf 1) | Model | Alternative | Expand Pay Order — response body — order total money The amount designated as a tip, in addition to `amount_money`. This may only be set for a checkout that has tipping disabled (`tip_settings.allow_tipping` is `false`). |
tip_money (anyOf 2) | null | Alternative | |
updated_at | string | Optional | The time when the `TerminalCheckout` was last updated, as an RFC 3339 timestamp. Read only: true |
Referenced models: Get Terminal Checkout — response body — checkout device options, Pay Order — response body — order total money, Get Terminal Checkout — response body — checkout payment options accept partial authorization, autocomplete, delay action, delay duration
Get Terminal Checkout — response body — checkout device options
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | |
allow_auto_card_surcharge | JSON | Optional | |
allow_auto_card_surcharge (anyOf 1) | boolean | Alternative | Controls whether the mobile client applies Auto Card Surcharge (ACS) during checkout. If true, ACS is applied based on Dashboard configuration. If false, ACS is not applied regardless of that configuration. For more information, see [Add a Card Surcharge](https://developer.squareup.com/docs/terminal-api/additional-payment-checkout-features#add-a-card-surcharge). |
allow_auto_card_surcharge (anyOf 2) | null | Alternative | |
collect_signature | JSON | Optional | |
collect_signature (anyOf 1) | boolean | Alternative | Indicates that signature collection is desired during checkout. Defaults to false. |
collect_signature (anyOf 2) | null | Alternative | |
device_id | string | Required within parent | The unique ID of the device intended for this `TerminalCheckout`. A list of `DeviceCode` objects can be retrieved from the /v2/devices/codes endpoint. Match a `DeviceCode.device_id` value with `device_id` to get the associated device code. |
show_itemized_cart | JSON | Optional | |
show_itemized_cart (anyOf 1) | boolean | Alternative | Show the itemization screen prior to taking a payment. This field is only meaningful when the checkout includes an order ID. Defaults to true. |
show_itemized_cart (anyOf 2) | null | Alternative | |
skip_receipt_screen | JSON | Optional | |
skip_receipt_screen (anyOf 1) | boolean | Alternative | Instructs the device to skip the receipt screen. Defaults to false. |
skip_receipt_screen (anyOf 2) | null | Alternative | |
tip_settings | JSON | Optional | |
tip_settings (anyOf 1) | Model | Alternative | Expand Get Terminal Checkout — response body — checkout device options tip settings allow tipping, custom tip field, separate tip screen, smart tipping, tip percentages Tip-specific settings. |
tip_settings (anyOf 2) | null | Alternative |
Referenced models: Get Terminal Checkout — response body — checkout device options tip settings allow tipping, custom tip field, separate tip screen, smart tipping, tip percentages
Get Terminal Checkout — response body — checkout device options tip settings allow tipping, custom tip field, separate tip screen, smart tipping, tip percentages
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | |
allow_tipping | JSON | Optional | |
allow_tipping (anyOf 1) | boolean | Alternative | Indicates whether tipping is enabled for this checkout. Defaults to false. |
allow_tipping (anyOf 2) | null | Alternative | |
custom_tip_field | JSON | Optional | |
custom_tip_field (anyOf 1) | boolean | Alternative | Indicates whether custom tip amounts are allowed during the checkout flow. Defaults to false. |
custom_tip_field (anyOf 2) | null | Alternative | |
separate_tip_screen | JSON | Optional | |
separate_tip_screen (anyOf 1) | boolean | Alternative | Indicates whether tip options should be presented on the screen before presenting the signature screen during card payment. Defaults to false. |
separate_tip_screen (anyOf 2) | null | Alternative | |
smart_tipping | JSON | Optional | |
smart_tipping (anyOf 1) | boolean | Alternative | Enables the "Smart Tip Amounts" behavior. Exact tipping options depend on the region in which the Square seller is active. For payments under 10.00, in the Australia, Canada, Ireland, United Kingdom, and United States, tipping options are presented as no tip, .50, 1.00 or 2.00. For payment amounts of 10.00 or greater, tipping options are presented as the following percentages: 0%, 5%, 10%, 15%. If set to true, the `tip_percentages` settings is ignored. Defaults to false. To learn more about smart tipping, see [Accept Tips with the Square App](https://squareup.com/help/us/en/article/5069-accept-tips-with-the-square-app). |
smart_tipping (anyOf 2) | null | Alternative | |
tip_percentages | JSON | Optional | |
tip_percentages (anyOf 1) | array | Alternative | A list of tip percentages that should be presented during the checkout flow, specified as up to 3 non-negative integers from 0 to 100 (inclusive). Defaults to 15, 20, and 25. |
tip_percentages (anyOf 1)[] | JSON | Each item | |
tip_percentages (anyOf 1)[] (anyOf 1) | integer | Alternative | |
tip_percentages (anyOf 1)[] (anyOf 2) | string | Alternative | Pattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$ |
tip_percentages (anyOf 2) | null | Alternative |
Get Terminal Checkout — response body — checkout payment options accept partial authorization, autocomplete, delay action, delay duration
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | |
accept_partial_authorization | JSON | Optional | |
accept_partial_authorization (anyOf 1) | boolean | Alternative | If set to `true` and charging a Square Gift Card, a payment might be returned with `amount_money` equal to less than what was requested. For example, a request for $20 when charging a Square Gift Card with a balance of $5 results in an APPROVED payment of $5. You might choose to prompt the buyer for an additional payment to cover the remainder or cancel the Gift Card payment. This parameter can only be set for a delayed capture payment (`autocomplete=false`). For more information, see [Take Partial Payments](https://developer.squareup.com/docs/payments-api/take-payments/card-payments/partial-payments-with-gift-cards). Default: false |
accept_partial_authorization (anyOf 2) | null | Alternative | |
autocomplete | JSON | Optional | |
autocomplete (anyOf 1) | boolean | Alternative | Indicates whether the `Payment` objects created from this `TerminalCheckout` are automatically `COMPLETED` or left in an `APPROVED` state for later modification. Default: true |
autocomplete (anyOf 2) | null | Alternative | |
delay_action | JSON | Optional | |
delay_action (anyOf 1) | string | Alternative | Describes the action to be applied to a delayed capture payment when the delay_duration has elapsed. The action to be applied to the `Payment` when the delay_duration has elapsed. The action must be CANCEL or COMPLETE. The action cannot be set to COMPLETE if an `order_id` is present on the TerminalCheckout. This parameter can only be set for a delayed capture payment (`autocomplete=false`). For more information, see [Delayed Capture](https://developer.squareup.com/docs/payments-api/take-payments/card-payments/delayed-capture#time-threshold). Default: CANCEL See [DelayAction](#type-delayaction) for possible values Known values: CANCEL, COMPLETE |
delay_action (anyOf 2) | null | Alternative | |
delay_duration | JSON | Optional | |
delay_duration (anyOf 1) | string | Alternative | The duration of time after the payment's creation when Square automatically resolves the payment. This automatic resolution applies only to payments that do not reach a terminal state (`COMPLETED` or `CANCELED`) before the `delay_duration` time period. This parameter should be specified as a time duration, in RFC 3339 format, with a minimum value of 1 minute and a maximum value of 36 hours. This feature is only supported for card payments, and all payments will be considered card-present. This parameter can only be set for a delayed capture payment (`autocomplete=false`). For more information, see [Delayed Capture](https://developer.squareup.com/docs/payments-api/take-payments/card-payments/delayed-capture#time-threshold). Default: "PT36H" (36 hours) from the creation time |
delay_duration (anyOf 2) | null | Alternative |
Get Terminal Refund — response body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | |
errors | array | Optional | Information about errors encountered during the request. |
errors[] | Model | Each item | Expand Get Shift — response body — errors item |
refund | Model | Optional | Expand Get Terminal Refund — response body — refund The requested `Refund`. |
Referenced models: Get Shift — response body — errors item, Get Terminal Refund — response body — refund
Get Terminal Refund — response body — refund
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Represents a payment refund processed by the Square Terminal. Only supports Interac (Canadian debit network) payment refunds. |
amount_money | Model | Required within parent | Expand Pay Order — response body — order total money The amount of money, inclusive of `tax_money`, that the `TerminalRefund` should return. This value is limited to the amount taken in the original payment minus any completed or pending refunds. |
app_id | string | Optional | The ID of the application that created the refund. Read only: true |
cancel_reason | string | Optional | Present if the status is `CANCELED`. See [ActionCancelReason](#type-actioncancelreason) for possible values Known values: BUYER_CANCELED, SELLER_CANCELED, TIMED_OUT Read only: true |
created_at | string | Optional | The time when the `TerminalRefund` was created, as an RFC 3339 timestamp. Read only: true |
deadline_duration | JSON | Optional | |
deadline_duration (anyOf 1) | string | Alternative | The RFC 3339 duration, after which the refund is automatically canceled. A `TerminalRefund` that is `PENDING` is automatically `CANCELED` and has a cancellation reason of `TIMED_OUT`. Default: 5 minutes from creation. Maximum: 5 minutes |
deadline_duration (anyOf 2) | null | Alternative | |
device_id | string | Required within parent | The unique ID of the device intended for this `TerminalRefund`. The Id can be retrieved from /v2/devices api. |
id | string | Optional | A unique ID for this `TerminalRefund`. Maximum length: 255 Minimum length: 10 Read only: true |
location_id | string | Optional | The location of the device where the `TerminalRefund` was directed. Maximum length: 64 Read only: true |
order_id | string | Optional | The reference to the Square order ID for the payment identified by the `payment_id`. Read only: true |
payment_id | string | Required within parent | The unique ID of the payment being refunded. Minimum length: 1 |
reason | string | Required within parent | A description of the reason for the refund. Maximum length: 192 |
refund_id | string | Optional | The reference to the payment refund created by completing this `TerminalRefund`. Read only: true |
status | string | Optional | The status of the `TerminalRefund`. Options: `PENDING`, `IN_PROGRESS`, `CANCEL_REQUESTED`, `CANCELED`, or `COMPLETED`. Read only: true |
updated_at | string | Optional | The time when the `TerminalRefund` was last updated, as an RFC 3339 timestamp. Read only: true |
Referenced models: Pay Order — response body — order total money
GetTerminalAction — response body — action / data_collection_options / input_type: EMAIL, PHONE NUMBER
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | |
body | string | Required within parent | The body text to display under the title in the data collection screen flow on the Terminal. Maximum length: 10000 Minimum length: 1 |
collected_data | Model | Optional | Expand GetTerminalAction — response body — action / data_collection_options / input_type: EMAIL, PHONE NUMBER collected data The buyer’s input text from the data collection screen. Read only: true |
input_type | string | Required within parent | Describes the input type of the data. Represents the type of the input text. See [InputType](#type-inputtype) for possible values Known values: EMAIL, PHONE_NUMBER |
title | string | Required within parent | The title text to display in the data collection flow on the Terminal. Maximum length: 250 Minimum length: 1 |
Referenced models: GetTerminalAction — response body — action / data_collection_options / input_type: EMAIL, PHONE NUMBER collected data
GetTerminalAction — response body — action / data_collection_options / input_type: EMAIL, PHONE NUMBER collected data
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | |
input_text | string | Optional | The buyer's input text. Read only: true |
Search Terminal Actions — request body — body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | |
cursor | string | Optional | A pagination cursor returned by a previous call to this endpoint. Provide this to retrieve the next set of results for the original query. See [Pagination](https://developer.squareup.com/docs/build-basics/common-api-patterns/pagination) for more information. |
limit | integer | Optional | Limit the number of results returned for a single request. Maximum: 100 Minimum: 1 |
query | Model | Optional | Expand Search Terminal Actions — request body — body query Queries terminal actions based on given conditions and sort order. Leaving this unset will return all actions with the default sort order. |
Referenced models: Search Terminal Actions — request body — body query
Search Terminal Actions — request body — body query
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | |
filter | JSON | Optional | |
filter (anyOf 1) | Model | Alternative | Expand Search Terminal Actions — request body — body query filter created at, device id, status, type Options for filtering returned `TerminalAction`s |
filter (anyOf 2) | null | Alternative | |
sort | JSON | Optional | |
sort (anyOf 1) | Model | Alternative | Expand Search Terminal Actions — request body — body query sort sort order Option for sorting returned `TerminalAction` objects. |
sort (anyOf 2) | null | Alternative |
Referenced models: Search Terminal Actions — request body — body query filter created at, device id, status, type, Search Terminal Actions — request body — body query sort sort order
Search Terminal Actions — request body — body query filter created at, device id, status, type
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | |
created_at | Model | Optional | Expand Search Availability — request body — body query filter start at range Time range for the beginning of the reporting period. Inclusive. Default value: The current time minus one day. Note that `TerminalAction`s are available for 30 days after creation. |
device_id | JSON | Optional | |
device_id (anyOf 1) | string | Alternative | `TerminalAction`s associated with a specific device. If no device is specified then all `TerminalAction`s for the merchant will be displayed. |
device_id (anyOf 2) | null | Alternative | |
status | JSON | Optional | |
status (anyOf 1) | string | Alternative | Filter results with the desired status of the `TerminalAction` Options: `PENDING`, `IN_PROGRESS`, `CANCEL_REQUESTED`, `CANCELED`, `COMPLETED` |
status (anyOf 2) | null | Alternative | |
type | JSON | Optional | |
type (anyOf 1) | string | Alternative | Describes the type of this unit and indicates which field contains the unit information. This is an ‘open’ enum. Filter results with the requested ActionType. See [TerminalActionActionType](#type-terminalactionactiontype) for possible values One of: QR_CODE, PING, SAVE_CARD, SIGNATURE, CONFIRMATION, RECEIPT, DATA_COLLECTION, SELECT |
type (anyOf 2) | null | Alternative |
Referenced models: Search Availability — request body — body query filter start at range
Search Terminal Actions — request body — body query sort sort order
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | |
sort_order | JSON | Optional | |
sort_order (anyOf 1) | string | Alternative | The order (e.g., chronological or alphabetical) in which results from a request are returned. The order in which results are listed. - `ASC` - Oldest to newest. - `DESC` - Newest to oldest (default). See [SortOrder](#type-sortorder) for possible values One of: DESC, ASC |
sort_order (anyOf 2) | null | Alternative |
Search Terminal Actions — response body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | |
action | array | Optional | The requested search result of `TerminalAction`s. |
action[] | Model | Each item | Expand Get Terminal Action — response body — action |
cursor | string | Optional | The pagination cursor to be used in a subsequent request. If empty, this is the final response. See [Pagination](https://developer.squareup.com/docs/build-basics/common-api-patterns/pagination) for more information. |
errors | array | Optional | Information on errors encountered during the request. |
errors[] | Model | Each item | Expand Get Shift — response body — errors item |
Referenced models: Get Shift — response body — errors item, Get Terminal Action — response body — action
Search Terminal Checkouts — request body — body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | |
cursor | string | Optional | A pagination cursor returned by a previous call to this endpoint. Provide this cursor to retrieve the next set of results for the original query. See [Pagination](https://developer.squareup.com/docs/build-basics/common-api-patterns/pagination) for more information. |
limit | integer | Optional | Limits the number of results returned for a single request. Maximum: 100 Minimum: 1 |
query | Model | Optional | Expand Search Terminal Checkouts — request body — body query Queries Terminal checkouts based on given conditions and the sort order. Leaving these unset returns all checkouts with the default sort order. |
Referenced models: Search Terminal Checkouts — request body — body query
Search Terminal Checkouts — request body — body query
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | |
filter | JSON | Optional | |
filter (anyOf 1) | Model | Alternative | Expand Search Terminal Checkouts — request body — body query filter created at, device id, status Options for filtering returned `TerminalCheckout` objects. |
filter (anyOf 2) | null | Alternative | |
sort | JSON | Optional | |
sort (anyOf 1) | Model | Alternative | Expand Search Terminal Checkouts — request body — body query sort sort order Option for sorting returned `TerminalCheckout` objects. |
sort (anyOf 2) | null | Alternative |
Referenced models: Search Terminal Checkouts — request body — body query filter created at, device id, status, Search Terminal Checkouts — request body — body query sort sort order
Search Terminal Checkouts — request body — body query filter created at, device id, status
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | |
created_at | Model | Optional | Expand Search Availability — request body — body query filter start at range The time range for the beginning of the reporting period, which is inclusive. Default value: The current time minus one day. Note that `TerminalCheckout`s are available for 30 days after creation. |
device_id | JSON | Optional | |
device_id (anyOf 1) | string | Alternative | The `TerminalCheckout` objects associated with a specific device. If no device is specified, then all `TerminalCheckout` objects for the merchant are displayed. |
device_id (anyOf 2) | null | Alternative | |
status | JSON | Optional | |
status (anyOf 1) | string | Alternative | Filtered results with the desired status of the `TerminalCheckout`. Options: `PENDING`, `IN_PROGRESS`, `CANCEL_REQUESTED`, `CANCELED`, `COMPLETED` |
status (anyOf 2) | null | Alternative |
Referenced models: Search Availability — request body — body query filter start at range
Search Terminal Checkouts — request body — body query sort sort order
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | |
sort_order | JSON | Optional | |
sort_order (anyOf 1) | string | Alternative | The order (e.g., chronological or alphabetical) in which results from a request are returned. The order in which results are listed. Default: `DESC` See [SortOrder](#type-sortorder) for possible values One of: DESC, ASC |
sort_order (anyOf 2) | null | Alternative |
Search Terminal Checkouts — response body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | |
checkouts | array | Optional | The requested search result of `TerminalCheckout` objects. |
checkouts[] | Model | Each item | Expand Get Terminal Checkout — response body — checkout |
cursor | string | Optional | The pagination cursor to be used in a subsequent request. If empty, this is the final response. See [Pagination](https://developer.squareup.com/docs/build-basics/common-api-patterns/pagination) for more information. |
errors | array | Optional | Information about errors encountered during the request. |
errors[] | Model | Each item | Expand Get Shift — response body — errors item |
Referenced models: Get Shift — response body — errors item, Get Terminal Checkout — response body — checkout
Search Terminal Refunds — request body — body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | |
cursor | string | Optional | A pagination cursor returned by a previous call to this endpoint. Provide this cursor to retrieve the next set of results for the original query. |
limit | integer | Optional | Limits the number of results returned for a single request. Maximum: 100 Minimum: 1 |
query | Model | Optional | Expand Search Terminal Refunds — request body — body query Queries the Terminal refunds based on given conditions and the sort order. Calling `SearchTerminalRefunds` without an explicit query parameter returns all available refunds with the default sort order. |
Referenced models: Search Terminal Refunds — request body — body query
Search Terminal Refunds — request body — body query
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | |
filter | JSON | Optional | |
filter (anyOf 1) | Model | Alternative | Expand Search Terminal Refunds — request body — body query filter created at, device id, status The filter for the Terminal refund query. |
filter (anyOf 2) | null | Alternative | |
sort | JSON | Optional | |
sort (anyOf 1) | Model | Alternative | Expand Search Terminal Refunds — request body — body query sort sort order The sort order for the Terminal refund query. |
sort (anyOf 2) | null | Alternative |
Referenced models: Search Terminal Refunds — request body — body query filter created at, device id, status, Search Terminal Refunds — request body — body query sort sort order
Search Terminal Refunds — request body — body query filter created at, device id, status
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | |
created_at | Model | Optional | Expand Search Availability — request body — body query filter start at range The timestamp for the beginning of the reporting period, in RFC 3339 format. Inclusive. Default value: The current time minus one day. Note that `TerminalRefund`s are available for 30 days after creation. |
device_id | JSON | Optional | |
device_id (anyOf 1) | string | Alternative | `TerminalRefund` objects associated with a specific device. If no device is specified, then all `TerminalRefund` objects for the signed-in account are displayed. |
device_id (anyOf 2) | null | Alternative | |
status | JSON | Optional | |
status (anyOf 1) | string | Alternative | Filtered results with the desired status of the `TerminalRefund`. Options: `PENDING`, `IN_PROGRESS`, `CANCEL_REQUESTED`, `CANCELED`, or `COMPLETED`. |
status (anyOf 2) | null | Alternative |
Referenced models: Search Availability — request body — body query filter start at range
Search Terminal Refunds — request body — body query sort sort order
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | |
sort_order | JSON | Optional | |
sort_order (anyOf 1) | string | Alternative | The order in which results are listed. - `ASC` - Oldest to newest. - `DESC` - Newest to oldest (default). |
sort_order (anyOf 2) | null | Alternative |
Search Terminal Refunds — response body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | |
cursor | string | Optional | The pagination cursor to be used in a subsequent request. If empty, this is the final response. See [Pagination](https://developer.squareup.com/docs/build-basics/common-api-patterns/pagination) for more information. |
errors | array | Optional | Information about errors encountered during the request. |
errors[] | Model | Each item | Expand Get Shift — response body — errors item |
refunds | array | Optional | The requested search result of `TerminalRefund` objects. |
refunds[] | Model | Each item | Expand Get Terminal Refund — response body — refund |
Referenced models: Get Shift — response body — errors item, Get Terminal Refund — response body — refund