Skip to main content
POST
/
api
/
v2
/
subscriptions
/
seamless
/
authorization
Create Authorization Request
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",
    "cardNumber": "4444333322221111",
    "cardHolderName": "John Doe",
    "cardCvv": "123",
    "cardExpiryMonth": "12",
    "cardExpiryYear": "2099",
    "accountHolderName": "John Doe",
    "accountNumber": "1234567890",
    "bankId": "SBIN",
    "accountType": "SAVINGS",
    "authMode": "DEBIT_CARD",
    "pNachFileId": "1475380791",
    "mandateCreationDate": "2023-07-25",
    "mandateStartDate": "2023-07-27"
  }
}
'

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.