POST
/
api
/
v2
/
subscriptions
/
seamless
/
authorization
curl --request POST \
  --url https://sandbox.cashfree.com/pg/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
x-client-secret
string

Body

application/json
authPaymentInfo
object
merchantTxnId
string

Unique transaction ID for the merchant.

subReferenceId
integer

Reference ID for the subscription.

Response

200 - application/json

The response is of type any.