Endpoint reference
Cards, lounges, travel, hotels, conversions, usage, balance and ledger: every remaining endpoint with a real request and response.
All endpoints
| Endpoint | What it does | Credits |
|---|---|---|
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 |
Scoring, transaction advice and recommendations have their own pages. Responses use the standard envelope: success, data and meta.
List cards
/api/v1/cards1 creditA page of cards, optionally filtered by issuer.
| Parameter | In | Description |
|---|---|---|
limit | query | Page size, 1 to 50. Default 10. |
cursor | query | The next_cursor of the previous page. |
issuer | query | Case-insensitive issuer name filter. |
Example
curl "https://zocept.com/api/v1/cards?limit=3" \
-H "Authorization: Bearer zk_test_demo_key_a1b2c3d4"Response
HTTP 200
X-Request-Id: req_789421828ce1837b
X-Credits-Charged: 1
X-Credits-Remaining: 249
{
"success": true,
"data": {
"cards": [
{
"card_id": "card_hdfc_regalia_gold",
"issuer": "HDFC Bank",
"name": "Regalia Gold",
"network": "Visa",
"reward_type": "points",
"annual_fee_inr": 2500
},
{
"card_id": "card_axis_magnus",
"issuer": "Axis Bank",
"name": "Magnus",
"network": "Mastercard",
"reward_type": "miles",
"annual_fee_inr": 12500
},
{
"card_id": "card_sbi_cashback",
"issuer": "SBI Card",
"name": "Cashback",
"network": "Visa",
"reward_type": "cashback",
"annual_fee_inr": 999
}
],
"next_cursor": "3",
"total": 6
},
"meta": {
"request_id": "req_789421828ce1837b",
"timestamp": "2026-01-15T12:00:00Z",
"api_version": "v1",
"algorithm_version": "1.0.0",
"credits_charged": 1,
"demo": true
}
}Get one card
/api/v1/cards/:card_id1 creditEverything the catalogue holds for one card: fees, reward rates by category, lounge visits and forex markup.
| Parameter | In | Description |
|---|---|---|
card_id | path | A card id from the list. |
Example
curl "https://zocept.com/api/v1/cards/card_axis_magnus" \
-H "Authorization: Bearer zk_test_demo_key_a1b2c3d4"Response
HTTP 200
X-Request-Id: req_6f4fce6cdfdd468f
X-Credits-Charged: 1
X-Credits-Remaining: 249
{
"success": true,
"data": {
"card_id": "card_axis_magnus",
"issuer": "Axis Bank",
"name": "Magnus",
"network": "Mastercard",
"reward_type": "miles",
"annual_fee_inr": 12500,
"joining_fee_inr": 12500,
"fee_waiver_spend_inr": 2500000,
"base_reward_rate_pct": 3.6,
"category_rates_pct": {
"travel": 6,
"dining": 4.8
},
"point_value_inr": 1,
"forex_markup_pct": 2,
"lounge_visits_per_year": {
"domestic": 24,
"international": 12
},
"verified_on": "2026-01-10"
},
"meta": {
"request_id": "req_6f4fce6cdfdd468f",
"timestamp": "2026-01-15T12:00:00Z",
"api_version": "v1",
"algorithm_version": "1.0.0",
"credits_charged": 1,
"demo": true
}
}Lounge access by card
/api/v1/lounges1 creditLounge visits a year, the programme and the guest policy. Cards without lounge access are left out.
| Parameter | In | Description |
|---|---|---|
card_id | query | Return one card only. |
Example
curl "https://zocept.com/api/v1/lounges?card_id=card_axis_magnus" \
-H "Authorization: Bearer zk_test_demo_key_a1b2c3d4"Response
HTTP 200
X-Request-Id: req_19bfa26f71f99e7c
X-Credits-Charged: 1
X-Credits-Remaining: 249
{
"success": true,
"data": {
"lounges": [
{
"card_id": "card_axis_magnus",
"card_name": "Axis Bank Magnus",
"program": "Mastercard and Priority Pass network",
"domestic_visits_per_year": 24,
"international_visits_per_year": 12,
"guest_policy": "Two guest visits per year"
}
]
},
"meta": {
"request_id": "req_19bfa26f71f99e7c",
"timestamp": "2026-01-15T12:00:00Z",
"api_version": "v1",
"algorithm_version": "1.0.0",
"credits_charged": 1,
"demo": true
}
}Travel benefits by card
/api/v1/travel2 creditsMiles earned, airline partners, forex markup and travel cover.
| Parameter | In | Description |
|---|---|---|
card_id | query | Return one card only. |
Example
curl "https://zocept.com/api/v1/travel?card_id=card_axis_magnus" \
-H "Authorization: Bearer zk_test_demo_key_a1b2c3d4"Response
HTTP 200
X-Request-Id: req_71421d58119f7210
X-Credits-Charged: 2
X-Credits-Remaining: 248
{
"success": true,
"data": {
"travel": [
{
"card_id": "card_axis_magnus",
"card_name": "Axis Bank Magnus",
"miles_per_100_inr": 3.6,
"airline_partners": [
"Air India",
"IndiGo",
"Singapore Airlines"
],
"forex_markup_pct": 2,
"travel_insurance": "Air accident cover up to INR 3 crore"
}
]
},
"meta": {
"request_id": "req_71421d58119f7210",
"timestamp": "2026-01-15T12:00:00Z",
"api_version": "v1",
"algorithm_version": "1.0.0",
"credits_charged": 2,
"demo": true
}
}Hotel benefits by card
/api/v1/hotels2 creditsHotel programme, the status a card offers, points per 100 rupees and complimentary nights.
| Parameter | In | Description |
|---|---|---|
card_id | query | Return one card only. |
Example
curl "https://zocept.com/api/v1/hotels?card_id=card_axis_magnus" \
-H "Authorization: Bearer zk_test_demo_key_a1b2c3d4"Response
HTTP 200
X-Request-Id: req_ad04a28acb2f018e
X-Credits-Charged: 2
X-Credits-Remaining: 248
{
"success": true,
"data": {
"hotels": [
{
"card_id": "card_axis_magnus",
"card_name": "Axis Bank Magnus",
"program": "Accor ALL",
"status_offered": "Gold status on request",
"points_per_100_inr": 4,
"complimentary_nights": 1
}
]
},
"meta": {
"request_id": "req_ad04a28acb2f018e",
"timestamp": "2026-01-15T12:00:00Z",
"api_version": "v1",
"algorithm_version": "1.0.0",
"credits_charged": 2,
"demo": true
}
}Points conversion routes and quotes
/api/v1/conversions1 creditWhere a card’s points can be moved and at what ratio. Add points to get the partner units you would receive.
| Parameter | In | Description |
|---|---|---|
card_id | query | Return routes for one card. |
points | query | A whole number of points to convert; adds points and partner_units to each route. |
Example
curl "https://zocept.com/api/v1/conversions?card_id=card_axis_magnus&points=10000" \
-H "Authorization: Bearer zk_test_demo_key_a1b2c3d4"Response
HTTP 200
X-Request-Id: req_48b2c0a62539c157
X-Credits-Charged: 1
X-Credits-Remaining: 249
{
"success": true,
"data": {
"conversions": [
{
"card_id": "card_axis_magnus",
"partner": "Air India Maharaja Club",
"ratio_from": 5,
"ratio_to": 4,
"transfer_fee_inr": 0,
"effective_value_per_point_inr": 1.1,
"points": 10000,
"partner_units": 8000
},
{
"card_id": "card_axis_magnus",
"partner": "Singapore Airlines KrisFlyer",
"ratio_from": 5,
"ratio_to": 4,
"transfer_fee_inr": 0,
"effective_value_per_point_inr": 1.2,
"points": 10000,
"partner_units": 8000
}
]
},
"meta": {
"request_id": "req_48b2c0a62539c157",
"timestamp": "2026-01-15T12:00:00Z",
"api_version": "v1",
"algorithm_version": "1.0.0",
"credits_charged": 1,
"demo": true
}
}Usage for the billing month
/api/v1/usageFreeCalls and credits for the billing month, by endpoint. Fixed demo figures.
Example
curl "https://zocept.com/api/v1/usage" \
-H "Authorization: Bearer zk_test_demo_key_a1b2c3d4"Response
HTTP 200
X-Request-Id: req_167a799a628bc43e
X-Credits-Charged: 0
X-Credits-Remaining: 250
{
"success": true,
"data": {
"period": "2026-01",
"requests": 196,
"credits_used": 425,
"by_endpoint": [
{
"endpoint": "/recommendations/cards",
"calls": 42,
"credits": 210
},
{
"endpoint": "/score/card",
"calls": 61,
"credits": 122
},
{
"endpoint": "/cards",
"calls": 38,
"credits": 38
},
{
"endpoint": "/recommendations/transaction",
"calls": 55,
"credits": 55
}
]
},
"meta": {
"request_id": "req_167a799a628bc43e",
"timestamp": "2026-01-15T12:00:00Z",
"api_version": "v1",
"algorithm_version": "1.0.0",
"credits_charged": 0,
"demo": true
}
}Credit balance
/api/v1/credits/balanceFreeYour current balance. Free.
Example
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
}
}Credit ledger
/api/v1/credits/ledgerFreeEvery top-up, debit and refund in order, each with the balance after it. Free.
Example
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
}
}