Actions
Cancel a payment
Request a payment cancelation during a workflow execution.
post/merchant/workflows/{workflowCode}/executions/{executionId}/cancel
Path parameters
workflowCodestring required
Machine-friendly code of Workflow.
Path parameter to specify the workflow code.
executionIdstring uuid required
Identifier of the resource in Payrails.
Headers
x-idempotency-keystring uuid required
Idempotency key to be used. Sending again the same key would return the same result without re-executing the update.
Request body
Example request
{
"reasonDescription": "Customer's automatic subscription."
}Response
The payment cancelation was requested.
Example response
{
"reasonDescription": "Customer's order expired."
}