Endpoint reference

Cards, lounges, travel, hotels, conversions, usage, balance and ledger: every remaining endpoint with a real request and response.

All endpoints

Endpoints and credit cost
EndpointWhat it doesCredits
GET /api/v1/cardsList cards1
GET /api/v1/cards/:card_idGet one card1
POST /api/v1/recommendations/cardsRank cards for a spend profile5
POST /api/v1/score/cardScore one card2
POST /api/v1/recommendations/transactionBest card for one purchase1
GET /api/v1/loungesLounge access by card1
GET /api/v1/travelTravel benefits by card2
GET /api/v1/hotelsHotel benefits by card2
GET /api/v1/conversionsPoints conversion routes and quotes1
GET /api/v1/usageUsage for the billing monthFree
GET /api/v1/credits/balanceCredit balanceFree
GET /api/v1/credits/ledgerCredit ledgerFree
POST /api/v1/webhooks/testSend a signed test webhookFree

Scoring, transaction advice and recommendations have their own pages. Responses use the standard envelope: success, data and meta.

List cards

GET/api/v1/cards1 credit

A page of cards, optionally filtered by issuer.

List cards parameters
ParameterInDescription
limitqueryPage size, 1 to 50. Default 10.
cursorqueryThe next_cursor of the previous page.
issuerqueryCase-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

GET/api/v1/cards/:card_id1 credit

Everything the catalogue holds for one card: fees, reward rates by category, lounge visits and forex markup.

Get one card parameters
ParameterInDescription
card_idpathA 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

GET/api/v1/lounges1 credit

Lounge visits a year, the programme and the guest policy. Cards without lounge access are left out.

Lounge access by card parameters
ParameterInDescription
card_idqueryReturn 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

GET/api/v1/travel2 credits

Miles earned, airline partners, forex markup and travel cover.

Travel benefits by card parameters
ParameterInDescription
card_idqueryReturn 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

GET/api/v1/hotels2 credits

Hotel programme, the status a card offers, points per 100 rupees and complimentary nights.

Hotel benefits by card parameters
ParameterInDescription
card_idqueryReturn 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

GET/api/v1/conversions1 credit

Where a card’s points can be moved and at what ratio. Add points to get the partner units you would receive.

Points conversion routes and quotes parameters
ParameterInDescription
card_idqueryReturn routes for one card.
pointsqueryA 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

GET/api/v1/usageFree

Calls 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

GET/api/v1/credits/balanceFree

Your 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

GET/api/v1/credits/ledgerFree

Every 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
  }
}