Skip to content

Square: Payments schemas

54 Square schemas with complete fields and constraints.

← Payments operations · All schemas

Cancel Payment By Idempotency Key — request body — body

FieldTypePresenceDescription and constraints
$objectRootDescribes a request to cancel a payment using
[CancelPaymentByIdempotencyKey](api-endpoint:Payments-CancelPaymentByIdempotencyKey).
idempotency_keystringRequired within parentThe `idempotency_key` identifying the payment to be canceled.
Maximum length: 45
Minimum length: 1

Cancel Payment By Idempotency Key — response body

FieldTypePresenceDescription and constraints
$objectRootDefines the response returned by
[CancelPaymentByIdempotencyKey](api-endpoint:Payments-CancelPaymentByIdempotencyKey).
On success, `errors` is empty.
errorsarrayOptionalAny errors that occurred during the request.
errors[]ModelEach itemExpand Get Shift — response body — errors item

Referenced models: Get Shift — response body — errors item

Cancel Payment — response body

FieldTypePresenceDescription and constraints
$objectRootDefines the response returned by [CancelPayment](api-endpoint:Payments-CancelPayment).
errorsarrayOptionalInformation about errors encountered during the request.
errors[]ModelEach itemExpand Get Shift — response body — errors item
paymentModelOptionalExpand Get Payment — response body — payment
The successfully canceled `Payment` object.

Referenced models: Get Shift — response body — errors item, Get Payment — response body — payment

Complete Payment — request body — body

FieldTypePresenceDescription and constraints
$objectRootDescribes a request to complete (capture) a payment using
[CompletePayment](api-endpoint:Payments-CompletePayment).

By default, payments are set to `autocomplete` immediately after they are created.
To complete payments manually, set `autocomplete` to `false`.
version_tokenJSONOptional
version_token (anyOf 1)stringAlternativeUsed for optimistic concurrency. This opaque token identifies the current `Payment`
version that the caller expects. If the server has a different version of the Payment,
the update fails and a response with a VERSION_MISMATCH error is returned.
version_token (anyOf 2)nullAlternative

Complete Payment — response body

FieldTypePresenceDescription and constraints
$objectRootDefines the response returned by[CompletePayment](api-endpoint:Payments-CompletePayment).
errorsarrayOptionalInformation about errors encountered during the request.
errors[]ModelEach itemExpand Get Shift — response body — errors item
paymentModelOptionalExpand Get Payment — response body — payment
The successfully completed payment.

Referenced models: Get Shift — response body — errors item, Get Payment — response body — payment

Create Payment — request body — body

FieldTypePresenceDescription and constraints
$objectRootDescribes a request to create a payment using
[CreatePayment](api-endpoint:Payments-CreatePayment).
accept_partial_authorizationbooleanOptionalIf 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 field cannot be `true` when `autocomplete = true`.

