Process OTP
This will complete the authentication and authorization. It takes OTP as input and returns the transaction response.
id path parameter is the unique id generated for the transaction in a generate OTP API call.
Consists of two parts.
Username: API Key obtained from Juspay dashboard
Password: Empty string
Example:- Basic MUQ2QUxxxxxxxxxxxxU5QTIxQzNFNTQwNkFDMEZCOg==
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
Transaction Id
Example:- txn_035b4e708d5148478828ea3136a9efd7
Challenge id generated against the transaction in generating OTP API call.
OTP to be sent for authenticating the transaction.
Optional parameter. Send false if you want to capture at a later stage. The default is true.
Unique id generated for the transaction.
Order Id provided by you while order creation.
Transaction id for a given order.
Status of the transaction. If you receive ���CHARGED”, then the transaction is successful. “AUTHORIZED” in case if auto_capture is false.
Gateway through which authorization process was performed.
Creation date of transaction.
Gateway response code for the transaction.
Error message from the gateway in case if the transaction failed.
This contains the payment details provided during the transaction.
This will give the payment response received from the gateway.
List of refunds attempted for a given transaction.
invalid_request_error
invalid
Invalid authentication account id
error
access_denied
Invalid Authentication
Have questions?
- Need help? Contact support
- LLM? Read llms.txt

