Skip to main content
POST
Record a refund

Authorizations

x-api-key
string
header
required

Your Store API key (pk_live_...). Create it in Developers › API keys.

x-store-hash
string
header
required

The ID of the store the request is for. Shown in Developers › API keys.

Headers

Idempotency-Key
string

Unique key (for example a UUID) that makes retries safe. The first response is stored for 24 hours and replayed for retries with the same key and body.

Maximum string length: 255

Path Parameters

invoiceId
string
required

Public order ID.

Example:

"c35ffd-19a1b2c3d4e-8c7a20"

Body

application/json
amount_cents
integer

Defaults to the rest of the order.

Required range: x >= 1
reason
string
Maximum string length: 1000

Response

Refund recorded

success
boolean
required
Example:

true

invoice
object
refund
object