For more information, see
[Partial amount with Square Gift Cards](https://developer.squareup.com/docs/payments-api/take-payments#partial-payment-gift-card).

Default: false
amount_moneyModelOptionalExpand Create Payment — request body — body tip money
The amount of money to accept for this payment, not including `tip_money`.

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 currency code must match the currency associated with the business
that is accepting the payment.
app_fee_allocationsarrayOptionalDetails pertaining to recipients of the application fee. The sum of the amounts in the
app_fee_allocations must equal the app_fee_money amount, if present. If populated, an
allocation must be present for every party that expects to receive a portion of the application
fee, including the application developer.
app_fee_allocations[]ModelEach itemExpand Create Payment — request body — body app fee allocations item
app_fee_moneyModelOptionalExpand Create Payment — request body — body tip money
The amount of money that 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).
autocompletebooleanOptionalIf set to `true`, this payment will be completed when possible. If
set to `false`, this payment is held in an approved state until either
explicitly completed (captured) or canceled (voided). For more information, see
[Delayed capture](https://developer.squareup.com/docs/payments-api/take-payments/card-payments#delayed-capture-of-a-card-payment).

Default: true
billing_addressModelOptionalExpand Create Customer — request body — body address
The buyer's billing address.
buyer_email_addressstringOptionalThe buyer's email address.
Maximum length: 255
buyer_phone_numberstringOptionalThe buyer's phone number.
Must follow the following format:
1. A leading + symbol (followed by a country code)
2. The phone number can contain spaces and the special characters `(` , `)` , `-` , and `.`.
Alphabetical characters aren't allowed.
3. The phone number must contain between 9 and 16 digits.
cash_detailsModelOptionalExpand Create Payment — request body — body cash details
Additional details required when recording a cash payment (`source_id` is CASH).
customer_detailsModelOptionalExpand Create Payment — request body — body customer details
Details about the customer making the payment.
customer_idstringOptionalThe [Customer](entity:Customer) ID of the customer associated with the payment.

This is required if the `source_id` refers to a card on file created using the Cards API.
delay_actionstringOptionalThe action to be applied to the payment when the `delay_duration` has elapsed. The action must be
CANCEL or COMPLETE. For more information, see
[Time Threshold](https://developer.squareup.com/docs/payments-api/take-payments/card-payments/delayed-capture#time-threshold).

Default: CANCEL
delay_durationstringOptionalThe duration of time after the payment's creation when Square automatically
either completes or cancels the payment depending on the `delay_action` field value.
For more information, see
[Time threshold](https://developer.squareup.com/docs/payments-api/take-payments/card-payments/delayed-capture#time-threshold).

This parameter should be specified as a time duration, in RFC 3339 format.

Note: This feature is only supported for card payments. This parameter can only be set for a delayed
capture payment (`autocomplete=false`).

Default:

- Card-present payments: "PT36H" (36 hours) from the creation time.
- Card-not-present payments: "P7D" (7 days) from the creation time.
external_detailsModelOptionalExpand Create Payment — request body — body external details
Additional details required when recording an external payment (`source_id` is EXTERNAL).
idempotency_keystringRequired within parentA unique string that identifies this `CreatePayment` request. Keys can be any valid string
but must be unique for every `CreatePayment` request.

Note: The number of allowed characters might be less than the stated maximum, if multi-byte
characters are used.

For more information, see [Idempotency](https://developer.squareup.com/docs/working-with-apis/idempotency).
Maximum length: 45
Minimum length: 1
location_idstringOptionalThe location ID to associate with the payment. If not specified, the [main location](https://developer.squareup.com/docs/locations-api#about-the-main-location) is
used.
notestringOptionalAn optional note to be entered by the developer when creating a payment.
Maximum length: 500
offline_payment_detailsModelOptionalExpand Create Payment — request body — body offline payment details
An optional field for specifying the offline payment details. This is intended for
internal 1st-party callers only.
order_idstringOptionalAssociates a previously created order with this payment.
reference_idstringOptionalA user-defined ID to associate with the payment.

You can use this field to associate the payment to an entity in an external system
(for example, you might specify an order ID that is generated by a third-party shopping cart).
Maximum length: 40
shipping_addressModelOptionalExpand Create Customer — request body — body address
The buyer's shipping address.
source_idstringRequired within parentThe ID for the source of funds for this payment.
This could be a payment token generated by the Web Payments SDK for any of its
[supported methods](https://developer.squareup.com/docs/web-payments/overview#explore-payment-methods),
including cards, bank transfers, Afterpay or Cash App Pay. If recording a payment
that the seller received outside of Square, specify either "CASH" or "EXTERNAL".
For more information, see
[Take Payments](https://developer.squareup.com/docs/payments-api/take-payments).
Minimum length: 1
statement_description_identifierstringOptionalOptional 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.

Note that the `statement_description_identifier` might get truncated on the statement description
to fit the required information including the Square identifier (SQ *) and name of the
seller taking the payment.
Maximum length: 20
team_member_idstringOptionalAn optional [TeamMember](entity:TeamMember) ID to associate with
this payment.
tip_moneyModelOptionalExpand Create Payment — request body — body tip money
The amount designated as a tip, in addition to `amount_money`.

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).

Tips for external vendors such as a 3rd party delivery courier must be recorded using Order.service_charges.

The currency code must match the currency associated with the business
that is accepting the payment.
verification_tokenstringOptionalAn identifying token generated by [payments.verifyBuyer()](https://developer.squareup.com/reference/sdks/web/payments/objects/Payments#Payments.verifyBuyer).
Verification tokens encapsulate customer device information and 3-D Secure
challenge results to indicate that Square has verified the buyer identity.

For more information, see [SCA Overview](https://developer.squareup.com/docs/sca-overview).

Referenced models: Create Customer — request body — body address, Create Payment — request body — body app fee allocations item, Create Payment — request body — body cash details, Create Payment — request body — body customer details, Create Payment — request body — body external details, Create Payment — request body — body tip money, Create Payment — request body — body offline payment details

Create Payment — request body — body app fee allocations item

FieldTypePresenceDescription and constraints
$objectRootOne recipient location's portion of the application fee.
location_idstringOptionalThe location receiving this application-fee allocation.
amount_moneyModelOptionalExpand Create Payment — request body — body tip money

Referenced models: Create Payment — request body — body tip money

Create Payment — request body — body cash details

FieldTypePresenceDescription and constraints
$objectRootStores details about a cash payment. Contains only non-confidential information. For more information, see
[Take Cash Payments](https://developer.squareup.com/docs/payments-api/take-payments/cash-payments).
buyer_supplied_moneyModelRequired within parentExpand Create Payment — request body — body tip money
The amount and currency of the money supplied by the buyer.
change_back_moneyModelOptionalExpand Create Payment — request body — body tip money
The amount of change due back to the buyer.
This read-only field is calculated
from the `amount_money` and `buyer_supplied_money` fields.
Read only: true

Referenced models: Create Payment — request body — body tip money

Create Payment — request body — body customer details

FieldTypePresenceDescription and constraints
$objectRootDetails about the customer making the payment.
customer_initiatedJSONOptional
customer_initiated (anyOf 1)booleanAlternativeIndicates whether the customer initiated the payment.
customer_initiated (anyOf 2)nullAlternative
seller_keyed_inJSONOptional
seller_keyed_in (anyOf 1)booleanAlternativeIndicates that the seller keyed in payment details on behalf of the customer.
This is used to flag a payment as Mail Order / Telephone Order (MOTO).
seller_keyed_in (anyOf 2)nullAlternative

Create Payment — request body — body external details

FieldTypePresenceDescription and constraints
$objectRootStores details about an external payment. Contains only non-confidential information.
For more information, see
[Take External Payments](https://developer.squareup.com/docs/payments-api/take-payments/external-payments).
sourcestringRequired within parentA description of the external payment source. For example,
"Food Delivery Service".
Maximum length: 255
source_fee_moneyJSONOptional
source_fee_money (anyOf 1)ModelAlternativeExpand Create Payment — request body — body tip money
The fees paid to the source. The `amount_money` minus this field is
the net amount seller receives.
source_fee_money (anyOf 2)nullAlternative
source_idJSONOptional
source_id (anyOf 1)stringAlternativeAn ID to associate the payment to its originating source.
Maximum length: 255
source_id (anyOf 2)nullAlternative
typestringRequired within parentThe type of external payment the seller received. It can be one of the following:
- CHECK - Paid using a physical check.
- BANK_TRANSFER - Paid using external bank transfer.
- OTHER\_GIFT\_CARD - Paid using a non-Square gift card.
- CRYPTO - Paid using a crypto currency.
- SQUARE_CASH - Paid using Square Cash App.
- SOCIAL - Paid using peer-to-peer payment applications.
- EXTERNAL - A third-party application gathered this payment outside of Square.
- EMONEY - Paid using an E-money provider.
- CARD - A credit or debit card that Square does not support.
- STORED_BALANCE - Use for house accounts, store credit, and so forth.
- FOOD_VOUCHER - Restaurant voucher provided by employers to employees to pay for meals
- OTHER - A type not listed here.
Maximum length: 50

Referenced models: Create Payment — request body — body tip money

Create Payment — request body — body offline payment details

FieldTypePresenceDescription and constraints
$objectRootDetails specific to offline payments.
client_created_atstringOptionalThe client-side timestamp of when the offline payment was created, in RFC 3339 format.
Maximum length: 32
Read only: true

Create Payment — request body — body tip money

FieldTypePresenceDescription and constraints
$objectRootRepresents an amount of money. `Money` fields can be signed or unsigned.
Fields that do not explicitly define whether they are signed or unsigned are
considered unsigned and can only hold positive amounts. For signed fields, the
sign of the value indicates the purpose of the money transfer. See
[Working with Monetary Amounts](https://developer.squareup.com/docs/build-basics/working-with-monetary-amounts)
for more information.
amountJSONOptional
amount (anyOf 1)JSONAlternative
amount (anyOf 1) (anyOf 1)integerAlternativeThe amount of money, in the smallest denomination of the currency
indicated by `currency`. For example, when `currency` is `USD`, `amount` is
in cents. Monetary amounts can be positive or negative. See the specific
field description to determine the meaning of the sign in a particular case.
Format: int64
Minimum: -9223372036854775808
Maximum: 9223372036854775807
amount (anyOf 1) (anyOf 2)stringAlternativePattern: ^(?:-(?:1[0-9]{18}|[2-8][0-9]{18}|9(?:0[0-9]{17}|1[0-9]{17}|2(?:0[0-9]{16}|1[0-9]{16}|2(?:0[0-9]{15}|[1-2][0-9]{15}|3(?:0[0-9]{14}|[1-2][0-9]{14}|3(?:0[0-9]{13}|[1-6][0-9]{13}|7(?:0[0-9]{12}|1[0-9]{12}|20(?:0[0-9]{10}|[1-2][0-9]{10}|3(?:0[0-9]{9}|[1-5][0-9]{9}|6(?:0[0-9]{8}|[1-7][0-9]{8}|8(?:0[0-9]{7}|[1-4][0-9]{7}|5(?:0[0-9]{6}|[1-3][0-9]{6}|4(?:0[0-9]{5}|[1-6][0-9]{5}|7(?:0[0-9]{4}|[1-6][0-9]{4}|7(?:0[0-9]{3}|[1-4][0-9]{3}|5(?:0[0-9]{2}|[1-7][0-9]{2}|80[0-8]))))))))))))))))|-[1-9][0-9]{0,17}|0|(?:1[0-9]{18}|[2-8][0-9]{18}|9(?:0[0-9]{17}|1[0-9]{17}|2(?:0[0-9]{16}|1[0-9]{16}|2(?:0[0-9]{15}|[1-2][0-9]{15}|3(?:0[0-9]{14}|[1-2][0-9]{14}|3(?:0[0-9]{13}|[1-6][0-9]{13}|7(?:0[0-9]{12}|1[0-9]{12}|20(?:0[0-9]{10}|[1-2][0-9]{10}|3(?:0[0-9]{9}|[1-5][0-9]{9}|6(?:0[0-9]{8}|[1-7][0-9]{8}|8(?:0[0-9]{7}|[1-4][0-9]{7}|5(?:0[0-9]{6}|[1-3][0-9]{6}|4(?:0[0-9]{5}|[1-6][0-9]{5}|7(?:0[0-9]{4}|[1-6][0-9]{4}|7(?:0[0-9]{3}|[1-4][0-9]{3}|5(?:0[0-9]{2}|[1-7][0-9]{2}|80[0-7]))))))))))))))))|[1-9][0-9]{0,17})$(?!\n)
amount (anyOf 2)nullAlternative
currencyJSONOptional
currency (anyOf 1)ModelAlternativeExpand Create Location — request body — body location currency
The type of currency, in __ISO 4217 format__. For example, the currency
code for US dollars is `USD`.

See [Currency](entity:Currency) for possible values.
See [Currency](#type-currency) for possible values
currency (anyOf 2)nullAlternative

Referenced models: Create Location — request body — body location currency

Create Payment — response body

FieldTypePresenceDescription and constraints
$objectRootDefines the response returned by [CreatePayment](api-endpoint:Payments-CreatePayment).

If there are errors processing the request, the `payment` field might not be
present, or it might be present with a status of `FAILED`.
errorsarrayOptionalInformation about errors encountered during the request.
errors[]ModelEach itemExpand Get Shift — response body — errors item
paymentModelOptionalExpand Get Payment — response body — payment
The newly created payment.

Referenced models: Get Shift — response body — errors item, Get Payment — response body — payment

Get Payment — response body

FieldTypePresenceDescription and constraints
$objectRootDefines the response returned by [GetPayment](api-endpoint:Payments-GetPayment).
errorsarrayOptionalInformation about errors encountered during the request.
errors[]ModelEach itemExpand Get Shift — response body — errors item
paymentModelOptionalExpand Get Payment — response body — payment
The requested `Payment`.

Referenced models: Get Shift — response body — errors item, Get Payment — response body — payment

Get Payment — response body — payment

FieldTypePresenceDescription and constraints
$objectRootRepresents a payment processed by the Square API.
amount_moneyJSONOptional
amount_money (anyOf 1)ModelAlternativeExpand Pay Order — response body — order total money
The amount processed for this payment, not including `tip_money`.

The amount is 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).
amount_money (anyOf 2)nullAlternative
app_fee_allocationsJSONOptional
app_fee_allocations (anyOf 1)arrayAlternativeDetails pertaining to recipients of the application fee.
app_fee_allocations (anyOf 1)[]ModelEach itemExpand Refund Payment — response body — refund app fee allocations item
app_fee_allocations (anyOf 2)nullAlternative
app_fee_moneyJSONOptional
app_fee_money (anyOf 1)ModelAlternativeExpand 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. This amount is specified in the smallest denomination of the applicable currency
(for example, US dollar amounts are specified in cents). For more information,
see [Take Payments and Collect Fees](https://developer.squareup.com/docs/payments-api/take-payments-and-collect-fees).

The amount cannot be more than 90% of the `total_money` value.

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)nullAlternative
application_detailsModelOptionalExpand Get Payment — response body — payment application details
Details about the application that took the payment.
Read only: true
approved_moneyJSONOptional
approved_money (anyOf 1)ModelAlternativeExpand Pay Order — response body — order total money
The amount of money approved for this payment. This value may change if Square chooses to
obtain reauthorization as part of a call to [UpdatePayment](api-endpoint:Payments-UpdatePayment).
approved_money (anyOf 2)nullAlternative
bank_account_detailsModelOptionalExpand Get Payment — response body — payment bank account details
Details about a bank account payment. These details are only populated if the source_type is `BANK_ACCOUNT`.
Read only: true
billing_addressModelOptionalExpand Get Payment — response body — payment billing address
The buyer's billing address.
Read only: true
buy_now_pay_later_detailsModelOptionalExpand Get Payment — response body — payment buy now pay later details
Details about a Buy Now Pay Later payment. The details are only populated
if the `source_type` is `BUY_NOW_PAY_LATER`. For more information, see
[Afterpay Payments](https://developer.squareup.com/docs/payments-api/take-payments/afterpay-payments).
Read only: true
buyer_currency_exchangeModelOptionalExpand Get Payment — response body — payment buyer currency exchange
Details about the currency exchange for payments where the currency the buyer
paid with differs from the currency the merchant received (e.g., bitcoin lightning payments).

This field will only be present when the buyer paid in a different currency than
the one used in the payment's total_money/amount_money fields.
Read only: true
buyer_email_addressstringOptionalThe buyer's email address.
Maximum length: 255
Read only: true
capabilitiesarrayOptionalActions that can be performed on this payment:
- `EDIT_AMOUNT_UP` - The payment amount can be edited up.
- `EDIT_AMOUNT_DOWN` - The payment amount can be edited down.
- `EDIT_TIP_AMOUNT_UP` - The tip amount can be edited up.
- `EDIT_TIP_AMOUNT_DOWN` - The tip amount can be edited down.
- `EDIT_DELAY_ACTION` - The delay_action can be edited.
Read only: true
capabilities[]stringEach item
card_detailsJSONOptional
card_details (anyOf 1)ModelAlternativeExpand Get Payment — response body — payment card details application cryptogram, application identifier, application name, applied card surcharge details, auth result code, avs status, card, card payment timeline, cvv status, device details, entry method, errors, refund requires card presence, statement description, status, verification method, verification results, wallet type
Details about a card payment. These details are only populated if the source_type is `CARD`.
card_details (anyOf 2)nullAlternative
cash_detailsJSONOptional
cash_details (anyOf 1)ModelAlternativeExpand Get Payment — response body — payment cash details buyer supplied money, change back money
Details about a cash payment. These details are only populated if the source_type is `CASH`.
cash_details (anyOf 2)nullAlternative
created_atstringOptionalThe timestamp of when the payment was created, in RFC 3339 format.
Maximum length: 32
Read only: true
customer_idstringOptionalThe ID of the customer associated with the payment. If the ID is
not provided in the `CreatePayment` request that was used to create the `Payment`,
Square may use information in the request
(such as the billing and shipping address, email address, and payment source)
to identify a matching customer profile in the Customer Directory.
If found, the profile ID is used. If a profile is not found, the
API attempts to create an
[instant profile](https://developer.squareup.com/docs/customers-api/what-it-does#instant-profiles).
If the API cannot create an
instant profile (either because the seller has disabled it or the
seller's region prevents creating it), this field remains unset. Note that
this process is asynchronous and it may take some time before a
customer ID is added to the payment.
Maximum length: 191
Read only: true
delay_actionJSONOptional
delay_action (anyOf 1)stringAlternativeThe action to be applied to the payment when the `delay_duration` has elapsed.

Current values include `CANCEL` and `COMPLETE`.
delay_action (anyOf 2)nullAlternative
delay_durationstringOptionalThe duration of time after the payment's creation when Square automatically applies the
`delay_action` to the payment. This automatic `delay_action` applies only to payments that
do not reach a terminal state (COMPLETED, CANCELED, or FAILED) before the `delay_duration`
time period.

This field is specified as a time duration, in RFC 3339 format.

Notes:
This feature is only supported for card payments.

Default:

- Card-present payments: "PT36H" (36 hours) from the creation time.
- Card-not-present payments: "P7D" (7 days) from the creation time.
Read only: true
delayed_untilstringOptionalThe read-only timestamp of when the `delay_action` is automatically applied,
in RFC 3339 format.

Note that this field is calculated by summing the payment's `delay_duration` and `created_at`
fields. The `created_at` field is generated by Square and might not exactly match the
time on your local machine.
Read only: true
device_detailsModelOptionalExpand Get Payment — response body — payment device details
Details about the device that took the payment.
Read only: true
electronic_money_detailsJSONOptional
electronic_money_details (anyOf 1)ModelAlternativeExpand Get Payment — response body — payment electronic money details Details specific to electronic money payments
Details specific to electronic money payments.
electronic_money_details (anyOf 2)nullAlternative
employee_idstringOptional__Deprecated__: Use `Payment.team_member_id` instead.

An optional ID of the employee associated with taking the payment.
Maximum length: 192
Read only: true
external_detailsModelOptionalExpand Get Payment — response body — payment external details
Details about an external payment. The details are only populated
if the `source_type` is `EXTERNAL`.
Read only: true
idstringOptionalA unique ID for the payment.
Maximum length: 192
Read only: true
is_offline_paymentbooleanOptionalWhether or not this payment was taken offline.
Read only: true
location_idstringOptionalThe ID of the location associated with the payment.
Maximum length: 50
Read only: true
notestringOptionalAn optional note to include when creating a payment.
Maximum length: 500
Read only: true
offline_payment_detailsModelOptionalExpand Create Payment — request body — body offline payment details
Additional information about the payment if it was taken offline.
Read only: true
order_idstringOptionalThe ID of the order associated with the payment.
Maximum length: 192
Read only: true
processing_feearrayOptionalThe processing fees and fee adjustments assessed by Square for this payment.
Read only: true
processing_fee[]ModelEach itemExpand Get Payment — response body — payment processing fee item
receipt_numberstringOptionalThe payment's receipt number.
The field is missing if a payment is canceled.
Maximum length: 4
Read only: true
receipt_urlstringOptionalThe URL for the payment's receipt.
The field is only populated for COMPLETED payments.
Maximum length: 255
Read only: true
reference_idstringOptionalAn optional ID that associates the payment with an entity in
another system.
Maximum length: 40
Read only: true
refund_idsarrayOptionalA list of `refund_id`s identifying refunds for the payment.
Read only: true
refund_ids[]stringEach item
refunded_moneyModelOptionalExpand Pay Order — response body — order total money
The total amount of the payment refunded to date.

This amount is specified in the smallest denomination of the applicable currency (for example,
US dollar amounts are specified in cents).
Read only: true
risk_evaluationModelOptionalExpand Get Payment — response body — payment risk evaluation
Provides information about the risk associated with the payment, as determined by Square.
This field is present for payments to sellers that have opted in to receive risk
evaluations.
Read only: true
shipping_addressModelOptionalExpand Get Payment — response body — payment billing address
The buyer's shipping address.
Read only: true
source_typestringOptionalThe source type for this payment.

Current values include `CARD`, `BANK_ACCOUNT`, `WALLET`, `BUY_NOW_PAY_LATER`, `SQUARE_ACCOUNT`,
`CASH` and `EXTERNAL`. For information about these payment source types,
see [Take Payments](https://developer.squareup.com/docs/payments-api/take-payments).
Maximum length: 50
Read only: true
square_account_detailsModelOptionalExpand Get Payment — response body — payment square account details
Details about a Square Account payment. The details are only populated
if the `source_type` is `SQUARE_ACCOUNT`.
Read only: true
statement_description_identifierstringOptionalAdditional payment information that gets added to the customer's card statement
as part of the statement description.

Note that the `statement_description_identifier` might get truncated on the statement description
to fit the required information including the Square identifier (SQ *) and the name of the
seller taking the payment.
Read only: true
statusstringOptionalIndicates whether the payment is APPROVED, PENDING, COMPLETED, CANCELED, or FAILED.
Maximum length: 50
Read only: true
team_member_idJSONOptional
team_member_id (anyOf 1)stringAlternativeAn optional ID of the [TeamMember](entity:TeamMember) associated with taking the payment.
Maximum length: 192
team_member_id (anyOf 2)nullAlternative
terminal_checkout_idstringOptionalAn optional ID for a Terminal checkout that is associated with the payment.
Read only: true
tip_moneyJSONOptional
tip_money (anyOf 1)ModelAlternativeExpand Pay Order — response body — order total money
The amount designated as a tip for the seller's staff.

Tips for external vendors such as a 3rd party delivery courier must be recorded using Order.service_charges.

This amount is 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).
tip_money (anyOf 2)nullAlternative
total_moneyModelOptionalExpand Pay Order — response body — order total money
The total amount for the payment, including `amount_money` and `tip_money`.
This amount is 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).
Read only: true
updated_atstringOptionalThe timestamp of when the payment was last updated, in RFC 3339 format.
Maximum length: 32
Read only: true
version_tokenJSONOptional
version_token (anyOf 1)stringAlternativeUsed for optimistic concurrency. This opaque token identifies a specific version of the
`Payment` object.
version_token (anyOf 2)nullAlternative
wallet_detailsModelOptionalExpand Get Payment — response body — payment wallet details
Details about an wallet payment. The details are only populated
if the `source_type` is `WALLET`.
Read only: true

Referenced models: Get Payment — response body — payment buyer currency exchange, Get Payment — response body — payment device details, Create Payment — request body — body offline payment details, Get Payment — response body — payment billing address, Refund Payment — response body — refund app fee allocations item, Get Payment — response body — payment application details, Get Payment — response body — payment bank account details, Get Payment — response body — payment buy now pay later details, Get Payment — response body — payment card details application cryptogram, application identifier, application name, applied card surcharge details, auth result code, avs status, card, card payment timeline, cvv status, device details, entry method, errors, refund requires card presence, statement description, status, verification method, verification results, wallet type, Get Payment — response body — payment cash details buyer supplied money, change back money, Get Payment — response body — payment wallet details, Get Payment — response body — payment electronic money details Details specific to electronic money payments, Get Payment — response body — payment external details, Pay Order — response body — order total money, Get Payment — response body — payment processing fee item, Get Payment — response body — payment risk evaluation, Get Payment — response body — payment square account details

Get Payment — response body — payment application details

FieldTypePresenceDescription and constraints
$objectRootDetails about the application that took the payment.
application_idJSONOptional
application_id (anyOf 1)stringAlternativeThe Square ID assigned to the application used to take the payment.
Application developers can use this information to identify payments that
their application processed.
For example, if a developer uses a custom application to process payments,
this field contains the application ID from the Developer Dashboard.
If a seller uses a [Square App Marketplace](https://developer.squareup.com/docs/app-marketplace)
application to process payments, the field contains the corresponding application ID.
application_id (anyOf 2)nullAlternative
square_productJSONOptional
square_product (anyOf 1)stringAlternativeA list of products to return to external callers.
The Square product, such as Square Point of Sale (POS),
Square Invoices, or Square Virtual Terminal.
See [ExternalSquareProduct](#type-externalsquareproduct) for possible values
Known values: APPOINTMENTS, ECOMMERCE_API, INVOICES, ONLINE_STORE, OTHER, RESTAURANTS, RETAIL, SQUARE_POS, TERMINAL_API, VIRTUAL_TERMINAL
square_product (anyOf 2)nullAlternative

Get Payment — response body — payment bank account details

FieldTypePresenceDescription and constraints
$objectRootAdditional details about BANK_ACCOUNT type payments.
account_ownership_typeJSONOptional
account_ownership_type (anyOf 1)stringAlternativeThe ownership type of the bank account performing the transfer.
The type can be `INDIVIDUAL`, `COMPANY`, or `ACCOUNT_TYPE_UNKNOWN`.
Maximum length: 50
account_ownership_type (anyOf 2)nullAlternative
ach_detailsJSONOptional
ach_details (anyOf 1)ModelAlternativeExpand Get Payment — response body — payment bank account details ach details account number suffix, account type, routing number
ACH-specific information about the transfer. The information is only populated
if the `transfer_type` is `ACH`.
ach_details (anyOf 2)nullAlternative
bank_nameJSONOptional
bank_name (anyOf 1)stringAlternativeThe name of the bank associated with the bank account.
Maximum length: 100
bank_name (anyOf 2)nullAlternative
countryJSONOptional
country (anyOf 1)stringAlternativeThe two-letter ISO code representing the country the bank account is located in.
Maximum length: 2
Minimum length: 2
country (anyOf 2)nullAlternative
errorsJSONOptional
errors (anyOf 1)arrayAlternativeInformation about errors encountered during the request.
errors (anyOf 1)[]ModelEach itemExpand Get Shift — response body — errors item
errors (anyOf 2)nullAlternative
fingerprintJSONOptional
fingerprint (anyOf 1)stringAlternativeUniquely identifies the bank account for this seller and can be used
to determine if payments are from the same bank account.
Maximum length: 255
fingerprint (anyOf 2)nullAlternative
statement_descriptionJSONOptional
statement_description (anyOf 1)stringAlternativeThe statement description as sent to the bank.
Maximum length: 1000
statement_description (anyOf 2)nullAlternative
transfer_typeJSONOptional
transfer_type (anyOf 1)stringAlternativeThe type of the bank transfer. The type can be `ACH` or `UNKNOWN`.
Maximum length: 50
transfer_type (anyOf 2)nullAlternative

Referenced models: Get Payment — response body — payment bank account details ach details account number suffix, account type, routing number, Get Shift — response body — errors item

Get Payment — response body — payment bank account details ach details account number suffix, account type, routing number

FieldTypePresenceDescription and constraints
$objectRootACH-specific details about `BANK_ACCOUNT` type payments with the `transfer_type` of `ACH`.
account_number_suffixJSONOptional
account_number_suffix (anyOf 1)stringAlternativeThe last few digits of the bank account number.
Maximum length: 4
Minimum length: 1
account_number_suffix (anyOf 2)nullAlternative
account_typeJSONOptional
account_type (anyOf 1)stringAlternativeThe type of the bank account performing the transfer. The account type can be `CHECKING`,
`SAVINGS`, or `UNKNOWN`.
Maximum length: 50
account_type (anyOf 2)nullAlternative
routing_numberJSONOptional
routing_number (anyOf 1)stringAlternativeThe routing number for the bank account.
Maximum length: 50
routing_number (anyOf 2)nullAlternative

Get Payment — response body — payment billing address

FieldTypePresenceDescription and constraints
$objectRootRepresents a postal address in a country.
For more information, see [Working with Addresses](https://developer.squareup.com/docs/build-basics/working-with-addresses).
address_line_1JSONOptional
address_line_1 (anyOf 1)stringAlternativeThe first line of the address.

Fields that start with `address_line` provide the address's most specific
details, like street number, street name, and building name. They do *not*
provide less specific details like city, state/province, or country (these
details are provided in other fields).
address_line_1 (anyOf 2)nullAlternative
address_line_2JSONOptional
address_line_2 (anyOf 1)stringAlternativeThe second line of the address, if any.
address_line_2 (anyOf 2)nullAlternative
address_line_3JSONOptional
address_line_3 (anyOf 1)stringAlternativeThe third line of the address, if any.
address_line_3 (anyOf 2)nullAlternative
administrative_district_level_1JSONOptional
administrative_district_level_1 (anyOf 1)stringAlternativeA civil entity within the address's country. In the US, this
is the state. For a full list of field meanings by country, see [Working with Addresses](https://developer.squareup.com/docs/build-basics/working-with-addresses).
administrative_district_level_1 (anyOf 2)nullAlternative
administrative_district_level_2JSONOptional
administrative_district_level_2 (anyOf 1)stringAlternativeA civil entity within the address's `administrative_district_level_1`.
In the US, this is the county.
administrative_district_level_2 (anyOf 2)nullAlternative
administrative_district_level_3JSONOptional
administrative_district_level_3 (anyOf 1)stringAlternativeA civil entity within the address's `administrative_district_level_2`,
if any.
administrative_district_level_3 (anyOf 2)nullAlternative
countryJSONOptional
country (anyOf 1)ModelAlternativeExpand Create Location — response body — location country
The address's country, in the two-letter format of ISO 3166. For example, `US` or `FR`.
See [Country](#type-country) for possible values
country (anyOf 2)nullAlternative
first_nameJSONOptional
first_name (anyOf 1)stringAlternativeOptional first name when it's representing recipient.
first_name (anyOf 2)nullAlternative
last_nameJSONOptional
last_name (anyOf 1)stringAlternativeOptional last name when it's representing recipient.
last_name (anyOf 2)nullAlternative
localityJSONOptional
locality (anyOf 1)stringAlternativeThe city or town of the address. For a full list of field meanings by country, see [Working with Addresses](https://developer.squareup.com/docs/build-basics/working-with-addresses).
locality (anyOf 2)nullAlternative
postal_codeJSONOptional
postal_code (anyOf 1)stringAlternativeThe address's postal code. For a full list of field meanings by country, see [Working with Addresses](https://developer.squareup.com/docs/build-basics/working-with-addresses).
postal_code (anyOf 2)nullAlternative
sublocalityJSONOptional
sublocality (anyOf 1)stringAlternativeA civil region within the address's `locality`, if any.
sublocality (anyOf 2)nullAlternative
sublocality_2JSONOptional
sublocality_2 (anyOf 1)stringAlternativeA civil region within the address's `sublocality`, if any.
sublocality_2 (anyOf 2)nullAlternative
sublocality_3JSONOptional
sublocality_3 (anyOf 1)stringAlternativeA civil region within the address's `sublocality_2`, if any.
sublocality_3 (anyOf 2)nullAlternative

Referenced models: Create Location — response body — location country

Get Payment — response body — payment buy now pay later details

FieldTypePresenceDescription and constraints
$objectRootAdditional details about a Buy Now Pay Later payment type.
afterpay_detailsJSONOptional
afterpay_details (anyOf 1)ModelAlternativeExpand Get Payment — response body — payment buy now pay later details afterpay details Additional details about Afterpay payments
Details about an Afterpay payment. These details are only populated if the `brand` is
`AFTERPAY`.
afterpay_details (anyOf 2)nullAlternative
brandJSONOptional
brand (anyOf 1)stringAlternativeThe brand used for the Buy Now Pay Later payment.
The brand can be `AFTERPAY`, `CLEARPAY` or `UNKNOWN`.
Maximum length: 50
brand (anyOf 2)nullAlternative
clearpay_detailsJSONOptional
clearpay_details (anyOf 1)ModelAlternativeExpand Get Payment — response body — payment buy now pay later details clearpay details Additional details about Clearpay payments
Details about a Clearpay payment. These details are only populated if the `brand` is
`CLEARPAY`.
clearpay_details (anyOf 2)nullAlternative
errorsarrayOptionalInformation about errors encountered during the payment.
Read only: true
errors[]ModelEach itemExpand Get Shift — response body — errors item

Referenced models: Get Payment — response body — payment buy now pay later details afterpay details Additional details about Afterpay payments, Get Payment — response body — payment buy now pay later details clearpay details Additional details about Clearpay payments, Get Shift — response body — errors item

Get Payment — response body — payment buy now pay later details afterpay details Additional details about Afterpay payments

FieldTypePresenceDescription and constraints
$objectRootAdditional details about Afterpay payments.
email_addressJSONOptional
email_address (anyOf 1)stringAlternativeEmail address on the buyer's Afterpay account.
Maximum length: 255
email_address (anyOf 2)nullAlternative

Get Payment — response body — payment buy now pay later details clearpay details Additional details about Clearpay payments

FieldTypePresenceDescription and constraints
$objectRootAdditional details about Clearpay payments.
email_addressJSONOptional
email_address (anyOf 1)stringAlternativeEmail address on the buyer's Clearpay account.
Maximum length: 255
email_address (anyOf 2)nullAlternative

Get Payment — response body — payment buyer currency exchange

FieldTypePresenceDescription and constraints
$JSONRootOpaque currency-exchange details returned by Square; no fields are published.
Read only: true

Get Payment — response body — payment card details application cryptogram, application identifier, application name, applied card surcharge details, auth result code, avs status, card, card payment timeline, cvv status, device details, entry method, errors, refund requires card presence, statement description, status, verification method, verification results, wallet type

FieldTypePresenceDescription and constraints
$objectRootReflects the current status of a card payment. Contains only non-confidential information.
application_cryptogramstringOptionalFor EMV payments, the cryptogram generated for the payment.
Maximum length: 16
Read only: true
application_identifierstringOptionalFor EMV payments, the application ID identifies the EMV application used for the payment.
Maximum length: 32
Read only: true
application_namestringOptionalFor EMV payments, the human-readable name of the EMV application used for the payment.
Maximum length: 16
Read only: true
applied_card_surcharge_detailsModelOptionalExpand Get Payment — response body — payment card details application cryptogram, application identifier, application name, applied card surcharge details, auth result code, avs status, card, card payment timeline, cvv status, device details, entry method, errors, refund requires card presence, statement description, status, verification method, verification results, wallet type applied card surcharge details
Additional information about a card_surcharge on the payment.
Read only: true
auth_result_codestringOptionalThe status code returned by the card issuer that describes the payment's
authorization status.
Maximum length: 10
Read only: true
avs_statusstringOptionalThe status code returned from the Address Verification System (AVS) check. The code can be
`AVS_ACCEPTED`, `AVS_REJECTED`, or `AVS_NOT_CHECKED`.
Maximum length: 50
Read only: true
cardModelOptionalExpand Create Card — response body — card
The credit card's non-confidential details.
Read only: true
card_payment_timelineModelOptionalExpand Get Payment — response body — payment card details application cryptogram, application identifier, application name, applied card surcharge details, auth result code, avs status, card, card payment timeline, cvv status, device details, entry method, errors, refund requires card presence, statement description, status, verification method, verification results, wallet type card payment timeline
The timeline for card payments.
Read only: true
cvv_statusstringOptionalThe status code returned from the Card Verification Value (CVV) check. The code can be
`CVV_ACCEPTED`, `CVV_REJECTED`, or `CVV_NOT_CHECKED`.
Maximum length: 50
Read only: true
device_detailsJSONOptional
device_details (anyOf 1)ModelAlternativeExpand Get Payment — response body — payment device details
__Deprecated__: Use `Payment.device_details` instead.

Details about the device that took the payment.
device_details (anyOf 2)nullAlternative
entry_methodstringOptionalThe method used to enter the card's details for the payment. The method can be
`KEYED`, `SWIPED`, `EMV`, `ON_FILE`, or `CONTACTLESS`.
Maximum length: 50
Read only: true
errorsarrayOptionalInformation about errors encountered during the request.
Read only: true
errors[]ModelEach itemExpand Get Shift — response body — errors item
refund_requires_card_presencebooleanOptionalWhether the card must be physically present for the payment to
be refunded. If set to `true`, the card must be present.
Read only: true
statement_descriptionstringOptionalThe statement description sent to the card networks.

Note: The actual statement description varies and is likely to be truncated and appended with
additional information on a per issuer basis.
Maximum length: 50
Read only: true
statusstringOptionalThe card payment's current state. The state can be AUTHORIZED, CAPTURED, VOIDED, or
FAILED.
Maximum length: 50
Read only: true
verification_methodstringOptionalFor EMV payments, the method used to verify the cardholder's identity. The method can be
`PIN`, `SIGNATURE`, `PIN_AND_SIGNATURE`, `ON_DEVICE`, or `NONE`.
Maximum length: 50
Read only: true
verification_resultsstringOptionalFor EMV payments, the results of the cardholder verification. The result can be
`SUCCESS`, `FAILURE`, or `UNKNOWN`.
Maximum length: 50
Read only: true
wallet_typestringOptionalThe type of digital wallet used for this card payment, if applicable.
Currently only populated for in-person Apple Pay payments. Detection has no false
positives but may have false negatives (some Apple Pay payments may not be detected).

For payments with `source_type` of `WALLET`, see `DigitalWalletDetails` instead.

Values: `APPLE_PAY`
Maximum length: 50
Read only: true

Referenced models: Get Payment — response body — payment card details application cryptogram, application identifier, application name, applied card surcharge details, auth result code, avs status, card, card payment timeline, cvv status, device details, entry method, errors, refund requires card presence, statement description, status, verification method, verification results, wallet type card payment timeline, Get Payment — response body — payment device details, Create Card — response body — card, Get Payment — response body — payment card details application cryptogram, application identifier, application name, applied card surcharge details, auth result code, avs status, card, card payment timeline, cvv status, device details, entry method, errors, refund requires card presence, statement description, status, verification method, verification results, wallet type applied card surcharge details, Get Shift — response body — errors item

Get Payment — response body — payment card details application cryptogram, application identifier, application name, applied card surcharge details, auth result code, avs status, card, card payment timeline, cvv status, device details, entry method, errors, refund requires card presence, statement description, status, verification method, verification results, wallet type applied card surcharge details

FieldTypePresenceDescription and constraints
$objectRootDetails related to an attempt to apply a card surcharge to this payment. When surcharge
eligibility is not known in advance, such as when the card type (debit or credit) is required
to make the eligibility determination, proposed_card_surcharge_money and
proposed_additional_amount_money will match the values in the request, while card_surcharge_money
and additional_amount_money are present only when the payment has a surcharge applied.
card_surcharge_moneyJSONOptional
card_surcharge_money (anyOf 1)ModelAlternativeExpand Pay Order — response body — order total money
A specific surcharge levied by the merchant, if a card payment is used, instead of cash or
some other payment type. Should only include the base surcharge amount. Any additional fees related
to the surcharge (e.g. taxes on the surcharge) should only be included in the additional_amount_money.
This amount is 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 currency code must match the currency associated with the business that is accepting the
payment.
card_surcharge_money (anyOf 2)nullAlternative

Referenced models: Pay Order — response body — order total money

Get Payment — response body — payment card details application cryptogram, application identifier, application name, applied card surcharge details, auth result code, avs status, card, card payment timeline, cvv status, device details, entry method, errors, refund requires card presence, statement description, status, verification method, verification results, wallet type card payment timeline

FieldTypePresenceDescription and constraints
$objectRootThe timeline for card payments.
authorized_atJSONOptional
authorized_at (anyOf 1)stringAlternativeThe timestamp when the payment was authorized, in RFC 3339 format.
authorized_at (anyOf 2)nullAlternative
captured_atJSONOptional
captured_at (anyOf 1)stringAlternativeThe timestamp when the payment was captured, in RFC 3339 format.
captured_at (anyOf 2)nullAlternative
voided_atJSONOptional
voided_at (anyOf 1)stringAlternativeThe timestamp when the payment was voided, in RFC 3339 format.
voided_at (anyOf 2)nullAlternative

Get Payment — response body — payment cash details buyer supplied money, change back money

FieldTypePresenceDescription and constraints
$objectRootStores details about a cash payment. Contains only non-confidential information. For more information, see
[Take Cash Payments](https://developer.squareup.com/docs/payments-api/take-payments/cash-payments).
buyer_supplied_moneyModelRequired within parentExpand Pay Order — response body — order total money
The amount and currency of the money supplied by the buyer.
change_back_moneyModelOptionalExpand Pay Order — response body — order total money
The amount of change due back to the buyer.
This read-only field is calculated
from the `amount_money` and `buyer_supplied_money` fields.
Read only: true

Referenced models: Pay Order — response body — order total money

Get Payment — response body — payment device details

FieldTypePresenceDescription and constraints
$objectRootDetails about the device that took the payment.
device_idJSONOptional
device_id (anyOf 1)stringAlternativeThe Square-issued ID of the device.
Maximum length: 255
device_id (anyOf 2)nullAlternative
device_installation_idJSONOptional
device_installation_id (anyOf 1)stringAlternativeThe Square-issued installation ID for the device.
Maximum length: 255
device_installation_id (anyOf 2)nullAlternative
device_nameJSONOptional
device_name (anyOf 1)stringAlternativeThe name of the device set by the seller.
Maximum length: 255
device_name (anyOf 2)nullAlternative

Get Payment — response body — payment electronic money details Details specific to electronic money payments

FieldTypePresenceDescription and constraints
$objectRootDetails specific to electronic money payments.
felica_detailsJSONOptional
felica_details (anyOf 1)ModelAlternativeExpand Get Payment — response body — payment electronic money details Details specific to electronic money payments felica details Details for Felica payments
Details specific to FeliCa payments.
felica_details (anyOf 2)nullAlternative

Referenced models: Get Payment — response body — payment electronic money details Details specific to electronic money payments felica details Details for Felica payments

Get Payment — response body — payment electronic money details Details specific to electronic money payments felica details Details for Felica payments

FieldTypePresenceDescription and constraints
$objectRootDetails for Felica payments.
felica_brandJSONOptional
felica_brand (anyOf 1)stringAlternativeA Felica card's "sub-brand"--the actual brand on the Felica card
The Felica sub-brand of the payment.
See [FelicaBrand](#type-felicabrand) for possible values
Known values: UNKNOWN, FELICA_ID, FELICA_TRANSPORTATION, FELICA_QP
felica_brand (anyOf 2)nullAlternative
felica_masked_card_numberJSONOptional
felica_masked_card_number (anyOf 1)stringAlternativeThe masked card number for a Felica payment.
felica_masked_card_number (anyOf 2)nullAlternative
terminal_idJSONOptional
terminal_id (anyOf 1)stringAlternativeThe terminal id for a Felica payment.
Maximum length: 255
terminal_id (anyOf 2)nullAlternative

Get Payment — response body — payment external details

FieldTypePresenceDescription and constraints
$objectRootStores details about an external payment. Contains only non-confidential information.
For more information, see
[Take External Payments](https://developer.squareup.com/docs/payments-api/take-payments/external-payments).
sourcestringRequired within parentA description of the external payment source. For example,
"Food Delivery Service".
Maximum length: 255
source_fee_moneyJSONOptional
source_fee_money (anyOf 1)ModelAlternativeExpand Pay Order — response body — order total money
The fees paid to the source. The `amount_money` minus this field is
the net amount seller receives.
source_fee_money (anyOf 2)nullAlternative
source_idJSONOptional
source_id (anyOf 1)stringAlternativeAn ID to associate the payment to its originating source.
Maximum length: 255
source_id (anyOf 2)nullAlternative
typestringRequired within parentThe type of external payment the seller received. It can be one of the following:
- CHECK - Paid using a physical check.
- BANK_TRANSFER - Paid using external bank transfer.
- OTHER\_GIFT\_CARD - Paid using a non-Square gift card.
- CRYPTO - Paid using a crypto currency.
- SQUARE_CASH - Paid using Square Cash App.
- SOCIAL - Paid using peer-to-peer payment applications.
- EXTERNAL - A third-party application gathered this payment outside of Square.
- EMONEY - Paid using an E-money provider.
- CARD - A credit or debit card that Square does not support.
- STORED_BALANCE - Use for house accounts, store credit, and so forth.
- FOOD_VOUCHER - Restaurant voucher provided by employers to employees to pay for meals
- OTHER - A type not listed here.
Maximum length: 50

Referenced models: Pay Order — response body — order total money

Get Payment — response body — payment processing fee item

FieldTypePresenceDescription and constraints
$objectRootRepresents the Square processing fee.
amount_moneyJSONOptional
amount_money (anyOf 1)ModelAlternativeExpand Pay Order — response body — order total money
The fee amount, which might be negative, that is assessed or adjusted by Square.

Positive values represent funds being assessed, while negative values represent
funds being returned.
amount_money (anyOf 2)nullAlternative
effective_atJSONOptional
effective_at (anyOf 1)stringAlternativeThe timestamp of when the fee takes effect, in RFC 3339 format.
effective_at (anyOf 2)nullAlternative
typeJSONOptional
type (anyOf 1)stringAlternativeThe type of fee assessed or adjusted. The fee type can be `INITIAL` or `ADJUSTMENT`.
type (anyOf 2)nullAlternative

Referenced models: Pay Order — response body — order total money

Get Payment — response body — payment risk evaluation

FieldTypePresenceDescription and constraints
$objectRootRepresents fraud risk information for the associated payment.

When you take a payment through Square's Payments API (using the `CreatePayment`
endpoint), Square evaluates it and assigns a risk level to the payment. Sellers
can use this information to determine the course of action (for example,
provide the goods/services or refund the payment).
created_atstringOptionalThe timestamp when payment risk was evaluated, in RFC 3339 format.
Read only: true
risk_levelJSONOptional
risk_level (anyOf 1)stringAlternativeThe risk level associated with the payment
See [RiskEvaluationRiskLevel](#type-riskevaluationrisklevel) for possible values
Known values: PENDING, NORMAL, MODERATE, HIGH
risk_level (anyOf 2)nullAlternative

Get Payment — response body — payment square account details

FieldTypePresenceDescription and constraints
$objectRootAdditional details about Square Account payments.
errorsJSONOptional
errors (anyOf 1)arrayAlternativeInformation about errors encountered during the request.
errors (anyOf 1)[]ModelEach itemExpand Get Shift — response body — errors item
errors (anyOf 2)nullAlternative
payment_source_tokenJSONOptional
payment_source_token (anyOf 1)stringAlternativeUnique identifier for the payment source used for this payment.
Maximum length: 255
payment_source_token (anyOf 2)nullAlternative

Referenced models: Get Shift — response body — errors item

Get Payment — response body — payment wallet details

FieldTypePresenceDescription and constraints
$objectRootAdditional details about `WALLET` type payments. Contains only non-confidential information.
brandJSONOptional
brand (anyOf 1)stringAlternativeThe brand used for the `WALLET` payment. The brand can be `CASH_APP`, `PAYPAY`, `ALIPAY`,
`RAKUTEN_PAY`, `AU_PAY`, `D_BARAI`, `MERPAY`, `WECHAT_PAY`, `LIGHTNING` or `UNKNOWN`.
Maximum length: 50
brand (anyOf 2)nullAlternative
cash_app_detailsJSONOptional
cash_app_details (anyOf 1)ModelAlternativeExpand Get Payment — response body — payment wallet details cash app details buyer cashtag, buyer country code, buyer full name
Brand-specific details for payments with the `brand` of `CASH_APP`.
cash_app_details (anyOf 2)nullAlternative
errorsarrayOptionalInformation about errors encountered during the payment.
Read only: true
errors[]ModelEach itemExpand Get Shift — response body — errors item
lightning_detailsJSONOptional
lightning_details (anyOf 1)ModelAlternativeExpand Get Payment — response body — payment wallet details lightning details payment url
Brand-specific details for payments with the `brand` of `LIGHTNING`.
lightning_details (anyOf 2)nullAlternative
statusJSONOptional
status (anyOf 1)stringAlternativeThe status of the `WALLET` payment. The status can be `AUTHORIZED`, `CAPTURED`, `VOIDED`, or
`FAILED`.
Maximum length: 50
status (anyOf 2)nullAlternative

Referenced models: Get Payment — response body — payment wallet details cash app details buyer cashtag, buyer country code, buyer full name, Get Payment — response body — payment wallet details lightning details payment url, Get Shift — response body — errors item

Get Payment — response body — payment wallet details cash app details buyer cashtag, buyer country code, buyer full name

FieldTypePresenceDescription and constraints
$objectRootAdditional details about `WALLET` type payments with the `brand` of `CASH_APP`.
buyer_cashtagstringOptional$Cashtag of the Cash App account holder.
Maximum length: 21
Minimum length: 1
Read only: true
buyer_country_codeJSONOptional
buyer_country_code (anyOf 1)stringAlternativeThe country of the Cash App account holder, in ISO 3166-1-alpha-2 format.

For possible values, see [Country](entity:Country).
Maximum length: 2
Minimum length: 2
buyer_country_code (anyOf 2)nullAlternative
buyer_full_nameJSONOptional
buyer_full_name (anyOf 1)stringAlternativeThe name of the Cash App account holder.
Maximum length: 255
buyer_full_name (anyOf 2)nullAlternative

Get Payment — response body — payment wallet details lightning details payment url

FieldTypePresenceDescription and constraints
$objectRootAdditional details about `WALLET` type payments with the `brand` of `LIGHTNING`.
payment_urlJSONOptional
payment_url (anyOf 1)stringAlternativePayment URL for the lightning payment, a.k.a. the invoice.
payment_url (anyOf 2)nullAlternative

List Payments — response body

FieldTypePresenceDescription and constraints
$objectRootDefines the response returned by [ListPayments](api-endpoint:Payments-ListPayments).
cursorstringOptionalThe pagination cursor to be used in a subsequent request. If empty,
this is the final response.

For more information, see [Pagination](https://developer.squareup.com/docs/build-basics/common-api-patterns/pagination).
errorsarrayOptionalInformation about errors encountered during the request.
errors[]ModelEach itemExpand Get Shift — response body — errors item
paymentsarrayOptionalThe requested list of payments.
payments[]ModelEach itemExpand Get Payment — response body — payment

Referenced models: Get Shift — response body — errors item, Get Payment — response body — payment

Update Payment — request body — body

FieldTypePresenceDescription and constraints
$objectRootDescribes a request to update a payment using
[UpdatePayment](api-endpoint:Payments-UpdatePayment).
idempotency_keystringRequired within parentA unique string that identifies this `UpdatePayment` request. Keys can be any valid string
but must be unique for every `UpdatePayment` request.

For more information, see [Idempotency](https://developer.squareup.com/docs/build-basics/common-api-patterns/idempotency).
Maximum length: 45
Minimum length: 1
paymentJSONOptional
payment (anyOf 1)ModelAlternativeExpand Update Payment — request body — body payment Represents a payment processed by the Square API
The updated `Payment` object.
payment (anyOf 2)nullAlternative

Referenced models: Update Payment — request body — body payment Represents a payment processed by the Square API

Update Payment — request body — body payment Represents a payment processed by the Square API

FieldTypePresenceDescription and constraints
$objectRootRepresents a payment processed by the Square API.
amount_moneyJSONOptional
amount_money (anyOf 1)ModelAlternativeExpand Create Payment — request body — body tip money
The amount processed for this payment, not including `tip_money`.

The amount is 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).
amount_money (anyOf 2)nullAlternative
app_fee_allocationsJSONOptional
app_fee_allocations (anyOf 1)arrayAlternativeDetails pertaining to recipients of the application fee.
app_fee_allocations (anyOf 1)[]ModelEach itemExpand Create Payment — request body — body app fee allocations item
app_fee_allocations (anyOf 2)nullAlternative
app_fee_moneyJSONOptional
app_fee_money (anyOf 1)ModelAlternativeExpand 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. This amount is specified in the smallest denomination of the applicable currency
(for example, US dollar amounts are specified in cents). For more information,
see [Take Payments and Collect Fees](https://developer.squareup.com/docs/payments-api/take-payments-and-collect-fees).

The amount cannot be more than 90% of the `total_money` value.

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)nullAlternative
application_detailsModelOptionalExpand Update Payment — request body — body payment Represents a payment processed by the Square API application details
Details about the application that took the payment.
Read only: true
approved_moneyJSONOptional
approved_money (anyOf 1)ModelAlternativeExpand Create Payment — request body — body tip money
The amount of money approved for this payment. This value may change if Square chooses to
obtain reauthorization as part of a call to [UpdatePayment](api-endpoint:Payments-UpdatePayment).
approved_money (anyOf 2)nullAlternative
bank_account_detailsModelOptionalExpand Update Payment — request body — body payment Represents a payment processed by the Square API bank account details
Details about a bank account payment. These details are only populated if the source_type is `BANK_ACCOUNT`.
Read only: true
billing_addressModelOptionalExpand Create Customer — request body — body address
The buyer's billing address.
Read only: true
buy_now_pay_later_detailsModelOptionalExpand Update Payment — request body — body payment Represents a payment processed by the Square API buy now pay later details
Details about a Buy Now Pay Later payment. The details are only populated
if the `source_type` is `BUY_NOW_PAY_LATER`. For more information, see
[Afterpay Payments](https://developer.squareup.com/docs/payments-api/take-payments/afterpay-payments).
Read only: true
buyer_currency_exchangeModelOptionalExpand Get Payment — response body — payment buyer currency exchange
Details about the currency exchange for payments where the currency the buyer
paid with differs from the currency the merchant received (e.g., bitcoin lightning payments).

This field will only be present when the buyer paid in a different currency than
the one used in the payment's total_money/amount_money fields.
Read only: true
buyer_email_addressstringOptionalThe buyer's email address.
Maximum length: 255
Read only: true
capabilitiesarrayOptionalActions that can be performed on this payment:
- `EDIT_AMOUNT_UP` - The payment amount can be edited up.
- `EDIT_AMOUNT_DOWN` - The payment amount can be edited down.
- `EDIT_TIP_AMOUNT_UP` - The tip amount can be edited up.
- `EDIT_TIP_AMOUNT_DOWN` - The tip amount can be edited down.
- `EDIT_DELAY_ACTION` - The delay_action can be edited.
Read only: true
capabilities[]stringEach item
card_detailsJSONOptional
card_details (anyOf 1)ModelAlternativeExpand Update Payment — request body — body payment Represents a payment processed by the Square API card details application cryptogram, application identifier, application name, applied card surcharge details, auth result code, avs status, card, card payment timeline, cvv status, device details, entry method, errors, refund requires card presence, statement description, status, verification method, verification results, wallet type
Details about a card payment. These details are only populated if the source_type is `CARD`.
card_details (anyOf 2)nullAlternative
cash_detailsJSONOptional
cash_details (anyOf 1)ModelAlternativeExpand Create Payment — request body — body cash details
Details about a cash payment. These details are only populated if the source_type is `CASH`.
cash_details (anyOf 2)nullAlternative
created_atstringOptionalThe timestamp of when the payment was created, in RFC 3339 format.
Maximum length: 32
Read only: true
customer_idstringOptionalThe ID of the customer associated with the payment. If the ID is
not provided in the `CreatePayment` request that was used to create the `Payment`,
Square may use information in the request
(such as the billing and shipping address, email address, and payment source)
to identify a matching customer profile in the Customer Directory.
If found, the profile ID is used. If a profile is not found, the
API attempts to create an
[instant profile](https://developer.squareup.com/docs/customers-api/what-it-does#instant-profiles).
If the API cannot create an
instant profile (either because the seller has disabled it or the
seller's region prevents creating it), this field remains unset. Note that
this process is asynchronous and it may take some time before a
customer ID is added to the payment.
Maximum length: 191
Read only: true
delay_actionJSONOptional
delay_action (anyOf 1)stringAlternativeThe action to be applied to the payment when the `delay_duration` has elapsed.

Current values include `CANCEL` and `COMPLETE`.
delay_action (anyOf 2)nullAlternative
delay_durationstringOptionalThe duration of time after the payment's creation when Square automatically applies the
`delay_action` to the payment. This automatic `delay_action` applies only to payments that
do not reach a terminal state (COMPLETED, CANCELED, or FAILED) before the `delay_duration`
time period.

This field is specified as a time duration, in RFC 3339 format.

Notes:
This feature is only supported for card payments.

Default:

- Card-present payments: "PT36H" (36 hours) from the creation time.
- Card-not-present payments: "P7D" (7 days) from the creation time.
Read only: true
delayed_untilstringOptionalThe read-only timestamp of when the `delay_action` is automatically applied,
in RFC 3339 format.

Note that this field is calculated by summing the payment's `delay_duration` and `created_at`
fields. The `created_at` field is generated by Square and might not exactly match the
time on your local machine.
Read only: true
device_detailsModelOptionalExpand Get Payment — response body — payment device details
Details about the device that took the payment.
Read only: true
electronic_money_detailsJSONOptional
electronic_money_details (anyOf 1)ModelAlternativeExpand Update Payment — request body — body payment Represents a payment processed by the Square API electronic money details Details specific to electronic money payments
Details specific to electronic money payments.
electronic_money_details (anyOf 2)nullAlternative
employee_idstringOptional__Deprecated__: Use `Payment.team_member_id` instead.

An optional ID of the employee associated with taking the payment.
Maximum length: 192
Read only: true
external_detailsModelOptionalExpand Create Payment — request body — body external details
Details about an external payment. The details are only populated
if the `source_type` is `EXTERNAL`.
Read only: true
idstringOptionalA unique ID for the payment.
Maximum length: 192
Read only: true
is_offline_paymentbooleanOptionalWhether or not this payment was taken offline.
Read only: true
location_idstringOptionalThe ID of the location associated with the payment.
Maximum length: 50
Read only: true
notestringOptionalAn optional note to include when creating a payment.
Maximum length: 500
Read only: true
offline_payment_detailsModelOptionalExpand Create Payment — request body — body offline payment details
Additional information about the payment if it was taken offline.
Read only: true
order_idstringOptionalThe ID of the order associated with the payment.
Maximum length: 192
Read only: true
processing_feearrayOptionalThe processing fees and fee adjustments assessed by Square for this payment.
Read only: true
processing_fee[]ModelEach itemExpand Update Payment — request body — body payment Represents a payment processed by the Square API processing fee item
receipt_numberstringOptionalThe payment's receipt number.
The field is missing if a payment is canceled.
Maximum length: 4
Read only: true
receipt_urlstringOptionalThe URL for the payment's receipt.
The field is only populated for COMPLETED payments.
Maximum length: 255
Read only: true
reference_idstringOptionalAn optional ID that associates the payment with an entity in
another system.
Maximum length: 40
Read only: true
refund_idsarrayOptionalA list of `refund_id`s identifying refunds for the payment.
Read only: true
refund_ids[]stringEach item
refunded_moneyModelOptionalExpand Create Payment — request body — body tip money
The total amount of the payment refunded to date.

This amount is specified in the smallest denomination of the applicable currency (for example,
US dollar amounts are specified in cents).
Read only: true
risk_evaluationModelOptionalExpand Update Payment — request body — body payment Represents a payment processed by the Square API risk evaluation
Provides information about the risk associated with the payment, as determined by Square.
This field is present for payments to sellers that have opted in to receive risk
evaluations.
Read only: true
shipping_addressModelOptionalExpand Create Customer — request body — body address
The buyer's shipping address.
Read only: true
source_typestringOptionalThe source type for this payment.

Current values include `CARD`, `BANK_ACCOUNT`, `WALLET`, `BUY_NOW_PAY_LATER`, `SQUARE_ACCOUNT`,
`CASH` and `EXTERNAL`. For information about these payment source types,
see [Take Payments](https://developer.squareup.com/docs/payments-api/take-payments).
Maximum length: 50
Read only: true
square_account_detailsModelOptionalExpand Update Payment — request body — body payment Represents a payment processed by the Square API square account details
Details about a Square Account payment. The details are only populated
if the `source_type` is `SQUARE_ACCOUNT`.
Read only: true
statement_description_identifierstringOptionalAdditional payment information that gets added to the customer's card statement
as part of the statement description.

Note that the `statement_description_identifier` might get truncated on the statement description
to fit the required information including the Square identifier (SQ *) and the name of the
seller taking the payment.
Read only: true
statusstringOptionalIndicates whether the payment is APPROVED, PENDING, COMPLETED, CANCELED, or FAILED.
Maximum length: 50
Read only: true
team_member_idJSONOptional
team_member_id (anyOf 1)stringAlternativeAn optional ID of the [TeamMember](entity:TeamMember) associated with taking the payment.
Maximum length: 192
team_member_id (anyOf 2)nullAlternative
terminal_checkout_idstringOptionalAn optional ID for a Terminal checkout that is associated with the payment.
Read only: true
tip_moneyJSONOptional
tip_money (anyOf 1)ModelAlternativeExpand Create Payment — request body — body tip money
The amount designated as a tip for the seller's staff.

Tips for external vendors such as a 3rd party delivery courier must be recorded using Order.service_charges.

This amount is 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).
tip_money (anyOf 2)nullAlternative
total_moneyModelOptionalExpand Create Payment — request body — body tip money
The total amount for the payment, including `amount_money` and `tip_money`.
This amount is 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).
Read only: true
updated_atstringOptionalThe timestamp of when the payment was last updated, in RFC 3339 format.
Maximum length: 32
Read only: true
version_tokenJSONOptional
version_token (anyOf 1)stringAlternativeUsed for optimistic concurrency. This opaque token identifies a specific version of the
`Payment` object.
version_token (anyOf 2)nullAlternative
wallet_detailsModelOptionalExpand Update Payment — request body — body payment Represents a payment processed by the Square API wallet details
Details about an wallet payment. The details are only populated
if the `source_type` is `WALLET`.
Read only: true

Referenced models: Create Customer — request body — body address, Create Payment — request body — body app fee allocations item, Update Payment — request body — body payment Represents a payment processed by the Square API application details, Update Payment — request body — body payment Represents a payment processed by the Square API bank account details, Update Payment — request body — body payment Represents a payment processed by the Square API buy now pay later details, Update Payment — request body — body payment Represents a payment processed by the Square API card details application cryptogram, application identifier, application name, applied card surcharge details, auth result code, avs status, card, card payment timeline, cvv status, device details, entry method, errors, refund requires card presence, statement description, status, verification method, verification results, wallet type, Create Payment — request body — body cash details, Get Payment — response body — payment buyer currency exchange, Get Payment — response body — payment device details, Update Payment — request body — body payment Represents a payment processed by the Square API wallet details, Update Payment — request body — body payment Represents a payment processed by the Square API electronic money details Details specific to electronic money payments, Create Payment — request body — body external details, Create Payment — request body — body tip money, Create Payment — request body — body offline payment details, Update Payment — request body — body payment Represents a payment processed by the Square API processing fee item, Update Payment — request body — body payment Represents a payment processed by the Square API risk evaluation, Update Payment — request body — body payment Represents a payment processed by the Square API square account details

Update Payment — request body — body payment Represents a payment processed by the Square API application details

FieldTypePresenceDescription and constraints
$objectRootDetails about the application that took the payment.
application_idJSONOptional
application_id (anyOf 1)stringAlternativeThe Square ID assigned to the application used to take the payment.
Application developers can use this information to identify payments that
their application processed.
For example, if a developer uses a custom application to process payments,
this field contains the application ID from the Developer Dashboard.
If a seller uses a [Square App Marketplace](https://developer.squareup.com/docs/app-marketplace)
application to process payments, the field contains the corresponding application ID.
application_id (anyOf 2)nullAlternative
square_productJSONOptional
square_product (anyOf 1)stringAlternativeA list of products to return to external callers.
The Square product, such as Square Point of Sale (POS),
Square Invoices, or Square Virtual Terminal.
See [ExternalSquareProduct](#type-externalsquareproduct) for possible values
One of: APPOINTMENTS, ECOMMERCE_API, INVOICES, ONLINE_STORE, OTHER, RESTAURANTS, RETAIL, SQUARE_POS, TERMINAL_API, VIRTUAL_TERMINAL
square_product (anyOf 2)nullAlternative

Update Payment — request body — body payment Represents a payment processed by the Square API bank account details

FieldTypePresenceDescription and constraints
$objectRootAdditional details about BANK_ACCOUNT type payments.
account_ownership_typeJSONOptional
account_ownership_type (anyOf 1)stringAlternativeThe ownership type of the bank account performing the transfer.
The type can be `INDIVIDUAL`, `COMPANY`, or `ACCOUNT_TYPE_UNKNOWN`.
Maximum length: 50
account_ownership_type (anyOf 2)nullAlternative
ach_detailsJSONOptional
ach_details (anyOf 1)ModelAlternativeExpand Get Payment — response body — payment bank account details ach details account number suffix, account type, routing number
ACH-specific information about the transfer. The information is only populated
if the `transfer_type` is `ACH`.
ach_details (anyOf 2)nullAlternative
bank_nameJSONOptional
bank_name (anyOf 1)stringAlternativeThe name of the bank associated with the bank account.
Maximum length: 100
bank_name (anyOf 2)nullAlternative
countryJSONOptional
country (anyOf 1)stringAlternativeThe two-letter ISO code representing the country the bank account is located in.
Maximum length: 2
Minimum length: 2
country (anyOf 2)nullAlternative
errorsJSONOptional
errors (anyOf 1)arrayAlternativeInformation about errors encountered during the request.
errors (anyOf 1)[]ModelEach itemExpand Update Payment — request body — body payment Represents a payment processed by the Square API wallet details errors item
errors (anyOf 2)nullAlternative
fingerprintJSONOptional
fingerprint (anyOf 1)stringAlternativeUniquely identifies the bank account for this seller and can be used
to determine if payments are from the same bank account.
Maximum length: 255
fingerprint (anyOf 2)nullAlternative
statement_descriptionJSONOptional
statement_description (anyOf 1)stringAlternativeThe statement description as sent to the bank.
Maximum length: 1000
statement_description (anyOf 2)nullAlternative
transfer_typeJSONOptional
transfer_type (anyOf 1)stringAlternativeThe type of the bank transfer. The type can be `ACH` or `UNKNOWN`.
Maximum length: 50
transfer_type (anyOf 2)nullAlternative

Referenced models: Get Payment — response body — payment bank account details ach details account number suffix, account type, routing number, Update Payment — request body — body payment Represents a payment processed by the Square API wallet details errors item

Update Payment — request body — body payment Represents a payment processed by the Square API buy now pay later details

FieldTypePresenceDescription and constraints
$objectRootAdditional details about a Buy Now Pay Later payment type.
afterpay_detailsJSONOptional
afterpay_details (anyOf 1)ModelAlternativeExpand Get Payment — response body — payment buy now pay later details afterpay details Additional details about Afterpay payments
Details about an Afterpay payment. These details are only populated if the `brand` is
`AFTERPAY`.
afterpay_details (anyOf 2)nullAlternative
brandJSONOptional
brand (anyOf 1)stringAlternativeThe brand used for the Buy Now Pay Later payment.
The brand can be `AFTERPAY`, `CLEARPAY` or `UNKNOWN`.
Maximum length: 50
brand (anyOf 2)nullAlternative
clearpay_detailsJSONOptional
clearpay_details (anyOf 1)ModelAlternativeExpand Get Payment — response body — payment buy now pay later details clearpay details Additional details about Clearpay payments
Details about a Clearpay payment. These details are only populated if the `brand` is
`CLEARPAY`.
clearpay_details (anyOf 2)nullAlternative
errorsarrayOptionalInformation about errors encountered during the payment.
Read only: true
errors[]ModelEach itemExpand Update Payment — request body — body payment Represents a payment processed by the Square API wallet details errors item

Referenced models: Get Payment — response body — payment buy now pay later details afterpay details Additional details about Afterpay payments, Get Payment — response body — payment buy now pay later details clearpay details Additional details about Clearpay payments, Update Payment — request body — body payment Represents a payment processed by the Square API wallet details errors item

Update Payment — request body — body payment Represents a payment processed by the Square API card details application cryptogram, application identifier, application name, applied card surcharge details, auth result code, avs status, card, card payment timeline, cvv status, device details, entry method, errors, refund requires card presence, statement description, status, verification method, verification results, wallet type

FieldTypePresenceDescription and constraints
$objectRootReflects the current status of a card payment. Contains only non-confidential information.
application_cryptogramstringOptionalFor EMV payments, the cryptogram generated for the payment.
Maximum length: 16
Read only: true
application_identifierstringOptionalFor EMV payments, the application ID identifies the EMV application used for the payment.
Maximum length: 32
Read only: true
application_namestringOptionalFor EMV payments, the human-readable name of the EMV application used for the payment.
Maximum length: 16
Read only: true
applied_card_surcharge_detailsModelOptionalExpand Update Payment — request body — body payment Represents a payment processed by the Square API card details application cryptogram, application identifier, application name, applied card surcharge details, auth result code, avs status, card, card payment timeline, cvv status, device details, entry method, errors, refund requires card presence, statement description, status, verification method, verification results, wallet type applied card surcharge details
Additional information about a card_surcharge on the payment.
Read only: true
auth_result_codestringOptionalThe status code returned by the card issuer that describes the payment's
authorization status.
Maximum length: 10
Read only: true
avs_statusstringOptionalThe status code returned from the Address Verification System (AVS) check. The code can be
`AVS_ACCEPTED`, `AVS_REJECTED`, or `AVS_NOT_CHECKED`.
Maximum length: 50
Read only: true
cardModelOptionalExpand Create Card — request body — body card
The credit card's non-confidential details.
Read only: true
card_payment_timelineModelOptionalExpand Get Payment — response body — payment card details application cryptogram, application identifier, application name, applied card surcharge details, auth result code, avs status, card, card payment timeline, cvv status, device details, entry method, errors, refund requires card presence, statement description, status, verification method, verification results, wallet type card payment timeline
The timeline for card payments.
Read only: true
cvv_statusstringOptionalThe status code returned from the Card Verification Value (CVV) check. The code can be
`CVV_ACCEPTED`, `CVV_REJECTED`, or `CVV_NOT_CHECKED`.
Maximum length: 50
Read only: true
device_detailsJSONOptional
device_details (anyOf 1)ModelAlternativeExpand Get Payment — response body — payment device details
__Deprecated__: Use `Payment.device_details` instead.

Details about the device that took the payment.
device_details (anyOf 2)nullAlternative
entry_methodstringOptionalThe method used to enter the card's details for the payment. The method can be
`KEYED`, `SWIPED`, `EMV`, `ON_FILE`, or `CONTACTLESS`.
Maximum length: 50
Read only: true
errorsarrayOptionalInformation about errors encountered during the request.
Read only: true
errors[]ModelEach itemExpand Update Payment — request body — body payment Represents a payment processed by the Square API wallet details errors item
refund_requires_card_presencebooleanOptionalWhether the card must be physically present for the payment to
be refunded. If set to `true`, the card must be present.
Read only: true
statement_descriptionstringOptionalThe statement description sent to the card networks.

Note: The actual statement description varies and is likely to be truncated and appended with
additional information on a per issuer basis.
Maximum length: 50
Read only: true
statusstringOptionalThe card payment's current state. The state can be AUTHORIZED, CAPTURED, VOIDED, or
FAILED.
Maximum length: 50
Read only: true
verification_methodstringOptionalFor EMV payments, the method used to verify the cardholder's identity. The method can be
`PIN`, `SIGNATURE`, `PIN_AND_SIGNATURE`, `ON_DEVICE`, or `NONE`.
Maximum length: 50
Read only: true
verification_resultsstringOptionalFor EMV payments, the results of the cardholder verification. The result can be
`SUCCESS`, `FAILURE`, or `UNKNOWN`.
Maximum length: 50
Read only: true
wallet_typestringOptionalThe type of digital wallet used for this card payment, if applicable.
Currently only populated for in-person Apple Pay payments. Detection has no false
positives but may have false negatives (some Apple Pay payments may not be detected).

For payments with `source_type` of `WALLET`, see `DigitalWalletDetails` instead.

Values: `APPLE_PAY`
Maximum length: 50
Read only: true

Referenced models: Create Card — request body — body card, Get Payment — response body — payment card details application cryptogram, application identifier, application name, applied card surcharge details, auth result code, avs status, card, card payment timeline, cvv status, device details, entry method, errors, refund requires card presence, statement description, status, verification method, verification results, wallet type card payment timeline, Update Payment — request body — body payment Represents a payment processed by the Square API card details application cryptogram, application identifier, application name, applied card surcharge details, auth result code, avs status, card, card payment timeline, cvv status, device details, entry method, errors, refund requires card presence, statement description, status, verification method, verification results, wallet type applied card surcharge details, Get Payment — response body — payment device details, Update Payment — request body — body payment Represents a payment processed by the Square API wallet details errors item

Update Payment — request body — body payment Represents a payment processed by the Square API card details application cryptogram, application identifier, application name, applied card surcharge details, auth result code, avs status, card, card payment timeline, cvv status, device details, entry method, errors, refund requires card presence, statement description, status, verification method, verification results, wallet type applied card surcharge details

FieldTypePresenceDescription and constraints
$objectRootDetails related to an attempt to apply a card surcharge to this payment. When surcharge
eligibility is not known in advance, such as when the card type (debit or credit) is required
to make the eligibility determination, proposed_card_surcharge_money and
proposed_additional_amount_money will match the values in the request, while card_surcharge_money
and additional_amount_money are present only when the payment has a surcharge applied.
card_surcharge_moneyJSONOptional
card_surcharge_money (anyOf 1)ModelAlternativeExpand Create Payment — request body — body tip money
A specific surcharge levied by the merchant, if a card payment is used, instead of cash or
some other payment type. Should only include the base surcharge amount. Any additional fees related
to the surcharge (e.g. taxes on the surcharge) should only be included in the additional_amount_money.
This amount is 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 currency code must match the currency associated with the business that is accepting the
payment.
card_surcharge_money (anyOf 2)nullAlternative

Referenced models: Create Payment — request body — body tip money

Update Payment — request body — body payment Represents a payment processed by the Square API electronic money details Details specific to electronic money payments

FieldTypePresenceDescription and constraints
$objectRootDetails specific to electronic money payments.
felica_detailsJSONOptional
felica_details (anyOf 1)ModelAlternativeExpand Update Payment — request body — body payment Represents a payment processed by the Square API electronic money details Details specific to electronic money payments felica details Details for Felica payments
Details specific to FeliCa payments.
felica_details (anyOf 2)nullAlternative

Referenced models: Update Payment — request body — body payment Represents a payment processed by the Square API electronic money details Details specific to electronic money payments felica details Details for Felica payments

Update Payment — request body — body payment Represents a payment processed by the Square API electronic money details Details specific to electronic money payments felica details Details for Felica payments

FieldTypePresenceDescription and constraints
$objectRootDetails for Felica payments.
felica_brandJSONOptional
felica_brand (anyOf 1)stringAlternativeA Felica card's "sub-brand"--the actual brand on the Felica card
The Felica sub-brand of the payment.
See [FelicaBrand](#type-felicabrand) for possible values
One of: UNKNOWN, FELICA_ID, FELICA_TRANSPORTATION, FELICA_QP
felica_brand (anyOf 2)nullAlternative
felica_masked_card_numberJSONOptional
felica_masked_card_number (anyOf 1)stringAlternativeThe masked card number for a Felica payment.
felica_masked_card_number (anyOf 2)nullAlternative
terminal_idJSONOptional
terminal_id (anyOf 1)stringAlternativeThe terminal id for a Felica payment.
Maximum length: 255
terminal_id (anyOf 2)nullAlternative

Update Payment — request body — body payment Represents a payment processed by the Square API processing fee item

FieldTypePresenceDescription and constraints
$objectRootRepresents the Square processing fee.
amount_moneyJSONOptional
amount_money (anyOf 1)ModelAlternativeExpand Create Payment — request body — body tip money
The fee amount, which might be negative, that is assessed or adjusted by Square.

Positive values represent funds being assessed, while negative values represent
funds being returned.
amount_money (anyOf 2)nullAlternative
effective_atJSONOptional
effective_at (anyOf 1)stringAlternativeThe timestamp of when the fee takes effect, in RFC 3339 format.
effective_at (anyOf 2)nullAlternative
typeJSONOptional
type (anyOf 1)stringAlternativeThe type of fee assessed or adjusted. The fee type can be `INITIAL` or `ADJUSTMENT`.
type (anyOf 2)nullAlternative

Referenced models: Create Payment — request body — body tip money

Update Payment — request body — body payment Represents a payment processed by the Square API risk evaluation

FieldTypePresenceDescription and constraints
$objectRootRepresents fraud risk information for the associated payment.

When you take a payment through Square's Payments API (using the `CreatePayment`
endpoint), Square evaluates it and assigns a risk level to the payment. Sellers
can use this information to determine the course of action (for example,
provide the goods/services or refund the payment).
created_atstringOptionalThe timestamp when payment risk was evaluated, in RFC 3339 format.
Read only: true
risk_levelJSONOptional
risk_level (anyOf 1)stringAlternativeThe risk level associated with the payment
See [RiskEvaluationRiskLevel](#type-riskevaluationrisklevel) for possible values
One of: PENDING, NORMAL, MODERATE, HIGH
risk_level (anyOf 2)nullAlternative

Update Payment — request body — body payment Represents a payment processed by the Square API square account details

FieldTypePresenceDescription and constraints
$objectRootAdditional details about Square Account payments.
errorsJSONOptional
errors (anyOf 1)arrayAlternativeInformation about errors encountered during the request.
errors (anyOf 1)[]ModelEach itemExpand Update Payment — request body — body payment Represents a payment processed by the Square API wallet details errors item
errors (anyOf 2)nullAlternative
payment_source_tokenJSONOptional
payment_source_token (anyOf 1)stringAlternativeUnique identifier for the payment source used for this payment.
Maximum length: 255
payment_source_token (anyOf 2)nullAlternative

Referenced models: Update Payment — request body — body payment Represents a payment processed by the Square API wallet details errors item

Update Payment — request body — body payment Represents a payment processed by the Square API wallet details

FieldTypePresenceDescription and constraints
$objectRootAdditional details about `WALLET` type payments. Contains only non-confidential information.
brandJSONOptional
brand (anyOf 1)stringAlternativeThe brand used for the `WALLET` payment. The brand can be `CASH_APP`, `PAYPAY`, `ALIPAY`,
`RAKUTEN_PAY`, `AU_PAY`, `D_BARAI`, `MERPAY`, `WECHAT_PAY`, `LIGHTNING` or `UNKNOWN`.
Maximum length: 50
brand (anyOf 2)nullAlternative
cash_app_detailsJSONOptional
cash_app_details (anyOf 1)ModelAlternativeExpand Get Payment — response body — payment wallet details cash app details buyer cashtag, buyer country code, buyer full name
Brand-specific details for payments with the `brand` of `CASH_APP`.
cash_app_details (anyOf 2)nullAlternative
errorsarrayOptionalInformation about errors encountered during the payment.
Read only: true
errors[]ModelEach itemExpand Update Payment — request body — body payment Represents a payment processed by the Square API wallet details errors item
lightning_detailsJSONOptional
lightning_details (anyOf 1)ModelAlternativeExpand Get Payment — response body — payment wallet details lightning details payment url
Brand-specific details for payments with the `brand` of `LIGHTNING`.
lightning_details (anyOf 2)nullAlternative
statusJSONOptional
status (anyOf 1)stringAlternativeThe status of the `WALLET` payment. The status can be `AUTHORIZED`, `CAPTURED`, `VOIDED`, or
`FAILED`.
Maximum length: 50
status (anyOf 2)nullAlternative

Referenced models: Get Payment — response body — payment wallet details cash app details buyer cashtag, buyer country code, buyer full name, Update Payment — request body — body payment Represents a payment processed by the Square API wallet details errors item, Get Payment — response body — payment wallet details lightning details payment url

Update Payment — request body — body payment Represents a payment processed by the Square API wallet details errors item

FieldTypePresenceDescription and constraints
$objectRootRepresents an error encountered during a request to the Connect API.

See [Handling errors](https://developer.squareup.com/docs/build-basics/handling-errors) for more information.
categorystringRequired within parentIndicates which high-level category of error has occurred during a
request to the Connect API.
The high-level category for the error.
See [ErrorCategory](#type-errorcategory) for possible values
One of: API_ERROR, AUTHENTICATION_ERROR, INVALID_REQUEST_ERROR, RATE_LIMIT_ERROR, PAYMENT_METHOD_ERROR, REFUND_ERROR, MERCHANT_SUBSCRIPTION_ERROR, EXTERNAL_VENDOR_ERROR
codeModelRequired within parentExpand Update Payment — request body — body payment Represents a payment processed by the Square API wallet details errors item code
The specific code of the error.
See [ErrorCode](#type-errorcode) for possible values
detailstringOptionalA human-readable description of the error for debugging purposes.
fieldstringOptionalThe name of the field provided in the original request (if any) that
the error pertains to.

Referenced models: Update Payment — request body — body payment Represents a payment processed by the Square API wallet details errors item code

Update Payment — request body — body payment Represents a payment processed by the Square API wallet details errors item code

FieldTypePresenceDescription and constraints
$stringRootIndicates the specific error that occurred during a request to a
Square API.
One of: INTERNAL_SERVER_ERROR, UNAUTHORIZED, ACCESS_TOKEN_EXPIRED, ACCESS_TOKEN_REVOKED, CLIENT_DISABLED, FORBIDDEN, INSUFFICIENT_SCOPES, APPLICATION_DISABLED, V1_APPLICATION, V1_ACCESS_TOKEN, CARD_PROCESSING_NOT_ENABLED, MERCHANT_SUBSCRIPTION_NOT_FOUND, BAD_REQUEST, MISSING_REQUIRED_PARAMETER, INCORRECT_TYPE, INVALID_TIME, INVALID_TIME_RANGE, INVALID_VALUE, INVALID_CURSOR, UNKNOWN_QUERY_PARAMETER, CONFLICTING_PARAMETERS, EXPECTED_JSON_BODY, INVALID_SORT_ORDER, VALUE_REGEX_MISMATCH, VALUE_TOO_SHORT, VALUE_TOO_LONG, VALUE_TOO_LOW, VALUE_TOO_HIGH, VALUE_EMPTY, ARRAY_LENGTH_TOO_LONG, ARRAY_LENGTH_TOO_SHORT, ARRAY_EMPTY, EXPECTED_BOOLEAN, EXPECTED_INTEGER, EXPECTED_FLOAT, EXPECTED_STRING, EXPECTED_OBJECT, EXPECTED_ARRAY, EXPECTED_MAP, EXPECTED_BASE64_ENCODED_BYTE_ARRAY, INVALID_ARRAY_VALUE, INVALID_ENUM_VALUE, INVALID_CONTENT_TYPE, INVALID_FORM_VALUE, CUSTOMER_NOT_FOUND, ONE_INSTRUMENT_EXPECTED, NO_FIELDS_SET, TOO_MANY_MAP_ENTRIES, MAP_KEY_LENGTH_TOO_SHORT, MAP_KEY_LENGTH_TOO_LONG, CUSTOMER_MISSING_NAME, CUSTOMER_MISSING_EMAIL, INVALID_PAUSE_LENGTH, INVALID_DATE, UNSUPPORTED_COUNTRY, UNSUPPORTED_CURRENCY, APPLE_TTP_PIN_TOKEN, CARD_EXPIRED, INVALID_EXPIRATION, INVALID_EXPIRATION_YEAR, INVALID_EXPIRATION_DATE, UNSUPPORTED_CARD_BRAND, UNSUPPORTED_ENTRY_METHOD, INVALID_ENCRYPTED_CARD, INVALID_CARD, PAYMENT_AMOUNT_MISMATCH, GENERIC_DECLINE, CVV_FAILURE, ADDRESS_VERIFICATION_FAILURE, INVALID_ACCOUNT, CURRENCY_MISMATCH, INSUFFICIENT_FUNDS, INSUFFICIENT_PERMISSIONS, CARDHOLDER_INSUFFICIENT_PERMISSIONS, INVALID_LOCATION, TRANSACTION_LIMIT, VOICE_FAILURE, PAN_FAILURE, EXPIRATION_FAILURE, CARD_NOT_SUPPORTED, READER_DECLINED, INVALID_PIN, MISSING_PIN, MISSING_ACCOUNT_TYPE, INVALID_POSTAL_CODE, INVALID_FEES, MANUALLY_ENTERED_PAYMENT_NOT_SUPPORTED, PAYMENT_LIMIT_EXCEEDED, GIFT_CARD_AVAILABLE_AMOUNT, ACCOUNT_UNUSABLE, BUYER_REFUSED_PAYMENT, DELAYED_TRANSACTION_EXPIRED, DELAYED_TRANSACTION_CANCELED, DELAYED_TRANSACTION_CAPTURED, DELAYED_TRANSACTION_FAILED, CARD_TOKEN_EXPIRED, CARD_TOKEN_USED, AMOUNT_TOO_HIGH, AMOUNT_TOO_LOW, UNSUPPORTED_INSTRUMENT_TYPE, REFUND_AMOUNT_INVALID, REFUND_ALREADY_PENDING, PAYMENT_NOT_REFUNDABLE, PAYMENT_NOT_REFUNDABLE_DUE_TO_DISPUTE, REFUND_ERROR_PAYMENT_NEEDS_COMPLETION, REFUND_DECLINED, INSUFFICIENT_PERMISSIONS_FOR_REFUND, INVALID_CARD_DATA, SOURCE_USED, SOURCE_EXPIRED, UNSUPPORTED_LOYALTY_REWARD_TIER, LOCATION_MISMATCH, ORDER_UNPAID_NOT_RETURNABLE, PARTIAL_PAYMENT_DELAY_CAPTURE_NOT_SUPPORTED, IDEMPOTENCY_KEY_REUSED, UNEXPECTED_VALUE, SANDBOX_NOT_SUPPORTED, INVALID_EMAIL_ADDRESS, INVALID_PHONE_NUMBER, CHECKOUT_EXPIRED, BAD_CERTIFICATE, INVALID_SQUARE_VERSION_FORMAT, API_VERSION_INCOMPATIBLE, CARD_PRESENCE_REQUIRED, UNSUPPORTED_SOURCE_TYPE, CARD_MISMATCH, PLAID_ERROR, PLAID_ERROR_ITEM_LOGIN_REQUIRED, PLAID_ERROR_RATE_LIMIT, PLAID_ERROR_INVALID_ACCESS_TOKEN, PLAID_ERROR_INVALID_ACCOUNT_ID, PLAID_ERROR_NO_ACCOUNTS, PLAID_ERROR_ITEM_NOT_FOUND, PLAID_ERROR_INSUFFICIENT_CREDENTIALS, PLAID_ERROR_ITEM_NOT_SUPPORTED, PLAID_ERROR_PRODUCT_NOT_READY, PAYMENT_SOURCE_NOT_ENABLED_FOR_TARGET, CARD_DECLINED, VERIFY_CVV_FAILURE, VERIFY_AVS_FAILURE, CARD_DECLINED_CALL_ISSUER, CARD_DECLINED_VERIFICATION_REQUIRED, BAD_EXPIRATION, CHIP_INSERTION_REQUIRED, ALLOWABLE_PIN_TRIES_EXCEEDED, RESERVATION_DECLINED, UNKNOWN_BODY_PARAMETER, CART_INELIGIBLE_FOR_EBT, NOT_FOUND, APPLE_PAYMENT_PROCESSING_CERTIFICATE_HASH_NOT_FOUND, METHOD_NOT_ALLOWED, NOT_ACCEPTABLE, REQUEST_TIMEOUT, CONFLICT, GONE, REQUEST_ENTITY_TOO_LARGE, UNSUPPORTED_MEDIA_TYPE, UNPROCESSABLE_ENTITY, RATE_LIMITED, NOT_IMPLEMENTED, BAD_GATEWAY, SERVICE_UNAVAILABLE, TEMPORARY_ERROR, GATEWAY_TIMEOUT

Update Payment — response body

FieldTypePresenceDescription and constraints
$objectRootDefines the response returned by
[UpdatePayment](api-endpoint:Payments-UpdatePayment).
errorsarrayOptionalAny errors that occurred during the request.
errors[]ModelEach itemExpand Get Shift — response body — errors item
paymentModelOptionalExpand Get Payment — response body — payment
The updated payment.

Referenced models: Get Shift — response body — errors item, Get Payment — response body — payment

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.