Catalog›Vehicle types
Vehicle types
List refrigerated vehicle codes. Hide anything that is not available.
curl https://trustcoldeg.com/api/v1/b2b/vehicle-types \
-H "Authorization: Bearer CLIENT_KEY" \
-H "Accept: application/json" \
-H "Accept-Language: en"Key points
- code — Send this value as vehicle_type on quote and create.
- Labels — name follows Accept-Language. name_ar and name_en are always present.
- Closed types — If available is false, disable the option and show warning. Do not book it.
Use name_en or name_ar for labels. If available is false, disable the option and show warning.
| Field | Description |
|---|---|
code | Send this as vehicle_type |
name | Label for Accept-Language |
name_ar / name_en | Fixed Arabic and English names |
available | true when the type can be booked |
disabled | true when the type is closed |
warning / warning_ar / warning_en | Message for a closed type (current language, Arabic, English); otherwise null |
{
"data": [
{
"code": "reefer_tank",
"name": "Refrigerated tank truck",
"name_ar": "سيارة دبابة مبردة",
"name_en": "Refrigerated tank truck",
"available": true,
"disabled": false,
"warning": null,
"warning_ar": null,
"warning_en": null
},
{
"code": "freezer_jumbo_18",
"name": "Freezer jumbo truck",
"name_ar": "سيارة جامبو تجميد",
"name_en": "Freezer jumbo truck",
"available": false,
"disabled": true,
"warning": "This vehicle type is not available yet and will be available soon.",
"warning_ar": "…",
"warning_en": "This vehicle type is not available yet and will be available soon."
}
]
}