Revoke Mandate API
Use this API to revoke/cancel an ACTIVE mandate.
Consists of two parts.
Username: API Key obtained from Juspay dashboard
Password: Empty string
Example:- Basic MUQ2QUxxxxxxxxxxxxU5QTIxQzNFNTQwNkFDMEZCOg==
Merchant ID which would have been issues while registering with Juspay
Example:- 7SucJZ2PCyoGY5vvW8Xa26
application/x-www-form-urlencoded
We recommend passing the customer_id as the x-routing-id. If the customer is checking out as a guest, you can pass an alternative ID that helps track the payment session lifecycle. For example, this could be an Order ID or Cart ID.
This ID is associated with the customer. It plays a key role in ensuring consistency and maintaining connections across different systems. If you fail to pass the same x-routing-id for the same customer in all related API calls, it could lead to issues with API functionality. Therefore, it’s crucial that you use the same x-routing-id for all requests tied to the same customer.
Example:- customer_1122
Mandate Id
To be set as revoke, to revoke an existing mandate.
This parameter should be send, if we want to revoke Mandate at Juspay’s end still if Gateway is unable to revoke at their end. We will try to revoke mandate at gateway’s end, even if it fails, we will mark it failed at Juspay’s end.
REVOKED
7SucJZ2PCyoGY5vvW8Xa26
invalid_request_error
Mandate not found
Mandate not found
error
access_denied

