Skip to content

Square: Refunds schemas

11 Square schemas with complete fields and constraints.

← Refunds operations · All schemas

Get Payment Refund — response body

FieldTypePresenceDescription and constraints
$objectRootDefines the response returned by [GetRefund](api-endpoint:Refunds-GetPaymentRefund).

Note: If there are errors processing the request, the refund field might not be
present or it might be present in a FAILED state.
errorsarrayOptionalInformation about errors encountered during the request.
errors[]ModelEach itemExpand Get Shift — response body — errors item
refundModelOptionalExpand Refund Payment — response body — refund
The requested `PaymentRefund`.

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

List Payment Refunds — response body

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

Either `errors` or `refunds` is present in a given response (never both).
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
refundsarrayOptionalThe list of requested refunds.
refunds[]ModelEach itemExpand Refund Payment — response body — refund

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

Refund Payment — request body — body

FieldTypePresenceDescription and constraints
$objectRootDescribes a request to refund a payment using [RefundPayment](api-endpoint:Refunds-RefundPayment).
amount_moneyModelRequired within parentExpand Create Payment — request body — body tip money
The amount of money to refund.

This amount cannot be more than the `total_money` value of the payment minus the total
amount of all previously completed refunds for this payment.

This 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 charging the card.
app_fee_allocationsJSONOptional
app_fee_allocations (anyOf 1)arrayAlternativeDetails pertaining to contributors to the refund 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 contribute
a portion of the refunded application fee, including the application developer.
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 of money the developer contributes to help cover the refunded amount.
This amount is specified in the smallest denomination of the applicable currency (for example,
US dollar amounts are specified in cents).

The value cannot be more than the `amount_money`.

