POST /v2/refunds
Refunds a payment. You can refund the entire payment amount or a portion of it. You can use this endpoint to refund a card payment or record a refund of a cash or external payment. For more information, see Refund Payment.
Servers
- https://connect.squareup.com
Request headers
Name | Type | Required | Description |
---|---|---|---|
Content-Type |
String | Yes |
The media type of the request body.
Default value: "application/json" |
Request body fields
Name | Type | Required | Description |
---|---|---|---|
app_fee_money |
Object | No |
Represents an amount of money. |
app_fee_money.amount |
Integer | No |
The amount of money, in the smallest denomination of the currency
indicated by |
app_fee_money.currency |
String | No |
The type of currency, in ISO 4217 format. For example, the currency
code for US dollars is See Currency for possible values. |
payment_id |
String | Yes |
The unique ID of the payment being refunded. |
reason |
String | No |
A description of the reason for the refund. |
amount_money |
Object | Yes |
Represents an amount of money. |
amount_money.amount |
Integer | No |
The amount of money, in the smallest denomination of the currency
indicated by |
amount_money.currency |
String | No |
The type of currency, in ISO 4217 format. For example, the currency
code for US dollars is See Currency for possible values. |
idempotency_key |
String | Yes |
A unique string that identifies this For more information, see Idempotency. |
How to start integrating
- Add HTTP Task to your workflow definition.
- Search for the API you want to integrate with and click on the name.
- This loads the API reference documentation and prepares the Http request settings.
- Click Test request to test run your request to the API and see the API's response.