Skip to main content
POST
Refund a charge
Refunds a paid charge, in full or in part, to the merchant’s wallet. Your payout wallet gives back the same share of what it received. See Refunds.

Authorizations

Authorization
string
header
required

Installed-app access token (prefix app_), issued by the OAuth install flow. The store is bound to the token server-side, never send a shop id.

Path Parameters

id
string
required

The charge id.

Body

application/json
idempotencyKey
string
required
Maximum string length: 120
amount
number

In the charge currency. Leave out to refund the rest.

reason
string

Shown to the merchant.

Maximum string length: 200

Response

A refund with this idempotencyKey already exists; it is returned.