POST /v2/terminals/refunds
Creates a request to refund an Interac payment completed on a Square Terminal.
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 |
---|---|---|---|
refund |
Object | No | |
refund.cancel_reason |
String | No |
Present if the status is |
refund.deadline_duration |
String | No |
The RFC 3339 duration, after which the refund is automatically canceled.
A Default: 5 minutes from creation. Maximum: 5 minutes |
refund.app_id |
String | No |
The ID of the application that created the refund. |
refund.status |
String | No |
The status of the |
refund.payment_id |
String | Yes |
The unique ID of the payment being refunded. |
refund.updated_at |
String | No |
The time when the |
refund.id |
String | No |
A unique ID for this |
refund.location_id |
String | No |
The location of the device where the |
refund.order_id |
String | No |
The reference to the Square order ID for the payment identified by the |
refund.refund_id |
String | No |
The reference to the payment refund created by completing this |
refund.device_id |
String | No |
The unique ID of the device intended for this |
refund.created_at |
String | No |
The time when the |
refund.reason |
String | No |
A description of the reason for the refund. Note: maximum 192 characters |
refund.amount_money |
Object | Yes |
Represents an amount of money. |
refund.amount_money.amount |
Integer | No |
The amount of money, in the smallest denomination of the currency
indicated by |
refund.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 See Idempotency keys for more information. |
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.