Endpoints
Vehicle Types
List supported RC types for challan search.
GET
/api/v1/staging/metadata/rc-typesFetch the supported RC type values your integration can use when searching challans for a vehicle that is not already known to your organization.
Base URL
https://cms-staging.challanwala.com
Authentication
Bearer YOUR_API_SECRET
Access gate
Requires the Challan Search service to be enabled for your organization.
When to call this endpoint
Call this endpoint when you need to populate a select input or validate an RC type value before submitting a first-time challan search.
cURL request
curl --request GET 'https://cms-staging.challanwala.com/api/v1/staging/metadata/rc-types' \ --header 'Authorization: Bearer YOUR_API_SECRET'JavaScript request
const response = await fetch('https://cms-staging.challanwala.com/api/v1/staging/metadata/rc-types', { method: 'GET', headers: { Authorization: 'Bearer YOUR_API_SECRET', },});const data = await response.json();console.log(data);Example response
{"success": true,"data": [ { "value": "LEASE", "label": "Lease" }, { "value": "SELFDRIVEN", "label": "Selfdriven" }, { "value": "CHAUFFEUR_DRIVEN", "label": "Chauffeur Driven" }, { "value": "TRUCK", "label": "Truck" }, { "value": "MOTOR_CAB", "label": "Motor Cab" }, { "value": "PRIVATE_CAR", "label": "Private Car" }, { "value": "TRAILER", "label": "Trailer" }]}Response fields
| Field | Type | Required | Description |
|---|---|---|---|
| data[].value | string | Required | Stable RC type value to send in challan search requests. |
| data[].label | string | Required | Display-friendly label for UI presentation. |
403
Service disabled
The organization API secret is valid, but challan search access is not enabled for the organization.
429
Daily limit exceeded
The organization has reached its daily limit for the challan search service.
