POST
/
api
/
v2
/
subscriptions
/
seamless
/
subscription
curl --request POST \
  --url https://sandbox.cashfree.com/pg/api/v2/subscriptions/seamless/subscription \
  --header 'Content-Type: application/json' \
  --data '{
  "subscriptionId": "DemoSubscription",
  "planId": "TestPlan_ReArch_002",
  "customerName": "John",
  "customerPhone": "99999XXXXX",
  "customerEmail": "john@gmail.com",
  "returnUrl": "www.google.com",
  "authAmount": 1,
  "expiresOn": "2024-12-02 09:20:12",
  "firstChargeDate": "2024-12-02",
  "payerAccountDetails": {
    "accountNumber": "007200000000",
    "accountHolderName": "John",
    "bankId": "ICIC",
    "accountType": "SAVINGS",
    "ifsc": "ICIC0000072"
  },
  "notificationChannels": [
    "EMAIL",
    "SMS"
  ]
}'

Headers

x-client-id
string
x-client-secret
string

Body

application/json
authAmount
number

Authorization amount for the subscription.

customerEmail
string

Customer's email address.

customerName
string

Name of the customer subscribing.

customerPhone
string

Customer's phone number.

expiresOn
string

Expiration date for the subscription.

firstChargeDate
string

First charge date for the subscription.

notificationChannels
string[]
payerAccountDetails
object
planId
string

Unique identifier for the subscription plan.

returnUrl
string

URL to redirect the user after successful subscription.

splitDetails
object
subscriptionId
string

Unique identifier for the subscription.

tpvEnabled
boolean

Whether Third Party Verification (TPV) is enabled.

Response

200 - application/json
data
object
message
string

Status message.

status
integer

Status code of the response.