Cancel a SetupIntent
POST {{baseUrl}}/v1/setup_intents/:intent/cancel
A SetupIntent object can be canceled when it is in one of these statuses: requires_payment_method
, requires_confirmation
, or requires_action
.
Once canceled, setup is abandoned and any operations on the SetupIntent will fail with an error.
Request Body
[{"name"=>"cancellation_reason", "value"=>"<string>", "datatype"=>"string"}, {"name"=>"expand[0]", "value"=>"<string>", "datatype"=>"string"}, {"name"=>"expand[1]", "value"=>"<string>", "datatype"=>"string"}]
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string |