Cancel a paymentCopy Pagepost https://api.staging.payrails.io/merchant/workflows/{workflowCode}/executions/{executionId}/cancelRequest a payment cancelation during a workflow execution.Path ParamsworkflowCodestringrequired^[a-z][-A-Za-z0-9]*$Path parameter to specify the workflow code.executionIduuidrequiredIdentifier of the resource in Payrails.Body ParamspaymentIduuidOptionally the ID of the payment to cancel. Used for payment links where an execution can have multiple successful payments. If not specified, the most recent payment done using the payment link will be cancelled.reasonstringenumReason for invoking the operation or action.CustomerDontNeedBetterPriceCustomerDontNeedDamagedProductDuplicateFraudulentProductLateDeliveryNoReasonProductMismatchDescriptionWrongProductWrongProductSpecificationShow 10 enum valuesreasonDescriptionstringAn optional field to include any necessary information for the capture action.Headersx-idempotency-keyuuidrequiredIdempotency key to be used. Sending again the same key would return the same result without re-executing the update.Responses 202The payment cancelation was requested. 400Bad Request. 401Unauthorized. 403Insufficient Scope. 404Not Found. 429Too Many Requests.Updated 4 months ago Confirm a paymentCapture a paymentDid this page help you?YesNo