Square: Refunds schemas
11 Square schemas with complete fields and constraints.
← Refunds operations · All schemas
Get Payment Refund — response body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Defines 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. |
errors | array | Optional | Information about errors encountered during the request. |
errors[] | Model | Each item | Expand Get Shift — response body — errors item |
refund | Model | Optional | Expand 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
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Defines the response returned by [ListPaymentRefunds](api-endpoint:Refunds-ListPaymentRefunds). Either `errors` or `refunds` is present in a given response (never both). |
cursor | string | Optional | The 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). |
errors | array | Optional | Information about errors encountered during the request. |
errors[] | Model | Each item | Expand Get Shift — response body — errors item |
refunds | array | Optional | The list of requested refunds. |
refunds[] | Model | Each item | Expand Refund Payment — response body — refund |
Referenced models: Get Shift — response body — errors item, Refund Payment — response body — refund
Refund Payment — request body — body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Describes a request to refund a payment using [RefundPayment](api-endpoint:Refunds-RefundPayment). |
amount_money | Model | Required within parent | Expand 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_allocations | JSON | Optional | |
app_fee_allocations (anyOf 1) | array | Alternative | Details 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)[] | Model | Each item | Expand Create Payment — request body — body app fee allocations item |
app_fee_allocations (anyOf 2) | null | Alternative | |
app_fee_money | JSON | Optional | |
app_fee_money (anyOf 1) | Model | Alternative | Expand 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) | null | Alternative | |
cash_details | JSON | Optional | |
cash_details (anyOf 1) | Model | Alternative | Expand 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) | null | Alternative | |
customer_id | JSON | Optional | |
customer_id (anyOf 1) | string | Alternative | The [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) | null | Alternative | |
destination_id | JSON | Optional | |
destination_id (anyOf 1) | string | Alternative | The 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) | null | Alternative | |
external_details | JSON | Optional | |
external_details (anyOf 1) | Model | Alternative | Expand 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) | null | Alternative | |
idempotency_key | string | Required within parent | A 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_id | JSON | Optional | |
location_id (anyOf 1) | string | Alternative | The 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) | null | Alternative | |
payment_id | JSON | Optional | |
payment_id (anyOf 1) | string | Alternative | The unique ID of the payment being refunded. Required when unlinked=false, otherwise must not be set. |
payment_id (anyOf 2) | null | Alternative | |
payment_version_token | JSON | Optional | |
payment_version_token (anyOf 1) | string | Alternative | Used 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) | null | Alternative | |
reason | JSON | Optional | |
reason (anyOf 1) | string | Alternative | A description of the reason for the refund. Maximum length: 192 |
reason (anyOf 2) | null | Alternative | |
team_member_id | JSON | Optional | |
team_member_id (anyOf 1) | string | Alternative | An optional [TeamMember](entity:TeamMember) ID to associate with this refund. Maximum length: 192 |
team_member_id (anyOf 2) | null | Alternative | |
unlinked | JSON | Optional | |
unlinked (anyOf 1) | boolean | Alternative | Indicates 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) | null | Alternative |
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
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Stores details about a cash refund. Contains only non-confidential information. |
change_back_money | Model | Optional | Expand 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_money | Model | Required within parent | Expand 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
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Stores details about an external refund. Contains only non-confidential information. |
source | string | Required within parent | A description of the external refund source. For example, "Food Delivery Service". Maximum length: 255 |
source_id | JSON | Optional | |
source_id (anyOf 1) | string | Alternative | An ID to associate the refund to its originating source. Maximum length: 255 |
source_id (anyOf 2) | null | Alternative | |
type | string | Required within parent | The 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
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Defines 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`. |
errors | array | Optional | Information about errors encountered during the request. |
errors[] | Model | Each item | Expand Get Shift — response body — errors item |
refund | Model | Optional | Expand 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
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Represents a refund of a payment made using Square. Contains information about the original payment and the amount of money refunded. |
amount_money | Model | Required within parent | Expand 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_allocations | array | Optional | Details pertaining to contributors to the refund of the application fee. Read only: true |
app_fee_allocations[] | Model | Each item | Expand Refund Payment — response body — refund app fee allocations item |
app_fee_money | JSON | Optional | |
app_fee_money (anyOf 1) | Model | Alternative | Expand 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) | null | Alternative | |
created_at | string | Optional | The timestamp of when the refund was created, in RFC 3339 format. Maximum length: 32 Read only: true |
destination_details | Model | Optional | Expand 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_type | JSON | Optional | |
destination_type (anyOf 1) | string | Alternative | The 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) | null | Alternative | |
id | string | Required within parent | The unique ID for this refund, generated by Square. Maximum length: 255 Minimum length: 1 |
location_id | JSON | Optional | |
location_id (anyOf 1) | string | Alternative | The location ID associated with the payment this refund is attached to. Maximum length: 50 |
location_id (anyOf 2) | null | Alternative | |
order_id | JSON | Optional | |
order_id (anyOf 1) | string | Alternative | The ID of the order associated with the refund. Maximum length: 192 |
order_id (anyOf 2) | null | Alternative | |
payment_id | JSON | Optional | |
payment_id (anyOf 1) | string | Alternative | The ID of the payment associated with this refund. Maximum length: 192 |
payment_id (anyOf 2) | null | Alternative | |
processing_fee | JSON | Optional | |
processing_fee (anyOf 1) | array | Alternative | Processing fees and fee adjustments assessed by Square for this refund. |
processing_fee (anyOf 1)[] | Model | Each item | Expand Get Payment — response body — payment processing fee item |
processing_fee (anyOf 2) | null | Alternative | |
reason | JSON | Optional | |
reason (anyOf 1) | string | Alternative | The reason for the refund. Maximum length: 192 |
reason (anyOf 2) | null | Alternative | |
status | JSON | Optional | |
status (anyOf 1) | string | Alternative | The refund's status: - `PENDING` - Awaiting approval. - `COMPLETED` - Successfully completed. - `REJECTED` - The refund was rejected. - `FAILED` - An error occurred. Maximum length: 50 |
status (anyOf 2) | null | Alternative | |
team_member_id | string | Optional | An optional ID of the team member associated with taking the payment. Maximum length: 192 Read only: true |
terminal_refund_id | string | Optional | An optional ID for a Terminal refund. Read only: true |
unlinked | boolean | Optional | Flag indicating whether or not the refund is linked to an existing payment in Square. Read only: true |
updated_at | string | Optional | The 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
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | One recipient location's portion of the application fee. |
location_id | string | Optional | The location receiving this application-fee allocation. |
amount_money | Model | Optional | Expand Pay Order — response body — order total money |
Referenced models: Pay Order — response body — order total money
Refund Payment — response body — refund destination details
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Details about a refund's destination. |
card_details | JSON | Optional | |
card_details (anyOf 1) | Model | Alternative | Expand 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) | null | Alternative | |
cash_details | JSON | Optional | |
cash_details (anyOf 1) | Model | Alternative | Expand 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) | null | Alternative | |
external_details | JSON | Optional | |
external_details (anyOf 1) | Model | Alternative | Expand 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) | null | Alternative |
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
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | |
auth_result_code | JSON | Optional | |
auth_result_code (anyOf 1) | string | Alternative | The authorization code provided by the issuer when a refund is approved. Maximum length: 10 |
auth_result_code (anyOf 2) | null | Alternative | |
card | JSON | Optional | |
card (anyOf 1) | Model | Alternative | Expand Create Card — response body — card The card's non-confidential details. |
card (anyOf 2) | null | Alternative | |
entry_method | JSON | Optional | |
entry_method (anyOf 1) | string | Alternative | The 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) | null | Alternative |
Referenced models: Create Card — response body — card
Refund Payment — response body — refund destination details cash details change back money, seller supplied money
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Stores details about a cash refund. Contains only non-confidential information. |
change_back_money | Model | Optional | Expand 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_money | Model | Required within parent | Expand 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