curl --request POST \
--url https://sandbox.cashfree.com/api/v2/subscriptions/seamless/authorization \
--header 'Content-Type: application/json' \
--data '
{
"subReferenceId": 123456,
"merchantTxnId": "merchant-txn-id-1",
"authPaymentInfo": {
"paymentType": "UPI",
"vpa": "johndoe@upi",
"authFlow": "UPI_COLLECT"
}
}
'{
"status": 200,
"message": "Authorization Created",
"data": {
"subReferenceId": 123456,
"authId": 23456789,
"authStatus": "INITIALIZED",
"merchantTxnId": "txn.id-1_2_3",
"authPaymentData": {
"paymentType": "UPI"
}
}
}Seamless APIs
Create Authorization Request
Use this API to create an authorisation request for a particular subscription. This API is applicable only if you have created a subscription via Create Seamless Subscription API. Use the response of the Create Seamless Subscription API to get the supported banks for E_MANDATE and supported UPI handles.
POST
/
api
/
v2
/
subscriptions
/
seamless
/
authorization
curl --request POST \
--url https://sandbox.cashfree.com/api/v2/subscriptions/seamless/authorization \
--header 'Content-Type: application/json' \
--data '
{
"subReferenceId": 123456,
"merchantTxnId": "merchant-txn-id-1",
"authPaymentInfo": {
"paymentType": "UPI",
"vpa": "johndoe@upi",
"authFlow": "UPI_COLLECT"
}
}
'{
"status": 200,
"message": "Authorization Created",
"data": {
"subReferenceId": 123456,
"authId": 23456789,
"authStatus": "INITIALIZED",
"merchantTxnId": "txn.id-1_2_3",
"authPaymentData": {
"paymentType": "UPI"
}
}
}Headers
Example:
"{{X-Client-Id}}"
Example:
"{{X-Client-Secret}}"
Body
application/json
Response
Successful authorization request.
Was this page helpful?
⌘I