CreateTerminalRefundRequest
Name | Type | Tags | Description |
---|---|---|---|
idempotencyKey |
string |
Required | A unique string that identifies this CreateRefund request. Keys can be any valid string butmust be unique for every CreateRefund request.See Idempotency keys for more information. Constraints: Minimum Length: 1 , Maximum Length: 64 |
refund |
TerminalRefund | undefined |
Optional | Represents a payment refund processed by the Square Terminal. Only supports Interac (Canadian debit network) payment refunds. |
{
"idempotency_key": "402a640b-b26f-401f-b406-46f839590c04",
"refund": {
"amount_money": {
"amount": 111,
"currency": "CAD"
},
"device_id": "f72dfb8e-4d65-4e56-aade-ec3fb8d33291",
"payment_id": "5O5OvgkcNUhl7JBuINflcjKqUzXZY",
"reason": "Returning items"
}
}