Void API
This will be used to void an authorized transaction. Please find the mapping of gateway response and transaction status below:
|
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==
The unique id generated by Juspay for a particular transaction.
txn_uuid should be passed
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

