Billing

Create wallet top-up

Create a payment order to add funds to the wallet. `amount` is in rupees. The response contains a Cashfree `paymentSessionId` — complete the payment in the Cashfree checkout (the dashboard's Billing page does this for you). The wallet is credited automatically once the payment succeeds.

POST
/billing/topup

Create a payment order to add funds to the wallet. amount is in rupees. The response contains a Cashfree paymentSessionId — complete the payment in the Cashfree checkout (the dashboard's Billing page does this for you). The wallet is credited automatically once the payment succeeds.

Authorization

ApiKeyAuth
X-API-Key<token>

Voice platform authentication secret. Create one from the API Keys endpoint or your dashboard.

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

curl -X POST "https://example.com/billing/topup" \  -H "Content-Type: application/json" \  -d '{    "amount": 500  }'
{  "paymentId": "pay_7d3k1",  "paymentSessionId": "session_a1b2c3…",  "cashfreeOrderId": "order_9x8y7z",  "amountPaise": 50000,  "currency": "INR"}
{  "statusCode": 400,  "message": [    "name should not be empty"  ],  "error": "Bad Request"}
{  "statusCode": 401,  "message": "Unauthorized",  "error": "Unauthorized"}