This request allows to cancel a PayOut.
{
"code": "200",
"description": "The PayOut was cancelled",
"internalId": "9da696d2-bee2-4973-bf4b-c4f325496342"
}
curl --location --request PATCH 'https://api.stage.localpayment.com/api/payout/cancel'
--header 'Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNjg2MjMwNzMxLCJqdGkiOiJhMzJhNjczMzViNTQ0MWZiOGUyYTU1ZjdhNzNkYmYzOCIsInVzZXJfaWQiOjM3NSwic3VwZXJ1c2VyIjp0cnVlLCJpc19zdGFmZiI6ZmFsc2UsInJvbGVzIjpbIkFMTCJdLCJjb3VudHJpZXMiOlsiQUxMIl0sImNvbXBhbnkiOiIwMDEzIiwiY2xpZW50X2NvZGUiOiIwMDEzIn0.U3Z8AG60SduY6-FhxiCwRiNfqpQoRBIhsGYOpfszojY'
--header 'Content-Type: application/json'
--data
'{ "externalId": "{{YOURINTERNALID}}"}'
{
"externalId": "{{YOUREXTERNALID}}",
"internalId": "a11c11a1-1c9c-11df-93a9-11111b127379",
"status": {
"code": "900",
"description": "Cancelled",
"detail": "The payout was cancelled"
}
}
{
"Status": 400,
"Message": "This transaction is REJECTED. Unable to update to CANCELED status",
"TraceId": "f5e9acd3-3730-4b77-bfa8-ea70860a4e4f"
}