Billing

Start a subscription

Get a Cashfree checkout link for a plan.

POST/v1/billing/checkout

Open the returned link in a browser. The customer approves a card or UPI mandate there, and the first period is charged straight away.

Authentication

A signed-in session: the cookie from Log in. Changes also need the X-CSRF-Token header.

Body

planstringrequired

pro, developer or business.

intervalstringoptional

month (default) or year.

Response

200 OK

checkout_urlstring

Where to send the customer.

Errors

StatusCodeWhat to do
409billing_profile_requiredSave your billing details first.
409already_subscribedChange or cancel the current subscription first.
409price_not_availableThis plan isn't on sale for that billing period.
409provider_rejectedCashfree refused the request. See message.
503billing_unavailableOnline payments aren't switched on.
401unauthenticatedLog in first, or log in again.
403csrf_failedSend the csrf_token as X-CSRF-Token.