Charges
Cancel a charge
Cancel a charge to prevent it from being processed.
Only charges in a created
or hold
status can be canceled.
PUT
https://{environment}.straddle.io
/
v1
/
charges
/
{id}
/
cancel
Authorizations
Authorization
string
headerrequiredUse your Straddle API Key in the Authorization header as Bearer <token> to authorize API requests.
Headers
Straddle-Account-Id
string
For use by platforms to specify an account id and set scope of a request.
Request-Id
string
Optional client generated identifier to trace and debug a request.
Correlation-Id
string
Optional client generated identifier to trace and debug a series of requests.
Path Parameters
id
string
requiredBody
reason
string | null
Reason.
Response
200 - text/plain
meta
object
requiredresponse_type
enum<string>
requiredAvailable options:
object
, array
, error
, none
data
object
required