Capture API
This will capture the transaction which is in the AUTHORIZED state.
Scroll inside to view more
|
Payment Gateway Response
|
Juspay Transaction Status
|
|---|---|
Success
| CHARGED
|
Failed
| CAPTURE_FAILED
|
Accepted and pending by gateway
| CAPTURE_INITIATED
|
Timeout/ No response from gateway
| AUTHORIZED
|
2 columns 5 rows
Request
Response
API Endpoints
Sandbox Link
POST
https://api.sandbox.juspay.io/v2/txns/{txn_uuid}/capture
Production Link
POST
https://api.juspay.io/v2/txns/{txn_uuid}/capture
Authorization Header
Basic Auth
*
Base64 Encoded Username:Password
Mandatory
Consists of two parts.
Username: API Key obtained from Juspay dashboard
Password: Empty string
Example:- Basic MUQ2QUxxxxxxxxxxxxU5QTIxQzNFNTQwNkFDMEZCOg==
Path Params
txn_uuid
String
Max Length :128
The unique id generated by Juspay for a particular transaction. Can be used as an identifier in case of UPI transaction
200 : Success
Response Body
udf 1-10
Object
txn_uuid
*
String
Required
txn_id
*
String
Required
status_id
*
Number
Required
status
*
String
Required
return_url
String
refunded
Boolean
product_id
String
payment_method_type
String
payment_method
String
payment_links
String
web
String
mobile
String
iframe
String
payment_gateway_response
String
txn_id
String
rrn
String
resp_message
*
String
Required
resp_code
*
String
Required
epg_txn_id
String
created
String
auth_id_code
String
eci
String
order_id
*
String
Required
merchant_id
String
id
*
String
Required
gateway_id
String
date_created
*
String
Required
customer_phone
String
customer_id
String
customer_email
String
currency
*
String
Required
card
String
using_saved_card
Boolean
saved_to_locker
Boolean
name_on_card
String
last_four_digits
String
expiry_year
String
expiry_month
String
card_type
String
card_reference
String
card_issuer
String
card_isin
String
card_fingerprint
String
card_brand
String
extended_card_type
String
token_type
String
tokens
Array
payment_account_reference
String
using_token
Boolean
card_issuer_country
String
bank_error_message
String
bank_error_code
String
auth_type
String
amount_refunded
*
Integer
Required
amount
*
Integer
Required
maximum_eligible_refund_amount
Integer
bank_pg
String
effective_amount
Integer
offers
Array
400 : Invalid Input data
Response Body
status
string
Bad Request
error_message
string
Cannot capture charged transaction
error_code
string
Invalid
401 : Authentication Failed
Response Body
status
string
error
error_code
string
access_denied
error_message
string
Invalid Authentication
Have questions?
- Need help? Contact support
- LLM? Read llms.txt

