POST /v1/refunds
POST
/v1/refundsAuthorization
x-api-keyAPI key · headerrequiredor
AuthorizationBearer token · headerrequiredQuery parameters
environmentstringAllowed:
sandboxproductionmerchantAccountIdstringmin length 1
Header parameters
Idempotency-KeystringRequired for production-safe retries on mutating routes. Reusing a key with a different request body returns 409.
min length 1
Request body
requiredapplication/jsonenvironmentstring | nullShow propertiesHide properties
Any of:
string
stringnull
nullmerchantAccountIdstring | nullShow propertiesHide properties
Any of:
string
stringnull
nullpaymentIdstringrequiredmin length 1
amountnumberrequiredreasonstringrequiredmin length 1
requestedByTypestringrequiredAllowed:
systemoperatormerchantrequestedByRefstringrequiredmin length 1
idempotencyKeystring | nullShow propertiesHide properties
Any of:
string
stringnull
nullResponses
201
Success
dataobjectrequiredShow propertiesHide properties
idstringrequiredmin length 1
merchantAccountIdstringrequiredmin length 1
paymentIdstringrequiredmin length 1
amountnumberrequiredcurrencystringrequiredmin length 1
statusstringrequiredAllowed:
pendingsucceededfailedreasonstringrequiredmin length 1
terminalSessionIdstring | nullShow propertiesHide properties
Any of:
string
stringnull
nullterminalReaderIdstring | nullShow propertiesHide properties
Any of:
string
stringnull
nullrequestIdstringrequiredmin length 1