Purchases Refund

View as Markdown
Refund a purchase

Authentication

x-api-keystring

API key generated from the dashboard (Settings → API Keys).

Path parameters

purchaseIdstringRequiredformat: "uuid"

Request

This endpoint expects an object.
refundTypeenumRequired
Allowed values:
confirmedbooleanOptional

Response

Successful response
successboolean
messagestring
confirmation_requiredbooleanDefaults to false
warningstringDefaults to
awaiting_whitelistbooleanDefaults to false
can_retrybooleanDefaults to false
whitelist_csvstringDefaults to

Errors

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
500
Internal Server Error