Cancel Authorization
Cancel Authorization
PATCH
https://api.stage.localpayment.com/api/payin/capture/:externalId/status
Cancel a credit card authorization
Path Parameters
Name
Type
Description
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
Name
Type
Description
Authorization*
string
Mandatory. JWT token in format Bearer eyJ0...
. For more information about authentication, please refer to Authentication
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
Was this helpful?