chatformdocs
API referenceV1

Open a verified checkout for the current payment question

POST
/v1/sessions/{sid}/payments

Authorization

AuthorizationBearer <token>

A server-side secret key. Never send one from a browser — a request carrying an Origin header is refused for this reason.

In: header

Path Parameters

sid*string

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/v1/sessions/string/payments" \  -H "Content-Type: application/json" \  -d '{    "ref": "string"  }'
{  "recordId": "string",  "launch": {    "kind": "cashfree_sdk",    "orderId": "string",    "paymentSessionId": "string",    "mode": "sandbox"  },  "expiresAt": 0}