Credits and billing
The API runs on prepaid credits. Buy a pack once; each call spends a fixed number of credits. There is no subscription and no overage bill.
Credit packs
Starter
1,000
credits
Trying the API on a side project.
₹499 · ₹499 per 1,000
Builder
5,000
credits
A product with steady daily traffic.
₹2,249 · ₹449.80 per 1,000
Scale
25,000
credits
A launched product with many users.
₹9,999 · ₹399.96 per 1,000
Larger packs cost less per credit. The balance carries over; there is no monthly reset.
What each call costs
| Endpoint | What it does | Credits per call |
|---|---|---|
GET /api/v1/cards | List cards | 1 |
GET /api/v1/cards/:card_id | Get one card | 1 |
POST /api/v1/recommendations/cards | Rank cards for a spend profile | 5 |
POST /api/v1/score/card | Score one card | 2 |
POST /api/v1/recommendations/transaction | Best card for one purchase | 1 |
GET /api/v1/lounges | Lounge access by card | 1 |
GET /api/v1/travel | Travel benefits by card | 2 |
GET /api/v1/hotels | Hotel benefits by card | 2 |
GET /api/v1/conversions | Points conversion routes and quotes | 1 |
GET /api/v1/usage | Usage for the billing month | Free |
GET /api/v1/credits/balance | Credit balance | Free |
GET /api/v1/credits/ledger | Credit ledger | Free |
POST /api/v1/webhooks/test | Send a signed test webhook | Free |
You are charged only for a call that succeeds. Validation errors, unknown cards, bad keys and rate limits cost nothing. Balance, ledger, usage and the test webhook are free, so you can always check where you stand.
Reading your balance
Every response carries X-Credits-Charged and X-Credits-Remaining. For the full history, read the ledger.
Credit balance
curl "https://zocept.com/api/v1/credits/balance" \
-H "Authorization: Bearer zk_test_demo_key_a1b2c3d4"Response
HTTP 200
X-Request-Id: req_b3311a99b99bafcf
X-Credits-Charged: 0
X-Credits-Remaining: 250
{
"success": true,
"data": {
"credits": 250,
"currency_unit": "credits"
},
"meta": {
"request_id": "req_b3311a99b99bafcf",
"timestamp": "2026-01-15T12:00:00Z",
"api_version": "v1",
"algorithm_version": "1.0.0",
"credits_charged": 0,
"demo": true
}
}Ledger after two paid calls
curl "https://zocept.com/api/v1/credits/ledger" \
-H "Authorization: Bearer zk_test_demo_key_a1b2c3d4"Response
HTTP 200
X-Request-Id: req_372444761d4700dd
X-Credits-Charged: 0
X-Credits-Remaining: 244
{
"success": true,
"data": {
"entries": [
{
"entry_id": "led_000001",
"kind": "debit",
"credits": -5,
"endpoint": "recommendations.cards",
"reference": "req_bddb216221551463",
"balance_after": 245,
"created_at": "2026-01-15T12:00:00Z"
},
{
"entry_id": "led_000002",
"kind": "debit",
"credits": -1,
"endpoint": "cards.detail",
"reference": "req_d6928e80a7c4f6e7",
"balance_after": 244,
"created_at": "2026-01-15T12:00:00Z"
}
]
},
"meta": {
"request_id": "req_372444761d4700dd",
"timestamp": "2026-01-15T12:00:00Z",
"api_version": "v1",
"algorithm_version": "1.0.0",
"credits_charged": 0,
"demo": true
}
}At zero
When the balance is lower than a call’s price, the call is not run and not charged. You get a 402 with INSUFFICIENT_CREDITS, the price and your balance. Free endpoints keep working. Buy a pack and the next call goes through.
Out of credits
HTTP 402
X-Request-Id: req_0683e715068895a8
X-Credits-Charged: 0
X-Credits-Remaining: 0
{
"success": false,
"error": {
"code": "INSUFFICIENT_CREDITS",
"message": "This call costs 1 credits and the balance is 0.",
"status": 402,
"request_id": "req_0683e715068895a8",
"docs_url": "https://zocept.com/docs/api/errors#insufficient_credits",
"details": {
"required": 1,
"balance": 0
}
}
}How a purchase works
- Choose a pack on the Usage and billing page, or POST /api/credits/order with a pack_id.
- Pay in Razorpay checkout. Cards, UPI and net banking are supported.
- Razorpay returns a signed payment. Your browser sends it to POST /api/credits/verify.
- The server checks the signature and adds the credits. Nothing is credited until that check passes.
Create an order for a credit pack
curl -X POST "https://zocept.com/api/credits/order" \
-H "Authorization: Bearer zk_test_demo_key_a1b2c3d4" \
-H "Content-Type: application/json" \
-d '{
"pack_id": "builder"
}'Response
HTTP 200
X-Request-Id: req_c3a93654308ffc0e
X-Credits-Charged: 0
{
"success": true,
"data": {
"order_id": "order_demo_7ea739c2d3c556",
"provider": "demo",
"amount_paise": 224900,
"currency": "INR",
"pack_id": "builder",
"credits": 5000,
"key_id": null,
"demo_payment": {
"payment_id": "pay_demo_7ea739c2d3c556",
"signature": "5b0b6e742b06ed285c7f49b3c0d916d27699b06761bbc355edbbf85c36366a4a"
}
},
"meta": {
"request_id": "req_c3a93654308ffc0e",
"timestamp": "2026-01-15T12:00:00Z",
"api_version": "v1",
"algorithm_version": "1.0.0",
"credits_charged": 0,
"demo": true
}
}Verify the payment and credit the account
curl -X POST "https://zocept.com/api/credits/verify" \
-H "Authorization: Bearer zk_test_demo_key_a1b2c3d4" \
-H "Content-Type: application/json" \
-d '{
"order_id": "order_demo_7ea739c2d3c556",
"payment_id": "pay_demo_7ea739c2d3c556",
"signature": "5b0b6e742b06ed285c7f49b3c0d916d27699b06761bbc355edbbf85c36366a4a"
}'Response
HTTP 200
X-Request-Id: req_c359c9f13f18884e
X-Credits-Charged: 0
{
"success": true,
"data": {
"credited": true,
"already_credited": false,
"credits_added": 5000,
"balance": 5250
},
"meta": {
"request_id": "req_c359c9f13f18884e",
"timestamp": "2026-01-15T12:00:00Z",
"api_version": "v1",
"algorithm_version": "1.0.0",
"credits_charged": 0,
"demo": true
}
}- Crediting happens once per payment. Repeating the verification, or a webhook arriving as well, never adds credits twice.
- A failed payment credits nothing, and the order stays open so you can retry.
- A refunded payment takes its credits back, never below a zero balance.
