Void API
This will be used to void an authorized transaction.
Status Understanding:
|
Payment Gateway Response
|
Juspay Transaction Status
|
|---|---|
Pending
| VOID_INITIATED
|
Success
| VOIDED
|
Failure
| VOID_FAILED
|
Timeout/no response from gateway
| AUTHORIZED
|
Consists of two parts.
Username: API Key obtained from Juspay dashboard
Password: Empty string
Example:- Basic MUQ2QUxxxxxxxxxxxxU5QTIxQzNFNTQwNkFDMEZCOg==
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 UUID
Example:- b337a8c9-8eae-4c55-8713-0fe61a5fabfb
eulvW58PbNNojAJXR7B
:txn_uuid
VOID_INITIATED
https://api.juspay.in
CARD
MASTERCARD
https://api.juspay.in/merchant/pay/ord_be69837b0a4b4fe486967e1ce1cd0477
https://api.juspay.in/merchant/pay/ord_be69837b0a4b4fe486967e1ce1cd0477?mobile=true
https://api.juspay.in/merchant/ipay/ord_be69837b0a4b4fe486967e1ce1cd0477
8342jhd9
Void is Pending
PENDING
14327074
2019-03-01T08:38:44Z
NA
183782
merchant_id
ord_be69837b0a4b4fe486967e1ce1cd0477
2019-03-01T08:37:10Z
FUR14920977945
INR
test
2022
07
DEBIT
aa301450fe38c65cd813a8c33897942b
HDFC Bank
541919
6rds4re1p3678ftk333q64gs1g
MASTERCARD
Void is Pending
PENDING
THREE_DS
Bad Request
Invalid state for void operation.
Invalid
error
access_denied
Have questions?
- Need help? Contact support
- LLM? Read llms.txt

