POST
/
api
/
v2
/
subscriptions
/
nonSeamless
/
subscription
curl --request POST \
--url https://sandbox.cashfree.com/api/v2/subscriptions/nonSeamless/subscription \
--header 'Content-Type: application/json' \
--header 'X-Client-Id: <x-client-id>' \
--header 'X-Client-Secret: <x-client-secret>' \
--data '{
"subscriptionId": "DemoSubscriptionq",
"customerName": "John Doe",
"customerPhone": "9999900000",
"customerEmail": "john@gmail.com",
"returnUrl": "www.google.com",
"authAmount": 10,
"expiresOn": "2024-12-02 09:20:12",
"planInfo": {
"type": "ON_DEMAND",
"planName": "abcede",
"maxAmount": 1000,
"maxCycles": 10,
"linkExpiry": 5
},
"notificationChannels": [
"EMAIL",
"SMS"
]
}'
{
  "status": 200,
  "message": "Subscription Created",
  "data": {
    "subReferenceId": 1234,
    "authLink": "https://cfre.in/wjnwdj3"
  }
}

Headers

X-Client-Id
string
required

Client ID provided by Cashfree.

Example:

"14443641"

X-Client-Secret
string
required

Client Secret provided by Cashfree.

Example:

"a477ed7e"

Body

application/json

Response

200
application/json

Subscription created successfully.

The response is of type object.