You can specify this parameter in a refund request only if the same parameter was also included
when taking the payment. This is part of the application fee scenario the API supports. For more
information, see [Take Payments and Collect Fees](https://developer.squareup.com/docs/payments-api/take-payments-and-collect-fees).

To set this field, `PAYMENTS_WRITE_ADDITIONAL_RECIPIENTS` OAuth permission is required.
For more information, see [Permissions](https://developer.squareup.com/docs/payments-api/take-payments-and-collect-fees#permissions).
app_fee_money (anyOf 2)nullAlternative
cash_detailsJSONOptional
cash_details (anyOf 1)ModelAlternativeExpand Refund Payment — request body — body cash details change back money, seller supplied money
Additional details required when recording an unlinked cash refund (`destination_id` is CASH).
cash_details (anyOf 2)nullAlternative
customer_idJSONOptional
customer_id (anyOf 1)stringAlternativeThe [Customer](entity:Customer) ID of the customer associated with the refund.
This is required if the `destination_id` refers to a card on file created using the Cards
API. Only allowed when `unlinked=true`.
customer_id (anyOf 2)nullAlternative
destination_idJSONOptional
destination_id (anyOf 1)stringAlternativeThe ID indicating where funds will be refunded to. Required for unlinked refunds. For more
information, see [Process an Unlinked Refund](https://developer.squareup.com/docs/refunds-api/unlinked-refunds).

For refunds linked to Square payments, `destination_id` is usually omitted; in this case, funds
will be returned to the original payment source. The field may be specified in order to request
a cross-method refund to a gift card. For more information,
see [Cross-method refunds to gift cards](https://developer.squareup.com/docs/payments-api/refund-payments#cross-method-refunds-to-gift-cards).
destination_id (anyOf 2)nullAlternative
external_detailsJSONOptional
external_details (anyOf 1)ModelAlternativeExpand Refund Payment — request body — body external details source, source id, type
Additional details required when recording an unlinked external refund
(`destination_id` is EXTERNAL).
external_details (anyOf 2)nullAlternative
idempotency_keystringRequired within parentA unique string that identifies this `RefundPayment` request. The key can be any valid string
but must be unique for every `RefundPayment` request.

Keys are limited to a max of 45 characters - however, the number of allowed characters might be
less than 45, if multi-byte characters are used.

For more information, see [Idempotency](https://developer.squareup.com/docs/working-with-apis/idempotency).
Minimum length: 1
location_idJSONOptional
location_id (anyOf 1)stringAlternativeThe location ID associated with the unlinked refund.
Required for requests specifying `unlinked=true`.
Otherwise, if included when `unlinked=false`, will throw an error.
Maximum length: 50
location_id (anyOf 2)nullAlternative
payment_idJSONOptional
payment_id (anyOf 1)stringAlternativeThe unique ID of the payment being refunded.
Required when unlinked=false, otherwise must not be set.
payment_id (anyOf 2)nullAlternative
payment_version_tokenJSONOptional
payment_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.
If the versions match, or the field is not provided, the refund proceeds as normal.
payment_version_token (anyOf 2)nullAlternative
reasonJSONOptional
reason (anyOf 1)stringAlternativeA description of the reason for the refund.
Maximum length: 192
reason (anyOf 2)nullAlternative
team_member_idJSONOptional
team_member_id (anyOf 1)stringAlternativeAn optional [TeamMember](entity:TeamMember) ID to associate with this refund.
Maximum length: 192
team_member_id (anyOf 2)nullAlternative
unlinkedJSONOptional
unlinked (anyOf 1)booleanAlternativeIndicates that the refund is not linked to a Square payment.
If set to true, `destination_id` and `location_id` must be supplied while `payment_id` must not
be provided.
unlinked (anyOf 2)nullAlternative

Referenced models: Create Payment — request body — body app fee allocations item, Refund Payment — request body — body cash details change back money, seller supplied money, Refund Payment — request body — body external details source, source id, type, Create Payment — request body — body tip money

Refund Payment — request body — body cash details change back money, seller supplied money

FieldTypePresenceDescription and constraints
$objectRootStores details about a cash refund. Contains only non-confidential information.
change_back_moneyModelOptionalExpand Create Payment — request body — body tip money
The amount of change due back to the seller.
This read-only field is calculated
from the `amount_money` and `seller_supplied_money` fields.
Read only: true
seller_supplied_moneyModelRequired within parentExpand Create Payment — request body — body tip money
The amount and currency of the money supplied by the seller.

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

Refund Payment — request body — body external details source, source id, type

FieldTypePresenceDescription and constraints
$objectRootStores details about an external refund. Contains only non-confidential information.
sourcestringRequired within parentA description of the external refund source. For example,
"Food Delivery Service".
Maximum length: 255
source_idJSONOptional
source_id (anyOf 1)stringAlternativeAn ID to associate the refund to its originating source.
Maximum length: 255
source_id (anyOf 2)nullAlternative
typestringRequired within parentThe type of external refund the seller paid to the buyer. It can be one of the
following:
- CHECK - Refunded using a physical check.
- BANK_TRANSFER - Refunded using external bank transfer.
- OTHER\_GIFT\_CARD - Refunded using a non-Square gift card.
- CRYPTO - Refunded using a crypto currency.
- SQUARE_CASH - Refunded using Square Cash App.
- SOCIAL - Refunded using peer-to-peer payment applications.
- EXTERNAL - A third-party application gathered this refund outside of Square.
- EMONEY - Refunded 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

Refund Payment — response body

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

If there are errors processing the request, the `refund` 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
refundModelOptionalExpand Refund Payment — response body — refund
The successfully created `PaymentRefund`.

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

Refund Payment — response body — refund

FieldTypePresenceDescription and constraints
$objectRootRepresents a refund of a payment made using Square. Contains information about
the original payment and the amount of money refunded.
amount_moneyModelRequired within parentExpand Pay Order — response body — order total money
The amount of money refunded. This amount is specified in the smallest denomination
of the applicable currency (for example, US dollar amounts are specified in cents).
app_fee_allocationsarrayOptionalDetails pertaining to contributors to the refund of the application fee.
Read only: true
app_fee_allocations[]ModelEach itemExpand Refund Payment — response body — refund app fee allocations item
app_fee_moneyJSONOptional
app_fee_money (anyOf 1)ModelAlternativeExpand Pay Order — response body — order total money
The amount of money the application developer contributed to help cover the refunded amount.
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).
app_fee_money (anyOf 2)nullAlternative
created_atstringOptionalThe timestamp of when the refund was created, in RFC 3339 format.
Maximum length: 32
Read only: true
destination_detailsModelOptionalExpand Refund Payment — response body — refund destination details
Contains information about the refund destination. This field is populated only if
`destination_id` is defined in the `RefundPayment` request.
Read only: true
destination_typeJSONOptional
destination_type (anyOf 1)stringAlternativeThe destination type for this refund.

Current values include `CARD`, `BANK_ACCOUNT`, `WALLET`, `BUY_NOW_PAY_LATER`, `CASH`,
`EXTERNAL`, and `SQUARE_ACCOUNT`.
Maximum length: 50
destination_type (anyOf 2)nullAlternative
idstringRequired within parentThe unique ID for this refund, generated by Square.
Maximum length: 255
Minimum length: 1
location_idJSONOptional
location_id (anyOf 1)stringAlternativeThe location ID associated with the payment this refund is attached to.
Maximum length: 50
location_id (anyOf 2)nullAlternative
order_idJSONOptional
order_id (anyOf 1)stringAlternativeThe ID of the order associated with the refund.
Maximum length: 192
order_id (anyOf 2)nullAlternative
payment_idJSONOptional
payment_id (anyOf 1)stringAlternativeThe ID of the payment associated with this refund.
Maximum length: 192
payment_id (anyOf 2)nullAlternative
processing_feeJSONOptional
processing_fee (anyOf 1)arrayAlternativeProcessing fees and fee adjustments assessed by Square for this refund.
processing_fee (anyOf 1)[]ModelEach itemExpand Get Payment — response body — payment processing fee item
processing_fee (anyOf 2)nullAlternative
reasonJSONOptional
reason (anyOf 1)stringAlternativeThe reason for the refund.
Maximum length: 192
reason (anyOf 2)nullAlternative
statusJSONOptional
status (anyOf 1)stringAlternativeThe refund's status:
- `PENDING` - Awaiting approval.
- `COMPLETED` - Successfully completed.
- `REJECTED` - The refund was rejected.
- `FAILED` - An error occurred.
Maximum length: 50
status (anyOf 2)nullAlternative
team_member_idstringOptionalAn optional ID of the team member associated with taking the payment.
Maximum length: 192
Read only: true
terminal_refund_idstringOptionalAn optional ID for a Terminal refund.
Read only: true
unlinkedbooleanOptionalFlag indicating whether or not the refund is linked to an existing payment in Square.
Read only: true
updated_atstringOptionalThe timestamp of when the refund was last updated, in RFC 3339 format.
Maximum length: 32
Read only: true

Referenced models: Refund Payment — response body — refund app fee allocations item, Refund Payment — response body — refund destination details, Pay Order — response body — order total money, Get Payment — response body — payment processing fee item

Refund Payment — response body — refund 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 Pay Order — response body — order total money

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

Refund Payment — response body — refund destination details

FieldTypePresenceDescription and constraints
$objectRootDetails about a refund's destination.
card_detailsJSONOptional
card_details (anyOf 1)ModelAlternativeExpand Refund Payment — response body — refund destination details card details auth result code, card, entry method
Details about a card refund. Only populated if the destination_type is `CARD`.
card_details (anyOf 2)nullAlternative
cash_detailsJSONOptional
cash_details (anyOf 1)ModelAlternativeExpand Refund Payment — response body — refund destination details cash details change back money, seller supplied money
Details about a cash refund. Only populated if the destination_type is `CASH`.
cash_details (anyOf 2)nullAlternative
external_detailsJSONOptional
external_details (anyOf 1)ModelAlternativeExpand Refund Payment — request body — body external details source, source id, type
Details about an external refund. Only populated if the destination_type is `EXTERNAL`.
external_details (anyOf 2)nullAlternative

Referenced models: Refund Payment — request body — body external details source, source id, type, Refund Payment — response body — refund destination details card details auth result code, card, entry method, Refund Payment — response body — refund destination details cash details change back money, seller supplied money

Refund Payment — response body — refund destination details card details auth result code, card, entry method

FieldTypePresenceDescription and constraints
$objectRoot
auth_result_codeJSONOptional
auth_result_code (anyOf 1)stringAlternativeThe authorization code provided by the issuer when a refund is approved.
Maximum length: 10
auth_result_code (anyOf 2)nullAlternative
cardJSONOptional
card (anyOf 1)ModelAlternativeExpand Create Card — response body — card
The card's non-confidential details.
card (anyOf 2)nullAlternative
entry_methodJSONOptional
entry_method (anyOf 1)stringAlternativeThe method used to enter the card's details for the refund. The method can be
`KEYED`, `SWIPED`, `EMV`, `ON_FILE`, or `CONTACTLESS`.
Maximum length: 50
entry_method (anyOf 2)nullAlternative

Referenced models: Create Card — response body — card

Refund Payment — response body — refund destination details cash details change back money, seller supplied money

FieldTypePresenceDescription and constraints
$objectRootStores details about a cash refund. Contains only non-confidential information.
change_back_moneyModelOptionalExpand Pay Order — response body — order total money
The amount of change due back to the seller.
This read-only field is calculated
from the `amount_money` and `seller_supplied_money` fields.
Read only: true
seller_supplied_moneyModelRequired within parentExpand Pay Order — response body — order total money
The amount and currency of the money supplied by the seller.

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

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.