Cancel Order API
This document provides technical guidance for merchants to cancel an active payment link via the API.
A cancelled order cannot be reactivated. A new payment link must be generated if needed.
Ensure the order being cancelled is in
ACTIVEstate; otherwise, cancellation may fail or have no effect.
Base 64 encoded API key
Example:- Basic MUQ2QUxxxxxxxxxxxxU5QTIxQzNFNTQwNkFDMEZCOg==
Example:- application/json
Merchant ID provided by Juspay
Example:- merchant_id
Merchant ID provided by Juspay
Order Id for which cancellation is required
Reason for cancellation
Example:- Testing
Example:- Success
Example:- Order cancelled successfully
Example:- 1747643180
Example:- Order with id = "ORDER176432906" does not exist.
Example:- invalid_request_error
Example:- Could not find Order with order_id : ORDER176432906
Example:- 7167f1f5-e6e0-4013-8687-962bee70a73f
Example:- NA
Example:- order_id is invalid.
Example:- RESOURCE_NOT_FOUND
Example:- USER_ERROR
Example:- error
Example:- access_denied
Example:- Unauthorized.
Example:- 0a671060-7c4a-444c-a06e-167eb90d47a4
Example:- NA
Example:- Invalid API Key. Please pass a valid and active api key.
Example:- UNAUTHORIZED
Example:- USER_ERROR

