POST /v1/invoices/{invoiceId}/refund
POST
/v1/invoices/{invoiceId}/refundAuthorization
x-api-keyAPI key · headerrequiredor
AuthorizationBearer token · headerrequiredPath parameters
invoiceIdstringrequiredmin length 1
Query 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
nullorganizationIdstring | nullShow propertiesHide properties
Any of:
string
stringnull
nullinvoiceIdstring | nullShow propertiesHide properties
Any of:
string
stringnull
nullpaymentIdstringrequiredmin length 1
amountnumberrequiredreasonstringrequiredmin length 1
requestedByTypestringrequiredAllowed:
systemoperatorrequestedByRefstringrequiredmin length 1
idempotencyKeystring | nullShow propertiesHide properties
Any of:
string
stringnull
nulltaxableboolean | nullShow propertiesHide properties
Any of:
boolean
booleannull
nullcustomerTaxAddressobject | nullShow propertiesHide properties
Any of:
object
line1stringrequiredmin length 1
citystringrequiredmin length 1
regionstringrequiredmin length 1
postalCodestringrequiredmin length 1
countrystringrequiredmin length 1
line2string | nullShow propertiesHide properties
Any of:
string
stringnull
nullnull
nulltaxBehaviorstring | nullShow propertiesHide properties
Any of:
string
stringnull
nulltaxClassificationKeystring | nullShow propertiesHide properties
Any of:
string
stringnull
nullResponses
200
Success
dataobjectrequiredShow propertiesHide properties
invoiceIdstringrequiredmin length 1
refundIdstringrequiredmin length 1
refundStatusstringrequiredAllowed:
pendingsucceededfailedrequestIdstringrequiredmin length 1