Cancel Authorization

Cancel Authorization

PATCH https://api.stage.localpayment.com/api/payin/capture/:externalId/status

Cancel a credit card authorization

Path Parameters

NameTypeDescription

externalId*

string

Mandatory. The ID which was given while creating the authorization. Each ID must b unique and meaningful to you and your system.

Headers

NameTypeDescription

Authorization*

string

Mandatory. JWT token in format Bearer eyJ0... . For more information about authentication, please refer to Authentication

{
    "externalId": "1648840917",
    "internalId": "39eb0371-3f21-488f-a779-913799e51406",
    "status": {
        "code": "905",
        "description": "CANCELLED",
        "detail": "The authorization was cancelled"
    }
}

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"
}'

Last updated