Skip to content

Latest commit

 

History

History
31 lines (23 loc) · 1.06 KB

create-terminal-refund-request.md

File metadata and controls

31 lines (23 loc) · 1.06 KB

Create Terminal Refund Request

Structure

CreateTerminalRefundRequest

Fields

Name Type Tags Description
idempotencyKey string Required A unique string that identifies this CreateRefund request. Keys can be any valid string but
must 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.

Example (as JSON)

{
  "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"
  }
}