{
"externalId": "1648840917",
"internalId": "39eb0371-3f21-488f-a779-913799e51406",
"status": {
"code": "905",
"description": "CANCELLED",
"detail": "The authorization was cancelled"
}
}
{
"status": {
"code": "400",
"description": "ERROR",
"detail": "Invalid operation"
}
}
{
"status": {
"code": "404",
"description": "ERROR",
"detail": "Payin not found"
}
}
Examples: Cancel Authorization
curl --location --request PATCH 'https://api.stage.localpayment.com/api/payin/capture/1648848122/status/' \
--header 'Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNjQ4ODQ4NDE3LCJqdGkiOiJlOGVmZjIzMzlkOTI0MTNmOTFkNzlhM2UxZjMzNzQwMyIsInVzZXJfaWQiOjMwLCJzdXBlcnVzZXIiOnRydWUsImlzX3N0YWZmIjpmYWxzZSwicm9sZXMiOlsiQUxMIl0sImNvdW50cmllcyI6WyJBTEwiXSwiY29tcGFueSI6IjAwMDEiLCJjbGllbnRfY29kZSI6IjAwMDEifQ.Pe9WjZYlHUZEzh-LQjT5PBKv6N9gXhpsKHHJtnZS_no' \
--header 'Content-Type: application/json' \
--data-raw '{
"status": "CANCELLED"
}'
{
"status": "CANCELLED"
}
{
"externalId": "1648848122",
"internalId": "1bb34022-5f3b-423e-a67c-5df58ff3d1e3",
"status": {
"code": "905",
"description": "CANCELLED",
"detail": "The authorization was cancelled"
}
}