Skip to main content
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

x-client-id
string
Example:

"{{X-Client-Id}}"

x-client-secret
string
Example:

"{{X-Client-Secret}}"

Body

application/json
subReferenceId
integer

Reference ID for the subscription.

Example:

123456

merchantTxnId
string

Unique transaction ID for the merchant.

Example:

"merchant-txn-id-1"

authPaymentInfo
object

Response

Successful authorization request.