Download OpenAPI specification:Download
Accept | any Example: application/vnd.api+json |
Content-Type | any Example: application/vnd.api+json |
{- "data": [
- {
- "id": "1",
- "type": "light_photo"
}, - {
- "id": "2",
- "type": "light_photo"
}, - {
- "id": "3",
- "type": "light_photo"
}
]
}
{- "data": [
- {
- "id": "3",
- "type": "light_photo"
}, - {
- "id": "2",
- "type": "light_photo"
}, - {
- "id": "1",
- "type": "light_photo"
}
]
}
id | number Example: 1 |
Accept | any Example: application/vnd.api+json |
Authorization | any Example: Token uZvzeFosstwWMT9FTXSW |
Content-Type | any Example: application/vnd.api+json |
{- "data": {
- "id": 1,
- "nameplate_id": 1,
- "version": "Crisis On Infinite Earths",
- "drivetrain": "The Sinestro Corps War",
- "short_description": "Blanditiis quia laudantium numquam voluptate et eos earum quaerat quae.",
- "production_year": 2015,
- "created_at": "2024-11-20T08:09:20.044Z",
- "updated_at": "2024-11-20T08:09:20.044Z",
- "msrp_price": "43592.0",
- "sale_price": null,
- "monthly_price": null,
- "long_description": "Id laborum perferendis eaque illo repellendus autem quo aut iste enim explicabo doloremque voluptas alias suscipit culpa hic aut non.",
- "state": "new",
- "status": "stock",
- "delivery_date": "2024-11-20",
- "transmission": "manual",
- "vin": null,
- "mileage": 393348,
- "engine_capacity": null,
- "battery_capacity": null,
- "engine_type": [
- "bev"
], - "power": 157,
- "video_url": null,
- "owner_id": 79,
- "color_id": 8,
- "features_standard": null,
- "features_optional": null,
- "model_year": null,
- "external_id": "10cd7f",
- "interior_color": "Ebony",
- "created_by": null,
- "price_hidden": false,
- "prices_type": null,
- "model_code": null,
- "footnote": "Deserunt est aut iure et enim rem nobis natus consectetur.",
- "config_url": null,
- "subscribe_price": null,
- "vehicle_batch_upload_id": null,
- "order_number": null,
- "metadata": null,
- "locked_until": null,
- "lock_id": null,
- "code5000": null,
- "price_metadata": { },
- "manual_update_attributes": [ ],
- "disclaimers": { },
- "price_breakdown": false,
- "base_price": null,
- "total_price": null,
- "published_at": null
}
}
id | number Example: 20 |
Accept | any Example: application/vnd.api+json |
Authorization | any Example: Token vQayo1Jvgj7h8qVVssGF |
Content-Type | any Example: application/vnd.api+json |
{- "status": "reserved",
- "nameplate_id": 20,
- "owner_id": 103,
- "color_id": 27,
- "power": 294,
- "msrp_price": "30767.0",
- "base_price": null,
- "features_optional": null,
- "id": 20,
- "version": "Crisis On Infinite Earths",
- "drivetrain": "The Sinestro Corps War",
- "short_description": "Blanditiis quia laudantium numquam voluptate et eos earum quaerat quae.",
- "production_year": 2015,
- "created_at": "2024-11-20T08:09:20.899Z",
- "updated_at": "2024-11-20T08:09:20.915Z",
- "sale_price": null,
- "monthly_price": null,
- "long_description": "Id laborum perferendis eaque illo repellendus autem quo aut iste enim explicabo doloremque voluptas alias suscipit culpa hic aut non.",
- "state": "new",
- "delivery_date": "2024-12-10",
- "transmission": "auto",
- "vin": null,
- "mileage": 197093,
- "engine_capacity": null,
- "battery_capacity": null,
- "engine_type": [
- "diesel"
], - "video_url": null,
- "features_standard": null,
- "model_year": null,
- "external_id": "b19533",
- "interior_color": "Ebony",
- "created_by": null,
- "price_hidden": false,
- "prices_type": null,
- "model_code": null,
- "footnote": "Deserunt est aut iure et enim rem nobis natus consectetur.",
- "config_url": null,
- "subscribe_price": null,
- "vehicle_batch_upload_id": null,
- "order_number": null,
- "metadata": null,
- "locked_until": null,
- "lock_id": null,
- "code5000": null,
- "price_metadata": { },
- "manual_update_attributes": [ ],
- "disclaimers": { },
- "price_breakdown": false,
- "total_price": null,
- "published_at": null
}
Action is used to lock vehicle after successful booking. It locks vehicle for 15 minutes in order to enable user completing the booking payment. In response it returns lock_id, which can be further used to perform acquire
action to permanently reserve or mark vehicle as sold.
Request Path
PUT /integration_api/buy_online/vehicles/:id/lock
Request Header
Authorization: "Bearer {dealer authorization token}"
Request Body Structure
param | example | type | required | description |
---|---|---|---|---|
id |
2 | integer | yes (in request path) | Id of the vehicle in StockLocator |
Response
Request response is JSON. Vehicle details are returned under data
, while booking details (lock_id
and locked_until
) are returned under meta
> lock_data
.
When vehicle is not found, 404 status is returned.
When lock cannot be performed (because vehicle has reserved
or sold
status or it has already been locked), 422 status is returned.
id | number Example: 3 |
Accept | any Example: application/vnd.api+json |
Authorization | any Example: Token ixbm76cX7GmRfsD3aoLa |
Content-Type | any Example: application/vnd.api+json |
{- "data": {
- "lock_id": "2cae",
- "base_price": null,
- "features_optional": null,
- "id": 3,
- "nameplate_id": 3,
- "version": "Crisis On Infinite Earths",
- "drivetrain": "The Sinestro Corps War",
- "short_description": "Blanditiis quia laudantium numquam voluptate et eos earum quaerat quae.",
- "production_year": 2015,
- "created_at": "2024-11-20T08:09:20.125Z",
- "updated_at": "2024-11-20T08:09:20.151Z",
- "msrp_price": "23146.0",
- "sale_price": null,
- "monthly_price": null,
- "long_description": "Id laborum perferendis eaque illo repellendus autem quo aut iste enim explicabo doloremque voluptas alias suscipit culpa hic aut non.",
- "state": "approved",
- "status": "stock",
- "delivery_date": "2024-12-12",
- "transmission": "auto",
- "vin": null,
- "mileage": 239121,
- "engine_capacity": null,
- "battery_capacity": null,
- "engine_type": [
- "phev"
], - "power": 413,
- "video_url": null,
- "owner_id": 81,
- "color_id": 10,
- "features_standard": null,
- "model_year": null,
- "external_id": "852fa3",
- "interior_color": "Ebony",
- "created_by": null,
- "price_hidden": false,
- "prices_type": null,
- "model_code": null,
- "footnote": "Deserunt est aut iure et enim rem nobis natus consectetur.",
- "config_url": null,
- "subscribe_price": null,
- "vehicle_batch_upload_id": null,
- "order_number": null,
- "metadata": null,
- "locked_until": "2024-11-20T08:24:20.133Z",
- "code5000": null,
- "price_metadata": { },
- "manual_update_attributes": [ ],
- "disclaimers": { },
- "price_breakdown": false,
- "total_price": null,
- "published_at": null
}, - "meta": {
- "lock_data": {
- "locked_until": "2024-11-20T08:24:20.133Z",
- "lock_id": "2cae"
}
}
}
Action is used to unlock soft-locked vehicle. By providing vehicle id and its lock_id lock can be cancelled before expiration time.
Request Path
PUT /integration_api/buy_online/vehicles/:id/unlock/:lock_id
Request Header
Authorization: "Bearer {dealer authorization token}"
Request Body Structure
param | example | type | required | description |
---|---|---|---|---|
id |
2 | integer | yes (in request path) | Id of the vehicle in StockLocator |
lock_id |
44c2 |
string | yes (in request path) | Lock ID of the vehicle |
Response
Request response is JSON. Vehicle details are returned under data
.
When vehicle is not found or is not locked, 404 status is returned.
When unlock fails, 422 status is returned.
Parameters
10
(number, required)lock-id
(string, required)Request returns 200 status when vehicle with lock_id is found
id | number Example: 10 |
lock_id | string Example: lock-id |
Accept | any Example: application/vnd.api+json |
Authorization | any Example: Token pVzuQSi5YnLLF-Ldyrzz |
Content-Type | any Example: application/vnd.api+json |
{- "data": {
- "lock_id": null,
- "locked_until": null,
- "nameplate_id": 10,
- "owner_id": 88,
- "color_id": 17,
- "power": 269,
- "msrp_price": "28752.0",
- "base_price": null,
- "features_optional": null,
- "id": 10,
- "version": "Multiversity",
- "drivetrain": "Detective Comics",
- "short_description": "Eius amet ut natus molestiae aliquid dignissimos soluta omnis esse.",
- "production_year": 2018,
- "created_at": "2024-11-20T08:09:20.432Z",
- "updated_at": "2024-11-20T08:09:20.458Z",
- "sale_price": null,
- "monthly_price": null,
- "long_description": "Molestiae ex nihil earum amet natus eos excepturi labore consectetur veritatis sit veniam corrupti qui vel facilis est et maiores.",
- "state": "used",
- "status": "demo",
- "delivery_date": "2024-12-01",
- "transmission": "auto",
- "vin": null,
- "mileage": 789051,
- "engine_capacity": null,
- "battery_capacity": null,
- "engine_type": [
- "mhev"
], - "video_url": null,
- "features_standard": null,
- "model_year": null,
- "external_id": "8c169f",
- "interior_color": "Ebony",
- "created_by": null,
- "price_hidden": false,
- "prices_type": null,
- "model_code": null,
- "footnote": "Quae expedita possimus laboriosam quis sint aspernatur consectetur enim error.",
- "config_url": null,
- "subscribe_price": null,
- "vehicle_batch_upload_id": null,
- "order_number": null,
- "metadata": null,
- "code5000": null,
- "price_metadata": { },
- "manual_update_attributes": [ ],
- "disclaimers": { },
- "price_breakdown": false,
- "total_price": null,
- "published_at": null
}
}
Action is used to permanently reserve or mark vehicle as sold. It is verified by lock id provided by lock
action and optionally removes vehicle from all listings.
Request Path
PUT /integration_api/buy_online/vehicles/:id/acquire
Request Header
Authorization: "Bearer {dealer authorization token}"
Request Body Structure
param | example | type | required | description |
---|---|---|---|---|
id |
2 | integer | yes (in request path) | Id of the vehicle in StockLocator |
status |
reserved |
string | yes | requested status, possible values are reserved and sold |
lock_id |
12ab |
string | yes if vehicle has lock_id attr | used to check lock identity, if vehicle has matching lock_id, lock is overridden and status is changed |
remove_listings |
true | boolean | no | when set to true vehicle is removed from all listings |
Response
Request response is JSON. Vehicle details are returned under data
key.
When vehicle is not found, 404 status is returned.
When lock cannot be performed (when status param is invalid or lock ids don't match), 422 status is returned.
id | number Example: 15 |
Accept | any Example: application/vnd.api+json |
Authorization | any Example: Token 1vuN-3S2t7mRkiV1vF5h |
Content-Type | any Example: application/vnd.api+json |
{- "data": {
- "status": "reserved",
- "manual_update_attributes": [
- "status"
], - "lock_id": null,
- "locked_until": null,
- "nameplate_id": 15,
- "owner_id": 98,
- "color_id": 22,
- "power": 205,
- "msrp_price": "30605.0",
- "base_price": null,
- "features_optional": null,
- "id": 15,
- "version": "Crisis On Infinite Earths",
- "drivetrain": "The Sinestro Corps War",
- "short_description": "Blanditiis quia laudantium numquam voluptate et eos earum quaerat quae.",
- "production_year": 2015,
- "created_at": "2024-11-20T08:09:20.674Z",
- "updated_at": "2024-11-20T08:09:20.699Z",
- "sale_price": null,
- "monthly_price": null,
- "long_description": "Id laborum perferendis eaque illo repellendus autem quo aut iste enim explicabo doloremque voluptas alias suscipit culpa hic aut non.",
- "state": "used",
- "delivery_date": "2024-12-05",
- "transmission": "manual",
- "vin": null,
- "mileage": 786971,
- "engine_capacity": null,
- "battery_capacity": null,
- "engine_type": [
- "mhev"
], - "video_url": null,
- "features_standard": null,
- "model_year": null,
- "external_id": "0c7f17",
- "interior_color": "Ebony",
- "created_by": null,
- "price_hidden": false,
- "prices_type": null,
- "model_code": null,
- "footnote": "Deserunt est aut iure et enim rem nobis natus consectetur.",
- "config_url": null,
- "subscribe_price": null,
- "vehicle_batch_upload_id": null,
- "order_number": null,
- "metadata": null,
- "code5000": null,
- "price_metadata": { },
- "disclaimers": { },
- "price_breakdown": false,
- "total_price": null,
- "published_at": null
}
}
Authentication is implemented using the HTTP Bearer token.
Every request needs to include that token.
Example Authorization: Token abc123
- where abc123 is the token value.
Accept | any Example: application/json |
Content-Type | any Example: application/json |
Authorization | any Example: Token G1yAksxvfJ6odw2o2BU4 |
{- "vehicle": {
- "version": "Crisis On Infinite Earths",
- "drivetrain": "The Sinestro Corps War",
- "short_description": "Blanditiis quia laudantium numquam voluptate et eos earum quaerat quae.",
- "long_description": "Id laborum perferendis eaque illo repellendus autem quo aut iste enim explicabo doloremque voluptas alias suscipit culpa hic aut non.",
- "footnote": "Deserunt est aut iure et enim rem nobis natus consectetur.",
- "production_year": 2015,
- "state": "new",
- "status": "in_production",
- "transmission": "auto",
- "engine_type": [
- "phev"
], - "delivery_date": "2024-12-10",
- "power": 260,
- "msrp_price": 29894,
- "interior_color": "Ebony",
- "mileage": 352941,
- "type": "ActiveVehicle",
- "metadata": {
- "test": 1
}, - "external_id": "06f5e6",
- "features_optional": null,
- "features_standard": null,
- "nameplate_name": "Hooloovoo",
- "color_name": "Chocolate Concrete",
}
}
{- "id": 25,
- "nameplate_id": 31,
- "version": "Crisis On Infinite Earths",
- "drivetrain": "The Sinestro Corps War",
- "short_description": "Blanditiis quia laudantium numquam voluptate et eos earum quaerat quae.",
- "production_year": 2015,
- "created_at": "2024-11-20T08:09:21.375Z",
- "updated_at": "2024-11-20T08:09:21.382Z",
- "msrp_price": "22222.0",
- "sale_price": null,
- "monthly_price": null,
- "long_description": "Id laborum perferendis eaque illo repellendus autem quo aut iste enim explicabo doloremque voluptas alias suscipit culpa hic aut non.",
- "state": "approved",
- "status": "in_production",
- "delivery_date": "2024-11-24",
- "transmission": "auto",
- "vin": null,
- "mileage": 42789,
- "engine_capacity": null,
- "battery_capacity": null,
- "engine_type": [
- "hev"
], - "power": 327,
- "video_url": null,
- "owner_id": 116,
- "color_id": 39,
- "features_standard": null,
- "features_optional": null,
- "model_year": null,
- "external_id": "24d6c7",
- "interior_color": "Ebony",
- "created_by": null,
- "price_hidden": false,
- "prices_type": null,
- "model_code": null,
- "footnote": null,
- "config_url": null,
- "subscribe_price": null,
- "vehicle_batch_upload_id": null,
- "order_number": null,
- "metadata": {
- "test": 1
}, - "locked_until": null,
- "lock_id": null,
- "code5000": null,
- "price_metadata": { },
- "manual_update_attributes": [ ],
- "disclaimers": { },
- "price_breakdown": false,
- "base_price": null,
- "total_price": null,
- "published_at": null
}
This endpoint allows you to create or update a vehicle in the Stock Locator system. For vehicle creation, you need to provide a set of required attributes (described below) but there are some extra, non-obligatory attributes which may be worth filling in to keep the vehicle description as complete as possible. For vehicle update, the attributes marked as required are no longer required - if they are not provided, the Stock Locator application assumes that they don't have to be updated.
One attribute which is important in this API is external_id
- in general it is optional in the Stock Locator system, however in this API you should
consider it as required. This attribute allows you to set an ID (you should set your own value or use value from your stock management system). The
external_id
is later used to identify a vehicle you may want to update od remove from the system.
param | example | type | description |
---|---|---|---|
color_name |
'Eiger Grey' | string | See /colors endpoint for available colors. You can alternatively pass 'color_id' instead of the ID of the Color |
nameplate_name |
'F-Pace' | string | See /nameplates endpoint for available nameplates. You can alternatively pass nameplate_id instead with the ID of the Nameplate |
version |
'HSE' | string | Version/Trim Level name/description |
drivetrain |
'P300 AWD' | string | Drivetrain (Engine, gearbox etc) description |
state |
'new' | enum | Vehicle state. New, User or Approved |
status |
'stock' | enum | Stock status of the Vehicle |
transmission |
'auto' | enum | type of transmission, auto by default |
mileage |
123000 | number | vehicle mileage in ower company units |
engine_type |
['petrol', 'mhev'] | array | kind of engine, as a strings array |
production_year |
2020 | integer | Year when vehicle was manufacturedd |
msrp_price |
123000 | decimal(18,2) | Retailer price |
external_id |
'abd-3345' | string | External ID (of your choice) for the vehicle. Required to allow vehicle update/removal |
param | example | type | description |
---|---|---|---|
short_description |
'Lorem ipsum' | string | Short description paragraph |
sale_price |
120000 | decimal(18,2) | Sale Price |
monthly_price |
2500.01 | decimal(18,2) | Monthly price |
subscribe_price |
2700.00 | decimal(18,2) | Subscribe price |
long_description |
'Lorem ...' | string | Full description copy (potentialy HTML) |
delivery_date |
2020-02-02 | date | Date of delivery |
vin |
'XXX' | string | Vehicle Vin number |
engine_capacity |
1999 | number | engine capacity in ccm |
battery_capacity |
2020 | number | battery capacity in owner company units |
power |
200 | number | vehicle power in owner company units |
video_url |
'https://youtu.be/bJqimfimHjE' | string | youtube video url |
photos |
['http://site.com/1.png'] | array | photos url (first photo will become a cover photo) |
attachment |
'http://example.com/file.pdf' | string | attachment link |
features_standard |
[{"code": "S1", "label": "Label1"}, ...] | [Feature] | array of Feature-type objects, described below |
features_optional |
[{"code": "O1", "label": "Label2"}, ...] | [Feature] | array of Feature-type objects, described below |
interior_color |
'Snow white' | string | interior color |
price_hidden |
false | boolean | defines if the price should be hidden for visitors (default: false ) |
prices_type |
'incl_taxes' | string | defines if the price includes taxes |
metadata |
{ "some_key": "some_value" } | json | any metadata you'd like to set for the vehicle, not displayed in Stock Locator |
listing_ids |
[] | [integer] | array of liting IDs the vehicle should be published to. Empty array unpublishes the vehicle from all listings |
config_url |
'https://config.url/conf213' | string | link to configuration of the vehicle |
type |
DraftVehicle |
string | ActiveVehicle (default) or DraftVehicle |
Feature
type objectsEach "feature" is a JSON object with 3 possible attributes:
Allowed values for category
are:
state
valuesnew
used
approved
status
valuesstock
- Vehicles in stockdelivery
- Vehicle in deliveryreserved
- Reserved Vehicle (will be user later)in_production
- Vehicle in productionavailable_soon
- Vehicle will be available soonon_demand
- Vehicle is available on demandsold
- Vehicle has been soldtranssmision
valuesauto
manual
engine_type
valuespetrol
diesel
bev
- Electric Vehiclehev
- Hybridmhev
- Mild Hybridphev
- Plug-In Hybridprices_type
valuesincl_taxes
(if the price includes taxes)excl_taxes
(if the prices does not include taxes)null
/ empty - not specifiedAccept | any Example: application/vnd.api+json |
Authorization | any Example: Token 5sE6psgQtmseo_QEwnkL |
Content-Type | any Example: application/vnd.api+json |
{- "vehicle": {
- "version": "Crisis On Infinite Earths",
- "drivetrain": "The Sinestro Corps War",
- "short_description": "Blanditiis quia laudantium numquam voluptate et eos earum quaerat quae.",
- "long_description": "Id laborum perferendis eaque illo repellendus autem quo aut iste enim explicabo doloremque voluptas alias suscipit culpa hic aut non.",
- "footnote": "Deserunt est aut iure et enim rem nobis natus consectetur.",
- "production_year": 2015,
- "state": "used",
- "status": "on_demand",
- "transmission": "manual",
- "engine_type": [
- "hev"
], - "delivery_date": "2024-12-01",
- "power": 348,
- "msrp_price": 34956,
- "interior_color": "Ebony",
- "mileage": 326590,
- "type": "ActiveVehicle",
- "metadata": {
- "test": 1
}, - "external_id": "8f62e1",
- "features_optional": null,
- "features_standard": null,
- "nameplate_name": "Hooloovoo",
- "color_name": "Chocolate Concrete",
}
}
{- "id": 26,
- "nameplate_id": 32,
- "version": "Crisis On Infinite Earths",
- "drivetrain": "The Sinestro Corps War",
- "short_description": "Blanditiis quia laudantium numquam voluptate et eos earum quaerat quae.",
- "production_year": 2015,
- "created_at": "2024-11-20T08:09:21.465Z",
- "updated_at": "2024-11-20T08:09:21.472Z",
- "msrp_price": "34956.0",
- "sale_price": null,
- "monthly_price": null,
- "long_description": "Id laborum perferendis eaque illo repellendus autem quo aut iste enim explicabo doloremque voluptas alias suscipit culpa hic aut non.",
- "state": "used",
- "status": "on_demand",
- "delivery_date": "2024-12-01",
- "transmission": "manual",
- "vin": null,
- "mileage": 326590,
- "engine_capacity": null,
- "battery_capacity": null,
- "engine_type": [
- "hev"
], - "power": 348,
- "video_url": null,
- "owner_id": 118,
- "color_id": 41,
- "features_standard": null,
- "features_optional": null,
- "model_year": null,
- "external_id": "8f62e1",
- "interior_color": "Ebony",
- "created_by": null,
- "price_hidden": false,
- "prices_type": null,
- "model_code": null,
- "footnote": null,
- "config_url": null,
- "subscribe_price": null,
- "vehicle_batch_upload_id": null,
- "order_number": null,
- "metadata": {
- "test": 1
}, - "locked_until": null,
- "lock_id": null,
- "code5000": null,
- "price_metadata": { },
- "manual_update_attributes": [ ],
- "disclaimers": { },
- "price_breakdown": false,
- "base_price": null,
- "total_price": null,
- "published_at": null
}
external_id | string Example: 50fa005d-4179-47d4-9895-fc6063076a0a |
external_id required | string Example: external_id=external_system_id_string Uniq Id from integrated system alowing to find particular vehicle |
Accept | any Example: application/vnd.api+json |
Authorization | any Example: Token zaT7chKa6-1zkvTofTyq |
Content-Type | any Example: application/vnd.api+json |
{- "id": 27,
- "nameplate_id": 33,
- "version": "Crisis On Infinite Earths",
- "drivetrain": "The Sinestro Corps War",
- "short_description": "Blanditiis quia laudantium numquam voluptate et eos earum quaerat quae.",
- "production_year": 2015,
- "created_at": "2024-11-20T08:09:21.526Z",
- "updated_at": "2024-11-20T08:09:21.526Z",
- "msrp_price": "38753.0",
- "sale_price": null,
- "monthly_price": null,
- "long_description": "Id laborum perferendis eaque illo repellendus autem quo aut iste enim explicabo doloremque voluptas alias suscipit culpa hic aut non.",
- "state": "approved",
- "status": "available_soon",
- "delivery_date": "2024-12-05",
- "transmission": "manual",
- "vin": null,
- "mileage": 96333,
- "engine_capacity": null,
- "battery_capacity": null,
- "engine_type": [
- "phev"
], - "power": 273,
- "video_url": null,
- "owner_id": 121,
- "color_id": 42,
- "features_standard": null,
- "features_optional": null,
- "model_year": null,
- "external_id": "50fa005d-4179-47d4-9895-fc6063076a0a",
- "interior_color": "Ebony",
- "created_by": null,
- "price_hidden": false,
- "prices_type": null,
- "model_code": null,
- "footnote": "Deserunt est aut iure et enim rem nobis natus consectetur.",
- "config_url": null,
- "subscribe_price": null,
- "vehicle_batch_upload_id": null,
- "order_number": null,
- "metadata": null,
- "locked_until": null,
- "lock_id": null,
- "code5000": null,
- "price_metadata": { },
- "manual_update_attributes": [ ],
- "disclaimers": { },
- "price_breakdown": false,
- "base_price": null,
- "total_price": null,
- "published_at": null
}
Authentication is implemented using the HTTP Bearer token.
Every request needs to include that token.
Example Authorization: Token abc123
- where abc123 is the token value.
Accept | any Example: application/json |
Content-Type | any Example: application/json |
Authorization | any Example: Token Xu7ZwRHzT5HEczS5Mtn_ |
[ ]
Accept | any Example: application/vnd.api+json |
Authorization | any Example: Token RrLmcExC23ViMMsLkRvr |
Content-Type | any Example: application/vnd.api+json |
[- {
- "id": 29,
- "name": "Puce Steel",
- "canonical": "orange",
- "owner_type": "Company",
- "owner_id": 107,
- "created_at": "2024-11-20T08:09:20.993Z",
- "updated_at": "2024-11-20T08:09:20.993Z"
}, - {
- "id": 30,
- "name": "Cerulean Granite",
- "canonical": "black",
- "owner_type": "Company",
- "owner_id": 107,
- "created_at": "2024-11-20T08:09:20.994Z",
- "updated_at": "2024-11-20T08:09:20.994Z"
}, - {
- "id": 31,
- "name": "Periwinkle Rubber",
- "canonical": "blue",
- "owner_type": "Company",
- "owner_id": 107,
- "created_at": "2024-11-20T08:09:20.995Z",
- "updated_at": "2024-11-20T08:09:20.995Z"
}
]
Authentication is implemented using the HTTP Bearer token.
Every request needs to include that token.
Example Authorization: Token abc123
- where abc123 is the token value.
Accept | any Example: application/json |
Content-Type | any Example: application/json |
Authorization | any Example: Token HXg4m3_cJqvxJQmDA7f_ |
[ ]
Accept | any Example: application/vnd.api+json |
Authorization | any Example: Token 9x_is5WcRiqSsFk-A7Mr |
Content-Type | any Example: application/vnd.api+json |
[- {
- "id": 22,
- "name": "Mattress",
- "brand_id": 56,
- "created_at": "2024-11-20T08:09:21.067Z",
- "updated_at": "2024-11-20T08:09:21.067Z",
- "model_code_years": null,
- "model_group": null,
- "external_code_long": null
}, - {
- "id": 23,
- "name": "Hooloovoo",
- "brand_id": 57,
- "created_at": "2024-11-20T08:09:21.069Z",
- "updated_at": "2024-11-20T08:09:21.069Z",
- "model_code_years": null,
- "model_group": null,
- "external_code_long": null
}, - {
- "id": 24,
- "name": "Belcerebon",
- "brand_id": 58,
- "created_at": "2024-11-20T08:09:21.073Z",
- "updated_at": "2024-11-20T08:09:21.073Z",
- "model_code_years": null,
- "model_group": null,
- "external_code_long": null
}, - {
- "id": 25,
- "name": "Sarkopsi",
- "brand_id": 59,
- "created_at": "2024-11-20T08:09:21.075Z",
- "updated_at": "2024-11-20T08:09:21.075Z",
- "model_code_years": null,
- "model_group": null,
- "external_code_long": null
}, - {
- "id": 26,
- "name": "Jatravartid",
- "brand_id": 60,
- "created_at": "2024-11-20T08:09:21.078Z",
- "updated_at": "2024-11-20T08:09:21.078Z",
- "model_code_years": null,
- "model_group": null,
- "external_code_long": null
}
]
vehicle_external_id | string Example: abc123 |
Accept | any Example: application/json |
Authorization | any Example: Token invalid_token |
Content-Type | any Example: application/json |
{
}
[- {
- "id": 4,
- "sequence": 0,
- "vehicle_id": 23,
- "created_at": "2024-11-20T08:09:21.228Z",
- "updated_at": "2024-11-20T08:09:21.238Z"
}
]
id | number Example: 1 |
Accept | any Example: application/vnd.api+json |
Authorization | any Example: Token uZvzeFosstwWMT9FTXSW |
Content-Type | any Example: application/vnd.api+json |
{- "data": {
- "id": 1,
- "nameplate_id": 1,
- "version": "Crisis On Infinite Earths",
- "drivetrain": "The Sinestro Corps War",
- "short_description": "Blanditiis quia laudantium numquam voluptate et eos earum quaerat quae.",
- "production_year": 2015,
- "created_at": "2024-11-20T08:09:20.044Z",
- "updated_at": "2024-11-20T08:09:20.044Z",
- "msrp_price": "43592.0",
- "sale_price": null,
- "monthly_price": null,
- "long_description": "Id laborum perferendis eaque illo repellendus autem quo aut iste enim explicabo doloremque voluptas alias suscipit culpa hic aut non.",
- "state": "new",
- "status": "stock",
- "delivery_date": "2024-11-20",
- "transmission": "manual",
- "vin": null,
- "mileage": 393348,
- "engine_capacity": null,
- "battery_capacity": null,
- "engine_type": [
- "bev"
], - "power": 157,
- "video_url": null,
- "owner_id": 79,
- "color_id": 8,
- "features_standard": null,
- "features_optional": null,
- "model_year": null,
- "external_id": "10cd7f",
- "interior_color": "Ebony",
- "created_by": null,
- "price_hidden": false,
- "prices_type": null,
- "model_code": null,
- "footnote": "Deserunt est aut iure et enim rem nobis natus consectetur.",
- "config_url": null,
- "subscribe_price": null,
- "vehicle_batch_upload_id": null,
- "order_number": null,
- "metadata": null,
- "locked_until": null,
- "lock_id": null,
- "code5000": null,
- "price_metadata": { },
- "manual_update_attributes": [ ],
- "disclaimers": { },
- "price_breakdown": false,
- "base_price": null,
- "total_price": null,
- "published_at": null
}
}
id | number Example: 20 |
Accept | any Example: application/vnd.api+json |
Authorization | any Example: Token vQayo1Jvgj7h8qVVssGF |
Content-Type | any Example: application/vnd.api+json |
{- "status": "reserved",
- "nameplate_id": 20,
- "owner_id": 103,
- "color_id": 27,
- "power": 294,
- "msrp_price": "30767.0",
- "base_price": null,
- "features_optional": null,
- "id": 20,
- "version": "Crisis On Infinite Earths",
- "drivetrain": "The Sinestro Corps War",
- "short_description": "Blanditiis quia laudantium numquam voluptate et eos earum quaerat quae.",
- "production_year": 2015,
- "created_at": "2024-11-20T08:09:20.899Z",
- "updated_at": "2024-11-20T08:09:20.915Z",
- "sale_price": null,
- "monthly_price": null,
- "long_description": "Id laborum perferendis eaque illo repellendus autem quo aut iste enim explicabo doloremque voluptas alias suscipit culpa hic aut non.",
- "state": "new",
- "delivery_date": "2024-12-10",
- "transmission": "auto",
- "vin": null,
- "mileage": 197093,
- "engine_capacity": null,
- "battery_capacity": null,
- "engine_type": [
- "diesel"
], - "video_url": null,
- "features_standard": null,
- "model_year": null,
- "external_id": "b19533",
- "interior_color": "Ebony",
- "created_by": null,
- "price_hidden": false,
- "prices_type": null,
- "model_code": null,
- "footnote": "Deserunt est aut iure et enim rem nobis natus consectetur.",
- "config_url": null,
- "subscribe_price": null,
- "vehicle_batch_upload_id": null,
- "order_number": null,
- "metadata": null,
- "locked_until": null,
- "lock_id": null,
- "code5000": null,
- "price_metadata": { },
- "manual_update_attributes": [ ],
- "disclaimers": { },
- "price_breakdown": false,
- "total_price": null,
- "published_at": null
}
Action is used to lock vehicle after successful booking. It locks vehicle for 15 minutes in order to enable user completing the booking payment. In response it returns lock_id, which can be further used to perform acquire
action to permanently reserve or mark vehicle as sold.
Request Path
PUT /integration_api/buy_online/vehicles/:id/lock
Request Header
Authorization: "Bearer {dealer authorization token}"
Request Body Structure
param | example | type | required | description |
---|---|---|---|---|
id |
2 | integer | yes (in request path) | Id of the vehicle in StockLocator |
Response
Request response is JSON. Vehicle details are returned under data
, while booking details (lock_id
and locked_until
) are returned under meta
> lock_data
.
When vehicle is not found, 404 status is returned.
When lock cannot be performed (because vehicle has reserved
or sold
status or it has already been locked), 422 status is returned.
id | number Example: 3 |
Accept | any Example: application/vnd.api+json |
Authorization | any Example: Token ixbm76cX7GmRfsD3aoLa |
Content-Type | any Example: application/vnd.api+json |
{- "data": {
- "lock_id": "2cae",
- "base_price": null,
- "features_optional": null,
- "id": 3,
- "nameplate_id": 3,
- "version": "Crisis On Infinite Earths",
- "drivetrain": "The Sinestro Corps War",
- "short_description": "Blanditiis quia laudantium numquam voluptate et eos earum quaerat quae.",
- "production_year": 2015,
- "created_at": "2024-11-20T08:09:20.125Z",
- "updated_at": "2024-11-20T08:09:20.151Z",
- "msrp_price": "23146.0",
- "sale_price": null,
- "monthly_price": null,
- "long_description": "Id laborum perferendis eaque illo repellendus autem quo aut iste enim explicabo doloremque voluptas alias suscipit culpa hic aut non.",
- "state": "approved",
- "status": "stock",
- "delivery_date": "2024-12-12",
- "transmission": "auto",
- "vin": null,
- "mileage": 239121,
- "engine_capacity": null,
- "battery_capacity": null,
- "engine_type": [
- "phev"
], - "power": 413,
- "video_url": null,
- "owner_id": 81,
- "color_id": 10,
- "features_standard": null,
- "model_year": null,
- "external_id": "852fa3",
- "interior_color": "Ebony",
- "created_by": null,
- "price_hidden": false,
- "prices_type": null,
- "model_code": null,
- "footnote": "Deserunt est aut iure et enim rem nobis natus consectetur.",
- "config_url": null,
- "subscribe_price": null,
- "vehicle_batch_upload_id": null,
- "order_number": null,
- "metadata": null,
- "locked_until": "2024-11-20T08:24:20.133Z",
- "code5000": null,
- "price_metadata": { },
- "manual_update_attributes": [ ],
- "disclaimers": { },
- "price_breakdown": false,
- "total_price": null,
- "published_at": null
}, - "meta": {
- "lock_data": {
- "locked_until": "2024-11-20T08:24:20.133Z",
- "lock_id": "2cae"
}
}
}
Action is used to unlock soft-locked vehicle. By providing vehicle id and its lock_id lock can be cancelled before expiration time.
Request Path
PUT /integration_api/buy_online/vehicles/:id/unlock/:lock_id
Request Header
Authorization: "Bearer {dealer authorization token}"
Request Body Structure
param | example | type | required | description |
---|---|---|---|---|
id |
2 | integer | yes (in request path) | Id of the vehicle in StockLocator |
lock_id |
44c2 |
string | yes (in request path) | Lock ID of the vehicle |
Response
Request response is JSON. Vehicle details are returned under data
.
When vehicle is not found or is not locked, 404 status is returned.
When unlock fails, 422 status is returned.
Parameters
10
(number, required)lock-id
(string, required)Request returns 200 status when vehicle with lock_id is found
id | number Example: 10 |
lock_id | string Example: lock-id |
Accept | any Example: application/vnd.api+json |
Authorization | any Example: Token pVzuQSi5YnLLF-Ldyrzz |
Content-Type | any Example: application/vnd.api+json |
{- "data": {
- "lock_id": null,
- "locked_until": null,
- "nameplate_id": 10,
- "owner_id": 88,
- "color_id": 17,
- "power": 269,
- "msrp_price": "28752.0",
- "base_price": null,
- "features_optional": null,
- "id": 10,
- "version": "Multiversity",
- "drivetrain": "Detective Comics",
- "short_description": "Eius amet ut natus molestiae aliquid dignissimos soluta omnis esse.",
- "production_year": 2018,
- "created_at": "2024-11-20T08:09:20.432Z",
- "updated_at": "2024-11-20T08:09:20.458Z",
- "sale_price": null,
- "monthly_price": null,
- "long_description": "Molestiae ex nihil earum amet natus eos excepturi labore consectetur veritatis sit veniam corrupti qui vel facilis est et maiores.",
- "state": "used",
- "status": "demo",
- "delivery_date": "2024-12-01",
- "transmission": "auto",
- "vin": null,
- "mileage": 789051,
- "engine_capacity": null,
- "battery_capacity": null,
- "engine_type": [
- "mhev"
], - "video_url": null,
- "features_standard": null,
- "model_year": null,
- "external_id": "8c169f",
- "interior_color": "Ebony",
- "created_by": null,
- "price_hidden": false,
- "prices_type": null,
- "model_code": null,
- "footnote": "Quae expedita possimus laboriosam quis sint aspernatur consectetur enim error.",
- "config_url": null,
- "subscribe_price": null,
- "vehicle_batch_upload_id": null,
- "order_number": null,
- "metadata": null,
- "code5000": null,
- "price_metadata": { },
- "manual_update_attributes": [ ],
- "disclaimers": { },
- "price_breakdown": false,
- "total_price": null,
- "published_at": null
}
}
Action is used to permanently reserve or mark vehicle as sold. It is verified by lock id provided by lock
action and optionally removes vehicle from all listings.
Request Path
PUT /integration_api/buy_online/vehicles/:id/acquire
Request Header
Authorization: "Bearer {dealer authorization token}"
Request Body Structure
param | example | type | required | description |
---|---|---|---|---|
id |
2 | integer | yes (in request path) | Id of the vehicle in StockLocator |
status |
reserved |
string | yes | requested status, possible values are reserved and sold |
lock_id |
12ab |
string | yes if vehicle has lock_id attr | used to check lock identity, if vehicle has matching lock_id, lock is overridden and status is changed |
remove_listings |
true | boolean | no | when set to true vehicle is removed from all listings |
Response
Request response is JSON. Vehicle details are returned under data
key.
When vehicle is not found, 404 status is returned.
When lock cannot be performed (when status param is invalid or lock ids don't match), 422 status is returned.
id | number Example: 15 |
Accept | any Example: application/vnd.api+json |
Authorization | any Example: Token 1vuN-3S2t7mRkiV1vF5h |
Content-Type | any Example: application/vnd.api+json |
{- "data": {
- "status": "reserved",
- "manual_update_attributes": [
- "status"
], - "lock_id": null,
- "locked_until": null,
- "nameplate_id": 15,
- "owner_id": 98,
- "color_id": 22,
- "power": 205,
- "msrp_price": "30605.0",
- "base_price": null,
- "features_optional": null,
- "id": 15,
- "version": "Crisis On Infinite Earths",
- "drivetrain": "The Sinestro Corps War",
- "short_description": "Blanditiis quia laudantium numquam voluptate et eos earum quaerat quae.",
- "production_year": 2015,
- "created_at": "2024-11-20T08:09:20.674Z",
- "updated_at": "2024-11-20T08:09:20.699Z",
- "sale_price": null,
- "monthly_price": null,
- "long_description": "Id laborum perferendis eaque illo repellendus autem quo aut iste enim explicabo doloremque voluptas alias suscipit culpa hic aut non.",
- "state": "used",
- "delivery_date": "2024-12-05",
- "transmission": "manual",
- "vin": null,
- "mileage": 786971,
- "engine_capacity": null,
- "battery_capacity": null,
- "engine_type": [
- "mhev"
], - "video_url": null,
- "features_standard": null,
- "model_year": null,
- "external_id": "0c7f17",
- "interior_color": "Ebony",
- "created_by": null,
- "price_hidden": false,
- "prices_type": null,
- "model_code": null,
- "footnote": "Deserunt est aut iure et enim rem nobis natus consectetur.",
- "config_url": null,
- "subscribe_price": null,
- "vehicle_batch_upload_id": null,
- "order_number": null,
- "metadata": null,
- "code5000": null,
- "price_metadata": { },
- "disclaimers": { },
- "price_breakdown": false,
- "total_price": null,
- "published_at": null
}
}
Authentication is implemented using the HTTP Bearer token.
Every request needs to include that token.
Example Authorization: Token abc123
- where abc123 is the token value.
Accept | any Example: application/json |
Content-Type | any Example: application/json |
Authorization | any Example: Token G1yAksxvfJ6odw2o2BU4 |
{- "vehicle": {
- "version": "Crisis On Infinite Earths",
- "drivetrain": "The Sinestro Corps War",
- "short_description": "Blanditiis quia laudantium numquam voluptate et eos earum quaerat quae.",
- "long_description": "Id laborum perferendis eaque illo repellendus autem quo aut iste enim explicabo doloremque voluptas alias suscipit culpa hic aut non.",
- "footnote": "Deserunt est aut iure et enim rem nobis natus consectetur.",
- "production_year": 2015,
- "state": "new",
- "status": "in_production",
- "transmission": "auto",
- "engine_type": [
- "phev"
], - "delivery_date": "2024-12-10",
- "power": 260,
- "msrp_price": 29894,
- "interior_color": "Ebony",
- "mileage": 352941,
- "type": "ActiveVehicle",
- "metadata": {
- "test": 1
}, - "external_id": "06f5e6",
- "features_optional": null,
- "features_standard": null,
- "nameplate_name": "Hooloovoo",
- "color_name": "Chocolate Concrete",
}
}
{- "id": 25,
- "nameplate_id": 31,
- "version": "Crisis On Infinite Earths",
- "drivetrain": "The Sinestro Corps War",
- "short_description": "Blanditiis quia laudantium numquam voluptate et eos earum quaerat quae.",
- "production_year": 2015,
- "created_at": "2024-11-20T08:09:21.375Z",
- "updated_at": "2024-11-20T08:09:21.382Z",
- "msrp_price": "22222.0",
- "sale_price": null,
- "monthly_price": null,
- "long_description": "Id laborum perferendis eaque illo repellendus autem quo aut iste enim explicabo doloremque voluptas alias suscipit culpa hic aut non.",
- "state": "approved",
- "status": "in_production",
- "delivery_date": "2024-11-24",
- "transmission": "auto",
- "vin": null,
- "mileage": 42789,
- "engine_capacity": null,
- "battery_capacity": null,
- "engine_type": [
- "hev"
], - "power": 327,
- "video_url": null,
- "owner_id": 116,
- "color_id": 39,
- "features_standard": null,
- "features_optional": null,
- "model_year": null,
- "external_id": "24d6c7",
- "interior_color": "Ebony",
- "created_by": null,
- "price_hidden": false,
- "prices_type": null,
- "model_code": null,
- "footnote": null,
- "config_url": null,
- "subscribe_price": null,
- "vehicle_batch_upload_id": null,
- "order_number": null,
- "metadata": {
- "test": 1
}, - "locked_until": null,
- "lock_id": null,
- "code5000": null,
- "price_metadata": { },
- "manual_update_attributes": [ ],
- "disclaimers": { },
- "price_breakdown": false,
- "base_price": null,
- "total_price": null,
- "published_at": null
}
This endpoint allows you to create or update a vehicle in the Stock Locator system. For vehicle creation, you need to provide a set of required attributes (described below) but there are some extra, non-obligatory attributes which may be worth filling in to keep the vehicle description as complete as possible. For vehicle update, the attributes marked as required are no longer required - if they are not provided, the Stock Locator application assumes that they don't have to be updated.
One attribute which is important in this API is external_id
- in general it is optional in the Stock Locator system, however in this API you should
consider it as required. This attribute allows you to set an ID (you should set your own value or use value from your stock management system). The
external_id
is later used to identify a vehicle you may want to update od remove from the system.
param | example | type | description |
---|---|---|---|
color_name |
'Eiger Grey' | string | See /colors endpoint for available colors. You can alternatively pass 'color_id' instead of the ID of the Color |
nameplate_name |
'F-Pace' | string | See /nameplates endpoint for available nameplates. You can alternatively pass nameplate_id instead with the ID of the Nameplate |
version |
'HSE' | string | Version/Trim Level name/description |
drivetrain |
'P300 AWD' | string | Drivetrain (Engine, gearbox etc) description |
state |
'new' | enum | Vehicle state. New, User or Approved |
status |
'stock' | enum | Stock status of the Vehicle |
transmission |
'auto' | enum | type of transmission, auto by default |
mileage |
123000 | number | vehicle mileage in ower company units |
engine_type |
['petrol', 'mhev'] | array | kind of engine, as a strings array |
production_year |
2020 | integer | Year when vehicle was manufacturedd |
msrp_price |
123000 | decimal(18,2) | Retailer price |
external_id |
'abd-3345' | string | External ID (of your choice) for the vehicle. Required to allow vehicle update/removal |
param | example | type | description |
---|---|---|---|
short_description |
'Lorem ipsum' | string | Short description paragraph |
sale_price |
120000 | decimal(18,2) | Sale Price |
monthly_price |
2500.01 | decimal(18,2) | Monthly price |
subscribe_price |
2700.00 | decimal(18,2) | Subscribe price |
long_description |
'Lorem ...' | string | Full description copy (potentialy HTML) |
delivery_date |
2020-02-02 | date | Date of delivery |
vin |
'XXX' | string | Vehicle Vin number |
engine_capacity |
1999 | number | engine capacity in ccm |
battery_capacity |
2020 | number | battery capacity in owner company units |
power |
200 | number | vehicle power in owner company units |
video_url |
'https://youtu.be/bJqimfimHjE' | string | youtube video url |
photos |
['http://site.com/1.png'] | array | photos url (first photo will become a cover photo) |
attachment |
'http://example.com/file.pdf' | string | attachment link |
features_standard |
[{"code": "S1", "label": "Label1"}, ...] | [Feature] | array of Feature-type objects, described below |
features_optional |
[{"code": "O1", "label": "Label2"}, ...] | [Feature] | array of Feature-type objects, described below |
interior_color |
'Snow white' | string | interior color |
price_hidden |
false | boolean | defines if the price should be hidden for visitors (default: false ) |
prices_type |
'incl_taxes' | string | defines if the price includes taxes |
metadata |
{ "some_key": "some_value" } | json | any metadata you'd like to set for the vehicle, not displayed in Stock Locator |
listing_ids |
[] | [integer] | array of liting IDs the vehicle should be published to. Empty array unpublishes the vehicle from all listings |
config_url |
'https://config.url/conf213' | string | link to configuration of the vehicle |
type |
DraftVehicle |
string | ActiveVehicle (default) or DraftVehicle |
Feature
type objectsEach "feature" is a JSON object with 3 possible attributes:
Allowed values for category
are:
state
valuesnew
used
approved
status
valuesstock
- Vehicles in stockdelivery
- Vehicle in deliveryreserved
- Reserved Vehicle (will be user later)in_production
- Vehicle in productionavailable_soon
- Vehicle will be available soonon_demand
- Vehicle is available on demandsold
- Vehicle has been soldtranssmision
valuesauto
manual
engine_type
valuespetrol
diesel
bev
- Electric Vehiclehev
- Hybridmhev
- Mild Hybridphev
- Plug-In Hybridprices_type
valuesincl_taxes
(if the price includes taxes)excl_taxes
(if the prices does not include taxes)null
/ empty - not specifiedAccept | any Example: application/vnd.api+json |
Authorization | any Example: Token 5sE6psgQtmseo_QEwnkL |
Content-Type | any Example: application/vnd.api+json |
{- "vehicle": {
- "version": "Crisis On Infinite Earths",
- "drivetrain": "The Sinestro Corps War",
- "short_description": "Blanditiis quia laudantium numquam voluptate et eos earum quaerat quae.",
- "long_description": "Id laborum perferendis eaque illo repellendus autem quo aut iste enim explicabo doloremque voluptas alias suscipit culpa hic aut non.",
- "footnote": "Deserunt est aut iure et enim rem nobis natus consectetur.",
- "production_year": 2015,
- "state": "used",
- "status": "on_demand",
- "transmission": "manual",
- "engine_type": [
- "hev"
], - "delivery_date": "2024-12-01",
- "power": 348,
- "msrp_price": 34956,
- "interior_color": "Ebony",
- "mileage": 326590,
- "type": "ActiveVehicle",
- "metadata": {
- "test": 1
}, - "external_id": "8f62e1",
- "features_optional": null,
- "features_standard": null,
- "nameplate_name": "Hooloovoo",
- "color_name": "Chocolate Concrete",
}
}
{- "id": 26,
- "nameplate_id": 32,
- "version": "Crisis On Infinite Earths",
- "drivetrain": "The Sinestro Corps War",
- "short_description": "Blanditiis quia laudantium numquam voluptate et eos earum quaerat quae.",
- "production_year": 2015,
- "created_at": "2024-11-20T08:09:21.465Z",
- "updated_at": "2024-11-20T08:09:21.472Z",
- "msrp_price": "34956.0",
- "sale_price": null,
- "monthly_price": null,
- "long_description": "Id laborum perferendis eaque illo repellendus autem quo aut iste enim explicabo doloremque voluptas alias suscipit culpa hic aut non.",
- "state": "used",
- "status": "on_demand",
- "delivery_date": "2024-12-01",
- "transmission": "manual",
- "vin": null,
- "mileage": 326590,
- "engine_capacity": null,
- "battery_capacity": null,
- "engine_type": [
- "hev"
], - "power": 348,
- "video_url": null,
- "owner_id": 118,
- "color_id": 41,
- "features_standard": null,
- "features_optional": null,
- "model_year": null,
- "external_id": "8f62e1",
- "interior_color": "Ebony",
- "created_by": null,
- "price_hidden": false,
- "prices_type": null,
- "model_code": null,
- "footnote": null,
- "config_url": null,
- "subscribe_price": null,
- "vehicle_batch_upload_id": null,
- "order_number": null,
- "metadata": {
- "test": 1
}, - "locked_until": null,
- "lock_id": null,
- "code5000": null,
- "price_metadata": { },
- "manual_update_attributes": [ ],
- "disclaimers": { },
- "price_breakdown": false,
- "base_price": null,
- "total_price": null,
- "published_at": null
}
external_id | string Example: 50fa005d-4179-47d4-9895-fc6063076a0a |
external_id required | string Example: external_id=external_system_id_string Uniq Id from integrated system alowing to find particular vehicle |
Accept | any Example: application/vnd.api+json |
Authorization | any Example: Token zaT7chKa6-1zkvTofTyq |
Content-Type | any Example: application/vnd.api+json |
{- "id": 27,
- "nameplate_id": 33,
- "version": "Crisis On Infinite Earths",
- "drivetrain": "The Sinestro Corps War",
- "short_description": "Blanditiis quia laudantium numquam voluptate et eos earum quaerat quae.",
- "production_year": 2015,
- "created_at": "2024-11-20T08:09:21.526Z",
- "updated_at": "2024-11-20T08:09:21.526Z",
- "msrp_price": "38753.0",
- "sale_price": null,
- "monthly_price": null,
- "long_description": "Id laborum perferendis eaque illo repellendus autem quo aut iste enim explicabo doloremque voluptas alias suscipit culpa hic aut non.",
- "state": "approved",
- "status": "available_soon",
- "delivery_date": "2024-12-05",
- "transmission": "manual",
- "vin": null,
- "mileage": 96333,
- "engine_capacity": null,
- "battery_capacity": null,
- "engine_type": [
- "phev"
], - "power": 273,
- "video_url": null,
- "owner_id": 121,
- "color_id": 42,
- "features_standard": null,
- "features_optional": null,
- "model_year": null,
- "external_id": "50fa005d-4179-47d4-9895-fc6063076a0a",
- "interior_color": "Ebony",
- "created_by": null,
- "price_hidden": false,
- "prices_type": null,
- "model_code": null,
- "footnote": "Deserunt est aut iure et enim rem nobis natus consectetur.",
- "config_url": null,
- "subscribe_price": null,
- "vehicle_batch_upload_id": null,
- "order_number": null,
- "metadata": null,
- "locked_until": null,
- "lock_id": null,
- "code5000": null,
- "price_metadata": { },
- "manual_update_attributes": [ ],
- "disclaimers": { },
- "price_breakdown": false,
- "base_price": null,
- "total_price": null,
- "published_at": null
}
Accept | any Example: application/vnd.api+json |
Authorization | any Example: Token token |
Content-Type | any Example: application/vnd.api+json |
{- "data": [
- {
- "id": "204",
- "type": "company",
- "attributes": {
- "name": "Ritchie-Kunde",
- "uuid": "83df16b2-d662-499f-a840-8ad8c6ef5b5e"
}
}, - {
- "id": "205",
- "type": "company",
- "attributes": {
- "name": "Barton Inc",
- "uuid": "01ab5148-746e-455d-abe0-46cc61250d2d"
}
}, - {
- "id": "206",
- "type": "company",
- "attributes": {
- "name": "Marquardt-Kozey",
- "uuid": "9c75d407-b9eb-46f9-879e-0889a54edb07"
}
}
]
}
Accept | any Example: application/vnd.api+json |
Authorization | any Example: Token token |
Content-Type | any Example: application/vnd.api+json |
{- "data": "digraph G {\n \"207\" [label=\"Ritchie-Kunde\"]\n}\n"
}
Accept | any Example: application/vnd.api+json |
X-Company-UUID | any Example: ec1d4bed-ba07-474d-8d53-4d8f79cb237a |
Authorization | any Example: Bearer STUB_TOKEN_STRING |
Content-Type | any Example: application/vnd.api+json |
{- "data": [ ]
}
Accept | any Example: application/vnd.api+json |
X-Company-UUID | any Example: 68bdce63-a125-4151-a230-ee141ba9463a |
Authorization | any Example: Bearer STUB_TOKEN_STRING |
Content-Type | any Example: application/vnd.api+json |
{- "data": {
- "attributes": {
- "name": "Ligier",
- "brand_code": "jlr"
}
}
}
{- "data": {
- "id": "4",
- "type": "brand",
- "attributes": {
- "name": "Ligier"
}, - "relationships": {
- "nameplates": {
- "data": [ ]
}, - "colors": {
- "data": [ ]
}
}, - "links": {
- "self": "/brands/4",
- "all": "/brands"
}
}
}
id | number Example: 3 |
Accept | any Example: application/vnd.api+json |
X-Company-UUID | any Example: 76947efe-d65a-4d47-9d46-ba11522f4d71 |
Authorization | any Example: Bearer STUB_TOKEN_STRING |
Content-Type | any Example: application/vnd.api+json |
{- "data": {
- "id": "3",
- "type": "brand",
- "attributes": {
- "name": "Ligier"
}, - "relationships": {
- "nameplates": {
- "data": [ ]
}, - "colors": {
- "data": [ ]
}
}, - "links": {
- "self": "/brands/3",
- "all": "/brands"
}
}
}
id | number Example: 5 |
Accept | any Example: application/vnd.api+json |
X-Company-UUID | any Example: 04f6bea1-544e-44ac-bb8f-9fc29a06882a |
Authorization | any Example: Bearer STUB_TOKEN_STRING |
Content-Type | any Example: application/vnd.api+json |
{- "data": {
- "attributes": {
- "name": "Barton Inc",
- "brand_code": "jlr"
}
}
}
{- "data": {
- "id": "5",
- "type": "brand",
- "attributes": {
- "name": "Barton Inc"
}, - "relationships": {
- "nameplates": {
- "data": [ ]
}, - "colors": {
- "data": [ ]
}
}, - "links": {
- "self": "/brands/5",
- "all": "/brands"
}
}
}
attr | type | required | example | notes |
---|---|---|---|---|
label |
string | yes | "Main set" | ButtonSet name |
buttons |
array | no | [{"label": "Click here", ...}] | Nested buttons attributes (see table below) |
button_set_type |
string | yes | "extended" | Can be either "standard" or "extended" |
reservation_fee |
decimal(18,2) | if extended(*) | 2000.00 | Reservation fee |
financing_options |
array | if extended(*) | ["cash"] | Multiselect - array can contain some or all of following values: ['cash', 'lease', 'rent'] |
(*) - reservation_fee
and financing_options
attributes are required only, if button_set_type
value is set to extended
attr | type | required | example | notes |
---|---|---|---|---|
label | string | yes | "Click here" | Button label displayed to user |
target | string | yes | "john@doe.com" | Target URL, phone, code (embed) etc. |
button_type | enum | yes | "secondary" | A type of a button (primary/secondary) |
target_action | enum | yes | "self" | Defines what happens on button click |
target_type | enum | yes | "email" | Defines a type of a target action |
Button type can be either primary
or secondary
. Please note that only 1 primary button is allowed for a company. Secondary buttons are optional.
Defines what happens when the button is clicked. Accepted values:
self
- executes defined action in current browser's tabnew_tab
- executes defined action in a new tabmodal
- executes defined action in a modalattr | type | reqiured | example | notes |
---|---|---|---|---|
name | string | yes | "Firenze Red" | Display name of the color showed to end user |
canonical | enum | yes | "red" | Canonical color mapping, used for filtering |
Brand Color name can not be very descriptive, also local retailers sometimes want to add their own colors named in local language like "Niebieski".
On the other hand customers looking for a vehicle do not want to find "Fuji White" vehicles. They are interested in selecting actuall color like brown.
Thats why all Colors in the system require to be mapped to predetermined color pallet through the canonical
attribute.
This attribute is strongly validated againts list determined by system and only available options are:
This endpoint will return two combined sets of Colors
Brand
objectsX-Company-UUID
headerAccept | any Example: application/vnd.api+json |
X-Company-UUID | any Example: 9af4d67c-acb1-448f-ad56-a6cfba5aab11 |
Authorization | any Example: Bearer STUB_TOKEN_STRING |
Content-Type | any Example: application/vnd.api+json |
{- "data": [
- {
- "id": "2",
- "type": "color",
- "attributes": {
- "name": "Azure Wool",
- "canonical": "yellow"
}, - "relationships": {
- "owner": {
- "data": {
- "id": "33",
- "type": "company"
}
}
}, - "links": {
- "self": "/brands/2",
- "all": "/brands"
}
}
]
}
Accept | any Example: application/vnd.api+json |
X-Company-UUID | any Example: c2c9f4ff-28f3-4740-a944-33a0ef2bdaba |
Authorization | any Example: Bearer STUB_TOKEN_STRING |
Content-Type | any Example: application/vnd.api+json |
{- "data": {
- "attributes": {
- "name": "Puce Steel",
- "canonical": "silver"
}
}
}
{- "data": {
- "id": "4",
- "type": "color",
- "attributes": {
- "name": "Puce Steel",
- "canonical": "silver"
}, - "relationships": {
- "owner": {
- "data": {
- "id": "35",
- "type": "company"
}
}
}, - "links": {
- "self": "/brands/4",
- "all": "/brands"
}
}
}
This endpoint will return color only if it is in one of the disinct sets
Brand
objectsX-Company-UUID
headerNote: Colors owned by other Companies will trigger 404
response.
id | number Example: 3 |
Accept | any Example: application/vnd.api+json |
X-Company-UUID | any Example: e5c4850d-b75b-45a8-9967-c98574ee481e |
Authorization | any Example: Bearer STUB_TOKEN_STRING |
Content-Type | any Example: application/vnd.api+json |
{- "data": {
- "id": "3",
- "type": "color",
- "attributes": {
- "name": "Puce Steel",
- "canonical": "orange"
}, - "relationships": {
- "owner": {
- "data": {
- "id": "34",
- "type": "company"
}
}
}, - "links": {
- "self": "/brands/3",
- "all": "/brands"
}
}
}
Owner is defined based on required X-Company-UUID
header.
API does not allow for modification of Colors other then owned by a Company specified by X-Company-UUID
header.
There is no option to modify Brand
owned colors through this API.
id | number Example: 5 |
Accept | any Example: application/vnd.api+json |
X-Company-UUID | any Example: 7b8fc501-e424-4a51-b6c0-15f26839f006 |
Authorization | any Example: Bearer STUB_TOKEN_STRING |
Content-Type | any Example: application/vnd.api+json |
{- "data": {
- "attributes": {
- "name": "King and Sons",
- "canonical": "black"
}
}
}
{- "data": {
- "id": "5",
- "type": "color",
- "attributes": {
- "name": "King and Sons",
- "canonical": "black"
}, - "relationships": {
- "owner": {
- "data": {
- "id": "37",
- "type": "company"
}
}
}, - "links": {
- "self": "/brands/5",
- "all": "/brands"
}
}
}
Owner is defined based on required X-Company-UUID
header.
API does not allow to delete Colors not owned by a Company specified
by X-Company-UUID
header.
This also means Brand
owner colors cannot be deleted through the API.
id | number Example: 7 |
Accept | any Example: application/vnd.api+json |
X-Company-UUID | any Example: 770b1978-a207-4811-93e4-60a889dce29a |
Authorization | any Example: Bearer STUB_TOKEN_STRING |
Content-Type | any Example: application/vnd.api+json |
Represents Company data.
All API actions are to be executed in the context of selected Company.
uuid
parameterCompany object is by default equiped with randomly generate uuid
attribute.
It's purpose is to be Company unique indentifier used in X-Company-UUID
header
to filter all action and resources in the API requests.
NOTE: uuid
value cannot be modified directly through the api calls.
All API Actions performed on Companies are scoped to current company instance.
The current company is found based on the X-Company-UUID
header value.
Due to this the some Company controller actions and URLs were changed.
Verb | Old URL | New URL | Behaviour (after changes) |
---|---|---|---|
GET | /companies | (same) | It list only current company and its Subcompanies |
POST | /companies | (same) | Creates compnany owned by current company |
GET | /company | /companies/{id} | Fetches Current Company |
PATCH | /company | /companies/{id} | Updates Current Company |
For easier transition both new and old URLs are working simultanously.
Company Deleting endpoit was turned off
All actions performed on Company
objects need to happen in context of current Company
object.
Current Company is determined based on X-Company-UUID
header value. This value should contain uuid
attribute of
Company
obejct.
If header is not present API will raise 400 - Bad Request
response with information about missing header
If header is present but no Company with provided uuid
values is present in the database the 404 - Not Found
response is given.
Accept | any Example: application/vnd.api+json |
Authorization | any Example: Bearer STUB_TOKEN_STRING |
Content-Type | any Example: application/vnd.api+json |
X-Company-UUID | any Example: bad-uuid-value |
{- "errors": [
- {
- "status": 400,
- "source": null,
- "title": "Bad Request",
- "detail": "X-Company-UUID header is missing"
}
]
}
Accept | any Example: application/vnd.api+json |
X-Company-UUID | any Example: d8ab794d-8150-4a7e-91a1-e2db64285dbe |
Authorization | any Example: Bearer STUB_TOKEN_STRING |
Content-Type | any Example: application/vnd.api+json |
{- "data": [
- {
- "id": "42",
- "type": "company",
- "attributes": {
- "uuid": "d8ab794d-8150-4a7e-91a1-e2db64285dbe",
- "name": "Ritchie-Kunde",
- "city": "Hermistonshire",
- "address": "99667 Major Corners, Antoniomouth, LA 39348-8794",
- "phone": "+994 987.432.9120",
- "email": "harriett@lesch.io",
- "locale": "en_IE",
- "currency": "GBP",
- "zipcode": null,
- "timezone": "UTC",
- "mileage_unit": "km",
- "power_unit": "bhp",
- "engine_capacity_unit": "cc",
- "opening_hours": "Mon-Fri: 9:00 - 19:00\nSat: 11:00 - 18:00\nSun: Closed\n",
- "contact_details": "31019 Velvet Rest\nLake Irafurt",
- "skip_company_name_in_location": false,
- "config_locale": null,
- "account_type": "importer",
- "state": null,
- "dealer_codes": [ ],
- "operating_states": [
- "NSW",
- "VIC"
], - "feature_flag_policies": [ ]
}, - "relationships": {
- "parent": {
- "data": null
}, - "children": {
- "data": [ ]
}, - "descendants": {
- "data": [ ]
}, - "ancestors": {
- "data": [ ]
}, - "colors": {
- "data": [ ]
}
}, - "links": {
- "all": "/companies"
}, - "meta": {
- "power_units": [
- "bhp",
- "kw"
], - "mileage_units": [
- "km",
- "mi"
], - "engine_capacity_units": [
- "cc",
- "l"
]
}
}
]
}
Accept | any Example: application/vnd.api+json |
X-Company-UUID | any Example: a84b4382-a99f-4b86-b206-2eb3878cbc0a |
Authorization | any Example: Bearer STUB_TOKEN_STRING |
Content-Type | any Example: application/vnd.api+json |
{- "data": {
- "attributes": {
- "name": "Barton Inc",
- "city": "Randellshire",
- "address": "Apt. 836 403 Marks Points, New Deonton, SD 94716-7763",
- "email": "julian.bashirian@lueilwitz.io",
- "phone": "+685 1-379-505-1252 x131",
- "locale": "es_MX",
- "currency": "JMD",
- "contact_details": "87669 Kathrin Pass\nLarkinborough",
- "opening_hours": "Mon-Fri: 9:00 - 19:00\nSat: 11:00 - 18:00\nSun: Closed\n",
- "skip_company_name_in_location": false,
- "account_type": "retailer",
- "operating_states": [
- "NSW",
- "VIC"
]
}
}
}
{- "data": {
- "id": "61",
- "type": "company",
- "attributes": {
- "uuid": "c3fbeba1-bfd8-45ab-a153-a8182b7f22c6",
- "name": "Barton Inc",
- "city": "Randellshire",
- "address": "Apt. 836 403 Marks Points, New Deonton, SD 94716-7763",
- "phone": "+685 1-379-505-1252 x131",
- "email": "julian.bashirian@lueilwitz.io",
- "locale": "es_MX",
- "currency": "JMD",
- "zipcode": null,
- "timezone": "UTC",
- "mileage_unit": "km",
- "power_unit": "bhp",
- "engine_capacity_unit": "cc",
- "opening_hours": "Mon-Fri: 9:00 - 19:00\nSat: 11:00 - 18:00\nSun: Closed\n",
- "contact_details": "87669 Kathrin Pass\nLarkinborough",
- "skip_company_name_in_location": false,
- "config_locale": null,
- "account_type": null,
- "state": null,
- "dealer_codes": [ ],
- "operating_states": [
- "NSW",
- "VIC"
], - "feature_flag_policies": [ ]
}, - "relationships": {
- "parent": {
- "data": {
- "id": "60",
- "type": "company"
}
}, - "children": {
- "data": [ ]
}, - "descendants": {
- "data": [ ]
}, - "ancestors": {
- "data": [
- {
- "id": "60",
- "type": "company"
}
]
}, - "colors": {
- "data": [ ]
}
}, - "links": {
- "all": "/companies"
}, - "meta": {
- "power_units": [
- "bhp",
- "kw"
], - "mileage_units": [
- "km",
- "mi"
], - "engine_capacity_units": [
- "cc",
- "l"
]
}
}
}
Accept | any Example: application/vnd.api+json |
X-Company-UUID | any Example: 88952e01-94a0-4405-b02c-ad8be47fe5f0 |
Authorization | any Example: Bearer STUB_TOKEN_STRING |
Content-Type | any Example: application/vnd.api+json |
{- "data": [ ]
}
This endpoints provide option to fetch all Timezones needed to update Compane Time Zone setting.
It is possible to filter this list to only specific country based on country ISO code but list of all available 151 zones is also available.
TimeZone name
and id
attributes are the same value and it should be used as value for time_zone company attribute when updating data.
country_code | string Example: IN |
Accept | any Example: application/vnd.api+json |
X-Company-UUID | any Example: 95bafc70-356f-4a62-898a-41823dd55dfa |
Authorization | any Example: Bearer STUB_TOKEN_STRING |
Content-Type | any Example: application/vnd.api+json |
{- "data": [
- {
- "id": "Chennai",
- "type": "time_zone",
- "attributes": {
- "name": "Chennai",
- "label": "Chennai [GMT+05:30]",
- "formatted_offset": "+05:30",
- "tz_identifier": "Asia/Kolkata"
}
}, - {
- "id": "Kolkata",
- "type": "time_zone",
- "attributes": {
- "name": "Kolkata",
- "label": "Kolkata [GMT+05:30]",
- "formatted_offset": "+05:30",
- "tz_identifier": "Asia/Kolkata"
}
}, - {
- "id": "Mumbai",
- "type": "time_zone",
- "attributes": {
- "name": "Mumbai",
- "label": "Mumbai [GMT+05:30]",
- "formatted_offset": "+05:30",
- "tz_identifier": "Asia/Kolkata"
}
}, - {
- "id": "New Delhi",
- "type": "time_zone",
- "attributes": {
- "name": "New Delhi",
- "label": "New Delhi [GMT+05:30]",
- "formatted_offset": "+05:30",
- "tz_identifier": "Asia/Kolkata"
}
}
]
}
Accept | any Example: application/vnd.api+json |
X-Company-UUID | any Example: 64d5e24c-1e34-4fa0-bac4-7996d92a3f88 |
Authorization | any Example: Bearer STUB_TOKEN_STRING |
Content-Type | any Example: application/vnd.api+json |
{- "data": {
- "id": "58",
- "type": "company",
- "attributes": {
- "uuid": "64d5e24c-1e34-4fa0-bac4-7996d92a3f88",
- "name": "Ritchie-Kunde",
- "city": "Hermistonshire",
- "address": "99667 Major Corners, Antoniomouth, LA 39348-8794",
- "phone": "+994 987.432.9120",
- "email": "harriett@lesch.io",
- "locale": "en_IE",
- "currency": "GBP",
- "zipcode": null,
- "timezone": "UTC",
- "mileage_unit": "km",
- "power_unit": "bhp",
- "engine_capacity_unit": "cc",
- "opening_hours": "Mon-Fri: 9:00 - 19:00\nSat: 11:00 - 18:00\nSun: Closed\n",
- "contact_details": "31019 Velvet Rest\nLake Irafurt",
- "skip_company_name_in_location": false,
- "config_locale": null,
- "account_type": "retailer",
- "state": null,
- "dealer_codes": [ ],
- "operating_states": [
- "NSW",
- "VIC"
], - "feature_flag_policies": [ ]
}, - "relationships": {
- "parent": {
- "data": null
}, - "children": {
- "data": [ ]
}, - "descendants": {
- "data": [ ]
}, - "ancestors": {
- "data": [ ]
}, - "colors": {
- "data": [ ]
}
}, - "links": {
- "all": "/companies"
}, - "meta": {
- "power_units": [
- "bhp",
- "kw"
], - "mileage_units": [
- "km",
- "mi"
], - "engine_capacity_units": [
- "cc",
- "l"
]
}
}
}
Accept | any Example: application/vnd.api+json |
X-Company-UUID | any Example: cfdccc69-ed4a-45e9-8308-8bd78d4b732f |
Authorization | any Example: Bearer STUB_TOKEN_STRING |
Content-Type | any Example: application/vnd.api+json |
{- "data": {
- "attributes": {
- "name": "Barton Inc",
- "city": "Dwayneborough",
- "address": "4039 Saundra Underpass, Port Bryanna, GA 71677",
- "email": "hedy.hessel@koch.info",
- "phone": "+1-268 716-279-5051 x252",
- "locale": "en_IE",
- "currency": "VND",
- "contact_details": "411 Armstrong Brook\nArmstrongfurt",
- "opening_hours": "Mon-Fri: 9:00 - 19:00\nSat: 11:00 - 18:00\nSun: Closed\n",
- "skip_company_name_in_location": false,
- "account_type": "importer",
- "operating_states": [
- "NSW",
- "VIC"
]
}
}
}
{- "data": {
- "id": "63",
- "type": "company",
- "attributes": {
- "uuid": "cfdccc69-ed4a-45e9-8308-8bd78d4b732f",
- "name": "Barton Inc",
- "city": "Dwayneborough",
- "address": "4039 Saundra Underpass, Port Bryanna, GA 71677",
- "phone": "+1-268 716-279-5051 x252",
- "email": "hedy.hessel@koch.info",
- "locale": "en_IE",
- "currency": "VND",
- "zipcode": null,
- "timezone": "UTC",
- "mileage_unit": "km",
- "power_unit": "bhp",
- "engine_capacity_unit": "cc",
- "opening_hours": "Mon-Fri: 9:00 - 19:00\nSat: 11:00 - 18:00\nSun: Closed\n",
- "contact_details": "411 Armstrong Brook\nArmstrongfurt",
- "skip_company_name_in_location": false,
- "config_locale": null,
- "account_type": "importer",
- "state": null,
- "dealer_codes": [ ],
- "operating_states": [
- "NSW",
- "VIC"
], - "feature_flag_policies": [ ]
}, - "relationships": {
- "parent": {
- "data": null
}, - "children": {
- "data": [ ]
}, - "descendants": {
- "data": [ ]
}, - "ancestors": {
- "data": [ ]
}, - "colors": {
- "data": [ ]
}
}, - "links": {
- "all": "/companies"
}, - "meta": {
- "power_units": [
- "bhp",
- "kw"
], - "mileage_units": [
- "km",
- "mi"
], - "engine_capacity_units": [
- "cc",
- "l"
]
}
}
}
GET /feature_flag_policies/flags
This endpoint is used to get flags for owner defined in params.
param | example | type | required | description |
---|---|---|---|---|
company_uuid |
1 | integer | yes | uuid of the company |
brand_ids |
1 | integer | no | ids of brands (spearated by comma) |
To fetch flags only for company, we define only company_uuid
paramater. If we want to get additional brand flags we have to define specific brand_ids
.
status 200
Returns array with flags for defined owners. If there is no flags array will be empty.
status 404
Company defined in params does not exist.
Accept | any Example: application/vnd.api+json |
X-Company-UUID | any Example: 37a6830f-0f45-40de-8919-d533c3cf80a0 |
Authorization | any Example: Bearer STUB_TOKEN_STRING |
Content-Type | any Example: application/vnd.api+json |
{- "company_uuid": "37a6830f-0f45-40de-8919-d533c3cf80a0"
}
{- "data": [
- "avl_field"
]
}
GET /job_results/:job_uid
This endpoint is used to fetch the result of completed asynchronous job.
param | example | type | required | description |
---|---|---|---|---|
job_uid |
1 | string | yes (in url) | uid of the job |
status 200
Job result was found and it has follwing attributes:
job_uid
- uid of the job
data
- data of the job result
status 404
Job result was not found
job_uid | string Example: 21Oe47coUo8LDLQi |
Accept | any Example: application/json |
X-Company-UUID | any Example: fb42b759-6f57-4eef-8a7e-03edbeeb62d3 |
Authorization | any Example: Bearer STUB_TOKEN_STRING |
Content-Type | any Example: application/json |
{- "job_uid": "21Oe47coUo8LDLQi",
- "data": {
- "data": "details"
}
}
POST /osvd/vehicle_import
This endpoint is used to trigger vehicle mapper job to fetch data for the vehicle from OSVD API
param | example | type | required | description |
---|---|---|---|---|
vehicle_id |
SALVT1BG1EH795896 | string | yes (in url) | VIN or order number of the vehicle |
job_uid
- uid of the job
vehicle_id
- id of the vehicle
vehicle_id_type
- id type, can be 'vin' in case alphabetic characters are dected in vehicle in id or 'order_number' otherwise
Accept | any Example: application/json |
X-Company-UUID | any Example: f1d95945-89cb-4c9e-b5e6-8dee84772ab3 |
Authorization | any Example: Bearer STUB_TOKEN_STRING |
Content-Type | any Example: application/json |
{- "data": {
- "attributes": {
- "vehicle_id": "SALVT1BG1EH795896"
}
}
}
{- "vehicle_id": "SALVT1BG1EH795896",
- "vehicle_id_type": "vin",
- "job_uid": null
}
attr | type | reqiured | example | notes |
---|---|---|---|---|
title | string | yes | "Winter Sale" | Display name of the list to be displayed in system |
uuid
parameterListing object is by default equiped with randomly generate uuid
attribute.
It's purpose is to be Listing unique indentifier used when fetchin vehicles on external websites
through the API.
NOTE: uuid
value cannot be modified directly through the api calls.
All actions performed on Listing
objects need to happen in context of Company
object.
The Company is determined based on X-Company-UUID
header value. This value should contain uuid
attribute of
Company
obejct.
If header is not present API will raise 400 - Bad Request
response with information about missing header
If header is present but no Company with provided uuid
values is present in the database the 404 - Not Found
response is given.
Accept | any Example: application/vnd.api+json |
Authorization | any Example: Bearer STUB_TOKEN_STRING |
Content-Type | any Example: application/vnd.api+json |
X-Company-UUID | any Example: bad-uuid-value |
{- "errors": [
- {
- "status": 400,
- "source": null,
- "title": "Bad Request",
- "detail": "X-Company-UUID header is missing"
}
]
}
This endpoint will return Listings owned by a Company specified by X-Company-UUID
header
Accept | any Example: application/vnd.api+json |
X-Company-UUID | any Example: 6dfbc2ad-a16a-48e5-a452-4cd5a210718e |
Authorization | any Example: Bearer STUB_TOKEN_STRING |
Content-Type | any Example: application/vnd.api+json |
{- "data": [
- {
- "id": "3",
- "type": "listing",
- "attributes": {
- "title": "Arepas 3",
- "uuid": "63e304f2-b918-44f7-afe5-c761611a8da3",
- "sort_order": "asc",
- "sort_attribute": "display_price",
- "disclaimers": { },
- "allowed_vehicle_states": [
- "new",
- "used",
- "approved"
], - "owner_name": "Marquardt-Kozey",
- "owner_city": "West Donitachester"
}, - "relationships": {
- "owner": {
- "data": {
- "id": "141",
- "type": "company"
}
}, - "button_set": {
- "data": {
- "id": "36",
- "type": "button_set"
}
}, - "vehicles": {
- "data": [ ]
}
}, - "links": {
- "self": "/listings/3",
- "all": "/listings"
}, - "meta": {
- "sort_order": [
- "asc",
- "desc"
], - "sort_attribute": [
- "production_year",
- "created_at",
- "mileage",
- "display_price",
- "status_sort"
]
}
}, - {
- "id": "4",
- "type": "listing",
- "attributes": {
- "title": "Teriyaki Chicken Donburi 4",
- "uuid": "ddb607eb-b7f5-42a4-9ad2-f6cfac6b6e78",
- "sort_order": "asc",
- "sort_attribute": "status_sort",
- "disclaimers": { },
- "allowed_vehicle_states": [
- "new",
- "used",
- "approved"
], - "owner_name": "Marquardt-Kozey",
- "owner_city": "West Donitachester"
}, - "relationships": {
- "owner": {
- "data": {
- "id": "141",
- "type": "company"
}
}, - "button_set": {
- "data": {
- "id": "37",
- "type": "button_set"
}
}, - "vehicles": {
- "data": [ ]
}
}, - "links": {
- "self": "/listings/4",
- "all": "/listings"
}, - "meta": {
- "sort_order": [
- "asc",
- "desc"
], - "sort_attribute": [
- "production_year",
- "created_at",
- "mileage",
- "display_price",
- "status_sort"
]
}
}
]
}
Accept | any Example: application/vnd.api+json |
X-Company-UUID | any Example: 878390ef-d949-4d8f-b1c6-eb1ed760f2f0 |
Authorization | any Example: Bearer STUB_TOKEN_STRING |
Content-Type | any Example: application/vnd.api+json |
{- "data": {
- "attributes": {
- "title": "Arepas 8",
- "sort_order": "asc",
- "sort_attribute": "production_year",
- "allowed_vehicle_states": [
- "new",
- "used",
- "approved"
]
}, - "relationships": {
- "button_set": {
- "data": {
- "type": "button_set",
- "id": 55
}
}
}
}
}
{- "data": {
- "id": "8",
- "type": "listing",
- "attributes": {
- "title": "Arepas 8",
- "uuid": "e1f98eed-1466-4b7d-896d-c5da91b94a12",
- "sort_order": "asc",
- "sort_attribute": "production_year",
- "disclaimers": { },
- "allowed_vehicle_states": [
- "new",
- "used",
- "approved"
], - "owner_name": "Marquardt-Kozey",
- "owner_city": "West Donitachester"
}, - "relationships": {
- "owner": {
- "data": {
- "id": "168",
- "type": "company"
}
}, - "button_set": {
- "data": {
- "id": "55",
- "type": "button_set"
}
}, - "vehicles": {
- "data": [ ]
}
}, - "links": {
- "self": "/listings/8",
- "all": "/listings"
}, - "meta": {
- "sort_order": [
- "asc",
- "desc"
], - "sort_attribute": [
- "production_year",
- "created_at",
- "mileage",
- "display_price",
- "status_sort"
]
}
}, - "included": [
- {
- "id": "55",
- "type": "button_set",
- "attributes": {
- "button_set_type": "standard",
- "created_at": "2024-11-20T08:09:22.259Z",
- "defined_by": null,
- "financing_options": null,
- "name": "non 53",
- "reservation_fee": null
}, - "relationships": {
- "button_set_setups": {
- "data": [
- {
- "id": "39",
- "type": "button_set_setup"
}, - {
- "id": "40",
- "type": "button_set_setup"
}
]
}, - "listings": {
- "data": [
- {
- "id": "8",
- "type": "listing"
}
]
}
}
}
]
}
This endpoint will return Listings owned by a Company specified by X-Company-UUID
header.
Note: Colors owned by other Companies will trigger 404
response.
id | number Example: 7 |
Accept | any Example: application/vnd.api+json |
X-Company-UUID | any Example: 1cd17248-0fba-4910-b1d0-7849ac8379b3 |
Authorization | any Example: Bearer STUB_TOKEN_STRING |
Content-Type | any Example: application/vnd.api+json |
{- "data": {
- "id": "7",
- "type": "listing",
- "attributes": {
- "title": "Arepas 7",
- "uuid": "351a3a0c-e41f-409b-bf70-0a3c9877ea5d",
- "sort_order": "asc",
- "sort_attribute": "production_year",
- "disclaimers": { },
- "allowed_vehicle_states": [
- "new",
- "used",
- "approved"
], - "owner_name": "Marquardt-Kozey",
- "owner_city": "West Donitachester"
}, - "relationships": {
- "owner": {
- "data": {
- "id": "160",
- "type": "company"
}
}, - "button_set": {
- "data": {
- "id": "50",
- "type": "button_set"
}
}, - "vehicles": {
- "data": [ ]
}
}, - "links": {
- "self": "/listings/7",
- "all": "/listings"
}, - "meta": {
- "sort_order": [
- "asc",
- "desc"
], - "sort_attribute": [
- "production_year",
- "created_at",
- "mileage",
- "display_price",
- "status_sort"
]
}
}, - "included": [
- {
- "id": "50",
- "type": "button_set",
- "attributes": {
- "button_set_type": "standard",
- "created_at": "2024-11-20T08:09:22.145Z",
- "defined_by": null,
- "financing_options": null,
- "name": "reiciendis 48",
- "reservation_fee": null
}, - "relationships": {
- "button_set_setups": {
- "data": [ ]
}, - "listings": {
- "data": [
- {
- "id": "7",
- "type": "listing"
}
]
}
}
}
]
}
Owner is defined based on required X-Company-UUID
header.
id | number Example: 9 |
Accept | any Example: application/vnd.api+json |
X-Company-UUID | any Example: 4445776c-5eb0-46bb-b7b8-041147a35de7 |
Authorization | any Example: Bearer STUB_TOKEN_STRING |
Content-Type | any Example: application/vnd.api+json |
{- "data": {
- "attributes": {
- "title": "Arepas 11",
- "sort_order": "desc",
- "sort_attribute": "status_sort",
- "allowed_vehicle_states": [
- "new",
- "used",
- "approved"
]
}, - "relationships": {
- "button_set": {
- "data": {
- "type": "button_set",
- "id": 65
}
}
}
}
}
{- "data": {
- "id": "9",
- "type": "listing",
- "attributes": {
- "title": "Arepas 11",
- "uuid": "e01a3e53-e982-4a38-9cf1-8ce2afd590b2",
- "sort_order": "desc",
- "sort_attribute": "status_sort",
- "disclaimers": { },
- "allowed_vehicle_states": [
- "new",
- "used",
- "approved"
], - "owner_name": "Marquardt-Kozey",
- "owner_city": "West Donitachester"
}, - "relationships": {
- "owner": {
- "data": {
- "id": "182",
- "type": "company"
}
}, - "button_set": {
- "data": {
- "id": "65",
- "type": "button_set"
}
}, - "vehicles": {
- "data": [ ]
}
}, - "links": {
- "self": "/listings/9",
- "all": "/listings"
}, - "meta": {
- "sort_order": [
- "asc",
- "desc"
], - "sort_attribute": [
- "production_year",
- "created_at",
- "mileage",
- "display_price",
- "status_sort"
]
}
}, - "included": [
- {
- "id": "65",
- "type": "button_set",
- "attributes": {
- "button_set_type": "standard",
- "created_at": "2024-11-20T08:09:22.480Z",
- "defined_by": null,
- "financing_options": null,
- "name": "non 63",
- "reservation_fee": null
}, - "relationships": {
- "button_set_setups": {
- "data": [
- {
- "id": "47",
- "type": "button_set_setup"
}, - {
- "id": "48",
- "type": "button_set_setup"
}
]
}, - "listings": {
- "data": [
- {
- "id": "9",
- "type": "listing"
}
]
}
}
}
]
}
Owner is defined based on required X-Company-UUID
header.
API does not allow to delete Listings not owned by a Company specified
by X-Company-UUID
header.
id | number Example: 11 |
Accept | any Example: application/vnd.api+json |
X-Company-UUID | any Example: 850d6f79-1cf8-4c71-803b-60a01df442ba |
Authorization | any Example: Bearer STUB_TOKEN_STRING |
Content-Type | any Example: application/vnd.api+json |
Publishing controller is very simple in usage. All parameters are passed in the URLs as showed below.
PUT
request adds vehicle to listingDELETE
request removes vehicle from listingAdding or removing vehicle twice will not raise any error. The Vehicle will simply not be added/removed again and response will reflect actual state.
NOTE: Both Vehile and Listing need to be owned by the same company that is passed through X-Company-UUID
header value
id | number Example: 57 |
vehicle_id | number Example: 232 |
id required | number Example: id=2 Listing ID |
vehicle_id required | number Example: vehicle_id=2 Vehicle ID |
Accept | any Example: application/vnd.api+json |
X-Company-UUID | any Example: 077714ac-4b45-465c-91f8-7b0210130a79 |
Authorization | any Example: Bearer STUB_TOKEN_STRING |
Content-Type | any Example: application/vnd.api+json |
{- "data": {
- "id": "57",
- "type": "listing",
- "attributes": {
- "title": "Linguine with Clams 59",
- "uuid": "dd0c54b8-30f2-4330-8671-a5bc1b9c6341",
- "sort_order": "desc",
- "sort_attribute": "mileage",
- "disclaimers": { },
- "allowed_vehicle_states": [
- "new",
- "used",
- "approved"
], - "owner_name": "Marquardt-Kozey",
- "owner_city": "West Donitachester"
}, - "relationships": {
- "owner": {
- "data": {
- "id": "579",
- "type": "company"
}
}, - "button_set": {
- "data": {
- "id": "208",
- "type": "button_set"
}
}, - "vehicles": {
- "data": [
- {
- "id": "232",
- "type": "vehicle"
}
]
}
}, - "links": {
- "self": "/listings/57",
- "all": "/listings"
}, - "meta": {
- "sort_order": [
- "asc",
- "desc"
], - "sort_attribute": [
- "production_year",
- "created_at",
- "mileage",
- "display_price",
- "status_sort"
]
}
}
}
Represents Nameplate like Jaguar XE or Land Rover Discovery
Note: Requires Brand
association to exist
Accept | any Example: application/json |
X-Company-UUID | any Example: 55c0bc80-529e-4974-8cdb-3797793fc28e |
Authorization | any Example: Bearer STUB_TOKEN_STRING |
Content-Type | any Example: application/json |
{- "data": [
- {
- "id": "36",
- "type": "nameplate",
- "attributes": {
- "name": "Algolian Suntiger",
- "model_group": null
}, - "relationships": {
- "brand": {
- "data": {
- "id": "76",
- "type": "brand"
}
}, - "vehicles": {
- "data": [ ]
}
}, - "links": {
- "self": "/nameplates/36",
- "all": "/nameplates"
}
}
]
}
Accept | any Example: application/json |
X-Company-UUID | any Example: d608b642-76a1-440e-ab5b-de6704a86c95 |
Authorization | any Example: Bearer STUB_TOKEN_STRING |
Content-Type | any Example: application/json |
{- "data": {
- "attributes": {
- "name": "Algolian Suntiger",
- "brand_id": 82
}, - "relationships": {
- "brand": {
- "data": {
- "id": 82
}
}
}
}
}
{- "data": {
- "id": "40",
- "type": "nameplate",
- "attributes": {
- "name": "Algolian Suntiger",
- "model_group": null
}, - "relationships": {
- "brand": {
- "data": {
- "id": "82",
- "type": "brand"
}
}, - "vehicles": {
- "data": [ ]
}
}, - "links": {
- "self": "/nameplates/40",
- "all": "/nameplates"
}
}
}
id | number Example: 38 |
Accept | any Example: application/json |
X-Company-UUID | any Example: b5741ad4-30c7-4067-a9be-a14be447b840 |
Authorization | any Example: Bearer STUB_TOKEN_STRING |
Content-Type | any Example: application/json |
{- "data": {
- "id": "38",
- "type": "nameplate",
- "attributes": {
- "name": "Algolian Suntiger",
- "model_group": null
}, - "relationships": {
- "brand": {
- "data": {
- "id": "79",
- "type": "brand"
}
}, - "vehicles": {
- "data": [ ]
}
}, - "links": {
- "self": "/nameplates/38",
- "all": "/nameplates"
}
}
}
id | number Example: 41 |
Accept | any Example: application/json |
X-Company-UUID | any Example: e7045123-f95f-4e9f-9377-3b5579c1d804 |
Authorization | any Example: Bearer STUB_TOKEN_STRING |
Content-Type | any Example: application/json |
{- "data": {
- "attributes": {
- "name": "Red Tornado",
- "brand_id": 86
}, - "relationships": {
- "brand": {
- "data": {
- "id": 86
}
}
}
}
}
{- "data": {
- "id": "42",
- "type": "nameplate",
- "attributes": {
- "name": "Red Tornado",
- "model_group": null
}, - "relationships": {
- "brand": {
- "data": {
- "id": "86",
- "type": "brand"
}
}, - "vehicles": {
- "data": [ ]
}
}, - "links": {
- "self": "/nameplates/42",
- "all": "/nameplates"
}
}
}
id | number Example: 44 |
Accept | any Example: application/json |
X-Company-UUID | any Example: c72498a6-f540-497e-8876-8a53c5d2a456 |
Authorization | any Example: Bearer STUB_TOKEN_STRING |
Content-Type | any Example: application/json |
{- "errors": [
- {
- "status": "404",
- "source": null,
- "title": "Not Found",
- "detail": null
}
]
}
Accept | any Example: application/json |
Content-Type | any Example: application/json |
X-Company-UUID | any Example: e55d7ff4-11a3-4aeb-8847-9e6c3633e2a5 |
Authorization | any Example: Bearer STUB_TOKEN_STRING |
{- "data": [
- {
- "id": "4",
- "type": "pdf_translations_config",
- "attributes": {
- "key": "en",
- "label": "Test#1",
- "pdf_type": "window_display"
}
}, - {
- "id": "5",
- "type": "pdf_translations_config",
- "attributes": {
- "key": "en",
- "label": "Test#2",
- "pdf_type": "silent_salesman"
}
}, - {
- "id": "6",
- "type": "pdf_translations_config",
- "attributes": {
- "key": "pl",
- "label": "Test#3",
- "pdf_type": "silent_salesman"
}
}
]
}
Accept | any Example: application/json |
X-Company-UUID | any Example: 99cbb96a-ff61-48c1-816c-e8f6de4e0f66 |
Authorization | any Example: Bearer STUB_TOKEN_STRING |
Content-Type | any Example: application/json |
{- "type": "window_display",
- "data": {
- "color_name": "Red",
- "mileage_unit": "Km",
- "currency": "PLN",
- "power_unit": "bhp",
- "special_equipment": [
- {
- "label": "Autobiography Exterior Pack"
}
], - "msrp_price": "A$364986.19",
- "first_registration": "2024-10-26",
- "mileage": "1000",
- "transmission": "automatic",
- "engine_type": [
- "petrol"
], - "power": 530,
- "version": "Long Wheelbase Seven Seats Autobiography",
- "nameplate_name": " ",
- "nameplate_brand_name": "Range Rover",
- "msrp_price_disclaimer": "Test disclaimer",
- "language": "en"
}
}
ASCII-8BIT stream
Accept | any Example: application/vnd.api+json |
Authorization | any Example: Bearer STUB_TOKEN_STRING |
Content-Type | any Example: application/vnd.api+json |
{- "data": [
- {
- "id": "7",
- "type": "photo",
- "attributes": {
- "sequence": 0,
- "file": {
- "name": "file",
- "record": {
- "id": 7,
- "sequence": 0,
- "vehicle_id": null,
- "created_at": "2024-11-20T08:09:23.592Z",
- "updated_at": "2024-11-20T08:09:23.595Z"
}
}, - "thumb_path": "/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6OSwicHVyIjoiYmxvYl9pZCJ9fQ==--1d647026dd57241907ae7f90c113e0f63bb68027/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGciLCJyZXNpemVfYW5kX3BhZCI6WzQwMCwzMDAseyJiYWNrZ3JvdW5kIjpbMjM4LDIzOCwyMzgsMjM4XSwiYWxwaGEiOnRydWV9XSwic2F2ZXIiOnsicXVhbGl0eSI6ODV9fSwicHVyIjoidmFyaWF0aW9uIn19--55b64b8565c87129a4465e53843074c92d6a6692/1.jpg",
- "image_path": "/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6OSwicHVyIjoiYmxvYl9pZCJ9fQ==--1d647026dd57241907ae7f90c113e0f63bb68027/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGciLCJyZXNpemVfYW5kX3BhZCI6WzE2MDAsMTIwMCx7ImJhY2tncm91bmQiOlsyMzgsMjM4LDIzOCwyMzhdLCJhbHBoYSI6dHJ1ZX1dLCJzYXZlciI6eyJxdWFsaXR5Ijo4NX19LCJwdXIiOiJ2YXJpYXRpb24ifX0=--7b5f4ca4fdb73844cccc54630e015a046b05719f/1.jpg",
- "small_path": "/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6OSwicHVyIjoiYmxvYl9pZCJ9fQ==--1d647026dd57241907ae7f90c113e0f63bb68027/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGciLCJyZXNpemVfYW5kX3BhZCI6WzE2NSw5Mix7ImJhY2tncm91bmQiOlsyMzgsMjM4LDIzOCwyMzhdLCJhbHBoYSI6dHJ1ZX1dLCJzYXZlciI6eyJxdWFsaXR5Ijo4NX19LCJwdXIiOiJ2YXJpYXRpb24ifX0=--66380c5b6b4af7f9e745183631dad0ee428f4cb6/1.jpg",
- "medium_path": "/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6OSwicHVyIjoiYmxvYl9pZCJ9fQ==--1d647026dd57241907ae7f90c113e0f63bb68027/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGciLCJyZXNpemVfYW5kX3BhZCI6WzQyMCwyMzYseyJiYWNrZ3JvdW5kIjpbMjM4LDIzOCwyMzgsMjM4XSwiYWxwaGEiOnRydWV9XSwic2F2ZXIiOnsicXVhbGl0eSI6ODV9fSwicHVyIjoidmFyaWF0aW9uIn19--4dc07e951609e3efb6b48f3567616f872348d59f/1.jpg",
- "big_path": "/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6OSwicHVyIjoiYmxvYl9pZCJ9fQ==--1d647026dd57241907ae7f90c113e0f63bb68027/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGciLCJyZXNpemVfYW5kX3BhZCI6Wzc1Miw0MjMseyJiYWNrZ3JvdW5kIjpbMjM4LDIzOCwyMzgsMjM4XSwiYWxwaGEiOnRydWV9XSwic2F2ZXIiOnsicXVhbGl0eSI6ODV9fSwicHVyIjoidmFyaWF0aW9uIn19--87d5dae95cd9117bcea522c1fa34781e19f732de/1.jpg",
- "full_path": "/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6OSwicHVyIjoiYmxvYl9pZCJ9fQ==--1d647026dd57241907ae7f90c113e0f63bb68027/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGciLCJyZXNpemVfdG9fbGltaXQiOlsxOTIwLDEwODBdLCJzYXZlciI6eyJxdWFsaXR5Ijo4NX19LCJwdXIiOiJ2YXJpYXRpb24ifX0=--cfd1c6e29d0d407efde83e6ff26f8acce153d0b4/1.jpg",
- "quarter_hd_path": "/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6OSwicHVyIjoiYmxvYl9pZCJ9fQ==--1d647026dd57241907ae7f90c113e0f63bb68027/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGciLCJyZXNpemVfYW5kX3BhZCI6Wzk2MCw1NDAseyJiYWNrZ3JvdW5kIjpbMjM4LDIzOCwyMzgsMjM4XSwiYWxwaGEiOnRydWV9XSwic2F2ZXIiOnsicXVhbGl0eSI6ODV9fSwicHVyIjoidmFyaWF0aW9uIn19--d39339055de4cc3639252e2adcd4214fec0787dc/1.jpg",
- "hd_path": "/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6OSwicHVyIjoiYmxvYl9pZCJ9fQ==--1d647026dd57241907ae7f90c113e0f63bb68027/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGciLCJyZXNpemVfYW5kX3BhZCI6WzEyODAsNzIwLHsiYmFja2dyb3VuZCI6WzIzOCwyMzgsMjM4LDIzOF0sImFscGhhIjp0cnVlfV0sInNhdmVyIjp7InF1YWxpdHkiOjg1fX0sInB1ciI6InZhcmlhdGlvbiJ9fQ==--42f4d8f39eed9164bf5b7953b39766c46b314eb9/1.jpg"
}, - "relationships": {
- "vehicle": {
- "data": null
}
}, - "links": {
- "self": "/photos/7",
- "all": "/photos",
- "thumb": "/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6OSwicHVyIjoiYmxvYl9pZCJ9fQ==--1d647026dd57241907ae7f90c113e0f63bb68027/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGciLCJyZXNpemVfYW5kX3BhZCI6WzQwMCwzMDAseyJiYWNrZ3JvdW5kIjpbMjM4LDIzOCwyMzgsMjM4XSwiYWxwaGEiOnRydWV9XSwic2F2ZXIiOnsicXVhbGl0eSI6ODV9fSwicHVyIjoidmFyaWF0aW9uIn19--55b64b8565c87129a4465e53843074c92d6a6692/1.jpg",
- "image": "/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6OSwicHVyIjoiYmxvYl9pZCJ9fQ==--1d647026dd57241907ae7f90c113e0f63bb68027/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGciLCJyZXNpemVfYW5kX3BhZCI6WzE2MDAsMTIwMCx7ImJhY2tncm91bmQiOlsyMzgsMjM4LDIzOCwyMzhdLCJhbHBoYSI6dHJ1ZX1dLCJzYXZlciI6eyJxdWFsaXR5Ijo4NX19LCJwdXIiOiJ2YXJpYXRpb24ifX0=--7b5f4ca4fdb73844cccc54630e015a046b05719f/1.jpg",
- "small": "/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6OSwicHVyIjoiYmxvYl9pZCJ9fQ==--1d647026dd57241907ae7f90c113e0f63bb68027/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGciLCJyZXNpemVfYW5kX3BhZCI6WzE2NSw5Mix7ImJhY2tncm91bmQiOlsyMzgsMjM4LDIzOCwyMzhdLCJhbHBoYSI6dHJ1ZX1dLCJzYXZlciI6eyJxdWFsaXR5Ijo4NX19LCJwdXIiOiJ2YXJpYXRpb24ifX0=--66380c5b6b4af7f9e745183631dad0ee428f4cb6/1.jpg",
- "medium": "/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6OSwicHVyIjoiYmxvYl9pZCJ9fQ==--1d647026dd57241907ae7f90c113e0f63bb68027/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGciLCJyZXNpemVfYW5kX3BhZCI6WzQyMCwyMzYseyJiYWNrZ3JvdW5kIjpbMjM4LDIzOCwyMzgsMjM4XSwiYWxwaGEiOnRydWV9XSwic2F2ZXIiOnsicXVhbGl0eSI6ODV9fSwicHVyIjoidmFyaWF0aW9uIn19--4dc07e951609e3efb6b48f3567616f872348d59f/1.jpg",
- "big": "/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6OSwicHVyIjoiYmxvYl9pZCJ9fQ==--1d647026dd57241907ae7f90c113e0f63bb68027/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGciLCJyZXNpemVfYW5kX3BhZCI6Wzc1Miw0MjMseyJiYWNrZ3JvdW5kIjpbMjM4LDIzOCwyMzgsMjM4XSwiYWxwaGEiOnRydWV9XSwic2F2ZXIiOnsicXVhbGl0eSI6ODV9fSwicHVyIjoidmFyaWF0aW9uIn19--87d5dae95cd9117bcea522c1fa34781e19f732de/1.jpg",
- "full": "/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6OSwicHVyIjoiYmxvYl9pZCJ9fQ==--1d647026dd57241907ae7f90c113e0f63bb68027/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGciLCJyZXNpemVfdG9fbGltaXQiOlsxOTIwLDEwODBdLCJzYXZlciI6eyJxdWFsaXR5Ijo4NX19LCJwdXIiOiJ2YXJpYXRpb24ifX0=--cfd1c6e29d0d407efde83e6ff26f8acce153d0b4/1.jpg",
- "quarter_hd": "/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6OSwicHVyIjoiYmxvYl9pZCJ9fQ==--1d647026dd57241907ae7f90c113e0f63bb68027/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGciLCJyZXNpemVfYW5kX3BhZCI6Wzk2MCw1NDAseyJiYWNrZ3JvdW5kIjpbMjM4LDIzOCwyMzgsMjM4XSwiYWxwaGEiOnRydWV9XSwic2F2ZXIiOnsicXVhbGl0eSI6ODV9fSwicHVyIjoidmFyaWF0aW9uIn19--d39339055de4cc3639252e2adcd4214fec0787dc/1.jpg",
- "hd": "/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6OSwicHVyIjoiYmxvYl9pZCJ9fQ==--1d647026dd57241907ae7f90c113e0f63bb68027/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGciLCJyZXNpemVfYW5kX3BhZCI6WzEyODAsNzIwLHsiYmFja2dyb3VuZCI6WzIzOCwyMzgsMjM4LDIzOF0sImFscGhhIjp0cnVlfV0sInNhdmVyIjp7InF1YWxpdHkiOjg1fX0sInB1ciI6InZhcmlhdGlvbiJ9fQ==--42f4d8f39eed9164bf5b7953b39766c46b314eb9/1.jpg"
}
}, - {
- "id": "8",
- "type": "photo",
- "attributes": {
- "sequence": 0,
- "file": {
- "name": "file",
- "record": {
- "id": 8,
- "sequence": 0,
- "vehicle_id": null,
- "created_at": "2024-11-20T08:09:23.606Z",
- "updated_at": "2024-11-20T08:09:23.608Z"
}
}, - "thumb_path": "/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6OSwicHVyIjoiYmxvYl9pZCJ9fQ==--1d647026dd57241907ae7f90c113e0f63bb68027/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGciLCJyZXNpemVfYW5kX3BhZCI6WzQwMCwzMDAseyJiYWNrZ3JvdW5kIjpbMjM4LDIzOCwyMzgsMjM4XSwiYWxwaGEiOnRydWV9XSwic2F2ZXIiOnsicXVhbGl0eSI6ODV9fSwicHVyIjoidmFyaWF0aW9uIn19--55b64b8565c87129a4465e53843074c92d6a6692/1.jpg",
- "image_path": "/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6OSwicHVyIjoiYmxvYl9pZCJ9fQ==--1d647026dd57241907ae7f90c113e0f63bb68027/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGciLCJyZXNpemVfYW5kX3BhZCI6WzE2MDAsMTIwMCx7ImJhY2tncm91bmQiOlsyMzgsMjM4LDIzOCwyMzhdLCJhbHBoYSI6dHJ1ZX1dLCJzYXZlciI6eyJxdWFsaXR5Ijo4NX19LCJwdXIiOiJ2YXJpYXRpb24ifX0=--7b5f4ca4fdb73844cccc54630e015a046b05719f/1.jpg",
- "small_path": "/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6OSwicHVyIjoiYmxvYl9pZCJ9fQ==--1d647026dd57241907ae7f90c113e0f63bb68027/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGciLCJyZXNpemVfYW5kX3BhZCI6WzE2NSw5Mix7ImJhY2tncm91bmQiOlsyMzgsMjM4LDIzOCwyMzhdLCJhbHBoYSI6dHJ1ZX1dLCJzYXZlciI6eyJxdWFsaXR5Ijo4NX19LCJwdXIiOiJ2YXJpYXRpb24ifX0=--66380c5b6b4af7f9e745183631dad0ee428f4cb6/1.jpg",
- "medium_path": "/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6OSwicHVyIjoiYmxvYl9pZCJ9fQ==--1d647026dd57241907ae7f90c113e0f63bb68027/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGciLCJyZXNpemVfYW5kX3BhZCI6WzQyMCwyMzYseyJiYWNrZ3JvdW5kIjpbMjM4LDIzOCwyMzgsMjM4XSwiYWxwaGEiOnRydWV9XSwic2F2ZXIiOnsicXVhbGl0eSI6ODV9fSwicHVyIjoidmFyaWF0aW9uIn19--4dc07e951609e3efb6b48f3567616f872348d59f/1.jpg",
- "big_path": "/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6OSwicHVyIjoiYmxvYl9pZCJ9fQ==--1d647026dd57241907ae7f90c113e0f63bb68027/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGciLCJyZXNpemVfYW5kX3BhZCI6Wzc1Miw0MjMseyJiYWNrZ3JvdW5kIjpbMjM4LDIzOCwyMzgsMjM4XSwiYWxwaGEiOnRydWV9XSwic2F2ZXIiOnsicXVhbGl0eSI6ODV9fSwicHVyIjoidmFyaWF0aW9uIn19--87d5dae95cd9117bcea522c1fa34781e19f732de/1.jpg",
- "full_path": "/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6OSwicHVyIjoiYmxvYl9pZCJ9fQ==--1d647026dd57241907ae7f90c113e0f63bb68027/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGciLCJyZXNpemVfdG9fbGltaXQiOlsxOTIwLDEwODBdLCJzYXZlciI6eyJxdWFsaXR5Ijo4NX19LCJwdXIiOiJ2YXJpYXRpb24ifX0=--cfd1c6e29d0d407efde83e6ff26f8acce153d0b4/1.jpg",
- "quarter_hd_path": "/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6OSwicHVyIjoiYmxvYl9pZCJ9fQ==--1d647026dd57241907ae7f90c113e0f63bb68027/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGciLCJyZXNpemVfYW5kX3BhZCI6Wzk2MCw1NDAseyJiYWNrZ3JvdW5kIjpbMjM4LDIzOCwyMzgsMjM4XSwiYWxwaGEiOnRydWV9XSwic2F2ZXIiOnsicXVhbGl0eSI6ODV9fSwicHVyIjoidmFyaWF0aW9uIn19--d39339055de4cc3639252e2adcd4214fec0787dc/1.jpg",
- "hd_path": "/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6OSwicHVyIjoiYmxvYl9pZCJ9fQ==--1d647026dd57241907ae7f90c113e0f63bb68027/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGciLCJyZXNpemVfYW5kX3BhZCI6WzEyODAsNzIwLHsiYmFja2dyb3VuZCI6WzIzOCwyMzgsMjM4LDIzOF0sImFscGhhIjp0cnVlfV0sInNhdmVyIjp7InF1YWxpdHkiOjg1fX0sInB1ciI6InZhcmlhdGlvbiJ9fQ==--42f4d8f39eed9164bf5b7953b39766c46b314eb9/1.jpg"
}, - "relationships": {
- "vehicle": {
- "data": null
}
}, - "links": {
- "self": "/photos/8",
- "all": "/photos",
- "thumb": "/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6OSwicHVyIjoiYmxvYl9pZCJ9fQ==--1d647026dd57241907ae7f90c113e0f63bb68027/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGciLCJyZXNpemVfYW5kX3BhZCI6WzQwMCwzMDAseyJiYWNrZ3JvdW5kIjpbMjM4LDIzOCwyMzgsMjM4XSwiYWxwaGEiOnRydWV9XSwic2F2ZXIiOnsicXVhbGl0eSI6ODV9fSwicHVyIjoidmFyaWF0aW9uIn19--55b64b8565c87129a4465e53843074c92d6a6692/1.jpg",
- "image": "/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6OSwicHVyIjoiYmxvYl9pZCJ9fQ==--1d647026dd57241907ae7f90c113e0f63bb68027/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGciLCJyZXNpemVfYW5kX3BhZCI6WzE2MDAsMTIwMCx7ImJhY2tncm91bmQiOlsyMzgsMjM4LDIzOCwyMzhdLCJhbHBoYSI6dHJ1ZX1dLCJzYXZlciI6eyJxdWFsaXR5Ijo4NX19LCJwdXIiOiJ2YXJpYXRpb24ifX0=--7b5f4ca4fdb73844cccc54630e015a046b05719f/1.jpg",
- "small": "/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6OSwicHVyIjoiYmxvYl9pZCJ9fQ==--1d647026dd57241907ae7f90c113e0f63bb68027/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGciLCJyZXNpemVfYW5kX3BhZCI6WzE2NSw5Mix7ImJhY2tncm91bmQiOlsyMzgsMjM4LDIzOCwyMzhdLCJhbHBoYSI6dHJ1ZX1dLCJzYXZlciI6eyJxdWFsaXR5Ijo4NX19LCJwdXIiOiJ2YXJpYXRpb24ifX0=--66380c5b6b4af7f9e745183631dad0ee428f4cb6/1.jpg",
- "medium": "/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6OSwicHVyIjoiYmxvYl9pZCJ9fQ==--1d647026dd57241907ae7f90c113e0f63bb68027/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGciLCJyZXNpemVfYW5kX3BhZCI6WzQyMCwyMzYseyJiYWNrZ3JvdW5kIjpbMjM4LDIzOCwyMzgsMjM4XSwiYWxwaGEiOnRydWV9XSwic2F2ZXIiOnsicXVhbGl0eSI6ODV9fSwicHVyIjoidmFyaWF0aW9uIn19--4dc07e951609e3efb6b48f3567616f872348d59f/1.jpg",
- "big": "/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6OSwicHVyIjoiYmxvYl9pZCJ9fQ==--1d647026dd57241907ae7f90c113e0f63bb68027/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGciLCJyZXNpemVfYW5kX3BhZCI6Wzc1Miw0MjMseyJiYWNrZ3JvdW5kIjpbMjM4LDIzOCwyMzgsMjM4XSwiYWxwaGEiOnRydWV9XSwic2F2ZXIiOnsicXVhbGl0eSI6ODV9fSwicHVyIjoidmFyaWF0aW9uIn19--87d5dae95cd9117bcea522c1fa34781e19f732de/1.jpg",
- "full": "/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6OSwicHVyIjoiYmxvYl9pZCJ9fQ==--1d647026dd57241907ae7f90c113e0f63bb68027/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGciLCJyZXNpemVfdG9fbGltaXQiOlsxOTIwLDEwODBdLCJzYXZlciI6eyJxdWFsaXR5Ijo4NX19LCJwdXIiOiJ2YXJpYXRpb24ifX0=--cfd1c6e29d0d407efde83e6ff26f8acce153d0b4/1.jpg",
- "quarter_hd": "/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6OSwicHVyIjoiYmxvYl9pZCJ9fQ==--1d647026dd57241907ae7f90c113e0f63bb68027/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGciLCJyZXNpemVfYW5kX3BhZCI6Wzk2MCw1NDAseyJiYWNrZ3JvdW5kIjpbMjM4LDIzOCwyMzgsMjM4XSwiYWxwaGEiOnRydWV9XSwic2F2ZXIiOnsicXVhbGl0eSI6ODV9fSwicHVyIjoidmFyaWF0aW9uIn19--d39339055de4cc3639252e2adcd4214fec0787dc/1.jpg",
- "hd": "/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6OSwicHVyIjoiYmxvYl9pZCJ9fQ==--1d647026dd57241907ae7f90c113e0f63bb68027/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGciLCJyZXNpemVfYW5kX3BhZCI6WzEyODAsNzIwLHsiYmFja2dyb3VuZCI6WzIzOCwyMzgsMjM4LDIzOF0sImFscGhhIjp0cnVlfV0sInNhdmVyIjp7InF1YWxpdHkiOjg1fX0sInB1ciI6InZhcmlhdGlvbiJ9fQ==--42f4d8f39eed9164bf5b7953b39766c46b314eb9/1.jpg"
}
}
]
}
Accept | any Example: application/vnd.api+json |
Authorization | any Example: Bearer STUB_TOKEN_STRING |
Content-Type | any Example: application/vnd.api+json |
{- "data": {
- "attributes": {
- "sequence": 0,
- "file": "eyJfcmFpbHMiOnsiZGF0YSI6MTEsInB1ciI6ImJsb2JfaWQifX0=--8a7a14645762e68cf32cac22b485722568613c45"
}
}
}
{- "data": {
- "id": "12",
- "type": "photo",
- "attributes": {
- "sequence": 0,
- "file": {
- "name": "file",
- "record": {
- "id": 12,
- "sequence": 0,
- "vehicle_id": null,
- "created_at": "2024-11-20T08:09:23.674Z",
- "updated_at": "2024-11-20T08:09:23.677Z"
}
}, - "thumb_path": "/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6MTEsInB1ciI6ImJsb2JfaWQifX0=--8a7a14645762e68cf32cac22b485722568613c45/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGciLCJyZXNpemVfYW5kX3BhZCI6WzQwMCwzMDAseyJiYWNrZ3JvdW5kIjpbMjM4LDIzOCwyMzgsMjM4XSwiYWxwaGEiOnRydWV9XSwic2F2ZXIiOnsicXVhbGl0eSI6ODV9fSwicHVyIjoidmFyaWF0aW9uIn19--55b64b8565c87129a4465e53843074c92d6a6692/1.jpg",
- "image_path": "/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6MTEsInB1ciI6ImJsb2JfaWQifX0=--8a7a14645762e68cf32cac22b485722568613c45/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGciLCJyZXNpemVfYW5kX3BhZCI6WzE2MDAsMTIwMCx7ImJhY2tncm91bmQiOlsyMzgsMjM4LDIzOCwyMzhdLCJhbHBoYSI6dHJ1ZX1dLCJzYXZlciI6eyJxdWFsaXR5Ijo4NX19LCJwdXIiOiJ2YXJpYXRpb24ifX0=--7b5f4ca4fdb73844cccc54630e015a046b05719f/1.jpg",
- "small_path": "/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6MTEsInB1ciI6ImJsb2JfaWQifX0=--8a7a14645762e68cf32cac22b485722568613c45/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGciLCJyZXNpemVfYW5kX3BhZCI6WzE2NSw5Mix7ImJhY2tncm91bmQiOlsyMzgsMjM4LDIzOCwyMzhdLCJhbHBoYSI6dHJ1ZX1dLCJzYXZlciI6eyJxdWFsaXR5Ijo4NX19LCJwdXIiOiJ2YXJpYXRpb24ifX0=--66380c5b6b4af7f9e745183631dad0ee428f4cb6/1.jpg",
- "medium_path": "/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6MTEsInB1ciI6ImJsb2JfaWQifX0=--8a7a14645762e68cf32cac22b485722568613c45/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGciLCJyZXNpemVfYW5kX3BhZCI6WzQyMCwyMzYseyJiYWNrZ3JvdW5kIjpbMjM4LDIzOCwyMzgsMjM4XSwiYWxwaGEiOnRydWV9XSwic2F2ZXIiOnsicXVhbGl0eSI6ODV9fSwicHVyIjoidmFyaWF0aW9uIn19--4dc07e951609e3efb6b48f3567616f872348d59f/1.jpg",
- "big_path": "/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6MTEsInB1ciI6ImJsb2JfaWQifX0=--8a7a14645762e68cf32cac22b485722568613c45/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGciLCJyZXNpemVfYW5kX3BhZCI6Wzc1Miw0MjMseyJiYWNrZ3JvdW5kIjpbMjM4LDIzOCwyMzgsMjM4XSwiYWxwaGEiOnRydWV9XSwic2F2ZXIiOnsicXVhbGl0eSI6ODV9fSwicHVyIjoidmFyaWF0aW9uIn19--87d5dae95cd9117bcea522c1fa34781e19f732de/1.jpg",
- "full_path": "/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6MTEsInB1ciI6ImJsb2JfaWQifX0=--8a7a14645762e68cf32cac22b485722568613c45/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGciLCJyZXNpemVfdG9fbGltaXQiOlsxOTIwLDEwODBdLCJzYXZlciI6eyJxdWFsaXR5Ijo4NX19LCJwdXIiOiJ2YXJpYXRpb24ifX0=--cfd1c6e29d0d407efde83e6ff26f8acce153d0b4/1.jpg",
- "quarter_hd_path": "/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6MTEsInB1ciI6ImJsb2JfaWQifX0=--8a7a14645762e68cf32cac22b485722568613c45/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGciLCJyZXNpemVfYW5kX3BhZCI6Wzk2MCw1NDAseyJiYWNrZ3JvdW5kIjpbMjM4LDIzOCwyMzgsMjM4XSwiYWxwaGEiOnRydWV9XSwic2F2ZXIiOnsicXVhbGl0eSI6ODV9fSwicHVyIjoidmFyaWF0aW9uIn19--d39339055de4cc3639252e2adcd4214fec0787dc/1.jpg",
- "hd_path": "/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6MTEsInB1ciI6ImJsb2JfaWQifX0=--8a7a14645762e68cf32cac22b485722568613c45/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGciLCJyZXNpemVfYW5kX3BhZCI6WzEyODAsNzIwLHsiYmFja2dyb3VuZCI6WzIzOCwyMzgsMjM4LDIzOF0sImFscGhhIjp0cnVlfV0sInNhdmVyIjp7InF1YWxpdHkiOjg1fX0sInB1ciI6InZhcmlhdGlvbiJ9fQ==--42f4d8f39eed9164bf5b7953b39766c46b314eb9/1.jpg"
}, - "relationships": {
- "vehicle": {
- "data": null
}
}, - "links": {
- "self": "/photos/12",
- "all": "/photos",
- "thumb": "/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6MTEsInB1ciI6ImJsb2JfaWQifX0=--8a7a14645762e68cf32cac22b485722568613c45/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGciLCJyZXNpemVfYW5kX3BhZCI6WzQwMCwzMDAseyJiYWNrZ3JvdW5kIjpbMjM4LDIzOCwyMzgsMjM4XSwiYWxwaGEiOnRydWV9XSwic2F2ZXIiOnsicXVhbGl0eSI6ODV9fSwicHVyIjoidmFyaWF0aW9uIn19--55b64b8565c87129a4465e53843074c92d6a6692/1.jpg",
- "image": "/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6MTEsInB1ciI6ImJsb2JfaWQifX0=--8a7a14645762e68cf32cac22b485722568613c45/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGciLCJyZXNpemVfYW5kX3BhZCI6WzE2MDAsMTIwMCx7ImJhY2tncm91bmQiOlsyMzgsMjM4LDIzOCwyMzhdLCJhbHBoYSI6dHJ1ZX1dLCJzYXZlciI6eyJxdWFsaXR5Ijo4NX19LCJwdXIiOiJ2YXJpYXRpb24ifX0=--7b5f4ca4fdb73844cccc54630e015a046b05719f/1.jpg",
- "small": "/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6MTEsInB1ciI6ImJsb2JfaWQifX0=--8a7a14645762e68cf32cac22b485722568613c45/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGciLCJyZXNpemVfYW5kX3BhZCI6WzE2NSw5Mix7ImJhY2tncm91bmQiOlsyMzgsMjM4LDIzOCwyMzhdLCJhbHBoYSI6dHJ1ZX1dLCJzYXZlciI6eyJxdWFsaXR5Ijo4NX19LCJwdXIiOiJ2YXJpYXRpb24ifX0=--66380c5b6b4af7f9e745183631dad0ee428f4cb6/1.jpg",
- "medium": "/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6MTEsInB1ciI6ImJsb2JfaWQifX0=--8a7a14645762e68cf32cac22b485722568613c45/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGciLCJyZXNpemVfYW5kX3BhZCI6WzQyMCwyMzYseyJiYWNrZ3JvdW5kIjpbMjM4LDIzOCwyMzgsMjM4XSwiYWxwaGEiOnRydWV9XSwic2F2ZXIiOnsicXVhbGl0eSI6ODV9fSwicHVyIjoidmFyaWF0aW9uIn19--4dc07e951609e3efb6b48f3567616f872348d59f/1.jpg",
- "big": "/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6MTEsInB1ciI6ImJsb2JfaWQifX0=--8a7a14645762e68cf32cac22b485722568613c45/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGciLCJyZXNpemVfYW5kX3BhZCI6Wzc1Miw0MjMseyJiYWNrZ3JvdW5kIjpbMjM4LDIzOCwyMzgsMjM4XSwiYWxwaGEiOnRydWV9XSwic2F2ZXIiOnsicXVhbGl0eSI6ODV9fSwicHVyIjoidmFyaWF0aW9uIn19--87d5dae95cd9117bcea522c1fa34781e19f732de/1.jpg",
- "full": "/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6MTEsInB1ciI6ImJsb2JfaWQifX0=--8a7a14645762e68cf32cac22b485722568613c45/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGciLCJyZXNpemVfdG9fbGltaXQiOlsxOTIwLDEwODBdLCJzYXZlciI6eyJxdWFsaXR5Ijo4NX19LCJwdXIiOiJ2YXJpYXRpb24ifX0=--cfd1c6e29d0d407efde83e6ff26f8acce153d0b4/1.jpg",
- "quarter_hd": "/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6MTEsInB1ciI6ImJsb2JfaWQifX0=--8a7a14645762e68cf32cac22b485722568613c45/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGciLCJyZXNpemVfYW5kX3BhZCI6Wzk2MCw1NDAseyJiYWNrZ3JvdW5kIjpbMjM4LDIzOCwyMzgsMjM4XSwiYWxwaGEiOnRydWV9XSwic2F2ZXIiOnsicXVhbGl0eSI6ODV9fSwicHVyIjoidmFyaWF0aW9uIn19--d39339055de4cc3639252e2adcd4214fec0787dc/1.jpg",
- "hd": "/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6MTEsInB1ciI6ImJsb2JfaWQifX0=--8a7a14645762e68cf32cac22b485722568613c45/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGciLCJyZXNpemVfYW5kX3BhZCI6WzEyODAsNzIwLHsiYmFja2dyb3VuZCI6WzIzOCwyMzgsMjM4LDIzOF0sImFscGhhIjp0cnVlfV0sInNhdmVyIjp7InF1YWxpdHkiOjg1fX0sInB1ciI6InZhcmlhdGlvbiJ9fQ==--42f4d8f39eed9164bf5b7953b39766c46b314eb9/1.jpg"
}
}
}
id | number Example: 10 |
Accept | any Example: application/vnd.api+json |
Authorization | any Example: Bearer STUB_TOKEN_STRING |
Content-Type | any Example: application/vnd.api+json |
{- "data": {
- "id": "10",
- "type": "photo",
- "attributes": {
- "sequence": 0,
- "file": {
- "name": "file",
- "record": {
- "id": 10,
- "sequence": 0,
- "vehicle_id": null,
- "created_at": "2024-11-20T08:09:23.642Z",
- "updated_at": "2024-11-20T08:09:23.645Z"
}
}, - "thumb_path": "/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6MTAsInB1ciI6ImJsb2JfaWQifX0=--7e24fea28b56bb3c4e7750fe2c7f49f44b48bedf/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGciLCJyZXNpemVfYW5kX3BhZCI6WzQwMCwzMDAseyJiYWNrZ3JvdW5kIjpbMjM4LDIzOCwyMzgsMjM4XSwiYWxwaGEiOnRydWV9XSwic2F2ZXIiOnsicXVhbGl0eSI6ODV9fSwicHVyIjoidmFyaWF0aW9uIn19--55b64b8565c87129a4465e53843074c92d6a6692/1.jpg",
- "image_path": "/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6MTAsInB1ciI6ImJsb2JfaWQifX0=--7e24fea28b56bb3c4e7750fe2c7f49f44b48bedf/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGciLCJyZXNpemVfYW5kX3BhZCI6WzE2MDAsMTIwMCx7ImJhY2tncm91bmQiOlsyMzgsMjM4LDIzOCwyMzhdLCJhbHBoYSI6dHJ1ZX1dLCJzYXZlciI6eyJxdWFsaXR5Ijo4NX19LCJwdXIiOiJ2YXJpYXRpb24ifX0=--7b5f4ca4fdb73844cccc54630e015a046b05719f/1.jpg",
- "small_path": "/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6MTAsInB1ciI6ImJsb2JfaWQifX0=--7e24fea28b56bb3c4e7750fe2c7f49f44b48bedf/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGciLCJyZXNpemVfYW5kX3BhZCI6WzE2NSw5Mix7ImJhY2tncm91bmQiOlsyMzgsMjM4LDIzOCwyMzhdLCJhbHBoYSI6dHJ1ZX1dLCJzYXZlciI6eyJxdWFsaXR5Ijo4NX19LCJwdXIiOiJ2YXJpYXRpb24ifX0=--66380c5b6b4af7f9e745183631dad0ee428f4cb6/1.jpg",
- "medium_path": "/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6MTAsInB1ciI6ImJsb2JfaWQifX0=--7e24fea28b56bb3c4e7750fe2c7f49f44b48bedf/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGciLCJyZXNpemVfYW5kX3BhZCI6WzQyMCwyMzYseyJiYWNrZ3JvdW5kIjpbMjM4LDIzOCwyMzgsMjM4XSwiYWxwaGEiOnRydWV9XSwic2F2ZXIiOnsicXVhbGl0eSI6ODV9fSwicHVyIjoidmFyaWF0aW9uIn19--4dc07e951609e3efb6b48f3567616f872348d59f/1.jpg",
- "big_path": "/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6MTAsInB1ciI6ImJsb2JfaWQifX0=--7e24fea28b56bb3c4e7750fe2c7f49f44b48bedf/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGciLCJyZXNpemVfYW5kX3BhZCI6Wzc1Miw0MjMseyJiYWNrZ3JvdW5kIjpbMjM4LDIzOCwyMzgsMjM4XSwiYWxwaGEiOnRydWV9XSwic2F2ZXIiOnsicXVhbGl0eSI6ODV9fSwicHVyIjoidmFyaWF0aW9uIn19--87d5dae95cd9117bcea522c1fa34781e19f732de/1.jpg",
- "full_path": "/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6MTAsInB1ciI6ImJsb2JfaWQifX0=--7e24fea28b56bb3c4e7750fe2c7f49f44b48bedf/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGciLCJyZXNpemVfdG9fbGltaXQiOlsxOTIwLDEwODBdLCJzYXZlciI6eyJxdWFsaXR5Ijo4NX19LCJwdXIiOiJ2YXJpYXRpb24ifX0=--cfd1c6e29d0d407efde83e6ff26f8acce153d0b4/1.jpg",
- "quarter_hd_path": "/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6MTAsInB1ciI6ImJsb2JfaWQifX0=--7e24fea28b56bb3c4e7750fe2c7f49f44b48bedf/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGciLCJyZXNpemVfYW5kX3BhZCI6Wzk2MCw1NDAseyJiYWNrZ3JvdW5kIjpbMjM4LDIzOCwyMzgsMjM4XSwiYWxwaGEiOnRydWV9XSwic2F2ZXIiOnsicXVhbGl0eSI6ODV9fSwicHVyIjoidmFyaWF0aW9uIn19--d39339055de4cc3639252e2adcd4214fec0787dc/1.jpg",
- "hd_path": "/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6MTAsInB1ciI6ImJsb2JfaWQifX0=--7e24fea28b56bb3c4e7750fe2c7f49f44b48bedf/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGciLCJyZXNpemVfYW5kX3BhZCI6WzEyODAsNzIwLHsiYmFja2dyb3VuZCI6WzIzOCwyMzgsMjM4LDIzOF0sImFscGhhIjp0cnVlfV0sInNhdmVyIjp7InF1YWxpdHkiOjg1fX0sInB1ciI6InZhcmlhdGlvbiJ9fQ==--42f4d8f39eed9164bf5b7953b39766c46b314eb9/1.jpg"
}, - "relationships": {
- "vehicle": {
- "data": null
}
}, - "links": {
- "self": "/photos/10",
- "all": "/photos",
- "thumb": "/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6MTAsInB1ciI6ImJsb2JfaWQifX0=--7e24fea28b56bb3c4e7750fe2c7f49f44b48bedf/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGciLCJyZXNpemVfYW5kX3BhZCI6WzQwMCwzMDAseyJiYWNrZ3JvdW5kIjpbMjM4LDIzOCwyMzgsMjM4XSwiYWxwaGEiOnRydWV9XSwic2F2ZXIiOnsicXVhbGl0eSI6ODV9fSwicHVyIjoidmFyaWF0aW9uIn19--55b64b8565c87129a4465e53843074c92d6a6692/1.jpg",
- "image": "/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6MTAsInB1ciI6ImJsb2JfaWQifX0=--7e24fea28b56bb3c4e7750fe2c7f49f44b48bedf/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGciLCJyZXNpemVfYW5kX3BhZCI6WzE2MDAsMTIwMCx7ImJhY2tncm91bmQiOlsyMzgsMjM4LDIzOCwyMzhdLCJhbHBoYSI6dHJ1ZX1dLCJzYXZlciI6eyJxdWFsaXR5Ijo4NX19LCJwdXIiOiJ2YXJpYXRpb24ifX0=--7b5f4ca4fdb73844cccc54630e015a046b05719f/1.jpg",
- "small": "/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6MTAsInB1ciI6ImJsb2JfaWQifX0=--7e24fea28b56bb3c4e7750fe2c7f49f44b48bedf/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGciLCJyZXNpemVfYW5kX3BhZCI6WzE2NSw5Mix7ImJhY2tncm91bmQiOlsyMzgsMjM4LDIzOCwyMzhdLCJhbHBoYSI6dHJ1ZX1dLCJzYXZlciI6eyJxdWFsaXR5Ijo4NX19LCJwdXIiOiJ2YXJpYXRpb24ifX0=--66380c5b6b4af7f9e745183631dad0ee428f4cb6/1.jpg",
- "medium": "/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6MTAsInB1ciI6ImJsb2JfaWQifX0=--7e24fea28b56bb3c4e7750fe2c7f49f44b48bedf/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGciLCJyZXNpemVfYW5kX3BhZCI6WzQyMCwyMzYseyJiYWNrZ3JvdW5kIjpbMjM4LDIzOCwyMzgsMjM4XSwiYWxwaGEiOnRydWV9XSwic2F2ZXIiOnsicXVhbGl0eSI6ODV9fSwicHVyIjoidmFyaWF0aW9uIn19--4dc07e951609e3efb6b48f3567616f872348d59f/1.jpg",
- "big": "/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6MTAsInB1ciI6ImJsb2JfaWQifX0=--7e24fea28b56bb3c4e7750fe2c7f49f44b48bedf/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGciLCJyZXNpemVfYW5kX3BhZCI6Wzc1Miw0MjMseyJiYWNrZ3JvdW5kIjpbMjM4LDIzOCwyMzgsMjM4XSwiYWxwaGEiOnRydWV9XSwic2F2ZXIiOnsicXVhbGl0eSI6ODV9fSwicHVyIjoidmFyaWF0aW9uIn19--87d5dae95cd9117bcea522c1fa34781e19f732de/1.jpg",
- "full": "/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6MTAsInB1ciI6ImJsb2JfaWQifX0=--7e24fea28b56bb3c4e7750fe2c7f49f44b48bedf/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGciLCJyZXNpemVfdG9fbGltaXQiOlsxOTIwLDEwODBdLCJzYXZlciI6eyJxdWFsaXR5Ijo4NX19LCJwdXIiOiJ2YXJpYXRpb24ifX0=--cfd1c6e29d0d407efde83e6ff26f8acce153d0b4/1.jpg",
- "quarter_hd": "/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6MTAsInB1ciI6ImJsb2JfaWQifX0=--7e24fea28b56bb3c4e7750fe2c7f49f44b48bedf/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGciLCJyZXNpemVfYW5kX3BhZCI6Wzk2MCw1NDAseyJiYWNrZ3JvdW5kIjpbMjM4LDIzOCwyMzgsMjM4XSwiYWxwaGEiOnRydWV9XSwic2F2ZXIiOnsicXVhbGl0eSI6ODV9fSwicHVyIjoidmFyaWF0aW9uIn19--d39339055de4cc3639252e2adcd4214fec0787dc/1.jpg",
- "hd": "/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6MTAsInB1ciI6ImJsb2JfaWQifX0=--7e24fea28b56bb3c4e7750fe2c7f49f44b48bedf/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGciLCJyZXNpemVfYW5kX3BhZCI6WzEyODAsNzIwLHsiYmFja2dyb3VuZCI6WzIzOCwyMzgsMjM4LDIzOF0sImFscGhhIjp0cnVlfV0sInNhdmVyIjp7InF1YWxpdHkiOjg1fX0sInB1ciI6InZhcmlhdGlvbiJ9fQ==--42f4d8f39eed9164bf5b7953b39766c46b314eb9/1.jpg"
}
}
}
id | number Example: 15 |
Accept | any Example: application/vnd.api+json |
Authorization | any Example: Bearer STUB_TOKEN_STRING |
Content-Type | any Example: application/vnd.api+json |
{- "data": {
- "attributes": {
- "sequence": 10
}
}
}
{- "data": {
- "id": "15",
- "type": "photo",
- "attributes": {
- "sequence": 10,
- "file": {
- "name": "file",
- "record": {
- "sequence": 10,
- "id": 15,
- "vehicle_id": null,
- "created_at": "2024-11-20T08:09:23.725Z",
- "updated_at": "2024-11-20T08:09:23.737Z"
}
}, - "thumb_path": "/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6MTUsInB1ciI6ImJsb2JfaWQifX0=--7e4e5bfe653bdff643899b89cb9d090e25644913/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGciLCJyZXNpemVfYW5kX3BhZCI6WzQwMCwzMDAseyJiYWNrZ3JvdW5kIjpbMjM4LDIzOCwyMzgsMjM4XSwiYWxwaGEiOnRydWV9XSwic2F2ZXIiOnsicXVhbGl0eSI6ODV9fSwicHVyIjoidmFyaWF0aW9uIn19--55b64b8565c87129a4465e53843074c92d6a6692/1.jpg",
- "image_path": "/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6MTUsInB1ciI6ImJsb2JfaWQifX0=--7e4e5bfe653bdff643899b89cb9d090e25644913/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGciLCJyZXNpemVfYW5kX3BhZCI6WzE2MDAsMTIwMCx7ImJhY2tncm91bmQiOlsyMzgsMjM4LDIzOCwyMzhdLCJhbHBoYSI6dHJ1ZX1dLCJzYXZlciI6eyJxdWFsaXR5Ijo4NX19LCJwdXIiOiJ2YXJpYXRpb24ifX0=--7b5f4ca4fdb73844cccc54630e015a046b05719f/1.jpg",
- "small_path": "/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6MTUsInB1ciI6ImJsb2JfaWQifX0=--7e4e5bfe653bdff643899b89cb9d090e25644913/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGciLCJyZXNpemVfYW5kX3BhZCI6WzE2NSw5Mix7ImJhY2tncm91bmQiOlsyMzgsMjM4LDIzOCwyMzhdLCJhbHBoYSI6dHJ1ZX1dLCJzYXZlciI6eyJxdWFsaXR5Ijo4NX19LCJwdXIiOiJ2YXJpYXRpb24ifX0=--66380c5b6b4af7f9e745183631dad0ee428f4cb6/1.jpg",
- "medium_path": "/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6MTUsInB1ciI6ImJsb2JfaWQifX0=--7e4e5bfe653bdff643899b89cb9d090e25644913/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGciLCJyZXNpemVfYW5kX3BhZCI6WzQyMCwyMzYseyJiYWNrZ3JvdW5kIjpbMjM4LDIzOCwyMzgsMjM4XSwiYWxwaGEiOnRydWV9XSwic2F2ZXIiOnsicXVhbGl0eSI6ODV9fSwicHVyIjoidmFyaWF0aW9uIn19--4dc07e951609e3efb6b48f3567616f872348d59f/1.jpg",
- "big_path": "/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6MTUsInB1ciI6ImJsb2JfaWQifX0=--7e4e5bfe653bdff643899b89cb9d090e25644913/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGciLCJyZXNpemVfYW5kX3BhZCI6Wzc1Miw0MjMseyJiYWNrZ3JvdW5kIjpbMjM4LDIzOCwyMzgsMjM4XSwiYWxwaGEiOnRydWV9XSwic2F2ZXIiOnsicXVhbGl0eSI6ODV9fSwicHVyIjoidmFyaWF0aW9uIn19--87d5dae95cd9117bcea522c1fa34781e19f732de/1.jpg",
- "full_path": "/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6MTUsInB1ciI6ImJsb2JfaWQifX0=--7e4e5bfe653bdff643899b89cb9d090e25644913/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGciLCJyZXNpemVfdG9fbGltaXQiOlsxOTIwLDEwODBdLCJzYXZlciI6eyJxdWFsaXR5Ijo4NX19LCJwdXIiOiJ2YXJpYXRpb24ifX0=--cfd1c6e29d0d407efde83e6ff26f8acce153d0b4/1.jpg",
- "quarter_hd_path": "/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6MTUsInB1ciI6ImJsb2JfaWQifX0=--7e4e5bfe653bdff643899b89cb9d090e25644913/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGciLCJyZXNpemVfYW5kX3BhZCI6Wzk2MCw1NDAseyJiYWNrZ3JvdW5kIjpbMjM4LDIzOCwyMzgsMjM4XSwiYWxwaGEiOnRydWV9XSwic2F2ZXIiOnsicXVhbGl0eSI6ODV9fSwicHVyIjoidmFyaWF0aW9uIn19--d39339055de4cc3639252e2adcd4214fec0787dc/1.jpg",
- "hd_path": "/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6MTUsInB1ciI6ImJsb2JfaWQifX0=--7e4e5bfe653bdff643899b89cb9d090e25644913/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGciLCJyZXNpemVfYW5kX3BhZCI6WzEyODAsNzIwLHsiYmFja2dyb3VuZCI6WzIzOCwyMzgsMjM4LDIzOF0sImFscGhhIjp0cnVlfV0sInNhdmVyIjp7InF1YWxpdHkiOjg1fX0sInB1ciI6InZhcmlhdGlvbiJ9fQ==--42f4d8f39eed9164bf5b7953b39766c46b314eb9/1.jpg"
}, - "relationships": {
- "vehicle": {
- "data": null
}
}, - "links": {
- "self": "/photos/15",
- "all": "/photos",
- "thumb": "/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6MTUsInB1ciI6ImJsb2JfaWQifX0=--7e4e5bfe653bdff643899b89cb9d090e25644913/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGciLCJyZXNpemVfYW5kX3BhZCI6WzQwMCwzMDAseyJiYWNrZ3JvdW5kIjpbMjM4LDIzOCwyMzgsMjM4XSwiYWxwaGEiOnRydWV9XSwic2F2ZXIiOnsicXVhbGl0eSI6ODV9fSwicHVyIjoidmFyaWF0aW9uIn19--55b64b8565c87129a4465e53843074c92d6a6692/1.jpg",
- "image": "/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6MTUsInB1ciI6ImJsb2JfaWQifX0=--7e4e5bfe653bdff643899b89cb9d090e25644913/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGciLCJyZXNpemVfYW5kX3BhZCI6WzE2MDAsMTIwMCx7ImJhY2tncm91bmQiOlsyMzgsMjM4LDIzOCwyMzhdLCJhbHBoYSI6dHJ1ZX1dLCJzYXZlciI6eyJxdWFsaXR5Ijo4NX19LCJwdXIiOiJ2YXJpYXRpb24ifX0=--7b5f4ca4fdb73844cccc54630e015a046b05719f/1.jpg",
- "small": "/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6MTUsInB1ciI6ImJsb2JfaWQifX0=--7e4e5bfe653bdff643899b89cb9d090e25644913/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGciLCJyZXNpemVfYW5kX3BhZCI6WzE2NSw5Mix7ImJhY2tncm91bmQiOlsyMzgsMjM4LDIzOCwyMzhdLCJhbHBoYSI6dHJ1ZX1dLCJzYXZlciI6eyJxdWFsaXR5Ijo4NX19LCJwdXIiOiJ2YXJpYXRpb24ifX0=--66380c5b6b4af7f9e745183631dad0ee428f4cb6/1.jpg",
- "medium": "/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6MTUsInB1ciI6ImJsb2JfaWQifX0=--7e4e5bfe653bdff643899b89cb9d090e25644913/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGciLCJyZXNpemVfYW5kX3BhZCI6WzQyMCwyMzYseyJiYWNrZ3JvdW5kIjpbMjM4LDIzOCwyMzgsMjM4XSwiYWxwaGEiOnRydWV9XSwic2F2ZXIiOnsicXVhbGl0eSI6ODV9fSwicHVyIjoidmFyaWF0aW9uIn19--4dc07e951609e3efb6b48f3567616f872348d59f/1.jpg",
- "big": "/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6MTUsInB1ciI6ImJsb2JfaWQifX0=--7e4e5bfe653bdff643899b89cb9d090e25644913/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGciLCJyZXNpemVfYW5kX3BhZCI6Wzc1Miw0MjMseyJiYWNrZ3JvdW5kIjpbMjM4LDIzOCwyMzgsMjM4XSwiYWxwaGEiOnRydWV9XSwic2F2ZXIiOnsicXVhbGl0eSI6ODV9fSwicHVyIjoidmFyaWF0aW9uIn19--87d5dae95cd9117bcea522c1fa34781e19f732de/1.jpg",
- "full": "/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6MTUsInB1ciI6ImJsb2JfaWQifX0=--7e4e5bfe653bdff643899b89cb9d090e25644913/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGciLCJyZXNpemVfdG9fbGltaXQiOlsxOTIwLDEwODBdLCJzYXZlciI6eyJxdWFsaXR5Ijo4NX19LCJwdXIiOiJ2YXJpYXRpb24ifX0=--cfd1c6e29d0d407efde83e6ff26f8acce153d0b4/1.jpg",
- "quarter_hd": "/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6MTUsInB1ciI6ImJsb2JfaWQifX0=--7e4e5bfe653bdff643899b89cb9d090e25644913/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGciLCJyZXNpemVfYW5kX3BhZCI6Wzk2MCw1NDAseyJiYWNrZ3JvdW5kIjpbMjM4LDIzOCwyMzgsMjM4XSwiYWxwaGEiOnRydWV9XSwic2F2ZXIiOnsicXVhbGl0eSI6ODV9fSwicHVyIjoidmFyaWF0aW9uIn19--d39339055de4cc3639252e2adcd4214fec0787dc/1.jpg",
- "hd": "/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6MTUsInB1ciI6ImJsb2JfaWQifX0=--7e4e5bfe653bdff643899b89cb9d090e25644913/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGciLCJyZXNpemVfYW5kX3BhZCI6WzEyODAsNzIwLHsiYmFja2dyb3VuZCI6WzIzOCwyMzgsMjM4LDIzOF0sImFscGhhIjp0cnVlfV0sInNhdmVyIjp7InF1YWxpdHkiOjg1fX0sInB1ciI6InZhcmlhdGlvbiJ9fQ==--42f4d8f39eed9164bf5b7953b39766c46b314eb9/1.jpg"
}
}
}
GET /sidekiq/:id
This endpoint is used to get a status of the sidekiq job.
param | example | type | required | description |
---|---|---|---|---|
id |
991c3dc1a0bcf01ce93ae34 | string | yes (in url) | id of the job |
job_id
- id of the job
status
- status of the job, possible values are queued
, working
, complete
, failed
, interrupted
, when value is null it means job does not exist
id | string Example: a3f3b2d44021a96d7fc05607 |
Accept | any Example: application/json |
X-Company-UUID | any Example: 35c8a6fc-d44c-40f0-b45c-3e2d3e524e76 |
Authorization | any Example: Bearer STUB_TOKEN_STRING |
Content-Type | any Example: application/json |
{- "job_id": "a3f3b2d44021a96d7fc05607",
- "status": "complete"
}
Stores files and data (photo status and vehicle errors) associated with vehicle batch uploads. It tracks status of upload job.
id | number Example: 1 |
Accept | any Example: application/vnd.api+json |
X-Company-UUID | any Example: 0dc79b34-0ac5-4304-97a1-c37e68fa2350 |
Authorization | any Example: Bearer STUB_TOKEN_STRING |
Content-Type | any Example: application/vnd.api+json |
{- "data": {
- "id": "1",
- "type": "vehicle_batch_upload",
- "attributes": {
- "id": 1,
- "state": null,
- "total_vehicle_count": null,
- "successful_upload_count": 0,
- "failed_upload_count": 0,
- "failed_uploads": [ ],
- "photo_status": [ ],
- "overwrite_permitted": false
}
}
}
Accept | any Example: application/vnd.api+json |
X-Company-UUID | any Example: eccf8cfa-8b4e-4534-b9bd-f35b8b2bb242 |
Authorization | any Example: Bearer STUB_TOKEN_STRING |
Content-Type | any Example: multipart/form-data; boundary=----------XnJLe9ZIbbGUYtzPQJ16u1 |
"{\n \"file\": {\n \"filename\": \"valid_file.csv\",\n \"type\": \"text/csv\",\n \"name\": \"file\",\n \"tempfile\": \"#<File:0x00007fe69e124328>\",\n \"head\": \"content-disposition: form-data; name=\\\"file\\\"; filename=\\\"valid_file.csv\\\"\\r\\ncontent-type: text/csv\\r\\ncontent-length: 3666\\r\\n\"\n }\n}"
{- "data": {
- "id": "3",
- "type": "vehicle_batch_upload",
- "attributes": {
- "id": 3,
- "state": "init",
- "total_vehicle_count": 1,
- "successful_upload_count": 0,
- "failed_upload_count": 0,
- "failed_uploads": [ ],
- "photo_status": [ ],
- "overwrite_permitted": false
}
}
}
Accept | any Example: application/vnd.api+json |
X-Company-UUID | any Example: 5cfa082f-4f21-4386-a5fd-8df0f987e690 |
Authorization | any Example: Bearer STUB_TOKEN_STRING |
Content-Type | any Example: application/vnd.api+json |
{- "pending_upload_id": null
}
Vehicles list is always paginated.
By default API will return up to 20 items but it can be overriden using items
parameter.
Here we use items=2
bo brevity but it's optional and set to 20 by default.
Paginated results include pagination metadata in the meta
object like this:
"meta": {
"pagination": {
//URL template to fetch additonal pages (PAGE_NUM) should be replaced by page number
"scaffold_url": "...?items=2&page=PAGE_NUM",
"count": 50, // Overall amount of vehicles in collection
"page": 3, // Current page number
"items": 2, // Amount of items page page
"pages": 25, // Amount of all pages
"last": 25, // Last page number
"from": 5, // index of first item on current page
"to": 6, // index of last item on current page
"prev": 2, // previous page number, null if no previous page
"next": 4 // next page number, null if no next page
}
}
page required | number Example: page=2 Pagination page to be requested (default: 1) |
items required | number Example: items=3 Amount of items per page (default: 20) |
Accept | any Example: application/vnd.api+json |
X-Company-UUID | any Example: 6a431e67-8904-4544-9745-6f5d815ccae8 |
Authorization | any Example: Bearer STUB_TOKEN_STRING |
Content-Type | any Example: application/vnd.api+json |
{- "data": [
- {
- "id": "5",
- "type": "vehicle_operation_request",
- "attributes": {
- "request_type": "publication",
- "updated_at": "2024-11-20T08:09:43.284Z",
- "status": "rejected",
- "owner_name": "Marquardt-Kozey",
- "owner_id": 625,
- "requester_name": "Marquardt-Kozey",
- "requester_id": 625,
- "listing_title": "Linguine with Clams 63",
- "listing_id": 61,
- "transfer_to_name": null,
- "transfer_to_id": null,
- "vehicle_id": 239,
- "vehicle_model_display_name": "Renault Belcerebon",
- "vehicle_owner_name": "Abbott-Harvey",
- "vehicle_cover_photo_thumb": null
}
}, - {
- "id": "6",
- "type": "vehicle_operation_request",
- "attributes": {
- "request_type": "publication",
- "updated_at": "2024-11-20T08:09:43.310Z",
- "status": "approved",
- "owner_name": "Marquardt-Kozey",
- "owner_id": 625,
- "requester_name": "Marquardt-Kozey",
- "requester_id": 625,
- "listing_title": "Linguine with Clams 63",
- "listing_id": 61,
- "transfer_to_name": null,
- "transfer_to_id": null,
- "vehicle_id": 240,
- "vehicle_model_display_name": "Subaru Silver Tongued Devils",
- "vehicle_owner_name": "Erdman, Powlowski and Terry",
- "vehicle_cover_photo_thumb": null
}
}
], - "meta": {
- "pagination": {
- "scaffold_url": "/vehicle_operation_requests/publications?items=2&page=PAGE_NUM",
- "count": 50,
- "page": 3,
- "items": 2,
- "pages": 25,
- "last": 25,
- "from": 5,
- "to": 6,
- "prev": 2,
- "next": 4
}, - "company_account_type": "importer"
}
}
Filtering mechanism utilises quite powerful Ransack gem engine
Prefilters are parameters used to filter vehicles before any counting or dynamic filtering takes place. They are simple filters without any predicates. There are two perfilters:
forced_brands_names - filters vehicles by brand names separated by comma, ex. forced_brands_names=Land Rover,Jaguar
forced_dealer_codes - filters vehicles by owner dealer codes, separated by comma, ex. forced_dealer_codes=50001,50002
forced_statuses - filters vehicles by statuses, separated by comma, ex. forced_dealer_codes=reserved,sold
filter
attributeTo filter results one should use filter[]
GET parameter
object with each search/filter criteria as a separate parameter entry.
this parameters entries should adher to format of filter[:attribute_filtered:_:matcher_operator:]=value1
.
attribute_filter
partIn general it's possible to filter by all object parameters that can be seen in
a typical API response. For vehicles it includes version
, drivetrain
, production_year
etc.
However, there's one non-standard attribute that you can filter by - display_price
. It filters/sorts vehicles
by the actual Vehicle price (so it checks whether a vehicle has sale_price
value - if not, it takes msrp_price
for that vehicle as the current price).
On top of that one can filter based on selected related models by concatenating relationship name and related obejct attribute. For example Nameplate
name is not stored in the Vehicle
model but it can ge used as filter parameter as nameplate_name
.
This kind of relationship searches can go deeper. Since Brand
is related to Nameplate
not Vechile
itself, to filter vehicles by Brand
name we should user nameplate_brand_name
attributes.
matcher
partFull list of all available matcher operators can be seen here: https://github.com/activerecord-hackery/ransack#search-matchers
Most usefull and important ones are:
Matcher | Description |
---|---|
_eq | Equality |
_gt | Greater then |
_gteq | Greater than or equal |
_lt | Less then |
_lteq | Less than or equal |
_start | Starts with |
_i_cont | Contains value with (case insensitive) |
_cont | Contains value with (case sensitive) |
_in | Match any values separated by comma Eg: filter[name_in]=Bob,Alice |
To return vehicles which match one of multiple filters, or
operator has to be used. For example, to search for vehicles which vin
or order_number
start with some value filter should looke like this:
filter[vin_or_order_number_start]=123
engine_types
and owner_dealers_codes
are specific parameters due to the fact they are stored as array in the database so
simple string-based cont
predicates will not work. To filter based on this array content new predicate _includes
was added. So to filter for all "Petrol" powered vehicles request should look like this:
filter[engine_type_includes]=petrol
This will return both hybrid and non-hybrid Vehicles as long as they also include petrol in engine_type
array
Multiple engine types can be searched separated by comma:
filter[engine_type_includes]=petrol,bev
Will return petrol as well as bev engines
financing options
is a specific parameter based on scope and does not have any predicates. To use it chosen values separated by comma have to be provided:
filter[financing_options]=cash,lease,rent
status
filter is based on two attributes. It filters vehicles by status
attribute and also checks lock_id
which indicates that vehicle is soft-locked. In case it is soft-locked it is searched as it would be of reserved
status. Because of that status
filter is processed outside ransack and accepts _eq
and _in
predicates only.
To Search Vechiles with production year beetween 2015 and 2018:
filter[production_year_gteq]=2015&filter[production_year_lteq]=2018
To Search all Jaguars
filter[nameplate_brand_name_eq]=Jaguar
To Search all Vechiles with HSE in version
filter[version_i_cont]=HSE
filter required | object |
Accept | any Example: application/vnd.api+json |
X-Company-UUID | any Example: b71ef9aa-fda2-4cad-8951-7e15aebafd70 |
Authorization | any Example: Bearer STUB_TOKEN_STRING |
Content-Type | any Example: application/vnd.api+json |
{- "data": [
- {
- "id": "102",
- "type": "vehicle_operation_request",
- "attributes": {
- "request_type": "publication",
- "updated_at": "2024-11-20T08:09:46.080Z",
- "status": "rejected",
- "owner_name": "Marquardt-Kozey",
- "owner_id": 733,
- "requester_name": "Marquardt-Kozey",
- "requester_id": 733,
- "listing_title": "Linguine with Clams 65",
- "listing_id": 63,
- "transfer_to_name": null,
- "transfer_to_id": null,
- "vehicle_id": 336,
- "vehicle_model_display_name": "Ram Grebulons",
- "vehicle_owner_name": "Zemlak, O'Hara and Nader",
- "vehicle_cover_photo_thumb": null
}
}
], - "meta": {
- "pagination": {
- "scaffold_url": "/vehicle_operation_requests/publications?filter%5Bstatus_eq%5D=rejected&page=PAGE_NUM",
- "count": 1,
- "page": 1,
- "items": 1,
- "pages": 1,
- "last": 1,
- "from": 1,
- "to": 1,
- "prev": null,
- "next": null
}, - "company_account_type": "importer"
}
}
Simliast to Filtering the sorting mechanism utilises quite powerful Ransack gem engine
sort
attributeTo sort results one should use sort
GET parameter as a list of collumns that records should be sorted by.
By default sorting works in natura ascending order. To use the ascending order (usefull for prices) column name should
be predicated with minus (-
, U+002D HYPHEN-MINUS) character
To Sort Vechiles in ascending order by msrp_price
sort=msrp_price
To Sort Vechiles in descending order by msrp_price
sort=-msrp_price
To Sort Vechiles in ascending order by production year and then in descending order by msrp_price
sort=production_year,-msrp_price
sort required | string Example: sort=status_sort Comma separated list of columns to sort VehicleOperationRequest by |
Accept | any Example: application/vnd.api+json |
X-Company-UUID | any Example: 15d94b60-0b4e-4e48-aaf8-714e45186124 |
Authorization | any Example: Bearer STUB_TOKEN_STRING |
Content-Type | any Example: application/vnd.api+json |
{- "data": [
- {
- "id": "106",
- "type": "vehicle_operation_request",
- "attributes": {
- "request_type": "publication",
- "updated_at": "2024-11-20T08:09:46.250Z",
- "status": "pending",
- "owner_name": "Marquardt-Kozey",
- "owner_id": 740,
- "requester_name": "Marquardt-Kozey",
- "requester_id": 740,
- "listing_title": "Linguine with Clams 66",
- "listing_id": 64,
- "transfer_to_name": null,
- "transfer_to_id": null,
- "vehicle_id": 340,
- "vehicle_model_display_name": "Alpine Damogran Frond Crested Eagle",
- "vehicle_owner_name": "Okuneva, Prohaska and Farrell",
- "vehicle_cover_photo_thumb": null
}
}, - {
- "id": "105",
- "type": "vehicle_operation_request",
- "attributes": {
- "request_type": "publication",
- "updated_at": "2024-11-20T08:09:46.221Z",
- "status": "rejected",
- "owner_name": "Marquardt-Kozey",
- "owner_id": 740,
- "requester_name": "Marquardt-Kozey",
- "requester_id": 740,
- "listing_title": "Linguine with Clams 66",
- "listing_id": 64,
- "transfer_to_name": null,
- "transfer_to_id": null,
- "vehicle_id": 339,
- "vehicle_model_display_name": "Ram Grebulons",
- "vehicle_owner_name": "Zemlak, O'Hara and Nader",
- "vehicle_cover_photo_thumb": null
}
}, - {
- "id": "104",
- "type": "vehicle_operation_request",
- "attributes": {
- "request_type": "publication",
- "updated_at": "2024-11-20T08:09:46.195Z",
- "status": "approved",
- "owner_name": "Marquardt-Kozey",
- "owner_id": 740,
- "requester_name": "Marquardt-Kozey",
- "requester_id": 740,
- "listing_title": "Linguine with Clams 66",
- "listing_id": 64,
- "transfer_to_name": null,
- "transfer_to_id": null,
- "vehicle_id": 338,
- "vehicle_model_display_name": "Ferrari Boghog",
- "vehicle_owner_name": "Boehm, Pfannerstill and Stiedemann",
- "vehicle_cover_photo_thumb": null
}
}
], - "meta": {
- "pagination": {
- "scaffold_url": "/vehicle_operation_requests/publications?sort=status_sort&page=PAGE_NUM",
- "count": 3,
- "page": 1,
- "items": 3,
- "pages": 1,
- "last": 1,
- "from": 1,
- "to": 3,
- "prev": null,
- "next": null
}, - "company_account_type": "importer"
}
}
id | number Example: 107 |
Accept | any Example: application/vnd.api+json |
X-Company-UUID | any Example: 22a58fd4-82f4-4a45-b204-616f2ea99bde |
Authorization | any Example: Bearer STUB_TOKEN_STRING |
Content-Type | any Example: application/vnd.api+json |
{- "data": {
- "id": "107",
- "type": "vehicle_operation_request",
- "attributes": {
- "request_type": "stock_transfer",
- "updated_at": "2024-11-20T08:09:46.355Z",
- "status": "pending",
- "owner_name": "Ritchie-Kunde",
- "owner_id": 745,
- "requester_name": "Bailey, Ondricka and Donnelly",
- "requester_id": 750,
- "listing_title": "Barbecue Ribs 67",
- "listing_id": 65,
- "transfer_to_name": "Barton Inc",
- "transfer_to_id": 746,
- "vehicle_id": 341,
- "vehicle_model_display_name": "Ferrari Boghog",
- "vehicle_owner_name": "Boehm, Pfannerstill and Stiedemann",
- "vehicle_cover_photo_thumb": null
}
}
}
Accept | any Example: application/vnd.api+json |
X-Company-UUID | any Example: 8ad75bbe-7bdf-4ddf-85be-5ceca08ae701 |
Authorization | any Example: Bearer STUB_TOKEN_STRING |
Content-Type | any Example: application/vnd.api+json |
{- "data": [
- {
- "id": "111",
- "type": "vehicle_operation_request",
- "attributes": {
- "request_type": "publication",
- "updated_at": "2024-11-20T08:09:46.764Z",
- "status": "pending",
- "owner_name": "Marquardt-Kozey",
- "owner_id": 774,
- "requester_name": "Marquardt-Kozey",
- "requester_id": 774,
- "listing_title": "Linguine with Clams 71",
- "listing_id": 69,
- "transfer_to_name": null,
- "transfer_to_id": null,
- "vehicle_id": 345,
- "vehicle_model_display_name": "Ferrari Boghog",
- "vehicle_owner_name": "Boehm, Pfannerstill and Stiedemann",
- "vehicle_cover_photo_thumb": null
}
}, - {
- "id": "112",
- "type": "vehicle_operation_request",
- "attributes": {
- "request_type": "publication",
- "updated_at": "2024-11-20T08:09:46.790Z",
- "status": "rejected",
- "owner_name": "Marquardt-Kozey",
- "owner_id": 774,
- "requester_name": "Marquardt-Kozey",
- "requester_id": 774,
- "listing_title": "Linguine with Clams 71",
- "listing_id": 69,
- "transfer_to_name": null,
- "transfer_to_id": null,
- "vehicle_id": 346,
- "vehicle_model_display_name": "Ram Grebulons",
- "vehicle_owner_name": "Zemlak, O'Hara and Nader",
- "vehicle_cover_photo_thumb": null
}
}
], - "meta": {
- "pagination": {
- "scaffold_url": "/vehicle_operation_requests/publications?page=PAGE_NUM",
- "count": 2,
- "page": 1,
- "items": 2,
- "pages": 1,
- "last": 1,
- "from": 1,
- "to": 2,
- "prev": null,
- "next": null
}, - "company_account_type": "importer"
}
}
Accept | any Example: application/vnd.api+json |
X-Company-UUID | any Example: 5e941d20-a64e-416b-9566-27db5a395092 |
Authorization | any Example: Bearer STUB_TOKEN_STRING |
Content-Type | any Example: application/vnd.api+json |
{- "data": [ ],
- "meta": {
- "pagination": {
- "scaffold_url": "/vehicle_operation_requests/stock_transfer?page=PAGE_NUM",
- "count": 0,
- "page": 1,
- "items": 20,
- "pages": 1,
- "last": 1,
- "from": 0,
- "to": 0,
- "prev": null,
- "next": null
}
}
}
id | number Example: 123 |
Accept | any Example: application/vnd.api+json |
X-Company-UUID | any Example: a959452f-301b-4859-9977-3f6e92d1cf23 |
Authorization | any Example: Bearer STUB_TOKEN_STRING |
Content-Type | any Example: application/vnd.api+json |
{- "data": {
- "id": "125",
- "type": "vehicle_operation_request",
- "attributes": {
- "request_type": "publication",
- "updated_at": "2024-11-20T08:09:47.668Z",
- "status": "approved",
- "owner_name": "O'Conner, Parker and Lind",
- "owner_id": 826,
- "requester_name": "Murray, Rowe and Hermann",
- "requester_id": 828,
- "listing_title": "Tiramisù 82",
- "listing_id": 80,
- "transfer_to_name": null,
- "transfer_to_id": null,
- "vehicle_id": 359,
- "vehicle_model_display_name": "Mitsubishi Cow",
- "vehicle_owner_name": "Rosenbaum-Bashirian",
- "vehicle_cover_photo_thumb": null
}
}
}
id | number Example: 126 |
Accept | any Example: application/vnd.api+json |
X-Company-UUID | any Example: 1b845760-6467-4803-a230-2dc6af45503c |
Authorization | any Example: Bearer STUB_TOKEN_STRING |
Content-Type | any Example: application/vnd.api+json |
{- "data": {
- "id": "126",
- "type": "vehicle_operation_request",
- "attributes": {
- "request_type": "publication",
- "updated_at": "2024-11-20T08:09:47.772Z",
- "status": "rejected",
- "owner_name": "O'Conner, Parker and Lind",
- "owner_id": 831,
- "requester_name": "Murray, Rowe and Hermann",
- "requester_id": 833,
- "listing_title": "Tiramisù 83",
- "listing_id": 81,
- "transfer_to_name": null,
- "transfer_to_id": null,
- "vehicle_id": 360,
- "vehicle_model_display_name": "Mitsubishi Cow",
- "vehicle_owner_name": "Rosenbaum-Bashirian",
- "vehicle_cover_photo_thumb": null
}
}
}
id | number Example: 127 |
Accept | any Example: application/vnd.api+json |
X-Company-UUID | any Example: 7591f2d8-10fa-4ae6-9a43-9d2d57d4376d |
Authorization | any Example: Bearer STUB_TOKEN_STRING |
Content-Type | any Example: application/vnd.api+json |
{- "data": [
- {
- "id": "3",
- "type": "vehicle_operation_log_entry",
- "attributes": {
- "log_entry_type": "pending",
- "data": {
- "model_name": "Kutch Inc",
- "status_name": "delivery",
- "publication_list_name": "Tacos"
}, - "created_at": "2024-11-20T08:09:47.879Z"
}
}, - {
- "id": "4",
- "type": "vehicle_operation_log_entry",
- "attributes": {
- "log_entry_type": "approved",
- "data": {
- "model_name": "Pagac-Herzog",
- "status_name": "stock",
- "publication_list_name": "Tacos"
}, - "created_at": "2024-11-20T08:09:47.881Z"
}
}, - {
- "id": "5",
- "type": "vehicle_operation_log_entry",
- "attributes": {
- "log_entry_type": "pending",
- "data": {
- "model_name": "Tromp-Dietrich",
- "status_name": "demo",
- "publication_list_name": "Bruschette with Tomato"
}, - "created_at": "2024-11-20T08:09:47.882Z"
}
}
]
}
id | number Example: 130 |
Accept | any Example: application/vnd.api+json |
X-Company-UUID | any Example: f839c25e-c77d-43d7-b08e-c25e1f988ea8 |
Authorization | any Example: Bearer STUB_TOKEN_STRING |
Content-Type | any Example: application/vnd.api+json |
{- "data": {
- "id": "364",
- "type": "active_vehicle",
- "attributes": {
- "version": "Crisis On Infinite Earths",
- "drivetrain": "The Sinestro Corps War",
- "production_year": 2015,
- "short_description": "Blanditiis quia laudantium numquam voluptate et eos earum quaerat quae.",
- "msrp_price": "25613.0",
- "sale_price": null,
- "monthly_price": null,
- "long_description": "Id laborum perferendis eaque illo repellendus autem quo aut iste enim explicabo doloremque voluptas alias suscipit culpa hic aut non.",
- "state": "approved",
- "delivery_date": "2024-11-26",
- "transmission": "auto",
- "vin": null,
- "mileage": 683210,
- "engine_capacity": null,
- "battery_capacity": null,
- "engine_type": [
- "mhev"
], - "power": 183,
- "video_url": null,
- "created_at": "2024-11-20T08:09:48.106Z",
- "updated_at": "2024-11-20T08:09:48.116Z",
- "power_unit": "bhp",
- "currency": "GBP",
- "mileage_unit": "km",
- "engine_capacity_unit": "cc",
- "engine_capacity_normalized": null,
- "features_standard": [ ],
- "features_optional": [ ],
- "nameplate_name": "Hooloovoo",
- "nameplate_brand_name": "Acura",
- "owner_locale": "ro_RO",
- "owner_name": "Ritchie-Kunde",
- "owner_city": "Hermistonshire",
- "owner_opening_hours": "Mon-Fri: 9:00 - 19:00\nSat: 11:00 - 18:00\nSun: Closed\n",
- "owner_contact_details": "31019 Velvet Rest\nLake Irafurt",
- "interior_color": "Ebony",
- "created_by": null,
- "price_hidden": false,
- "prices_type": null,
- "external_id": "53de63",
- "footnote": "Deserunt est aut iure et enim rem nobis natus consectetur.",
- "config_url": null,
- "subscribe_price": null,
- "type": "ActiveVehicle",
- "order_number": null,
- "model_display_name": "Acura Hooloovoo",
- "price_metadata": { },
- "contains_drive_away_prices": false,
- "disclaimers": { },
- "price_breakdown": false,
- "base_price": null,
- "total_price": null,
- "status": "demo",
- "color_name": "Chocolate Concrete",
- "color_canonical": "gray",
- "cover_photo": "/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6MTY2LCJwdXIiOiJibG9iX2lkIn19--68b9d3a2b72903d1525ba07b766b9fe9fbe79710/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGciLCJyZXNpemVfYW5kX3BhZCI6WzE2MDAsMTIwMCx7ImJhY2tncm91bmQiOlsyMzgsMjM4LDIzOCwyMzhdLCJhbHBoYSI6dHJ1ZX1dLCJzYXZlciI6eyJxdWFsaXR5Ijo4NX19LCJwdXIiOiJ2YXJpYXRpb24ifX0=--7b5f4ca4fdb73844cccc54630e015a046b05719f/1.jpg",
- "cover_photo_thumb": "/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6MTY2LCJwdXIiOiJibG9iX2lkIn19--68b9d3a2b72903d1525ba07b766b9fe9fbe79710/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGciLCJyZXNpemVfYW5kX3BhZCI6WzQwMCwzMDAseyJiYWNrZ3JvdW5kIjpbMjM4LDIzOCwyMzgsMjM4XSwiYWxwaGEiOnRydWV9XSwic2F2ZXIiOnsicXVhbGl0eSI6ODV9fSwicHVyIjoidmFyaWF0aW9uIn19--55b64b8565c87129a4465e53843074c92d6a6692/1.jpg",
- "cover_photo_small": "/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6MTY2LCJwdXIiOiJibG9iX2lkIn19--68b9d3a2b72903d1525ba07b766b9fe9fbe79710/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGciLCJyZXNpemVfYW5kX3BhZCI6WzE2NSw5Mix7ImJhY2tncm91bmQiOlsyMzgsMjM4LDIzOCwyMzhdLCJhbHBoYSI6dHJ1ZX1dLCJzYXZlciI6eyJxdWFsaXR5Ijo4NX19LCJwdXIiOiJ2YXJpYXRpb24ifX0=--66380c5b6b4af7f9e745183631dad0ee428f4cb6/1.jpg",
- "cover_photo_medium": "/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6MTY2LCJwdXIiOiJibG9iX2lkIn19--68b9d3a2b72903d1525ba07b766b9fe9fbe79710/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGciLCJyZXNpemVfYW5kX3BhZCI6WzQyMCwyMzYseyJiYWNrZ3JvdW5kIjpbMjM4LDIzOCwyMzgsMjM4XSwiYWxwaGEiOnRydWV9XSwic2F2ZXIiOnsicXVhbGl0eSI6ODV9fSwicHVyIjoidmFyaWF0aW9uIn19--4dc07e951609e3efb6b48f3567616f872348d59f/1.jpg",
- "cover_photo_big": "/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6MTY2LCJwdXIiOiJibG9iX2lkIn19--68b9d3a2b72903d1525ba07b766b9fe9fbe79710/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGciLCJyZXNpemVfYW5kX3BhZCI6Wzc1Miw0MjMseyJiYWNrZ3JvdW5kIjpbMjM4LDIzOCwyMzgsMjM4XSwiYWxwaGEiOnRydWV9XSwic2F2ZXIiOnsicXVhbGl0eSI6ODV9fSwicHVyIjoidmFyaWF0aW9uIn19--87d5dae95cd9117bcea522c1fa34781e19f732de/1.jpg",
- "cover_photo_full": "/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6MTY2LCJwdXIiOiJibG9iX2lkIn19--68b9d3a2b72903d1525ba07b766b9fe9fbe79710/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGciLCJyZXNpemVfdG9fbGltaXQiOlsxOTIwLDEwODBdLCJzYXZlciI6eyJxdWFsaXR5Ijo4NX19LCJwdXIiOiJ2YXJpYXRpb24ifX0=--cfd1c6e29d0d407efde83e6ff26f8acce153d0b4/1.jpg",
- "cover_photo_quarter_hd": "/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6MTY2LCJwdXIiOiJibG9iX2lkIn19--68b9d3a2b72903d1525ba07b766b9fe9fbe79710/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGciLCJyZXNpemVfYW5kX3BhZCI6Wzk2MCw1NDAseyJiYWNrZ3JvdW5kIjpbMjM4LDIzOCwyMzgsMjM4XSwiYWxwaGEiOnRydWV9XSwic2F2ZXIiOnsicXVhbGl0eSI6ODV9fSwicHVyIjoidmFyaWF0aW9uIn19--d39339055de4cc3639252e2adcd4214fec0787dc/1.jpg",
- "cover_photo_hd": "/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6MTY2LCJwdXIiOiJibG9iX2lkIn19--68b9d3a2b72903d1525ba07b766b9fe9fbe79710/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGciLCJyZXNpemVfYW5kX3BhZCI6WzEyODAsNzIwLHsiYmFja2dyb3VuZCI6WzIzOCwyMzgsMjM4LDIzOF0sImFscGhhIjp0cnVlfV0sInNhdmVyIjp7InF1YWxpdHkiOjg1fX0sInB1ciI6InZhcmlhdGlvbiJ9fQ==--42f4d8f39eed9164bf5b7953b39766c46b314eb9/1.jpg",
- "attachment_url": null
}, - "relationships": {
- "nameplate": {
- "data": {
- "id": "372",
- "type": "nameplate"
}
}, - "brand": {
- "data": {
- "id": "711",
- "type": "brand"
}
}, - "color": {
- "data": {
- "id": "379",
- "type": "color"
}
}, - "owner": {
- "data": {
- "id": "852",
- "type": "company"
}
}, - "listings": {
- "data": [ ]
}, - "photos": {
- "data": [
- {
- "id": "159",
- "type": "photo"
}
]
}, - "pending_operation_requests": {
- "data": [
- {
- "id": "130",
- "type": "vehicle_operation_request"
}
]
}
}, - "links": {
- "self": "/vehicles/364",
- "all": "/vehicles"
}
}, - "included": [
- {
- "id": "159",
- "type": "photo",
- "attributes": {
- "sequence": 0,
- "file": {
- "name": "file",
- "record": {
- "id": 159,
- "sequence": 0,
- "vehicle_id": 364,
- "created_at": "2024-11-20T08:09:48.111Z",
- "updated_at": "2024-11-20T08:09:48.114Z"
}
}, - "thumb_path": "/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6MTY2LCJwdXIiOiJibG9iX2lkIn19--68b9d3a2b72903d1525ba07b766b9fe9fbe79710/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGciLCJyZXNpemVfYW5kX3BhZCI6WzQwMCwzMDAseyJiYWNrZ3JvdW5kIjpbMjM4LDIzOCwyMzgsMjM4XSwiYWxwaGEiOnRydWV9XSwic2F2ZXIiOnsicXVhbGl0eSI6ODV9fSwicHVyIjoidmFyaWF0aW9uIn19--55b64b8565c87129a4465e53843074c92d6a6692/1.jpg",
- "image_path": "/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6MTY2LCJwdXIiOiJibG9iX2lkIn19--68b9d3a2b72903d1525ba07b766b9fe9fbe79710/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGciLCJyZXNpemVfYW5kX3BhZCI6WzE2MDAsMTIwMCx7ImJhY2tncm91bmQiOlsyMzgsMjM4LDIzOCwyMzhdLCJhbHBoYSI6dHJ1ZX1dLCJzYXZlciI6eyJxdWFsaXR5Ijo4NX19LCJwdXIiOiJ2YXJpYXRpb24ifX0=--7b5f4ca4fdb73844cccc54630e015a046b05719f/1.jpg",
- "small_path": "/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6MTY2LCJwdXIiOiJibG9iX2lkIn19--68b9d3a2b72903d1525ba07b766b9fe9fbe79710/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGciLCJyZXNpemVfYW5kX3BhZCI6WzE2NSw5Mix7ImJhY2tncm91bmQiOlsyMzgsMjM4LDIzOCwyMzhdLCJhbHBoYSI6dHJ1ZX1dLCJzYXZlciI6eyJxdWFsaXR5Ijo4NX19LCJwdXIiOiJ2YXJpYXRpb24ifX0=--66380c5b6b4af7f9e745183631dad0ee428f4cb6/1.jpg",
- "medium_path": "/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6MTY2LCJwdXIiOiJibG9iX2lkIn19--68b9d3a2b72903d1525ba07b766b9fe9fbe79710/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGciLCJyZXNpemVfYW5kX3BhZCI6WzQyMCwyMzYseyJiYWNrZ3JvdW5kIjpbMjM4LDIzOCwyMzgsMjM4XSwiYWxwaGEiOnRydWV9XSwic2F2ZXIiOnsicXVhbGl0eSI6ODV9fSwicHVyIjoidmFyaWF0aW9uIn19--4dc07e951609e3efb6b48f3567616f872348d59f/1.jpg",
- "big_path": "/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6MTY2LCJwdXIiOiJibG9iX2lkIn19--68b9d3a2b72903d1525ba07b766b9fe9fbe79710/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGciLCJyZXNpemVfYW5kX3BhZCI6Wzc1Miw0MjMseyJiYWNrZ3JvdW5kIjpbMjM4LDIzOCwyMzgsMjM4XSwiYWxwaGEiOnRydWV9XSwic2F2ZXIiOnsicXVhbGl0eSI6ODV9fSwicHVyIjoidmFyaWF0aW9uIn19--87d5dae95cd9117bcea522c1fa34781e19f732de/1.jpg",
- "full_path": "/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6MTY2LCJwdXIiOiJibG9iX2lkIn19--68b9d3a2b72903d1525ba07b766b9fe9fbe79710/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGciLCJyZXNpemVfdG9fbGltaXQiOlsxOTIwLDEwODBdLCJzYXZlciI6eyJxdWFsaXR5Ijo4NX19LCJwdXIiOiJ2YXJpYXRpb24ifX0=--cfd1c6e29d0d407efde83e6ff26f8acce153d0b4/1.jpg",
- "quarter_hd_path": "/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6MTY2LCJwdXIiOiJibG9iX2lkIn19--68b9d3a2b72903d1525ba07b766b9fe9fbe79710/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGciLCJyZXNpemVfYW5kX3BhZCI6Wzk2MCw1NDAseyJiYWNrZ3JvdW5kIjpbMjM4LDIzOCwyMzgsMjM4XSwiYWxwaGEiOnRydWV9XSwic2F2ZXIiOnsicXVhbGl0eSI6ODV9fSwicHVyIjoidmFyaWF0aW9uIn19--d39339055de4cc3639252e2adcd4214fec0787dc/1.jpg",
- "hd_path": "/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6MTY2LCJwdXIiOiJibG9iX2lkIn19--68b9d3a2b72903d1525ba07b766b9fe9fbe79710/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGciLCJyZXNpemVfYW5kX3BhZCI6WzEyODAsNzIwLHsiYmFja2dyb3VuZCI6WzIzOCwyMzgsMjM4LDIzOF0sImFscGhhIjp0cnVlfV0sInNhdmVyIjp7InF1YWxpdHkiOjg1fX0sInB1ciI6InZhcmlhdGlvbiJ9fQ==--42f4d8f39eed9164bf5b7953b39766c46b314eb9/1.jpg"
}, - "relationships": {
- "vehicle": {
- "data": {
- "id": "364",
- "type": "vehicle"
}
}
}, - "links": {
- "self": "/photos/159",
- "all": "/photos",
- "thumb": "/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6MTY2LCJwdXIiOiJibG9iX2lkIn19--68b9d3a2b72903d1525ba07b766b9fe9fbe79710/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGciLCJyZXNpemVfYW5kX3BhZCI6WzQwMCwzMDAseyJiYWNrZ3JvdW5kIjpbMjM4LDIzOCwyMzgsMjM4XSwiYWxwaGEiOnRydWV9XSwic2F2ZXIiOnsicXVhbGl0eSI6ODV9fSwicHVyIjoidmFyaWF0aW9uIn19--55b64b8565c87129a4465e53843074c92d6a6692/1.jpg",
- "image": "/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6MTY2LCJwdXIiOiJibG9iX2lkIn19--68b9d3a2b72903d1525ba07b766b9fe9fbe79710/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGciLCJyZXNpemVfYW5kX3BhZCI6WzE2MDAsMTIwMCx7ImJhY2tncm91bmQiOlsyMzgsMjM4LDIzOCwyMzhdLCJhbHBoYSI6dHJ1ZX1dLCJzYXZlciI6eyJxdWFsaXR5Ijo4NX19LCJwdXIiOiJ2YXJpYXRpb24ifX0=--7b5f4ca4fdb73844cccc54630e015a046b05719f/1.jpg",
- "small": "/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6MTY2LCJwdXIiOiJibG9iX2lkIn19--68b9d3a2b72903d1525ba07b766b9fe9fbe79710/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGciLCJyZXNpemVfYW5kX3BhZCI6WzE2NSw5Mix7ImJhY2tncm91bmQiOlsyMzgsMjM4LDIzOCwyMzhdLCJhbHBoYSI6dHJ1ZX1dLCJzYXZlciI6eyJxdWFsaXR5Ijo4NX19LCJwdXIiOiJ2YXJpYXRpb24ifX0=--66380c5b6b4af7f9e745183631dad0ee428f4cb6/1.jpg",
- "medium": "/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6MTY2LCJwdXIiOiJibG9iX2lkIn19--68b9d3a2b72903d1525ba07b766b9fe9fbe79710/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGciLCJyZXNpemVfYW5kX3BhZCI6WzQyMCwyMzYseyJiYWNrZ3JvdW5kIjpbMjM4LDIzOCwyMzgsMjM4XSwiYWxwaGEiOnRydWV9XSwic2F2ZXIiOnsicXVhbGl0eSI6ODV9fSwicHVyIjoidmFyaWF0aW9uIn19--4dc07e951609e3efb6b48f3567616f872348d59f/1.jpg",
- "big": "/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6MTY2LCJwdXIiOiJibG9iX2lkIn19--68b9d3a2b72903d1525ba07b766b9fe9fbe79710/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGciLCJyZXNpemVfYW5kX3BhZCI6Wzc1Miw0MjMseyJiYWNrZ3JvdW5kIjpbMjM4LDIzOCwyMzgsMjM4XSwiYWxwaGEiOnRydWV9XSwic2F2ZXIiOnsicXVhbGl0eSI6ODV9fSwicHVyIjoidmFyaWF0aW9uIn19--87d5dae95cd9117bcea522c1fa34781e19f732de/1.jpg",
- "full": "/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6MTY2LCJwdXIiOiJibG9iX2lkIn19--68b9d3a2b72903d1525ba07b766b9fe9fbe79710/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGciLCJyZXNpemVfdG9fbGltaXQiOlsxOTIwLDEwODBdLCJzYXZlciI6eyJxdWFsaXR5Ijo4NX19LCJwdXIiOiJ2YXJpYXRpb24ifX0=--cfd1c6e29d0d407efde83e6ff26f8acce153d0b4/1.jpg",
- "quarter_hd": "/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6MTY2LCJwdXIiOiJibG9iX2lkIn19--68b9d3a2b72903d1525ba07b766b9fe9fbe79710/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGciLCJyZXNpemVfYW5kX3BhZCI6Wzk2MCw1NDAseyJiYWNrZ3JvdW5kIjpbMjM4LDIzOCwyMzgsMjM4XSwiYWxwaGEiOnRydWV9XSwic2F2ZXIiOnsicXVhbGl0eSI6ODV9fSwicHVyIjoidmFyaWF0aW9uIn19--d39339055de4cc3639252e2adcd4214fec0787dc/1.jpg",
- "hd": "/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6MTY2LCJwdXIiOiJibG9iX2lkIn19--68b9d3a2b72903d1525ba07b766b9fe9fbe79710/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGciLCJyZXNpemVfYW5kX3BhZCI6WzEyODAsNzIwLHsiYmFja2dyb3VuZCI6WzIzOCwyMzgsMjM4LDIzOF0sImFscGhhIjp0cnVlfV0sInNhdmVyIjp7InF1YWxpdHkiOjg1fX0sInB1ciI6InZhcmlhdGlvbiJ9fQ==--42f4d8f39eed9164bf5b7953b39766c46b314eb9/1.jpg"
}
}, - {
- "id": "852",
- "type": "company",
- "attributes": {
- "uuid": "f839c25e-c77d-43d7-b08e-c25e1f988ea8",
- "name": "Ritchie-Kunde",
- "city": "Hermistonshire",
- "address": "99667 Major Corners, Antoniomouth, LA 39348-8794",
- "phone": "+994 987.432.9120",
- "email": "harriett@lesch.io",
- "locale": "ro_RO",
- "currency": "GBP",
- "zipcode": null,
- "timezone": "UTC",
- "mileage_unit": "km",
- "power_unit": "bhp",
- "engine_capacity_unit": "cc",
- "opening_hours": "Mon-Fri: 9:00 - 19:00\nSat: 11:00 - 18:00\nSun: Closed\n",
- "contact_details": "31019 Velvet Rest\nLake Irafurt",
- "skip_company_name_in_location": false,
- "config_locale": null,
- "account_type": null,
- "state": null,
- "dealer_codes": [ ],
- "operating_states": [
- "NSW",
- "VIC"
], - "feature_flag_policies": [ ]
}, - "relationships": {
- "parent": {
- "data": null
}, - "children": {
- "data": [ ]
}, - "descendants": {
- "data": [ ]
}, - "ancestors": {
- "data": [ ]
}, - "colors": {
- "data": [ ]
}
}, - "links": {
- "all": "/companies"
}, - "meta": {
- "power_units": [
- "bhp",
- "kw"
], - "mileage_units": [
- "km",
- "mi"
], - "engine_capacity_units": [
- "cc",
- "l"
]
}
}
]
}
Returns ids and count of all vehicles. (works with filters and sorting)
Accept | any Example: application/vnd.api+json |
X-Company-UUID | any Example: 9b1cae94-9ad0-400a-9bb3-6ee936e067ad |
Authorization | any Example: Bearer STUB_TOKEN_STRING |
Content-Type | any Example: application/vnd.api+json |
{- "ids": [
- 365
], - "count": 1
}
ids | string Example: 366,367 |
Accept | any Example: application/vnd.api+json |
X-Company-UUID | any Example: 03b743b5-fefe-4ebe-9c0f-a625fbb8a872 |
Authorization | any Example: Bearer STUB_TOKEN_STRING |
Content-Type | any Example: application/vnd.api+json |
{- "data": [
- {
- "id": "366",
- "type": "vehicle_batch",
- "attributes": {
- "version": "Swamp Thing: The Anatomy Lesson",
- "drivetrain": "Grant Morrison's Animal Man",
- "production_year": 2015,
- "short_description": "Nemo commodi debitis quam sunt repellat similique quia iure quia.",
- "msrp_price": "24824.0",
- "sale_price": null,
- "monthly_price": null,
- "long_description": "Maxime temporibus sed consectetur aut id doloremque sint a vitae perferendis quidem illo cumque vel et assumenda cupiditate porro eaque.",
- "state": "new",
- "status": "on_demand",
- "delivery_date": "2024-11-26",
- "transmission": "auto",
- "vin": null,
- "mileage": 367092,
- "engine_capacity": null,
- "battery_capacity": null,
- "engine_type": [
- "mhev"
], - "power": 436,
- "video_url": null,
- "created_at": "2024-11-20T08:09:48.290Z",
- "updated_at": "2024-11-20T08:09:48.290Z",
- "power_unit": "bhp",
- "currency": "GBP",
- "mileage_unit": "km",
- "engine_capacity_unit": "cc",
- "engine_capacity_normalized": null,
- "nameplate_name": "Mattress",
- "nameplate_brand_name": "MG",
- "owner_locale": "es_MX",
- "owner_name": "Ritchie-Kunde",
- "owner_city": "Hermistonshire",
- "owner_opening_hours": "Mon-Fri: 9:00 - 19:00\nSat: 11:00 - 18:00\nSun: Closed\n",
- "owner_contact_details": "31019 Velvet Rest\nLake Irafurt",
- "interior_color": "Ebony",
- "created_by": null,
- "price_hidden": false,
- "prices_type": null,
- "external_id": "e87775",
- "footnote": "Et aspernatur libero quisquam et fuga quas est et minima.",
- "config_url": null,
- "subscribe_price": null,
- "type": "ActiveVehicle",
- "color_name": "Cerulean Granite",
- "color_canonical": "black"
}, - "relationships": {
- "nameplate": {
- "data": {
- "id": "374",
- "type": "nameplate"
}
}, - "brand": {
- "data": {
- "id": "714",
- "type": "brand"
}
}, - "color": {
- "data": {
- "id": "381",
- "type": "color"
}
}, - "owner": {
- "data": {
- "id": "860",
- "type": "company"
}
}
}
}, - {
- "id": "367",
- "type": "vehicle_batch",
- "attributes": {
- "version": "Teen Titans: The Judas Contract",
- "drivetrain": "The Coyote Gospel",
- "production_year": 2015,
- "short_description": "Voluptate similique iure consequatur placeat nisi et quos laudantium libero.",
- "msrp_price": "39357.0",
- "sale_price": null,
- "monthly_price": null,
- "long_description": "Et iste voluptates fuga tempore dolore ut suscipit facilis nihil culpa quia vitae eum quo deserunt in architecto ratione accusantium.",
- "state": "new",
- "status": "available_soon",
- "delivery_date": "2024-12-08",
- "transmission": "manual",
- "vin": null,
- "mileage": 76874,
- "engine_capacity": null,
- "battery_capacity": null,
- "engine_type": [
- "diesel"
], - "power": 286,
- "video_url": null,
- "created_at": "2024-11-20T08:09:48.301Z",
- "updated_at": "2024-11-20T08:09:48.301Z",
- "power_unit": "bhp",
- "currency": "GBP",
- "mileage_unit": "km",
- "engine_capacity_unit": "cc",
- "engine_capacity_normalized": null,
- "nameplate_name": "Mattress",
- "nameplate_brand_name": "MG",
- "owner_locale": "es_MX",
- "owner_name": "Ritchie-Kunde",
- "owner_city": "Hermistonshire",
- "owner_opening_hours": "Mon-Fri: 9:00 - 19:00\nSat: 11:00 - 18:00\nSun: Closed\n",
- "owner_contact_details": "31019 Velvet Rest\nLake Irafurt",
- "interior_color": "Ebony",
- "created_by": null,
- "price_hidden": false,
- "prices_type": null,
- "external_id": "8a4848",
- "footnote": "Dolorem aut animi veniam similique laborum modi quis deleniti dicta.",
- "config_url": null,
- "subscribe_price": null,
- "type": "ActiveVehicle",
- "color_name": "Cerulean Granite",
- "color_canonical": "black"
}, - "relationships": {
- "nameplate": {
- "data": {
- "id": "374",
- "type": "nameplate"
}
}, - "brand": {
- "data": {
- "id": "714",
- "type": "brand"
}
}, - "color": {
- "data": {
- "id": "381",
- "type": "color"
}
}, - "owner": {
- "data": {
- "id": "860",
- "type": "company"
}
}
}
}
]
}
ids | string Example: 378,379 |
Accept | any Example: application/vnd.api+json |
X-Company-UUID | any Example: 9734f1e4-3c98-44be-92b9-b0f0a3404a9d |
Authorization | any Example: Bearer STUB_TOKEN_STRING |
Content-Type | any Example: application/vnd.api+json |
{- "data": [ ]
}
Accept | any Example: application/vnd.api+json |
X-Company-UUID | any Example: 09d9865e-c1d1-455d-bc54-eda82c599668 |
Authorization | any Example: Bearer STUB_TOKEN_STRING |
Content-Type | any Example: application/vnd.api+json |
{- "data": [
- {
- "id": 370,
- "attributes": {
- "version": "new version"
}
}, - {
- "id": 371,
- "attributes": {
- "drivetrain": "new-data"
}
}
]
}
{- "data": [
- {
- "id": "370",
- "type": "vehicle_batch",
- "attributes": {
- "version": "new version",
- "drivetrain": "Grant Morrison's Animal Man",
- "production_year": 2015,
- "short_description": "Nemo commodi debitis quam sunt repellat similique quia iure quia.",
- "msrp_price": "29886.0",
- "sale_price": null,
- "monthly_price": null,
- "long_description": "Maxime temporibus sed consectetur aut id doloremque sint a vitae perferendis quidem illo cumque vel et assumenda cupiditate porro eaque.",
- "state": "approved",
- "status": "stock",
- "delivery_date": "2024-12-14",
- "transmission": "manual",
- "vin": null,
- "mileage": 66056,
- "engine_capacity": null,
- "battery_capacity": null,
- "engine_type": [
- "bev"
], - "power": 388,
- "video_url": null,
- "created_at": "2024-11-20T08:09:48.377Z",
- "updated_at": "2024-11-20T08:09:48.404Z",
- "power_unit": "bhp",
- "currency": "GBP",
- "mileage_unit": "km",
- "engine_capacity_unit": "cc",
- "engine_capacity_normalized": null,
- "nameplate_name": "Mattress",
- "nameplate_brand_name": "MG",
- "owner_locale": "en_IE",
- "owner_name": "Ritchie-Kunde",
- "owner_city": "Hermistonshire",
- "owner_opening_hours": "Mon-Fri: 9:00 - 19:00\nSat: 11:00 - 18:00\nSun: Closed\n",
- "owner_contact_details": "31019 Velvet Rest\nLake Irafurt",
- "interior_color": "Ebony",
- "created_by": null,
- "price_hidden": false,
- "prices_type": null,
- "external_id": "6005b6",
- "footnote": "Et aspernatur libero quisquam et fuga quas est et minima.",
- "config_url": null,
- "subscribe_price": null,
- "type": "ActiveVehicle",
- "color_name": "Cerulean Granite",
- "color_canonical": "gray"
}, - "relationships": {
- "nameplate": {
- "data": {
- "id": "376",
- "type": "nameplate"
}
}, - "brand": {
- "data": {
- "id": "716",
- "type": "brand"
}
}, - "color": {
- "data": {
- "id": "383",
- "type": "color"
}
}, - "owner": {
- "data": {
- "id": "862",
- "type": "company"
}
}
}
}, - {
- "id": "371",
- "type": "vehicle_batch",
- "attributes": {
- "version": "Teen Titans: The Judas Contract",
- "drivetrain": "new-data",
- "production_year": 2015,
- "short_description": "Voluptate similique iure consequatur placeat nisi et quos laudantium libero.",
- "msrp_price": "38177.0",
- "sale_price": null,
- "monthly_price": null,
- "long_description": "Et iste voluptates fuga tempore dolore ut suscipit facilis nihil culpa quia vitae eum quo deserunt in architecto ratione accusantium.",
- "state": "approved",
- "status": "sold",
- "delivery_date": "2024-12-03",
- "transmission": "auto",
- "vin": null,
- "mileage": 212182,
- "engine_capacity": null,
- "battery_capacity": null,
- "engine_type": [
- "hev"
], - "power": 378,
- "video_url": null,
- "created_at": "2024-11-20T08:09:48.388Z",
- "updated_at": "2024-11-20T08:09:48.415Z",
- "power_unit": "bhp",
- "currency": "GBP",
- "mileage_unit": "km",
- "engine_capacity_unit": "cc",
- "engine_capacity_normalized": null,
- "nameplate_name": "Mattress",
- "nameplate_brand_name": "MG",
- "owner_locale": "en_IE",
- "owner_name": "Ritchie-Kunde",
- "owner_city": "Hermistonshire",
- "owner_opening_hours": "Mon-Fri: 9:00 - 19:00\nSat: 11:00 - 18:00\nSun: Closed\n",
- "owner_contact_details": "31019 Velvet Rest\nLake Irafurt",
- "interior_color": "Ebony",
- "created_by": null,
- "price_hidden": false,
- "prices_type": null,
- "external_id": "c6c8db",
- "footnote": "Dolorem aut animi veniam similique laborum modi quis deleniti dicta.",
- "config_url": null,
- "subscribe_price": null,
- "type": "ActiveVehicle",
- "color_name": "Cerulean Granite",
- "color_canonical": "gray"
}, - "relationships": {
- "nameplate": {
- "data": {
- "id": "376",
- "type": "nameplate"
}
}, - "brand": {
- "data": {
- "id": "716",
- "type": "brand"
}
}, - "color": {
- "data": {
- "id": "383",
- "type": "color"
}
}, - "owner": {
- "data": {
- "id": "862",
- "type": "company"
}
}
}
}
]
}
All actions performed on Vehicle
objects need to happen in context of Company
object.
The Company is determined based on X-Company-UUID
header value. This value should contain uuid
attribute of
Company
obejct.
If header is not present API will raise 400 - Bad Request
response with information about missing header
If header is present but no Company with provided uuid
values is present in the database the 404 - Not Found
response is given.
Accept | any Example: application/vnd.api+json |
Authorization | any Example: Bearer STUB_TOKEN_STRING |
Content-Type | any Example: application/vnd.api+json |
X-Company-UUID | any Example: bad-uuid-value |
{- "errors": [
- {
- "status": 400,
- "source": null,
- "title": "Bad Request",
- "detail": "X-Company-UUID header is missing"
}
]
}
Vehicle Standard and optional feature lists are stored in separate attributes (features_standard
and features_optional
) as validated JSON array.
Validation happens based on JSON Schema defined like this:
{
"type": "array",
"items": {
"type": "object",
"required": [
"label"
],
"properties": {
"code": {
"type": "string"
},
"label": {
"type": "string",
"minLength": 1
},
"category": {
"type": "string",
"enum": [
"exterior",
"interior",
"lights",
"safety",
"wheels",
"seats",
"performance",
"infotainment",
"convenience"
]
}
},
"additionalProperties": false
}
}
To put it more clearly each feature shoudl be simple object with string properties.
Only one property is required (label
). Properties code
and category
are optional.
label
needs to contain at least 1 character, meaning it cannot be emoty string!
category
values are expected to come from closed list of values:
"exterior", "interior", "lights", "safety", "wheels", "seats", "performance", "infotainment", "convenience"
[
{
"code": "XXX123",
"label": "Heated Windshield",
"category": "convenience"
},
{
"label": "22' Bespoke Wheels",
"category": "wheels"
},
{
"code": "YYYZZZ",
"label": "Custom Paint"
},
]
Each JSON Schema validation error will be returned as a separate validation error with human readable description message.
Validation Example can be seen bellow in test cases.
NOTE: Those messages should not be presented to the end user. Their intent is to be used for debuging purposes only!
id | number Example: 382 |
Accept | any Example: application/vnd.api+json |
X-Company-UUID | any Example: 02e55e24-f7c8-4bf6-b7e4-46a5fec5be9f |
Authorization | any Example: Bearer STUB_TOKEN_STRING |
Content-Type | any Example: application/vnd.api+json |
{- "data": {
- "attributes": {
- "features_optional": [
- {
- "label": "Feature Label",
- "category": "performance"
}
]
}, - "relationships": {
- "owner": {
- "data": {
- "id": 868
}
}
}
}
}
{- "data": {
- "id": "382",
- "type": "vehicle",
- "attributes": {
- "version": "Multiversity",
- "drivetrain": "Detective Comics",
- "production_year": 2018,
- "short_description": "Eius amet ut natus molestiae aliquid dignissimos soluta omnis esse.",
- "msrp_price": "28386.0",
- "sale_price": null,
- "monthly_price": null,
- "long_description": "Molestiae ex nihil earum amet natus eos excepturi labore consectetur veritatis sit veniam corrupti qui vel facilis est et maiores.",
- "state": "approved",
- "delivery_date": "2024-12-01",
- "transmission": "auto",
- "vin": null,
- "mileage": 557425,
- "engine_capacity": null,
- "battery_capacity": null,
- "engine_type": [
- "petrol"
], - "power": 432,
- "video_url": null,
- "created_at": "2024-11-20T08:09:48.720Z",
- "updated_at": "2024-11-20T08:09:48.748Z",
- "power_unit": "bhp",
- "currency": "FJD",
- "mileage_unit": "km",
- "engine_capacity_unit": "cc",
- "engine_capacity_normalized": null,
- "features_standard": [ ],
- "features_optional": [
- {
- "label": "Feature Label",
- "category": "performance"
}
], - "nameplate_name": "Human",
- "nameplate_brand_name": "Mitsubishi",
- "owner_locale": "pl_PL",
- "owner_name": "Cummings-Wiza",
- "owner_city": "New Cliff",
- "owner_opening_hours": "Mon-Fri: 9:00 - 19:00\nSat: 11:00 - 18:00\nSun: Closed\n",
- "owner_contact_details": "56510 Nedra Roads\nMileston",
- "interior_color": "Ebony",
- "created_by": null,
- "price_hidden": false,
- "prices_type": null,
- "external_id": "4064a2",
- "footnote": "Quae expedita possimus laboriosam quis sint aspernatur consectetur enim error.",
- "config_url": null,
- "subscribe_price": null,
- "type": "ActiveVehicle",
- "order_number": null,
- "model_display_name": "Mitsubishi Human",
- "price_metadata": { },
- "contains_drive_away_prices": false,
- "disclaimers": { },
- "price_breakdown": false,
- "base_price": null,
- "total_price": "0.0",
- "status": "reserved",
- "color_name": "Chocolate Iron",
- "color_canonical": "bronze",
- "cover_photo": null,
- "cover_photo_thumb": null,
- "cover_photo_small": null,
- "cover_photo_medium": null,
- "cover_photo_big": null,
- "cover_photo_full": null,
- "cover_photo_quarter_hd": null,
- "cover_photo_hd": null,
- "attachment_url": null
}, - "relationships": {
- "nameplate": {
- "data": {
- "id": "382",
- "type": "nameplate"
}
}, - "brand": {
- "data": {
- "id": "722",
- "type": "brand"
}
}, - "color": {
- "data": {
- "id": "389",
- "type": "color"
}
}, - "owner": {
- "data": {
- "id": "868",
- "type": "company"
}
}, - "listings": {
- "data": [ ]
}, - "photos": {
- "data": [ ]
}, - "pending_operation_requests": {
- "data": [ ]
}
}, - "links": {
- "self": "/vehicles/382",
- "all": "/vehicles"
}
}
}
Filtering mechanism utilises quite powerful Ransack gem engine
Prefilters are parameters used to filter vehicles before any counting or dynamic filtering takes place. They are simple filters without any predicates. There are two perfilters:
forced_brands_names - filters vehicles by brand names separated by comma, ex. forced_brands_names=Land Rover,Jaguar
forced_dealer_codes - filters vehicles by owner dealer codes, separated by comma, ex. forced_dealer_codes=50001,50002
forced_statuses - filters vehicles by statuses, separated by comma, ex. forced_dealer_codes=reserved,sold
filter
attributeTo filter results one should use filter[]
GET parameter
object with each search/filter criteria as a separate parameter entry.
this parameters entries should adher to format of filter[:attribute_filtered:_:matcher_operator:]=value1
.
attribute_filter
partIn general it's possible to filter by all object parameters that can be seen in
a typical API response. For vehicles it includes version
, drivetrain
, production_year
etc.
However, there's one non-standard attribute that you can filter by - display_price
. It filters/sorts vehicles
by the actual Vehicle price (so it checks whether a vehicle has sale_price
value - if not, it takes msrp_price
for that vehicle as the current price).
On top of that one can filter based on selected related models by concatenating relationship name and related obejct attribute. For example Nameplate
name is not stored in the Vehicle
model but it can ge used as filter parameter as nameplate_name
.
This kind of relationship searches can go deeper. Since Brand
is related to Nameplate
not Vechile
itself, to filter vehicles by Brand
name we should user nameplate_brand_name
attributes.
matcher
partFull list of all available matcher operators can be seen here: https://github.com/activerecord-hackery/ransack#search-matchers
Most usefull and important ones are:
Matcher | Description |
---|---|
_eq | Equality |
_gt | Greater then |
_gteq | Greater than or equal |
_lt | Less then |
_lteq | Less than or equal |
_start | Starts with |
_i_cont | Contains value with (case insensitive) |
_cont | Contains value with (case sensitive) |
_in | Match any values separated by comma Eg: filter[name_in]=Bob,Alice |
To return vehicles which match one of multiple filters, or
operator has to be used. For example, to search for vehicles which vin
or order_number
start with some value filter should looke like this:
filter[vin_or_order_number_start]=123
engine_types
and owner_dealers_codes
are specific parameters due to the fact they are stored as array in the database so
simple string-based cont
predicates will not work. To filter based on this array content new predicate _includes
was added. So to filter for all "Petrol" powered vehicles request should look like this:
filter[engine_type_includes]=petrol
This will return both hybrid and non-hybrid Vehicles as long as they also include petrol in engine_type
array
Multiple engine types can be searched separated by comma:
filter[engine_type_includes]=petrol,bev
Will return petrol as well as bev engines
financing options
is a specific parameter based on scope and does not have any predicates. To use it chosen values separated by comma have to be provided:
filter[financing_options]=cash,lease,rent
status
filter is based on two attributes. It filters vehicles by status
attribute and also checks lock_id
which indicates that vehicle is soft-locked. In case it is soft-locked it is searched as it would be of reserved
status. Because of that status
filter is processed outside ransack and accepts _eq
and _in
predicates only.
To Search Vechiles with production year beetween 2015 and 2018:
filter[production_year_gteq]=2015&filter[production_year_lteq]=2018
To Search all Jaguars
filter[nameplate_brand_name_eq]=Jaguar
To Search all Vechiles with HSE in version
filter[version_i_cont]=HSE
filter required | object |
Accept | any Example: application/vnd.api+json |
X-Company-UUID | any Example: ddc17b52-0275-40c6-9128-4f77cc98cb99 |
Authorization | any Example: Bearer STUB_TOKEN_STRING |
Content-Type | any Example: application/vnd.api+json |
{- "data": [
- {
- "id": "385",
- "type": "vehicle",
- "attributes": {
- "version": "Kingdom Come",
- "drivetrain": "JLA: Tower Of Babel",
- "production_year": 2014,
- "short_description": "Nemo commodi dolorem quam similique cumque sint quia iure quia.",
- "msrp_price": "22241.0",
- "sale_price": null,
- "monthly_price": null,
- "long_description": "Maxime temporibus sed consectetur aut id doloremque sint a vitae perferendis quidem illo cumque vel et assumenda cupiditate porro eaque.",
- "state": "new",
- "delivery_date": "2024-12-12",
- "transmission": "auto",
- "vin": null,
- "mileage": 510380,
- "engine_capacity": null,
- "battery_capacity": null,
- "engine_type": [
- "petrol",
- "phev"
], - "power": 420,
- "video_url": null,
- "created_at": "2024-11-20T08:09:48.890Z",
- "updated_at": "2024-11-20T08:09:48.890Z",
- "power_unit": "bhp",
- "currency": "GBP",
- "mileage_unit": "km",
- "engine_capacity_unit": "cc",
- "engine_capacity_normalized": null,
- "features_standard": [ ],
- "features_optional": [ ],
- "nameplate_name": "Hooloovoo",
- "nameplate_brand_name": "MG",
- "owner_locale": "se_SE",
- "owner_name": "Ritchie-Kunde",
- "owner_city": "Hermistonshire",
- "owner_opening_hours": "Mon-Fri: 9:00 - 19:00\nSat: 11:00 - 18:00\nSun: Closed\n",
- "owner_contact_details": "31019 Velvet Rest\nLake Irafurt",
- "interior_color": "Ebony",
- "created_by": null,
- "price_hidden": false,
- "prices_type": null,
- "external_id": "d373b0",
- "footnote": "Et aspernatur libero quisquam et fuga quas est et minima.",
- "config_url": null,
- "subscribe_price": null,
- "type": "ActiveVehicle",
- "order_number": null,
- "model_display_name": "MG Hooloovoo",
- "price_metadata": { },
- "contains_drive_away_prices": false,
- "disclaimers": { },
- "price_breakdown": false,
- "base_price": null,
- "total_price": null,
- "status": "reserved",
- "color_name": "Olive Paper",
- "color_canonical": "bronze",
- "cover_photo": null,
- "cover_photo_thumb": null,
- "cover_photo_small": null,
- "cover_photo_medium": null,
- "cover_photo_big": null,
- "cover_photo_full": null,
- "cover_photo_quarter_hd": null,
- "cover_photo_hd": null,
- "attachment_url": null
}, - "relationships": {
- "nameplate": {
- "data": {
- "id": "385",
- "type": "nameplate"
}
}, - "brand": {
- "data": {
- "id": "729",
- "type": "brand"
}
}, - "color": {
- "data": {
- "id": "392",
- "type": "color"
}
}, - "owner": {
- "data": {
- "id": "871",
- "type": "company"
}
}, - "listings": {
- "data": [ ]
}, - "photos": {
- "data": [ ]
}, - "pending_operation_requests": {
- "data": [ ]
}
}, - "links": {
- "self": "/vehicles/385",
- "all": "/vehicles"
}
}
], - "meta": {
- "pagination": {
- "scaffold_url": "/vehicles?filter%5Bengine_type_includes%5D=phev&page=PAGE_NUM",
- "count": 1,
- "page": 1,
- "items": 1,
- "pages": 1,
- "last": 1,
- "from": 1,
- "to": 1,
- "prev": null,
- "next": null
}
}
}
Simliast to Filtering the sorting mechanism utilises quite powerful Ransack gem engine
sort
attributeTo sort results one should use sort
GET parameter as a list of collumns that records should be sorted by.
By default sorting works in natura ascending order. To use the ascending order (usefull for prices) column name should
be predicated with minus (-
, U+002D HYPHEN-MINUS) character
To Sort Vechiles in ascending order by msrp_price
sort=msrp_price
To Sort Vechiles in descending order by msrp_price
sort=-msrp_price
To Sort Vechiles in ascending order by production year and then in descending order by msrp_price
sort=production_year,-msrp_price
sort required | string Example: sort=msrp_price Comma separated list of columns to sort vehicles by |
Accept | any Example: application/vnd.api+json |
X-Company-UUID | any Example: 8df09b29-0b56-466e-87d8-e2d27e396e8e |
Authorization | any Example: Bearer STUB_TOKEN_STRING |
Content-Type | any Example: application/vnd.api+json |
{- "data": [
- {
- "id": "392",
- "type": "vehicle",
- "attributes": {
- "version": "Kingdom Come",
- "drivetrain": "Multiversity",
- "production_year": 2011,
- "short_description": "Molestiae eos et illo dignissimos ullam eius corporis dolor eum.",
- "msrp_price": "2000.0",
- "sale_price": null,
- "monthly_price": null,
- "long_description": "Molestiae illum amet provident hic qui quia odio voluptatem optio est nisi ut deserunt suscipit a reiciendis architecto qui vitae.",
- "state": "new",
- "delivery_date": "2024-12-17",
- "transmission": "manual",
- "vin": null,
- "mileage": 548226,
- "engine_capacity": null,
- "battery_capacity": null,
- "engine_type": [
- "phev"
], - "power": 331,
- "video_url": null,
- "created_at": "2024-11-20T08:09:49.144Z",
- "updated_at": "2024-11-20T08:09:49.144Z",
- "power_unit": "bhp",
- "currency": "GBP",
- "mileage_unit": "km",
- "engine_capacity_unit": "cc",
- "engine_capacity_normalized": null,
- "features_standard": [ ],
- "features_optional": [ ],
- "nameplate_name": "Mattress",
- "nameplate_brand_name": "MG",
- "owner_locale": "en_IE",
- "owner_name": "Ritchie-Kunde",
- "owner_city": "Hermistonshire",
- "owner_opening_hours": "Mon-Fri: 9:00 - 19:00\nSat: 11:00 - 18:00\nSun: Closed\n",
- "owner_contact_details": "31019 Velvet Rest\nLake Irafurt",
- "interior_color": "Ebony",
- "created_by": null,
- "price_hidden": false,
- "prices_type": null,
- "external_id": "c928ef",
- "footnote": "Fugiat quo animi veniam similique laborum modi quis deleniti dicta.",
- "config_url": null,
- "subscribe_price": null,
- "type": "ActiveVehicle",
- "order_number": null,
- "model_display_name": "MG Mattress",
- "price_metadata": { },
- "contains_drive_away_prices": false,
- "disclaimers": { },
- "price_breakdown": false,
- "base_price": null,
- "total_price": null,
- "status": "stock",
- "color_name": "Olive Marble",
- "color_canonical": "gray",
- "cover_photo": null,
- "cover_photo_thumb": null,
- "cover_photo_small": null,
- "cover_photo_medium": null,
- "cover_photo_big": null,
- "cover_photo_full": null,
- "cover_photo_quarter_hd": null,
- "cover_photo_hd": null,
- "attachment_url": null
}, - "relationships": {
- "nameplate": {
- "data": {
- "id": "395",
- "type": "nameplate"
}
}, - "brand": {
- "data": {
- "id": "742",
- "type": "brand"
}
}, - "color": {
- "data": {
- "id": "399",
- "type": "color"
}
}, - "owner": {
- "data": {
- "id": "875",
- "type": "company"
}
}, - "listings": {
- "data": [ ]
}, - "photos": {
- "data": [ ]
}, - "pending_operation_requests": {
- "data": [ ]
}
}, - "links": {
- "self": "/vehicles/392",
- "all": "/vehicles"
}
}, - {
- "id": "391",
- "type": "vehicle",
- "attributes": {
- "version": "Teen Titans: The Judas Contract",
- "drivetrain": "Batman: Year One",
- "production_year": 2011,
- "short_description": "Nemo ea fugiat esse error optio excepturi quia voluptas quia.",
- "msrp_price": "1000.0",
- "sale_price": null,
- "monthly_price": null,
- "long_description": "Maxime temporibus sed consectetur aut id doloremque sint a vitae perferendis quidem illo cumque vel et assumenda cupiditate porro eaque.",
- "state": "used",
- "delivery_date": "2024-12-01",
- "transmission": "manual",
- "vin": null,
- "mileage": 868043,
- "engine_capacity": null,
- "battery_capacity": null,
- "engine_type": [
- "mhev"
], - "power": 330,
- "video_url": null,
- "created_at": "2024-11-20T08:09:49.131Z",
- "updated_at": "2024-11-20T08:09:49.131Z",
- "power_unit": "bhp",
- "currency": "GBP",
- "mileage_unit": "km",
- "engine_capacity_unit": "cc",
- "engine_capacity_normalized": null,
- "features_standard": [ ],
- "features_optional": [ ],
- "nameplate_name": "Mattress",
- "nameplate_brand_name": "MG",
- "owner_locale": "en_IE",
- "owner_name": "Ritchie-Kunde",
- "owner_city": "Hermistonshire",
- "owner_opening_hours": "Mon-Fri: 9:00 - 19:00\nSat: 11:00 - 18:00\nSun: Closed\n",
- "owner_contact_details": "31019 Velvet Rest\nLake Irafurt",
- "interior_color": "Ebony",
- "created_by": null,
- "price_hidden": false,
- "prices_type": null,
- "external_id": "53b758",
- "footnote": "Et aspernatur libero quisquam et fuga quas est et minima.",
- "config_url": null,
- "subscribe_price": null,
- "type": "ActiveVehicle",
- "order_number": null,
- "model_display_name": "MG Mattress",
- "price_metadata": { },
- "contains_drive_away_prices": false,
- "disclaimers": { },
- "price_breakdown": false,
- "base_price": null,
- "total_price": null,
- "status": "on_demand",
- "color_name": "Olive Paper",
- "color_canonical": "red",
- "cover_photo": null,
- "cover_photo_thumb": null,
- "cover_photo_small": null,
- "cover_photo_medium": null,
- "cover_photo_big": null,
- "cover_photo_full": null,
- "cover_photo_quarter_hd": null,
- "cover_photo_hd": null,
- "attachment_url": null
}, - "relationships": {
- "nameplate": {
- "data": {
- "id": "395",
- "type": "nameplate"
}
}, - "brand": {
- "data": {
- "id": "742",
- "type": "brand"
}
}, - "color": {
- "data": {
- "id": "398",
- "type": "color"
}
}, - "owner": {
- "data": {
- "id": "875",
- "type": "company"
}
}, - "listings": {
- "data": [ ]
}, - "photos": {
- "data": [ ]
}, - "pending_operation_requests": {
- "data": [ ]
}
}, - "links": {
- "self": "/vehicles/391",
- "all": "/vehicles"
}
}
], - "meta": {
- "pagination": {
- "scaffold_url": "/vehicles?sort=-msrp_price&page=PAGE_NUM",
- "count": 2,
- "page": 1,
- "items": 2,
- "pages": 1,
- "last": 1,
- "from": 1,
- "to": 2,
- "prev": null,
- "next": null
}
}
}
Vehicles list is always paginated.
By default API will return up to 20 items but it can be overriden using items
parameter.
Here we use items=2
bo brevity but it's optional and set to 20 by default.
Paginated results include pagination metadata in the meta
object like this:
"meta": {
"pagination": {
//URL template to fetch additonal pages (PAGE_NUM) should be replaced by page number
"scaffold_url": "...?items=2&page=PAGE_NUM",
"count": 50, // Overall amount of vehicles in collection
"page": 3, // Current page number
"items": 2, // Amount of items page page
"pages": 25, // Amount of all pages
"last": 25, // Last page number
"from": 5, // index of first item on current page
"to": 6, // index of last item on current page
"prev": 2, // previous page number, null if no previous page
"next": 4 // next page number, null if no next page
}
}
page required | number Example: page=2 Pagination page to be requested (default: 1) |
items required | number Example: items=3 Amount of items per page (default: 20) |
Accept | any Example: application/vnd.api+json |
X-Company-UUID | any Example: a0c624e5-78f5-432a-8fa0-d200cfa0a58b |
Authorization | any Example: Bearer STUB_TOKEN_STRING |
Content-Type | any Example: application/vnd.api+json |
{- "data": [
- {
- "id": "403",
- "type": "vehicle",
- "attributes": {
- "version": "Grant Morrison's Animal Man",
- "drivetrain": "JLA: Earth 2",
- "production_year": 2009,
- "short_description": "Fuga libero eius quo quod quis earum quia voluptas eveniet.",
- "msrp_price": "33532.0",
- "sale_price": null,
- "monthly_price": null,
- "long_description": "Error deserunt non delectus praesentium totam dolor hic voluptatem possimus cupiditate ut exercitationem consectetur aperiam maiores nisi accusamus quia repellendus.",
- "state": "new",
- "delivery_date": "2024-11-26",
- "transmission": "manual",
- "vin": null,
- "mileage": 775677,
- "engine_capacity": null,
- "battery_capacity": null,
- "engine_type": [
- "bev"
], - "power": 191,
- "video_url": null,
- "created_at": "2024-11-20T08:09:49.454Z",
- "updated_at": "2024-11-20T08:09:49.454Z",
- "power_unit": "bhp",
- "currency": "GBP",
- "mileage_unit": "km",
- "engine_capacity_unit": "cc",
- "engine_capacity_normalized": null,
- "features_standard": [ ],
- "features_optional": [ ],
- "nameplate_name": "Mattress",
- "nameplate_brand_name": "MG",
- "owner_locale": "en_GB",
- "owner_name": "Ritchie-Kunde",
- "owner_city": "Hermistonshire",
- "owner_opening_hours": "Mon-Fri: 9:00 - 19:00\nSat: 11:00 - 18:00\nSun: Closed\n",
- "owner_contact_details": "31019 Velvet Rest\nLake Irafurt",
- "interior_color": "Ebony",
- "created_by": null,
- "price_hidden": false,
- "prices_type": null,
- "external_id": "a30eda",
- "footnote": "Cumque accusamus voluptatem eos quaerat dolores velit tempora id qui.",
- "config_url": null,
- "subscribe_price": null,
- "type": "ActiveVehicle",
- "order_number": null,
- "model_display_name": "MG Mattress",
- "price_metadata": { },
- "contains_drive_away_prices": false,
- "disclaimers": { },
- "price_breakdown": false,
- "base_price": null,
- "total_price": null,
- "status": "sold",
- "color_name": "Cerulean Granite",
- "color_canonical": "bronze",
- "cover_photo": null,
- "cover_photo_thumb": null,
- "cover_photo_small": null,
- "cover_photo_medium": null,
- "cover_photo_big": null,
- "cover_photo_full": null,
- "cover_photo_quarter_hd": null,
- "cover_photo_hd": null,
- "attachment_url": null
}, - "relationships": {
- "nameplate": {
- "data": {
- "id": "398",
- "type": "nameplate"
}
}, - "brand": {
- "data": {
- "id": "753",
- "type": "brand"
}
}, - "color": {
- "data": {
- "id": "406",
- "type": "color"
}
}, - "owner": {
- "data": {
- "id": "880",
- "type": "company"
}
}, - "listings": {
- "data": [ ]
}, - "photos": {
- "data": [ ]
}, - "pending_operation_requests": {
- "data": [ ]
}
}, - "links": {
- "self": "/vehicles/403",
- "all": "/vehicles"
}
}, - {
- "id": "404",
- "type": "vehicle",
- "attributes": {
- "version": "Doom Patrol",
- "drivetrain": "Superman: Red Son",
- "production_year": 2013,
- "short_description": "Voluptatem nemo et et facilis ullam dolor id non commodi.",
- "msrp_price": "47690.0",
- "sale_price": null,
- "monthly_price": null,
- "long_description": "Sed ab blanditiis doloribus eligendi tenetur hic et aut illo officia tempore eos ducimus placeat sed harum sint sunt quisquam.",
- "state": "approved",
- "delivery_date": "2024-11-28",
- "transmission": "manual",
- "vin": null,
- "mileage": 649064,
- "engine_capacity": null,
- "battery_capacity": null,
- "engine_type": [
- "phev"
], - "power": 364,
- "video_url": null,
- "created_at": "2024-11-20T08:09:49.466Z",
- "updated_at": "2024-11-20T08:09:49.466Z",
- "power_unit": "bhp",
- "currency": "GBP",
- "mileage_unit": "km",
- "engine_capacity_unit": "cc",
- "engine_capacity_normalized": null,
- "features_standard": [ ],
- "features_optional": [ ],
- "nameplate_name": "Mattress",
- "nameplate_brand_name": "MG",
- "owner_locale": "en_GB",
- "owner_name": "Ritchie-Kunde",
- "owner_city": "Hermistonshire",
- "owner_opening_hours": "Mon-Fri: 9:00 - 19:00\nSat: 11:00 - 18:00\nSun: Closed\n",
- "owner_contact_details": "31019 Velvet Rest\nLake Irafurt",
- "interior_color": "Ebony",
- "created_by": null,
- "price_hidden": false,
- "prices_type": null,
- "external_id": "dba655",
- "footnote": "Voluptates et culpa voluptas ipsam corrupti sapiente officiis et inventore.",
- "config_url": null,
- "subscribe_price": null,
- "type": "ActiveVehicle",
- "order_number": null,
- "model_display_name": "MG Mattress",
- "price_metadata": { },
- "contains_drive_away_prices": false,
- "disclaimers": { },
- "price_breakdown": false,
- "base_price": null,
- "total_price": null,
- "status": "delivery",
- "color_name": "Cerulean Granite",
- "color_canonical": "bronze",
- "cover_photo": null,
- "cover_photo_thumb": null,
- "cover_photo_small": null,
- "cover_photo_medium": null,
- "cover_photo_big": null,
- "cover_photo_full": null,
- "cover_photo_quarter_hd": null,
- "cover_photo_hd": null,
- "attachment_url": null
}, - "relationships": {
- "nameplate": {
- "data": {
- "id": "398",
- "type": "nameplate"
}
}, - "brand": {
- "data": {
- "id": "753",
- "type": "brand"
}
}, - "color": {
- "data": {
- "id": "406",
- "type": "color"
}
}, - "owner": {
- "data": {
- "id": "880",
- "type": "company"
}
}, - "listings": {
- "data": [ ]
}, - "photos": {
- "data": [ ]
}, - "pending_operation_requests": {
- "data": [ ]
}
}, - "links": {
- "self": "/vehicles/404",
- "all": "/vehicles"
}
}
], - "meta": {
- "pagination": {
- "scaffold_url": "/vehicles?items=2&page=PAGE_NUM",
- "count": 50,
- "page": 3,
- "items": 2,
- "pages": 25,
- "last": 25,
- "from": 5,
- "to": 6,
- "prev": 2,
- "next": 4
}
}
}
Photos
are attached through relationship to Vehicle
like in example below.
Photos
order in request will be maintained.
Photos
can be assigne during Vehicle
creation and update actions.
Previously assigned photos will be deleted if their ids are ommited from relationship payload.
If payload photos section is empty then photos collection will be emptied!
To not make any changes to photos attached to vehicles it's relationship section in payload should be removed completly.
To inluce photos into the response additional parameter need to be passed in the url.
Photos object will be added in separate included
array in the payload as shown on the last example.
include=photos
id | number Example: 499 |
Accept | any Example: application/vnd.api+json |
X-Company-UUID | any Example: 4076c9a5-4a00-4440-977b-6d32558c449c |
Authorization | any Example: Bearer STUB_TOKEN_STRING |
Content-Type | any Example: application/vnd.api+json |
{- "data": {
- "relationships": {
- "photos": {
- "data": [
- {
- "id": 163
}, - {
- "id": 162
}, - {
- "id": 161
}
]
}, - "owner": {
- "data": {
- "id": 882
}
}
}
}
}
{- "data": {
- "id": "499",
- "type": "vehicle",
- "attributes": {
- "version": "Swamp Thing: The Anatomy Lesson",
- "drivetrain": "Grant Morrison's Animal Man",
- "production_year": 2015,
- "short_description": "Nemo commodi debitis quam sunt repellat similique quia iure quia.",
- "msrp_price": "25216.0",
- "sale_price": null,
- "monthly_price": null,
- "long_description": "Maxime temporibus sed consectetur aut id doloremque sint a vitae perferendis quidem illo cumque vel et assumenda cupiditate porro eaque.",
- "state": "approved",
- "delivery_date": "2024-11-28",
- "transmission": "auto",
- "vin": null,
- "mileage": 718673,
- "engine_capacity": null,
- "battery_capacity": null,
- "engine_type": [
- "diesel"
], - "power": 384,
- "video_url": null,
- "created_at": "2024-11-20T08:09:50.755Z",
- "updated_at": "2024-11-20T08:09:50.880Z",
- "power_unit": "bhp",
- "currency": "GBP",
- "mileage_unit": "km",
- "engine_capacity_unit": "cc",
- "engine_capacity_normalized": null,
- "features_standard": [ ],
- "features_optional": [ ],
- "nameplate_name": "Mattress",
- "nameplate_brand_name": "MG",
- "owner_locale": "en_IE",
- "owner_name": "Ritchie-Kunde",
- "owner_city": "Hermistonshire",
- "owner_opening_hours": "Mon-Fri: 9:00 - 19:00\nSat: 11:00 - 18:00\nSun: Closed\n",
- "owner_contact_details": "31019 Velvet Rest\nLake Irafurt",
- "interior_color": "Ebony",
- "created_by": null,
- "price_hidden": false,
- "prices_type": "incl_taxes",
- "external_id": "942edc",
- "footnote": "Et aspernatur libero quisquam et fuga quas est et minima.",
- "subscribe_price": "1700.0",
- "type": "ActiveVehicle",
- "order_number": null,
- "model_display_name": "MG Mattress",
- "price_metadata": { },
- "contains_drive_away_prices": false,
- "disclaimers": { },
- "price_breakdown": false,
- "base_price": null,
- "total_price": "0.0",
- "status": "stock",
- "color_name": "Cerulean Granite",
- "color_canonical": "silver",
- "cover_photo": "/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6MTcxLCJwdXIiOiJibG9iX2lkIn19--7a9ef7b1d60111a032dfd3794d58d914fb8e46b3/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGciLCJyZXNpemVfYW5kX3BhZCI6WzE2MDAsMTIwMCx7ImJhY2tncm91bmQiOlsyMzgsMjM4LDIzOCwyMzhdLCJhbHBoYSI6dHJ1ZX1dLCJzYXZlciI6eyJxdWFsaXR5Ijo4NX19LCJwdXIiOiJ2YXJpYXRpb24ifX0=--7b5f4ca4fdb73844cccc54630e015a046b05719f/1.jpg",
- "cover_photo_thumb": "/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6MTcxLCJwdXIiOiJibG9iX2lkIn19--7a9ef7b1d60111a032dfd3794d58d914fb8e46b3/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGciLCJyZXNpemVfYW5kX3BhZCI6WzQwMCwzMDAseyJiYWNrZ3JvdW5kIjpbMjM4LDIzOCwyMzgsMjM4XSwiYWxwaGEiOnRydWV9XSwic2F2ZXIiOnsicXVhbGl0eSI6ODV9fSwicHVyIjoidmFyaWF0aW9uIn19--55b64b8565c87129a4465e53843074c92d6a6692/1.jpg",
- "cover_photo_small": "/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6MTcxLCJwdXIiOiJibG9iX2lkIn19--7a9ef7b1d60111a032dfd3794d58d914fb8e46b3/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGciLCJyZXNpemVfYW5kX3BhZCI6WzE2NSw5Mix7ImJhY2tncm91bmQiOlsyMzgsMjM4LDIzOCwyMzhdLCJhbHBoYSI6dHJ1ZX1dLCJzYXZlciI6eyJxdWFsaXR5Ijo4NX19LCJwdXIiOiJ2YXJpYXRpb24ifX0=--66380c5b6b4af7f9e745183631dad0ee428f4cb6/1.jpg",
- "cover_photo_medium": "/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6MTcxLCJwdXIiOiJibG9iX2lkIn19--7a9ef7b1d60111a032dfd3794d58d914fb8e46b3/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGciLCJyZXNpemVfYW5kX3BhZCI6WzQyMCwyMzYseyJiYWNrZ3JvdW5kIjpbMjM4LDIzOCwyMzgsMjM4XSwiYWxwaGEiOnRydWV9XSwic2F2ZXIiOnsicXVhbGl0eSI6ODV9fSwicHVyIjoidmFyaWF0aW9uIn19--4dc07e951609e3efb6b48f3567616f872348d59f/1.jpg",
- "cover_photo_big": "/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6MTcxLCJwdXIiOiJibG9iX2lkIn19--7a9ef7b1d60111a032dfd3794d58d914fb8e46b3/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGciLCJyZXNpemVfYW5kX3BhZCI6Wzc1Miw0MjMseyJiYWNrZ3JvdW5kIjpbMjM4LDIzOCwyMzgsMjM4XSwiYWxwaGEiOnRydWV9XSwic2F2ZXIiOnsicXVhbGl0eSI6ODV9fSwicHVyIjoidmFyaWF0aW9uIn19--87d5dae95cd9117bcea522c1fa34781e19f732de/1.jpg",
- "cover_photo_full": "/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6MTcxLCJwdXIiOiJibG9iX2lkIn19--7a9ef7b1d60111a032dfd3794d58d914fb8e46b3/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGciLCJyZXNpemVfdG9fbGltaXQiOlsxOTIwLDEwODBdLCJzYXZlciI6eyJxdWFsaXR5Ijo4NX19LCJwdXIiOiJ2YXJpYXRpb24ifX0=--cfd1c6e29d0d407efde83e6ff26f8acce153d0b4/1.jpg",
- "cover_photo_quarter_hd": "/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6MTcxLCJwdXIiOiJibG9iX2lkIn19--7a9ef7b1d60111a032dfd3794d58d914fb8e46b3/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGciLCJyZXNpemVfYW5kX3BhZCI6Wzk2MCw1NDAseyJiYWNrZ3JvdW5kIjpbMjM4LDIzOCwyMzgsMjM4XSwiYWxwaGEiOnRydWV9XSwic2F2ZXIiOnsicXVhbGl0eSI6ODV9fSwicHVyIjoidmFyaWF0aW9uIn19--d39339055de4cc3639252e2adcd4214fec0787dc/1.jpg",
- "cover_photo_hd": "/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6MTcxLCJwdXIiOiJibG9iX2lkIn19--7a9ef7b1d60111a032dfd3794d58d914fb8e46b3/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGciLCJyZXNpemVfYW5kX3BhZCI6WzEyODAsNzIwLHsiYmFja2dyb3VuZCI6WzIzOCwyMzgsMjM4LDIzOF0sImFscGhhIjp0cnVlfV0sInNhdmVyIjp7InF1YWxpdHkiOjg1fX0sInB1ciI6InZhcmlhdGlvbiJ9fQ==--42f4d8f39eed9164bf5b7953b39766c46b314eb9/1.jpg",
- "attachment_url": "/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsiZGF0YSI6MTY3LCJwdXIiOiJibG9iX2lkIn19--92a254c085b75cb4bdcd5e8284f7fdb5ec4dd545/1.pdf"
}, - "relationships": {
- "nameplate": {
- "data": {
- "id": "400",
- "type": "nameplate"
}
}, - "brand": {
- "data": {
- "id": "805",
- "type": "brand"
}
}, - "color": {
- "data": {
- "id": "457",
- "type": "color"
}
}, - "owner": {
- "data": {
- "id": "882",
- "type": "company"
}
}, - "listings": {
- "data": [ ]
}, - "photos": {
- "data": [
- {
- "id": "163",
- "type": "photo"
}, - {
- "id": "162",
- "type": "photo"
}, - {
- "id": "161",
- "type": "photo"
}
]
}, - "pending_operation_requests": {
- "data": [ ]
}
}, - "links": {
- "self": "/vehicles/499",
- "all": "/vehicles"
}
}
}
id | number Example: 504 |
Accept | any Example: application/vnd.api+json |
X-Company-UUID | any Example: 83ef47eb-5648-4838-b593-9dcd27c73bb0 |
Authorization | any Example: Bearer STUB_TOKEN_STRING |
Content-Type | any Example: application/vnd.api+json |
{- "data": {
- "id": "504",
- "type": "vehicle",
- "attributes": {
- "version": "Batman: The Long Halloween",
- "drivetrain": "Gotham Central",
- "production_year": 2007,
- "short_description": "Consequuntur aliquid reprehenderit voluptas qui tempore odit debitis ut quo.",
- "msrp_price": "35930.0",
- "sale_price": null,
- "monthly_price": null,
- "long_description": "Provident iusto deleniti reprehenderit et nihil similique maxime facilis dolorem dicta est eum laboriosam odio quidem sint libero quos dolorum.",
- "state": "approved",
- "delivery_date": "2024-11-27",
- "transmission": "manual",
- "vin": null,
- "mileage": 668176,
- "engine_capacity": null,
- "battery_capacity": null,
- "engine_type": [
- "mhev"
], - "power": 303,
- "video_url": null,
- "created_at": "2024-11-20T08:09:51.312Z",
- "updated_at": "2024-11-20T08:09:51.327Z",
- "power_unit": "bhp",
- "currency": "GBP",
- "mileage_unit": "km",
- "engine_capacity_unit": "cc",
- "engine_capacity_normalized": null,
- "features_standard": [ ],
- "features_optional": [ ],
- "nameplate_name": "Arcturan Megagrasshopper",
- "nameplate_brand_name": "Tesla",
- "owner_locale": "en_IE",
- "owner_name": "Ritchie-Kunde",
- "owner_city": "Hermistonshire",
- "owner_opening_hours": "Mon-Fri: 9:00 - 19:00\nSat: 11:00 - 18:00\nSun: Closed\n",
- "owner_contact_details": "31019 Velvet Rest\nLake Irafurt",
- "interior_color": "Ebony",
- "created_by": null,
- "price_hidden": false,
- "prices_type": "incl_taxes",
- "external_id": "d8f6f7",
- "footnote": "Accusamus reprehenderit cupiditate quia enim maxime ut nam earum ut.",
- "subscribe_price": "1700.0",
- "type": "ActiveVehicle",
- "order_number": null,
- "model_display_name": "Tesla Arcturan Megagrasshopper",
- "price_metadata": { },
- "contains_drive_away_prices": false,
- "disclaimers": { },
- "price_breakdown": false,
- "base_price": null,
- "total_price": null,
- "status": "on_demand",
- "color_name": "Burgundy Silk",
- "color_canonical": "yellow",
- "cover_photo": null,
- "cover_photo_thumb": null,
- "cover_photo_small": null,
- "cover_photo_medium": null,
- "cover_photo_big": null,
- "cover_photo_full": null,
- "cover_photo_quarter_hd": null,
- "cover_photo_hd": null,
- "attachment_url": "/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsiZGF0YSI6MTc2LCJwdXIiOiJibG9iX2lkIn19--767a113987f043707e4b14b62fc2a7f0a93e0f3f/1.pdf"
}, - "relationships": {
- "nameplate": {
- "data": {
- "id": "405",
- "type": "nameplate"
}
}, - "brand": {
- "data": {
- "id": "813",
- "type": "brand"
}
}, - "color": {
- "data": {
- "id": "462",
- "type": "color"
}
}, - "owner": {
- "data": {
- "id": "884",
- "type": "company"
}
}, - "listings": {
- "data": [ ]
}, - "photos": {
- "data": [ ]
}, - "pending_operation_requests": {
- "data": [
- {
- "id": "131",
- "type": "vehicle_operation_request"
}
]
}
}, - "links": {
- "self": "/vehicles/504",
- "all": "/vehicles"
}
}, - "included": [
- {
- "id": "131",
- "type": "vehicle_operation_request",
- "attributes": {
- "request_type": "publication",
- "updated_at": "2024-11-20T08:09:51.333Z",
- "status": "pending",
- "owner_name": "Oberbrunner and Sons",
- "owner_id": 888,
- "requester_name": "Stoltenberg, Kris and Rath",
- "requester_id": 890,
- "listing_title": "Barbecue Ribs 88",
- "listing_id": 86,
- "transfer_to_name": "Barton Inc",
- "transfer_to_id": 885,
- "vehicle_id": 504,
- "vehicle_model_display_name": "Tesla Arcturan Megagrasshopper",
- "vehicle_owner_name": "Ritchie-Kunde",
- "vehicle_cover_photo_thumb": null
}
}
]
}
Accept | any Example: application/vnd.api+json |
X-Company-UUID | any Example: 8580d07e-d1a2-4a1c-999f-cb48d5e2ce65 |
Authorization | any Example: Bearer STUB_TOKEN_STRING |
Content-Type | any Example: application/vnd.api+json |
{- "data": [
- {
- "id": "505",
- "type": "vehicle",
- "attributes": {
- "version": "Swamp Thing: The Anatomy Lesson",
- "drivetrain": "Grant Morrison's Animal Man",
- "production_year": 2015,
- "short_description": "Nemo commodi debitis quam sunt repellat similique quia iure quia.",
- "msrp_price": "45238.0",
- "sale_price": null,
- "monthly_price": null,
- "long_description": "Maxime temporibus sed consectetur aut id doloremque sint a vitae perferendis quidem illo cumque vel et assumenda cupiditate porro eaque.",
- "state": "approved",
- "delivery_date": "2024-11-21",
- "transmission": "manual",
- "vin": null,
- "mileage": 200414,
- "engine_capacity": null,
- "battery_capacity": null,
- "engine_type": [
- "hev"
], - "power": 432,
- "video_url": null,
- "created_at": "2024-11-20T08:09:51.392Z",
- "updated_at": "2024-11-20T08:09:51.405Z",
- "power_unit": "bhp",
- "currency": "GBP",
- "mileage_unit": "km",
- "engine_capacity_unit": "cc",
- "engine_capacity_normalized": null,
- "features_standard": [ ],
- "features_optional": [ ],
- "nameplate_name": "Mattress",
- "nameplate_brand_name": "MG",
- "owner_locale": "en_GB",
- "owner_name": "Ritchie-Kunde",
- "owner_city": "Hermistonshire",
- "owner_opening_hours": "Mon-Fri: 9:00 - 19:00\nSat: 11:00 - 18:00\nSun: Closed\n",
- "owner_contact_details": "31019 Velvet Rest\nLake Irafurt",
- "interior_color": "Ebony",
- "created_by": null,
- "price_hidden": false,
- "prices_type": "incl_taxes",
- "external_id": "e8d50e",
- "footnote": "Et aspernatur libero quisquam et fuga quas est et minima.",
- "subscribe_price": "1700.0",
- "type": "ActiveVehicle",
- "order_number": null,
- "model_display_name": "MG Mattress",
- "price_metadata": { },
- "contains_drive_away_prices": false,
- "disclaimers": { },
- "price_breakdown": false,
- "base_price": null,
- "total_price": null,
- "status": "available_soon",
- "color_name": "Cerulean Granite",
- "color_canonical": "blue",
- "cover_photo": null,
- "cover_photo_thumb": null,
- "cover_photo_small": null,
- "cover_photo_medium": null,
- "cover_photo_big": null,
- "cover_photo_full": null,
- "cover_photo_quarter_hd": null,
- "cover_photo_hd": null,
- "attachment_url": "/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsiZGF0YSI6MTc3LCJwdXIiOiJibG9iX2lkIn19--ed795b43a5d910196ef55f6cd17f4ed37a649f37/1.pdf"
}, - "relationships": {
- "nameplate": {
- "data": {
- "id": "406",
- "type": "nameplate"
}
}, - "brand": {
- "data": {
- "id": "814",
- "type": "brand"
}
}, - "color": {
- "data": {
- "id": "463",
- "type": "color"
}
}, - "owner": {
- "data": {
- "id": "903",
- "type": "company"
}
}, - "listings": {
- "data": [ ]
}, - "photos": {
- "data": [ ]
}, - "pending_operation_requests": {
- "data": [ ]
}
}, - "links": {
- "self": "/vehicles/505",
- "all": "/vehicles"
}
}, - {
- "id": "506",
- "type": "vehicle",
- "attributes": {
- "version": "Swamp Thing: The Anatomy Lesson",
- "drivetrain": "Grant Morrison's Animal Man",
- "production_year": 2015,
- "short_description": "Nemo commodi debitis quam sunt repellat similique quia iure quia.",
- "msrp_price": "45238.0",
- "sale_price": null,
- "monthly_price": null,
- "long_description": "Maxime temporibus sed consectetur aut id doloremque sint a vitae perferendis quidem illo cumque vel et assumenda cupiditate porro eaque.",
- "state": "approved",
- "delivery_date": "2024-11-21",
- "transmission": "manual",
- "vin": null,
- "mileage": 200414,
- "engine_capacity": null,
- "battery_capacity": null,
- "engine_type": [
- "hev"
], - "power": 432,
- "video_url": null,
- "created_at": "2024-11-20T08:09:51.428Z",
- "updated_at": "2024-11-20T08:09:51.437Z",
- "power_unit": "bhp",
- "currency": "GBP",
- "mileage_unit": "km",
- "engine_capacity_unit": "cc",
- "engine_capacity_normalized": null,
- "features_standard": [ ],
- "features_optional": [ ],
- "nameplate_name": "Mattress",
- "nameplate_brand_name": "MG",
- "owner_locale": "en_GB",
- "owner_name": "Ritchie-Kunde",
- "owner_city": "Hermistonshire",
- "owner_opening_hours": "Mon-Fri: 9:00 - 19:00\nSat: 11:00 - 18:00\nSun: Closed\n",
- "owner_contact_details": "31019 Velvet Rest\nLake Irafurt",
- "interior_color": "Ebony",
- "created_by": null,
- "price_hidden": false,
- "prices_type": "incl_taxes",
- "external_id": "e8d50e",
- "footnote": "Et aspernatur libero quisquam et fuga quas est et minima.",
- "subscribe_price": "1700.0",
- "type": "DraftVehicle",
- "order_number": null,
- "model_display_name": "MG Mattress",
- "price_metadata": { },
- "contains_drive_away_prices": false,
- "disclaimers": { },
- "price_breakdown": false,
- "base_price": null,
- "total_price": null,
- "status": "available_soon",
- "color_name": "Cerulean Granite",
- "color_canonical": "blue",
- "cover_photo": null,
- "cover_photo_thumb": null,
- "cover_photo_small": null,
- "cover_photo_medium": null,
- "cover_photo_big": null,
- "cover_photo_full": null,
- "cover_photo_quarter_hd": null,
- "cover_photo_hd": null,
- "attachment_url": "/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsiZGF0YSI6MTc3LCJwdXIiOiJibG9iX2lkIn19--ed795b43a5d910196ef55f6cd17f4ed37a649f37/1.pdf"
}, - "relationships": {
- "nameplate": {
- "data": {
- "id": "406",
- "type": "nameplate"
}
}, - "brand": {
- "data": {
- "id": "814",
- "type": "brand"
}
}, - "color": {
- "data": {
- "id": "463",
- "type": "color"
}
}, - "owner": {
- "data": {
- "id": "903",
- "type": "company"
}
}, - "listings": {
- "data": [ ]
}, - "photos": {
- "data": [ ]
}, - "pending_operation_requests": {
- "data": [ ]
}
}, - "links": {
- "self": "/vehicles/506",
- "all": "/vehicles"
}
}
], - "meta": {
- "pagination": {
- "scaffold_url": "/vehicles?page=PAGE_NUM",
- "count": 2,
- "page": 1,
- "items": 2,
- "pages": 1,
- "last": 1,
- "from": 1,
- "to": 2,
- "prev": null,
- "next": null
}
}
}
Accept | any Example: application/vnd.api+json |
X-Company-UUID | any Example: e14b5961-b19d-4fc9-a095-943146cb2e26 |
Authorization | any Example: Bearer STUB_TOKEN_STRING |
Content-Type | any Example: application/vnd.api+json |
{- "data": {
- "attributes": {
- "version": "Swamp Thing: The Anatomy Lesson",
- "drivetrain": "Grant Morrison's Animal Man",
- "short_description": "Nemo commodi debitis quam sunt repellat similique quia iure quia.",
- "long_description": "Maxime temporibus sed consectetur aut id doloremque sint a vitae perferendis quidem illo cumque vel et assumenda cupiditate porro eaque.",
- "footnote": "Et aspernatur libero quisquam et fuga quas est et minima.",
- "production_year": 2015,
- "state": "approved",
- "status": "sold",
- "transmission": "manual",
- "engine_type": [
- "phev_rev"
], - "delivery_date": "2024-11-24",
- "power": 156,
- "msrp_price": 29211,
- "interior_color": "Ebony",
- "mileage": 548504,
- "type": "ActiveVehicle",
- "metadata": null,
- "external_id": "e549ff",
- "features_optional": null,
- "features_standard": null,
- "color_id": 465,
- "attachment": "eyJfcmFpbHMiOnsiZGF0YSI6MTc5LCJwdXIiOiJibG9iX2lkIn19--2222398fe3b8a14f4265fc36842c4c4fd4ffdea0",
- "subscribe_price": 1700,
- "prices_type": "incl_taxes"
}, - "relationships": {
- "nameplate": {
- "data": {
- "id": 408
}
}, - "owner": {
- "data": {
- "id": 905
}
}, - "color": {
- "data": {
- "id": 465
}
}
}
}
}
{- "data": {
- "id": "508",
- "type": "vehicle",
- "attributes": {
- "version": "Swamp Thing: The Anatomy Lesson",
- "drivetrain": "Grant Morrison's Animal Man",
- "production_year": 2015,
- "short_description": "Nemo commodi debitis quam sunt repellat similique quia iure quia.",
- "msrp_price": "29211.0",
- "sale_price": null,
- "monthly_price": null,
- "long_description": "Maxime temporibus sed consectetur aut id doloremque sint a vitae perferendis quidem illo cumque vel et assumenda cupiditate porro eaque.",
- "state": "approved",
- "delivery_date": "2024-11-24",
- "transmission": "manual",
- "vin": null,
- "mileage": 548504,
- "engine_capacity": null,
- "battery_capacity": null,
- "engine_type": [
- "phev_rev"
], - "power": 156,
- "video_url": null,
- "created_at": "2024-11-20T08:09:51.600Z",
- "updated_at": "2024-11-20T08:09:51.609Z",
- "power_unit": "bhp",
- "currency": "GBP",
- "mileage_unit": "km",
- "engine_capacity_unit": "cc",
- "engine_capacity_normalized": null,
- "features_standard": [ ],
- "features_optional": [ ],
- "nameplate_name": "Mattress",
- "nameplate_brand_name": "MG",
- "owner_locale": "pl_PL",
- "owner_name": "Ritchie-Kunde",
- "owner_city": "Hermistonshire",
- "owner_opening_hours": "Mon-Fri: 9:00 - 19:00\nSat: 11:00 - 18:00\nSun: Closed\n",
- "owner_contact_details": "31019 Velvet Rest\nLake Irafurt",
- "interior_color": "Ebony",
- "created_by": "test user",
- "price_hidden": false,
- "prices_type": "incl_taxes",
- "external_id": null,
- "footnote": "Et aspernatur libero quisquam et fuga quas est et minima.",
- "subscribe_price": "1700.0",
- "type": "ActiveVehicle",
- "order_number": null,
- "model_display_name": "MG Mattress",
- "price_metadata": { },
- "contains_drive_away_prices": false,
- "disclaimers": { },
- "price_breakdown": false,
- "base_price": null,
- "total_price": "0.0",
- "status": "sold",
- "color_name": "Cerulean Granite",
- "color_canonical": "blue",
- "cover_photo": null,
- "cover_photo_thumb": null,
- "cover_photo_small": null,
- "cover_photo_medium": null,
- "cover_photo_big": null,
- "cover_photo_full": null,
- "cover_photo_quarter_hd": null,
- "cover_photo_hd": null,
- "attachment_url": "/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsiZGF0YSI6MTc5LCJwdXIiOiJibG9iX2lkIn19--2222398fe3b8a14f4265fc36842c4c4fd4ffdea0/1.pdf"
}, - "relationships": {
- "nameplate": {
- "data": {
- "id": "408",
- "type": "nameplate"
}
}, - "brand": {
- "data": {
- "id": "816",
- "type": "brand"
}
}, - "color": {
- "data": {
- "id": "465",
- "type": "color"
}
}, - "owner": {
- "data": {
- "id": "905",
- "type": "company"
}
}, - "listings": {
- "data": [ ]
}, - "photos": {
- "data": [ ]
}, - "pending_operation_requests": {
- "data": [ ]
}
}, - "links": {
- "self": "/vehicles/508",
- "all": "/vehicles"
}
}
}
id | number Example: 507 |
Accept | any Example: application/vnd.api+json |
X-Company-UUID | any Example: 367d22e6-3f8d-419a-9d98-0609eac62e0a |
Authorization | any Example: Bearer STUB_TOKEN_STRING |
Content-Type | any Example: application/vnd.api+json |
{- "data": {
- "id": "507",
- "type": "vehicle",
- "attributes": {
- "version": "Swamp Thing: The Anatomy Lesson",
- "drivetrain": "Grant Morrison's Animal Man",
- "production_year": 2015,
- "short_description": "Nemo commodi debitis quam sunt repellat similique quia iure quia.",
- "msrp_price": "28168.0",
- "sale_price": null,
- "monthly_price": null,
- "long_description": "Maxime temporibus sed consectetur aut id doloremque sint a vitae perferendis quidem illo cumque vel et assumenda cupiditate porro eaque.",
- "state": "approved",
- "delivery_date": "2024-12-16",
- "transmission": "manual",
- "vin": null,
- "mileage": 36868,
- "engine_capacity": null,
- "battery_capacity": null,
- "engine_type": [
- "bev"
], - "power": 165,
- "video_url": null,
- "created_at": "2024-11-20T08:09:51.515Z",
- "updated_at": "2024-11-20T08:09:51.531Z",
- "power_unit": "bhp",
- "currency": "GBP",
- "mileage_unit": "km",
- "engine_capacity_unit": "cc",
- "engine_capacity_normalized": null,
- "features_standard": [ ],
- "features_optional": [ ],
- "nameplate_name": "Mattress",
- "nameplate_brand_name": "MG",
- "owner_locale": "en_IE",
- "owner_name": "Ritchie-Kunde",
- "owner_city": "Hermistonshire",
- "owner_opening_hours": "Mon-Fri: 9:00 - 19:00\nSat: 11:00 - 18:00\nSun: Closed\n",
- "owner_contact_details": "31019 Velvet Rest\nLake Irafurt",
- "interior_color": "Ebony",
- "created_by": null,
- "price_hidden": false,
- "prices_type": "incl_taxes",
- "external_id": "b3b292",
- "footnote": "Et aspernatur libero quisquam et fuga quas est et minima.",
- "subscribe_price": "1700.0",
- "type": "ActiveVehicle",
- "order_number": null,
- "model_display_name": "MG Mattress",
- "price_metadata": { },
- "contains_drive_away_prices": false,
- "disclaimers": { },
- "price_breakdown": false,
- "base_price": null,
- "total_price": null,
- "status": "demo",
- "color_name": "Cerulean Granite",
- "color_canonical": "orange",
- "cover_photo": null,
- "cover_photo_thumb": null,
- "cover_photo_small": null,
- "cover_photo_medium": null,
- "cover_photo_big": null,
- "cover_photo_full": null,
- "cover_photo_quarter_hd": null,
- "cover_photo_hd": null,
- "attachment_url": "/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsiZGF0YSI6MTc4LCJwdXIiOiJibG9iX2lkIn19--59d6982115c7d7953ee43f39bef3484f1ebdd430/1.pdf"
}, - "relationships": {
- "nameplate": {
- "data": {
- "id": "407",
- "type": "nameplate"
}
}, - "brand": {
- "data": {
- "id": "815",
- "type": "brand"
}
}, - "color": {
- "data": {
- "id": "464",
- "type": "color"
}
}, - "owner": {
- "data": {
- "id": "904",
- "type": "company"
}
}, - "listings": {
- "data": [ ]
}, - "photos": {
- "data": [ ]
}, - "pending_operation_requests": {
- "data": [ ]
}
}, - "links": {
- "self": "/vehicles/507",
- "all": "/vehicles"
}
}
}
id | number Example: 510 |
Accept | any Example: application/vnd.api+json |
X-Company-UUID | any Example: cb784f30-c07f-453a-96d3-0fcc41c4ecdd |
Authorization | any Example: Bearer STUB_TOKEN_STRING |
Content-Type | any Example: application/vnd.api+json |
{- "data": {
- "attributes": {
- "version": "Starro",
- "drivetrain": "Grant Morrison's Animal Man",
- "short_description": "Nemo commodi debitis quam sunt repellat similique quia iure quia.",
- "long_description": "Maxime temporibus sed consectetur aut id doloremque sint a vitae perferendis quidem illo cumque vel et assumenda cupiditate porro eaque.",
- "footnote": "Et aspernatur libero quisquam et fuga quas est et minima.",
- "production_year": 2015,
- "state": "approved",
- "status": "stock",
- "transmission": "auto",
- "engine_type": [
- "phev"
], - "delivery_date": "2024-11-26",
- "power": 401,
- "msrp_price": 42101,
- "interior_color": "Ebony",
- "mileage": 87109,
- "type": "ActiveVehicle",
- "metadata": null,
- "external_id": "7a6885",
- "features_optional": null,
- "features_standard": null,
- "color_id": 468,
- "attachment": "eyJfcmFpbHMiOnsiZGF0YSI6MTgyLCJwdXIiOiJibG9iX2lkIn19--976770900ab43f75d639d296b20e23bda9546785",
- "subscribe_price": 1700,
- "prices_type": "incl_taxes"
}, - "relationships": {
- "nameplate": {
- "data": {
- "id": 411
}
}, - "owner": {
- "data": {
- "id": 909
}
}, - "color": {
- "data": {
- "id": 468
}
}
}
}
}
{- "data": {
- "id": "510",
- "type": "vehicle",
- "attributes": {
- "version": "Starro",
- "drivetrain": "Grant Morrison's Animal Man",
- "production_year": 2015,
- "short_description": "Nemo commodi debitis quam sunt repellat similique quia iure quia.",
- "msrp_price": "42101.0",
- "sale_price": null,
- "monthly_price": null,
- "long_description": "Maxime temporibus sed consectetur aut id doloremque sint a vitae perferendis quidem illo cumque vel et assumenda cupiditate porro eaque.",
- "state": "approved",
- "delivery_date": "2024-11-26",
- "transmission": "auto",
- "vin": null,
- "mileage": 87109,
- "engine_capacity": null,
- "battery_capacity": null,
- "engine_type": [
- "phev"
], - "power": 401,
- "video_url": null,
- "created_at": "2024-11-20T08:09:51.796Z",
- "updated_at": "2024-11-20T08:09:51.841Z",
- "power_unit": "bhp",
- "currency": "GBP",
- "mileage_unit": "km",
- "engine_capacity_unit": "cc",
- "engine_capacity_normalized": null,
- "features_standard": [ ],
- "features_optional": [ ],
- "nameplate_name": "Mattress",
- "nameplate_brand_name": "MG",
- "owner_locale": "pl_PL",
- "owner_name": "Ritchie-Kunde",
- "owner_city": "Hermistonshire",
- "owner_opening_hours": "Mon-Fri: 9:00 - 19:00\nSat: 11:00 - 18:00\nSun: Closed\n",
- "owner_contact_details": "31019 Velvet Rest\nLake Irafurt",
- "interior_color": "Ebony",
- "created_by": null,
- "price_hidden": false,
- "prices_type": "incl_taxes",
- "external_id": "7a6885",
- "footnote": "Et aspernatur libero quisquam et fuga quas est et minima.",
- "subscribe_price": "1700.0",
- "type": "ActiveVehicle",
- "order_number": null,
- "model_display_name": "MG Mattress",
- "price_metadata": { },
- "contains_drive_away_prices": false,
- "disclaimers": { },
- "price_breakdown": false,
- "base_price": null,
- "total_price": "0.0",
- "status": "stock",
- "color_name": "Cerulean Granite",
- "color_canonical": "silver",
- "cover_photo": null,
- "cover_photo_thumb": null,
- "cover_photo_small": null,
- "cover_photo_medium": null,
- "cover_photo_big": null,
- "cover_photo_full": null,
- "cover_photo_quarter_hd": null,
- "cover_photo_hd": null,
- "attachment_url": "/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsiZGF0YSI6MTgyLCJwdXIiOiJibG9iX2lkIn19--976770900ab43f75d639d296b20e23bda9546785/1.pdf"
}, - "relationships": {
- "nameplate": {
- "data": {
- "id": "411",
- "type": "nameplate"
}
}, - "brand": {
- "data": {
- "id": "819",
- "type": "brand"
}
}, - "color": {
- "data": {
- "id": "468",
- "type": "color"
}
}, - "owner": {
- "data": {
- "id": "909",
- "type": "company"
}
}, - "listings": {
- "data": [ ]
}, - "photos": {
- "data": [ ]
}, - "pending_operation_requests": {
- "data": [ ]
}
}, - "links": {
- "self": "/vehicles/510",
- "all": "/vehicles"
}
}
}
id | number Example: 518 |
Accept | any Example: application/vnd.api+json |
X-Company-UUID | any Example: 4e37ed74-7b71-40f3-8bd3-2b36831b54cf |
Authorization | any Example: Bearer STUB_TOKEN_STRING |
Content-Type | any Example: application/vnd.api+json |
{- "data": {
- "id": "518",
- "type": "vehicle",
- "attributes": {
- "version": "Swamp Thing: The Anatomy Lesson",
- "drivetrain": "Grant Morrison's Animal Man",
- "production_year": 2015,
- "short_description": "Nemo commodi debitis quam sunt repellat similique quia iure quia.",
- "msrp_price": "38153.0",
- "sale_price": null,
- "monthly_price": null,
- "long_description": "Maxime temporibus sed consectetur aut id doloremque sint a vitae perferendis quidem illo cumque vel et assumenda cupiditate porro eaque.",
- "state": "approved",
- "delivery_date": "2024-12-03",
- "transmission": "auto",
- "vin": null,
- "mileage": 770509,
- "engine_capacity": null,
- "battery_capacity": null,
- "engine_type": [
- "phev"
], - "power": 297,
- "video_url": null,
- "created_at": "2024-11-20T08:09:52.383Z",
- "updated_at": "2024-11-20T08:09:52.410Z",
- "power_unit": "bhp",
- "currency": "GBP",
- "mileage_unit": "km",
- "engine_capacity_unit": "cc",
- "engine_capacity_normalized": null,
- "features_standard": [ ],
- "features_optional": [ ],
- "nameplate_name": "Mattress",
- "nameplate_brand_name": "MG",
- "owner_locale": "en_GB",
- "owner_name": "Ritchie-Kunde",
- "owner_city": "Hermistonshire",
- "owner_opening_hours": "Mon-Fri: 9:00 - 19:00\nSat: 11:00 - 18:00\nSun: Closed\n",
- "owner_contact_details": "31019 Velvet Rest\nLake Irafurt",
- "interior_color": "Ebony",
- "created_by": null,
- "price_hidden": false,
- "prices_type": "incl_taxes",
- "external_id": "f96c2d",
- "footnote": "Et aspernatur libero quisquam et fuga quas est et minima.",
- "subscribe_price": "1700.0",
- "type": "ActiveVehicle",
- "order_number": null,
- "model_display_name": "MG Mattress",
- "price_metadata": { },
- "contains_drive_away_prices": false,
- "disclaimers": { },
- "price_breakdown": false,
- "base_price": null,
- "total_price": null,
- "status": "in_production",
- "color_name": "Cerulean Granite",
- "color_canonical": "green",
- "cover_photo": null,
- "cover_photo_thumb": null,
- "cover_photo_small": null,
- "cover_photo_medium": null,
- "cover_photo_big": null,
- "cover_photo_full": null,
- "cover_photo_quarter_hd": null,
- "cover_photo_hd": null,
- "attachment_url": "/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsiZGF0YSI6MTg5LCJwdXIiOiJibG9iX2lkIn19--009fd821d4632cf5afa0eab4d56fb91b5fd8da2d/1.pdf"
}, - "relationships": {
- "nameplate": {
- "data": {
- "id": "421",
- "type": "nameplate"
}
}, - "brand": {
- "data": {
- "id": "832",
- "type": "brand"
}
}, - "color": {
- "data": {
- "id": "478",
- "type": "color"
}
}, - "owner": {
- "data": {
- "id": "918",
- "type": "company"
}
}, - "listings": {
- "data": [ ]
}, - "photos": {
- "data": [ ]
}, - "pending_operation_requests": {
- "data": [ ]
}
}, - "links": {
- "all": "/vehicles"
}
}
}
This endpoint will return duplicated data for a Vehicle
based on the Vehicle
with :id
passed in the url.
This endpoint returns only data, it will not create new Vehicle
record in database.
The exchanged data/relationships listed below will be omitted
id | number Example: 509 |
Accept | any Example: application/vnd.api+json |
X-Company-UUID | any Example: 848692a7-947a-4d3b-8f9a-28c9e22db1cd |
Authorization | any Example: Bearer STUB_TOKEN_STRING |
Content-Type | any Example: application/vnd.api+json |
{- "data": {
- "id": null,
- "type": "vehicle",
- "attributes": {
- "version": "Swamp Thing: The Anatomy Lesson",
- "drivetrain": "Grant Morrison's Animal Man",
- "production_year": 2015,
- "short_description": null,
- "msrp_price": "39301.0",
- "sale_price": null,
- "monthly_price": null,
- "long_description": "Maxime temporibus sed consectetur aut id doloremque sint a vitae perferendis quidem illo cumque vel et assumenda cupiditate porro eaque.",
- "state": "approved",
- "delivery_date": "2024-12-15",
- "transmission": "auto",
- "vin": null,
- "mileage": 264029,
- "engine_capacity": null,
- "battery_capacity": null,
- "engine_type": [
- "diesel"
], - "power": 162,
- "video_url": null,
- "created_at": null,
- "updated_at": null,
- "power_unit": "bhp",
- "currency": "GBP",
- "mileage_unit": "km",
- "engine_capacity_unit": "cc",
- "engine_capacity_normalized": null,
- "features_standard": [ ],
- "features_optional": [ ],
- "nameplate_name": "Mattress",
- "nameplate_brand_name": "MG",
- "owner_locale": "ro_RO",
- "owner_name": "Ritchie-Kunde",
- "owner_city": "Hermistonshire",
- "owner_opening_hours": "Mon-Fri: 9:00 - 19:00\nSat: 11:00 - 18:00\nSun: Closed\n",
- "owner_contact_details": "31019 Velvet Rest\nLake Irafurt",
- "interior_color": "Ebony",
- "created_by": "test user",
- "price_hidden": false,
- "prices_type": "incl_taxes",
- "external_id": "970e78",
- "footnote": "Et aspernatur libero quisquam et fuga quas est et minima.",
- "subscribe_price": "1700.0",
- "type": "ActiveVehicle",
- "order_number": null,
- "model_display_name": "MG Mattress",
- "price_metadata": { },
- "contains_drive_away_prices": false,
- "disclaimers": { },
- "price_breakdown": false,
- "base_price": null,
- "total_price": null,
- "status": "delivery",
- "color_name": "Cerulean Granite",
- "color_canonical": "bronze",
- "cover_photo": null,
- "cover_photo_thumb": null,
- "cover_photo_small": null,
- "cover_photo_medium": null,
- "cover_photo_big": null,
- "cover_photo_full": null,
- "cover_photo_quarter_hd": null,
- "cover_photo_hd": null,
- "attachment_url": null
}, - "relationships": {
- "nameplate": {
- "data": {
- "id": "410",
- "type": "nameplate"
}
}, - "brand": {
- "data": {
- "id": "818",
- "type": "brand"
}
}, - "color": {
- "data": {
- "id": "467",
- "type": "color"
}
}, - "owner": {
- "data": {
- "id": "908",
- "type": "company"
}
}, - "listings": {
- "data": [ ]
}, - "photos": {
- "data": [ ]
}, - "pending_operation_requests": {
- "data": [ ]
}
}, - "links": {
- "all": "/vehicles"
}
}
}
Accept | any Example: application/vnd.api+json |
X-Company-UUID | any Example: ef726f66-a68f-4393-b30a-6082ba9b1f06 |
Authorization | any Example: Bearer STUB_TOKEN_STRING |
Content-Type | any Example: application/vnd.api+json |
ID,VIN,Order Number,Added date,Publication date,Number of images,Owner account name,Vehicle type,Car State,Car Status,Price,Model,Version,Fuel Type,Engine capacity,Engine power,Transmission,Exterior Color,Interior Color
uuid | string Example: 9f0849e3-998e-4f05-bea5-723b329e763b |
vehicle_id | number Example: 28 |
Accept | any Example: application/vnd.api+json |
Content-Type | any Example: application/vnd.api+json |
{- "data": {
- "id": "28",
- "type": "vehicle",
- "attributes": {
- "nameplate_name": "Range Rover Evoque",
- "trim": "HSE",
- "drivetrain": "P300",
- "state": "new",
- "msrp_price": "27146.0",
- "currency": "USD",
- "sale_price": null,
- "engine_type": [
- "diesel"
], - "power": 200,
- "power_unit": "bhp",
- "mileage": 828702,
- "mileage_unit": "km",
- "engine_capacity": 2998,
- "disclaimers": { },
- "model_year": 2010,
- "owner_name": "Ritchie-Kunde",
- "owner_city": "Hermistonshire",
- "owner_address": "99667 Major Corners, Antoniomouth, LA 39348-8794",
- "vin": "XXXYYYZZZ",
- "features_standard": [
- "Standard Feature 0",
- "Standard Feature 1"
], - "features_optional": [ ],
- "cover_photo": "/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6NywicHVyIjoiYmxvYl9pZCJ9fQ==--f9bacdfdbfa76a0a3695be481983a3c888fe249c/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGciLCJyZXNpemVfYW5kX3BhZCI6WzE2MDAsMTIwMCx7ImJhY2tncm91bmQiOlsyMzgsMjM4LDIzOCwyMzhdLCJhbHBoYSI6dHJ1ZX1dLCJzYXZlciI6eyJxdWFsaXR5Ijo4NX19LCJwdXIiOiJ2YXJpYXRpb24ifX0=--7b5f4ca4fdb73844cccc54630e015a046b05719f/1.jpg",
- "primary_cta_type": "contact",
- "secondary_cta_url": null,
- "secondary_cta_type": null,
- "color_name": "Cyan Copper"
}
}
}
Accept | any Example: application/vnd.api+json |
Authorization | any Example: Bearer STUB_TOKEN_STRING |
Content-Type | any Example: application/vnd.api+json |
X-Company-UUID | any Example: bad-uuid-value |
{- "data": {
- "attributes": {
- "file": "eyJfcmFpbHMiOnsiZGF0YSI6MTkyLCJwdXIiOiJibG9iX2lkIn19--1b04c2e5a58aeabebe50b24be1d8a26843ca7fa6"
}
}
}
{- "data": {
- "id": null,
- "type": "active_vehicle",
- "attributes": {
- "version": null,
- "drivetrain": null,
- "production_year": null,
- "short_description": null,
- "msrp_price": null,
- "sale_price": null,
- "monthly_price": null,
- "long_description": null,
- "state": "new",
- "delivery_date": null,
- "transmission": "auto",
- "vin": null,
- "mileage": 0,
- "engine_capacity": null,
- "battery_capacity": null,
- "engine_type": null,
- "power": null,
- "video_url": null,
- "created_at": null,
- "updated_at": null,
- "power_unit": "bhp",
- "currency": "GBP",
- "mileage_unit": "km",
- "engine_capacity_unit": "cc",
- "engine_capacity_normalized": null,
- "features_standard": [
- {
- "category": "performance",
- "code": "020BE",
- "label": "Czerwone zaciski hamulcowe"
}, - {
- "code": "020KA",
- "label": "Brake Booster - Performance"
}, - {
- "code": "021AO",
- "label": "Standard Battery"
}, - {
- "code": "022CF",
- "label": "A/C Refrigerant - HF01234YF without IHX"
}, - {
- "code": "022DB",
- "label": "Label - A/C Charge"
}, - {
- "code": "025EZ",
- "label": "Voice Control"
}, - {
- "category": "infotainment",
- "code": "025LN",
- "label": "Meridian Surround Sound 825W - 17 głośników"
}, - {
- "code": "025NE",
- "label": "NGI Head Unit - Mid"
}, - {
- "code": "025OA",
- "label": "Navigation Centre"
}, - {
- "code": "025QA",
- "label": "Telematics TCU Module - ROW"
}, - {
- "code": "025QF",
- "label": "SOS/Assistance Call"
}, - {
- "code": "026FK",
- "label": "S/B - Elr/PLP LHD Pretensioner"
}, - {
- "code": "028FE",
- "label": "Towing Eye Cover - Black"
}, - {
- "category": null,
- "code": "028MG",
- "label": "Dojazdowe koło zapasowe SV"
}, - {
- "code": "029BA",
- "label": "Tyres Pirelli"
}, - {
- "code": "030BV",
- "label": "Ext Mirror Finish - Black Gloss"
}, - {
- "code": "030NW",
- "label": "Sensor Occupant (ROW) with PACOS)"
}, - {
- "code": "030YX",
- "label": "265/40 R22 All Season Tyre"
}, - {
- "code": "031BG",
- "label": "External mirrors convex"
}, - {
- "code": "031CG",
- "label": "Auto Dimming Rear View Mirror"
}, - {
- "code": "033GP",
- "label": "Cooled/heated front seats"
}, - {
- "code": "033IP",
- "label": "Drv/Pas Elec Ft Seat Memory"
}, - {
- "code": "033IR",
- "label": "Rear Seat Recline - Power"
}, - {
- "code": "033LM",
- "label": "RR Centre Armrest & Cupholder"
}, - {
- "code": "033LP",
- "label": "Split Fold Rear Seat - 40:20:40"
}, - {
- "code": "033LQ",
- "label": "Cushion Extension"
}, - {
- "code": "033WU",
- "label": "20-Way D&P Mem Mass Htd/Cld Front St Pk"
}, - {
- "code": "033XJ",
- "label": "Heated Rear Seats"
}, - {
- "code": "033XL",
- "label": "40:20:40 Fld Pwr Rcln Cntr A/Rst Htd Pk"
}, - {
- "code": "035AB",
- "label": "Fire Extinguisher"
}, - {
- "code": "036AC",
- "label": "Euro/Russia 3YR Connected Service Pack"
}, - {
- "code": "037AX",
- "label": "Downpipe - Sport"
}, - {
- "code": "038AP",
- "label": "KPH Speedometer"
}, - {
- "code": "040AQ",
- "label": "Heated Front Washer Jets (Windscreen)"
}, - {
- "code": "046AJ",
- "label": "Tank Pet w/o Leak Detection Std Filter"
}, - {
- "category": "interior",
- "code": "048BW",
- "label": "Metalowa nakładka na próg bagażnika"
}, - {
- "code": "049AS",
- "label": "Steering Column Lock"
}, - {
- "code": "053AP",
- "label": "Filler Neck Pet Non ORVR"
}, - {
- "code": "053BI",
- "label": "Fuel Filler Flap - Central Locking"
}, - {
- "category": null,
- "code": "054AQ",
- "label": "Pakiet Power Socket 1"
}, - {
- "code": "055AF",
- "label": "Non Locking Wheel Nuts"
}, - {
- "code": "056AY",
- "label": "Warning Triangle"
}, - {
- "code": "056DC",
- "label": "Service Interval 12 Months"
}, - {
- "code": "056EE",
- "label": "Service Distance 26,000 km"
}, - {
- "code": "057JL",
- "label": "Fam Badge-Range Rover Chrome Blk Knurled"
}, - {
- "code": "062DB",
- "label": "TPMS Warning Light Spec 20%"
}, - {
- "code": "064BU",
- "label": "Daytime Running Lamps"
}, - {
- "category": "interior",
- "code": "064EC",
- "label": "Oświetlenie wnętrza"
}, - {
- "code": "064HD",
- "label": "Grille - Graphite Atlas"
}, - {
- "code": "064HL",
- "label": "Headlamp Operation LHD -right justify"
}, - {
- "code": "066AC",
- "label": "Passive Entry/Push Button Start"
}, - {
- "code": "076CW",
- "label": "Dual Note Electric Horn"
}, - {
- "code": "076DF",
- "label": "434 MHz/non UWB Door Lock Frequency"
}, - {
- "code": "076EI",
- "label": "Double Locking"
}, - {
- "code": "076ER",
- "label": "Security sounder - No BBUS"
}, - {
- "code": "077BB",
- "label": "Vehicle Protection Cat 2"
}, - {
- "category": "exterior",
- "code": "080AN",
- "label": "Dach kontrastowy, czarny"
}, - {
- "code": "080ES",
- "label": "Bumpers- Autobiography"
}, - {
- "code": "080GL",
- "label": "Bumper Lower Valance Narvik Black"
}, - {
- "code": "080ST",
- "label": "Bodyside Cladding - Body Colour"
}, - {
- "code": "080TF",
- "label": "Side Vents - Graphite"
}, - {
- "code": "081EK",
- "label": "Bonnet Louvre - Graphite"
}, - {
- "code": "086IB",
- "label": "Forward Facing Camera"
}, - {
- "code": "087XL",
- "label": "Nav - Reg 1 Europe"
}, - {
- "category": null,
- "code": "088IE",
- "label": "System Terrain Response z programem Dynamicznym"
}, - {
- "code": "088JB",
- "label": "Handbook - Leather Cover"
}, - {
- "category": "interior",
- "code": "088JW",
- "label": "Shadow Aluminium"
}, - {
- "code": "095DB",
- "label": "Export Shipping ROW"
}, - {
- "code": "095JB",
- "label": "NGPTSQ (Low)"
}, - {
- "code": "095RD",
- "label": "Mapcare - Euro/Russ 3yr"
}, - {
- "code": "096FA",
- "label": "Fuel Label - ROW"
}, - {
- "code": "096TA",
- "label": "Pictoral -Air bag label -ROW,Jap,Mexico"
}, - {
- "code": "096TL",
- "label": "E Approval Label"
}, - {
- "code": "096UF",
- "label": "Tyre Recommended Plate - non English"
}, - {
- "code": "097AJ",
- "label": "Whole Vehicle Type Approval"
}, - {
- "code": "099AA",
- "label": "5 Door Estate"
}, - {
- "code": "100LR",
- "label": "Land Rover"
}, - {
- "code": "101AG",
- "label": "Standard Wheelbase (SWB)"
}, - {
- "code": "109AA",
- "label": "All Wheel Drive"
}, - {
- "code": "121AE",
- "label": "Engine Cooling Fan 850W"
}, - {
- "code": "129AC",
- "label": "No Onboard TV"
}, - {
- "code": "130AB",
- "label": "Air Cleaner- Dry /Single Stage"
}, - {
- "code": "145BM",
- "label": "Vin prefix position 10 - L"
}, - {
- "code": "145CE",
- "label": "2020 Model Year Parts"
}, - {
- "code": "153BC",
- "label": "Extra Engine Cooling"
}, - {
- "code": "180AC",
- "label": "Seat Cushion Power Fore/Aft"
}, - {
- "code": "180BC",
- "label": "Seat Cushion Power Height"
}, - {
- "code": "180CA",
- "label": "Seat Cushion Power Tilt"
}, - {
- "code": "180DB",
- "label": "Seat Squab Power Recline"
}, - {
- "code": "180FC",
- "label": "Front Headrest Power Height"
}, - {
- "code": "180GA",
- "label": "Front Headrest Manual Winged"
}, - {
- "code": "180HA",
- "label": "Seat Massage Front"
}, - {
- "code": "180JA",
- "label": "Front Seat Bolster - Power"
}, - {
- "code": "180KB",
- "label": "Front Seat Lumbar - 4 Way"
}, - {
- "code": "200DN",
- "label": "5L AJ133G2 P8 S/C SV"
}, - {
- "code": "219AA",
- "label": "KSK Instrument Panel Harness"
}, - {
- "code": "220AA",
- "label": "KSK Cabin Harness"
}, - {
- "code": "252SF",
- "label": "LHD"
}, - {
- "category": "seats",
- "code": "300BD",
- "label": "Wentylowane fotele przednie regulowane elektrycznie w 20 kierunkach z pamięcią ustawień i masażem, tylne podgrzewane"
}, - {
- "code": "300SE",
- "label": "L560 - Velar"
}, - {
- "code": "370AC",
- "label": "D7a"
}, - {
- "code": "800PG",
- "label": "Poland"
}, - {
- "code": "900AD",
- "label": "Solihull Assembly (UK)"
}, - {
- "code": "HM560",
- "label": "L560 5.0 SC AJ133 AWD 5DR SWB"
}, - {
- "code": "352QU",
- "label": "SVAutobiography Dyna 550PS Auto"
}, - {
- "code": "002BX",
- "label": "Polish Literature Pack"
}, - {
- "category": null,
- "code": "011BJ",
- "label": "InControl Remote"
}, - {
- "category": null,
- "code": "020JF",
- "label": "Przednie i tylne tarcze hamulcowe 395mm"
}, - {
- "code": "021HF",
- "label": "Trim level VR1"
}, - {
- "category": "interior",
- "code": "022BC",
- "label": "Klimatyzacja czterostrefowa"
}, - {
- "category": null,
- "code": "025JB",
- "label": "Radio DAB"
}, - {
- "category": null,
- "code": "025RC",
- "label": "Pro Services"
}, - {
- "category": null,
- "code": "027CW",
- "label": "System Adaptive Dynamics"
}, - {
- "category": null,
- "code": "027DC",
- "label": "Aktywny mechanizm różnicowy sterowany elektronicznie z systemem Torque Vectoring by Braking"
}, - {
- "category": null,
- "code": "027DE",
- "label": "Zawieszenie sportowe"
}, - {
- "category": "interior",
- "code": "030DH",
- "label": "Zamykany, chłodzony schowek przedni"
}, - {
- "category": null,
- "code": "030IA",
- "label": "Opony wielosezonowe"
}, - {
- "category": "exterior",
- "code": "030NK",
- "label": "Lusterka zewnętrzne, elektrochromatyczne, składane, podgrzewane"
}, - {
- "code": "030NT",
- "label": "Auto High Beam Assist"
}, - {
- "code": "032BU",
- "label": "Ebony Headlining"
}, - {
- "category": "convenience",
- "code": "032DV",
- "label": "Podgrzewana kierownica"
}, - {
- "category": "seats",
- "code": "032HN",
- "label": "Pakiet skórzane wnętrze SV z kontrastowym przeszyciem"
}, - {
- "category": "interior",
- "code": "032LH",
- "label": "Sportowa kierownica skórzana"
}, - {
- "category": "exterior",
- "code": "032MQ",
- "label": "Pakiet SV"
}, - {
- "code": "033TC",
- "label": "Windsor Leather Perforated AB Pattern"
}, - {
- "category": null,
- "code": "038ID",
- "label": "Interaktywny zestaw wskaźników 12,3\""
}, - {
- "category": "interior",
- "code": "041CZ",
- "label": "Otwierany dach panoramiczny"
}, - {
- "code": "041GJ",
- "label": "Version - SVA"
}, - {
- "category": "interior",
- "code": "048CB",
- "label": "Podświetlane (tylko z przodu), metalowe nakładki progowe drzwi"
}, - {
- "category": "interior",
- "code": "049AP",
- "label": "Elektrycznie regulowana kolumna kierownicza"
}, - {
- "category": "interior",
- "code": "051AJ",
- "label": "Jasne nakładki na pedały"
}, - {
- "code": "054EB",
- "label": "PowerPack 01"
}, - {
- "category": "exterior",
- "code": "057PL",
- "label": "Oznaczenie SVAutobiography Dynamic"
}, - {
- "code": "057YB",
- "label": "Badge Removal"
}, - {
- "category": null,
- "code": "062AD",
- "label": "System monitorowania ciśnienia w oponach (TPMS)"
}, - {
- "category": null,
- "code": "064AP",
- "label": "Światła przeciwmgielne"
}, - {
- "code": "064BV",
- "label": "Headlamp Power Washers"
}, - {
- "category": null,
- "code": "065EC",
- "label": "Układ hamowania awaryjnego"
}, - {
- "category": "exterior",
- "code": "070AR",
- "label": "Spoiler pokrywy bagażnika"
}, - {
- "category": "exterior",
- "code": "070AV",
- "label": "Elektrycznie sterowana pokrywa bagażnika"
}, - {
- "category": null,
- "code": "076EL",
- "label": "Czujnik włamania"
}, - {
- "category": "interior",
- "code": "078CP",
- "label": "Aluminiowe łopatki zmiany biegów"
}, - {
- "category": "interior",
- "code": "079DR",
- "label": "Maty gumowe super Premium"
}, - {
- "category": "safety",
- "code": "086BG",
- "label": "Asystent urzymywania pasie ruchu"
}, - {
- "category": "safety",
- "code": "086DC",
- "label": "System rozpozawania znaków drogowych i adaptacyjny ogranicznik prędkości"
}, - {
- "category": "safety",
- "code": "086DH",
- "label": "System monitorujący zmęczenie kierowcy"
}, - {
- "category": "safety",
- "code": "086GM",
- "label": "Asystent martwego pola widzenia"
}, - {
- "category": "safety",
- "code": "086KB",
- "label": "System monitorowania ruchu poprzecznego podczas cofania"
}, - {
- "category": "safety",
- "code": "086MB",
- "label": "Asystent parkowania"
}, - {
- "category": null,
- "code": "087AU",
- "label": "Nawigacja Pro"
}, - {
- "category": null,
- "code": "087CB",
- "label": "Układ hamowania awaryjnego z dużych prędkości"
}, - {
- "code": "088HE",
- "label": "Headlining - Suedecloth"
}, - {
- "category": "interior",
- "code": "089AQ",
- "label": "Chromowane nakładki boczne deski rozdzielczej"
}, - {
- "category": null,
- "code": "184AB",
- "label": "Konfigurowalny tryb dynamiczny"
}, - {
- "category": null,
- "code": "189AF",
- "label": "Czujniki parkowania 360⁰"
}
], - "features_optional": [
- {
- "category": null,
- "code": "017TE",
- "label": "Pakiet Driver Assist",
- "price": "4130.00"
}, - {
- "category": "interior",
- "code": "034BA",
- "label": "Dźwigienki składania tylnych foteli w bagazniku",
- "price": "730.00"
}, - {
- "code": "065AJ",
- "label": "ACC + Adaptive Lane Control"
}, - {
- "category": "exterior",
- "code": "040AK",
- "label": "Podgrzewana szyba czołowa",
- "price": "1890.00"
}, - {
- "category": "safety",
- "code": "086GC",
- "label": "System kamer Surround"
}, - {
- "category": "interior",
- "code": "022GB",
- "label": "Jonizator powietrza w kabinie",
- "price": "730.00"
}, - {
- "category": "exterior",
- "code": "047AB",
- "label": "Przyciemnione szyby tylne",
- "price": "2540.00"
}, - {
- "category": null,
- "code": "028EJ",
- "label": "Elektrycznie wysuwany hak holowniczy",
- "price": "6970.00"
}, - {
- "category": "exterior",
- "code": "031WH",
- "label": "22\" Style 5113, 5 split-spoke, Gloss Dark Grey",
- "price": "8390.00"
}, - {
- "category": "lights",
- "code": "064QD",
- "label": "Reflektory Matrix -Laser LED ze światłami do jazdy dziennej LED",
- "price": "11100.00"
}
], - "nameplate_name": "Range Rover Velar",
- "nameplate_brand_name": "Land Rover",
- "owner_locale": "pl-PL",
- "owner_name": "Ritchie-Kunde",
- "owner_city": "Hermistonshire",
- "owner_opening_hours": "Mon-Fri: 9:00 - 19:00\nSat: 11:00 - 18:00\nSun: Closed\n",
- "owner_contact_details": "31019 Velvet Rest\nLake Irafurt",
- "interior_color": null,
- "created_by": null,
- "price_hidden": false,
- "prices_type": null,
- "external_id": null,
- "footnote": null,
- "config_url": null,
- "subscribe_price": null,
- "type": "ActiveVehicle",
- "order_number": null,
- "model_display_name": "Land Rover Range Rover Velar",
- "price_metadata": { },
- "contains_drive_away_prices": false,
- "disclaimers": { },
- "price_breakdown": false,
- "base_price": null,
- "total_price": null,
- "status": "stock",
- "color_name": "Eiger Grey",
- "color_canonical": "gray",
- "cover_photo": null,
- "cover_photo_thumb": null,
- "cover_photo_small": null,
- "cover_photo_medium": null,
- "cover_photo_big": null,
- "cover_photo_full": null,
- "cover_photo_quarter_hd": null,
- "cover_photo_hd": null,
- "attachment_url": null
}, - "relationships": {
- "nameplate": {
- "data": {
- "id": "428",
- "type": "nameplate"
}
}, - "brand": {
- "data": {
- "id": "843",
- "type": "brand"
}
}, - "color": {
- "data": {
- "id": "484",
- "type": "color"
}
}, - "owner": {
- "data": {
- "id": "927",
- "type": "company"
}
}, - "listings": {
- "data": [ ]
}, - "photos": {
- "data": [ ]
}, - "pending_operation_requests": {
- "data": [ ]
}
}, - "links": {
- "all": "/vehicles"
}
}, - "included": [ ]
}
Represents vocabulary (and translations) stored in the database and used in feature suggestions. In fact, the database representation of Vocabulary
is FeatureSuggestion
but to make it more adjusted to the actual needs of the Vocabulary tab of the application, it is a separate resource in the API with separate data structure definition.
Vocabulary list is always paginated.
By default API will return up to 20 items.
Paginated results include pagination metadata in the meta
object like this:
"meta": {
"pagination": {
//URL template to fetch additonal pages (PAGE_NUM) should be replaced by page number
"scaffold_url": "...?page=PAGE_NUM",
"count": 50, // Overall amount of vehicles in collection
"page": 3, // Current page number
"items": 20, // Amount of items page page
"pages": 3, // Amount of all pages
"last": 3, // Last page number
"from": 20, // index of first item on current page
"to": 30, // index of last item on current page
"prev": 2, // previous page number, null if no previous page
"next": 4 // next page number, null if no next page
}
}
page required | number Example: page=2 Pagination page to be requested (default: 1) |
Accept | any Example: application/vnd.api+json |
X-Company-UUID | any Example: 6e71d9fc-96ad-467f-80ac-c5b39e327f6c |
Authorization | any Example: Bearer STUB_TOKEN_STRING |
Content-Type | any Example: application/vnd.api+json |
{- "meta": {
- "pagination": {
- "scaffold_url": "/vocabulary?page=PAGE_NUM",
- "count": 51,
- "page": 3,
- "items": 0,
- "pages": 2,
- "last": 2,
- "from": 0,
- "to": 0,
- "prev": 2,
- "next": null
}
}, - "data": [ ]
}
Filtering mechanism utilises quite powerful Ransack gem engine
filter
attributeTo filter results one should use filter[]
GET parameter
object with each search/filter criteria as a separate parameter entry.
this parameters entries should adher to format of filter[:attribute_filtered:_:matcher_operator:]=value1
.
attribute_filter
partIn general it's possible to filter by all object parameters that can be seen in
a typical API response. For vocabulary it includes code
, category
, brand_code
etc.
matcher
partFull list of all available matcher operators can be seen here: https://github.com/activerecord-hackery/ransack#search-matchers
Most usefull and important ones are:
Matcher | Description |
---|---|
_eq | Equality |
_gt | Greater then |
_gteq | Greater than or equal |
_lt | Less then |
_lteq | Less than or equal |
_start | Starts with |
_i_cont | Contains value with (case insensitive) |
_cont | Contains value with (case sensitive) |
_in | Match any values in an array. Eg: filter[name_in][]=Alice&filter[name_in][]=Bob |
search
allows you to filter objects by several attributes at once category
, code
, original_description
, label
or brand_code
It should be pair with macher from above for example filter[search_cont]=mazda
filter[search_cont] required | string Example: filter[search_cont]=020BE Filtred items to be requested |
Accept | any Example: application/vnd.api+json |
X-Company-UUID | any Example: 84bf1335-e885-4758-830f-8ce614e8d780 |
Authorization | any Example: Bearer STUB_TOKEN_STRING |
Content-Type | any Example: application/vnd.api+json |
{- "data": [
- {
- "id": "126",
- "type": "vocabulary",
- "attributes": {
- "code": "1E0D76",
- "original_description": null,
- "category": "interior",
- "brand_code": "mazda",
- "owner_id": 943,
- "translation": "Expelliarmus Magical Menagerie"
}
}, - {
- "id": "132",
- "type": "vocabulary",
- "attributes": {
- "code": "3B2CD9",
- "original_description": null,
- "category": "lights",
- "brand_code": "mazda",
- "owner_id": 943,
- "translation": "Crucio Weasleys' Wizard Wheezes"
}
}, - {
- "id": "128",
- "type": "vocabulary",
- "attributes": {
- "code": "406E6B",
- "original_description": null,
- "category": "local_pack",
- "brand_code": "mazda",
- "owner_id": 943,
- "translation": "Reparo Slug and Jiggers Apothecary"
}
}, - {
- "id": "130",
- "type": "vocabulary",
- "attributes": {
- "code": "588081",
- "original_description": null,
- "category": "seats",
- "brand_code": "mazda",
- "owner_id": 943,
- "translation": "Alohomora Eeylops Owl Emporium"
}
}, - {
- "id": "131",
- "type": "vocabulary",
- "attributes": {
- "code": "61D111",
- "original_description": null,
- "category": "convenience",
- "brand_code": "mazda",
- "owner_id": 943,
- "translation": "Expecto Patronum Durmstrang"
}
}, - {
- "id": "129",
- "type": "vocabulary",
- "attributes": {
- "code": "6349E9",
- "original_description": null,
- "category": "convenience",
- "brand_code": "mazda",
- "owner_id": 943,
- "translation": "Crucio Florean Fortescue's Ice Cream Parlour"
}
}, - {
- "id": "127",
- "type": "vocabulary",
- "attributes": {
- "code": "6357F3",
- "original_description": null,
- "category": "safety",
- "brand_code": "mazda",
- "owner_id": 943,
- "translation": "Crucio St. Mungo's Hospital for Magical Maladies and Injuries"
}
}, - {
- "id": "133",
- "type": "vocabulary",
- "attributes": {
- "code": "AD7C2A",
- "original_description": null,
- "category": "safety",
- "brand_code": "mazda",
- "owner_id": 943,
- "translation": "Reparo Honeydukes"
}
}, - {
- "id": "125",
- "type": "vocabulary",
- "attributes": {
- "code": "DA2126",
- "original_description": null,
- "category": "seats",
- "brand_code": "mazda",
- "owner_id": 943,
- "translation": "Reparo Zonko's Joke Shop"
}
}, - {
- "id": "134",
- "type": "vocabulary",
- "attributes": {
- "code": "E72427",
- "original_description": null,
- "category": "performance",
- "brand_code": "mazda",
- "owner_id": 943,
- "translation": "Avada Kedavra Slug and Jiggers Apothecary"
}
}
], - "meta": {
- "pagination": {
- "scaffold_url": "/vocabulary?filter%5Bsearch_cont%5D=mazda&page=PAGE_NUM",
- "count": 10,
- "page": 1,
- "items": 10,
- "pages": 1,
- "last": 1,
- "from": 1,
- "to": 10,
- "prev": null,
- "next": null
}
}
}
Accept | any Example: application/vnd.api+json |
X-Company-UUID | any Example: 04412506-c21c-4a30-b298-9ab58f34abc2 |
Authorization | any Example: Bearer STUB_TOKEN_STRING |
Content-Type | any Example: application/vnd.api+json |
{- "data": [
- {
- "id": "137",
- "type": "vocabulary",
- "attributes": {
- "code": "A1",
- "original_description": "Lumos Gambol and Japes",
- "category": "performance",
- "brand_code": "jlr",
- "owner_id": 946,
- "translation": "Wingardium Leviosa Stalls"
}
}, - {
- "id": "138",
- "type": "vocabulary",
- "attributes": {
- "code": "B1",
- "original_description": null,
- "category": "wheels",
- "brand_code": "jlr",
- "owner_id": 945,
- "translation": "Obliviate Hogwarts"
}
}, - {
- "id": "140",
- "type": "vocabulary",
- "attributes": {
- "code": "C1",
- "original_description": "Avada Kedavra Slug and Jiggers Apothecary",
- "category": "safety",
- "brand_code": "jlr",
- "owner_id": 945,
- "translation": "Accio Potage's Cauldron Shop"
}
}
], - "meta": {
- "pagination": {
- "scaffold_url": "/vocabulary?page=PAGE_NUM",
- "count": 3,
- "page": 1,
- "items": 3,
- "pages": 1,
- "last": 1,
- "from": 1,
- "to": 3,
- "prev": null,
- "next": null
}
}
}
Accept | any Example: application/vnd.api+json |
X-Company-UUID | any Example: c28faf8f-1feb-4182-888f-d5d0cbdaf125 |
Authorization | any Example: Bearer STUB_TOKEN_STRING |
Content-Type | any Example: application/vnd.api+json |
{- "data": {
- "attributes": {
- "code": "ABC",
- "category": "lights",
- "label": "Some label",
- "brand_code": "jlr"
}
}
}
{- "data": {
- "id": "143",
- "type": "vocabulary",
- "attributes": {
- "code": "ABC",
- "original_description": null,
- "category": "lights",
- "brand_code": "jlr",
- "owner_id": 948,
- "translation": "Some label"
}
}
}
code | string Example: A1 |
Accept | any Example: application/vnd.api+json |
X-Company-UUID | any Example: f31e497c-5171-4661-af66-d510fa02b5ed |
Authorization | any Example: Bearer STUB_TOKEN_STRING |
Content-Type | any Example: application/vnd.api+json |
{- "data": {
- "attributes": {
- "category": "lights",
- "label": "Lampy Matrycowe LED",
- "brand_code": "jlr"
}
}
}
{- "data": {
- "id": "149",
- "type": "vocabulary",
- "attributes": {
- "code": "A1",
- "original_description": "Lumos Gambol and Japes",
- "category": "lights",
- "brand_code": "jlr",
- "owner_id": 957,
- "translation": "Lampy Matrycowe LED"
}
}
}
All actions performed on Vehicle
objects need to happen in context of Company
object.
The Company is determined based on X-Company-UUID
header value. This value should contain uuid
attribute of
Company
obejct.
If header is not present API will raise 400 - Bad Request
response with information about missing header
If header is present but no Company with provided uuid
values is present in the database the 404 - Not Found
response is given.
Accept | any Example: application/vnd.api+json |
Authorization | any Example: Bearer STUB_TOKEN_STRING |
Content-Type | any Example: application/vnd.api+json |
X-Company-UUID | any Example: bad-uuid-value |
{- "errors": [
- {
- "status": 400,
- "source": null,
- "title": "Bad Request",
- "detail": "X-Company-UUID header is missing"
}
]
}
Vehicle Standard and optional feature lists are stored in separate attributes (features_standard
and features_optional
) as validated JSON array.
Validation happens based on JSON Schema defined like this:
{
"type": "array",
"items": {
"type": "object",
"required": [
"label"
],
"properties": {
"code": {
"type": "string"
},
"label": {
"type": "string",
"minLength": 1
},
"category": {
"type": "string",
"enum": [
"exterior",
"interior",
"lights",
"safety",
"wheels",
"seats",
"performance",
"infotainment",
"convenience"
]
}
},
"additionalProperties": false
}
}
To put it more clearly each feature shoudl be simple object with string properties.
Only one property is required (label
). Properties code
and category
are optional.
label
needs to contain at least 1 character, meaning it cannot be emoty string!
category
values are expected to come from closed list of values:
"exterior", "interior", "lights", "safety", "wheels", "seats", "performance", "infotainment", "convenience"
[
{
"code": "XXX123",
"label": "Heated Windshield",
"category": "convenience"
},
{
"label": "22' Bespoke Wheels",
"category": "wheels"
},
{
"code": "YYYZZZ",
"label": "Custom Paint"
},
]
Each JSON Schema validation error will be returned as a separate validation error with human readable description message.
Validation Example can be seen bellow in test cases.
NOTE: Those messages should not be presented to the end user. Their intent is to be used for debuging purposes only!
id | number Example: 382 |
Accept | any Example: application/vnd.api+json |
X-Company-UUID | any Example: 02e55e24-f7c8-4bf6-b7e4-46a5fec5be9f |
Authorization | any Example: Bearer STUB_TOKEN_STRING |
Content-Type | any Example: application/vnd.api+json |
{- "data": {
- "attributes": {
- "features_optional": [
- {
- "label": "Feature Label",
- "category": "performance"
}
]
}, - "relationships": {
- "owner": {
- "data": {
- "id": 868
}
}
}
}
}
{- "data": {
- "id": "382",
- "type": "vehicle",
- "attributes": {
- "version": "Multiversity",
- "drivetrain": "Detective Comics",
- "production_year": 2018,
- "short_description": "Eius amet ut natus molestiae aliquid dignissimos soluta omnis esse.",
- "msrp_price": "28386.0",
- "sale_price": null,
- "monthly_price": null,
- "long_description": "Molestiae ex nihil earum amet natus eos excepturi labore consectetur veritatis sit veniam corrupti qui vel facilis est et maiores.",
- "state": "approved",
- "delivery_date": "2024-12-01",
- "transmission": "auto",
- "vin": null,
- "mileage": 557425,
- "engine_capacity": null,
- "battery_capacity": null,
- "engine_type": [
- "petrol"
], - "power": 432,
- "video_url": null,
- "created_at": "2024-11-20T08:09:48.720Z",
- "updated_at": "2024-11-20T08:09:48.748Z",
- "power_unit": "bhp",
- "currency": "FJD",
- "mileage_unit": "km",
- "engine_capacity_unit": "cc",
- "engine_capacity_normalized": null,
- "features_standard": [ ],
- "features_optional": [
- {
- "label": "Feature Label",
- "category": "performance"
}
], - "nameplate_name": "Human",
- "nameplate_brand_name": "Mitsubishi",
- "owner_locale": "pl_PL",
- "owner_name": "Cummings-Wiza",
- "owner_city": "New Cliff",
- "owner_opening_hours": "Mon-Fri: 9:00 - 19:00\nSat: 11:00 - 18:00\nSun: Closed\n",
- "owner_contact_details": "56510 Nedra Roads\nMileston",
- "interior_color": "Ebony",
- "created_by": null,
- "price_hidden": false,
- "prices_type": null,
- "external_id": "4064a2",
- "footnote": "Quae expedita possimus laboriosam quis sint aspernatur consectetur enim error.",
- "config_url": null,
- "subscribe_price": null,
- "type": "ActiveVehicle",
- "order_number": null,
- "model_display_name": "Mitsubishi Human",
- "price_metadata": { },
- "contains_drive_away_prices": false,
- "disclaimers": { },
- "price_breakdown": false,
- "base_price": null,
- "total_price": "0.0",
- "status": "reserved",
- "color_name": "Chocolate Iron",
- "color_canonical": "bronze",
- "cover_photo": null,
- "cover_photo_thumb": null,
- "cover_photo_small": null,
- "cover_photo_medium": null,
- "cover_photo_big": null,
- "cover_photo_full": null,
- "cover_photo_quarter_hd": null,
- "cover_photo_hd": null,
- "attachment_url": null
}, - "relationships": {
- "nameplate": {
- "data": {
- "id": "382",
- "type": "nameplate"
}
}, - "brand": {
- "data": {
- "id": "722",
- "type": "brand"
}
}, - "color": {
- "data": {
- "id": "389",
- "type": "color"
}
}, - "owner": {
- "data": {
- "id": "868",
- "type": "company"
}
}, - "listings": {
- "data": [ ]
}, - "photos": {
- "data": [ ]
}, - "pending_operation_requests": {
- "data": [ ]
}
}, - "links": {
- "self": "/vehicles/382",
- "all": "/vehicles"
}
}
}
Filtering mechanism utilises quite powerful Ransack gem engine
Prefilters are parameters used to filter vehicles before any counting or dynamic filtering takes place. They are simple filters without any predicates. There are two perfilters:
forced_brands_names - filters vehicles by brand names separated by comma, ex. forced_brands_names=Land Rover,Jaguar
forced_dealer_codes - filters vehicles by owner dealer codes, separated by comma, ex. forced_dealer_codes=50001,50002
forced_statuses - filters vehicles by statuses, separated by comma, ex. forced_dealer_codes=reserved,sold
filter
attributeTo filter results one should use filter[]
GET parameter
object with each search/filter criteria as a separate parameter entry.
this parameters entries should adher to format of filter[:attribute_filtered:_:matcher_operator:]=value1
.
attribute_filter
partIn general it's possible to filter by all object parameters that can be seen in
a typical API response. For vehicles it includes version
, drivetrain
, production_year
etc.
However, there's one non-standard attribute that you can filter by - display_price
. It filters/sorts vehicles
by the actual Vehicle price (so it checks whether a vehicle has sale_price
value - if not, it takes msrp_price
for that vehicle as the current price).
On top of that one can filter based on selected related models by concatenating relationship name and related obejct attribute. For example Nameplate
name is not stored in the Vehicle
model but it can ge used as filter parameter as nameplate_name
.
This kind of relationship searches can go deeper. Since Brand
is related to Nameplate
not Vechile
itself, to filter vehicles by Brand
name we should user nameplate_brand_name
attributes.
matcher
partFull list of all available matcher operators can be seen here: https://github.com/activerecord-hackery/ransack#search-matchers
Most usefull and important ones are:
Matcher | Description |
---|---|
_eq | Equality |
_gt | Greater then |
_gteq | Greater than or equal |
_lt | Less then |
_lteq | Less than or equal |
_start | Starts with |
_i_cont | Contains value with (case insensitive) |
_cont | Contains value with (case sensitive) |
_in | Match any values separated by comma Eg: filter[name_in]=Bob,Alice |
To return vehicles which match one of multiple filters, or
operator has to be used. For example, to search for vehicles which vin
or order_number
start with some value filter should looke like this:
filter[vin_or_order_number_start]=123
engine_types
and owner_dealers_codes
are specific parameters due to the fact they are stored as array in the database so
simple string-based cont
predicates will not work. To filter based on this array content new predicate _includes
was added. So to filter for all "Petrol" powered vehicles request should look like this:
filter[engine_type_includes]=petrol
This will return both hybrid and non-hybrid Vehicles as long as they also include petrol in engine_type
array
Multiple engine types can be searched separated by comma:
filter[engine_type_includes]=petrol,bev
Will return petrol as well as bev engines
financing options
is a specific parameter based on scope and does not have any predicates. To use it chosen values separated by comma have to be provided:
filter[financing_options]=cash,lease,rent
status
filter is based on two attributes. It filters vehicles by status
attribute and also checks lock_id
which indicates that vehicle is soft-locked. In case it is soft-locked it is searched as it would be of reserved
status. Because of that status
filter is processed outside ransack and accepts _eq
and _in
predicates only.
To Search Vechiles with production year beetween 2015 and 2018:
filter[production_year_gteq]=2015&filter[production_year_lteq]=2018
To Search all Jaguars
filter[nameplate_brand_name_eq]=Jaguar
To Search all Vechiles with HSE in version
filter[version_i_cont]=HSE
filter required | object |
Accept | any Example: application/vnd.api+json |
X-Company-UUID | any Example: ddc17b52-0275-40c6-9128-4f77cc98cb99 |
Authorization | any Example: Bearer STUB_TOKEN_STRING |
Content-Type | any Example: application/vnd.api+json |
{- "data": [
- {
- "id": "385",
- "type": "vehicle",
- "attributes": {
- "version": "Kingdom Come",
- "drivetrain": "JLA: Tower Of Babel",
- "production_year": 2014,
- "short_description": "Nemo commodi dolorem quam similique cumque sint quia iure quia.",
- "msrp_price": "22241.0",
- "sale_price": null,
- "monthly_price": null,
- "long_description": "Maxime temporibus sed consectetur aut id doloremque sint a vitae perferendis quidem illo cumque vel et assumenda cupiditate porro eaque.",
- "state": "new",
- "delivery_date": "2024-12-12",
- "transmission": "auto",
- "vin": null,
- "mileage": 510380,
- "engine_capacity": null,
- "battery_capacity": null,
- "engine_type": [
- "petrol",
- "phev"
], - "power": 420,
- "video_url": null,
- "created_at": "2024-11-20T08:09:48.890Z",
- "updated_at": "2024-11-20T08:09:48.890Z",
- "power_unit": "bhp",
- "currency": "GBP",
- "mileage_unit": "km",
- "engine_capacity_unit": "cc",
- "engine_capacity_normalized": null,
- "features_standard": [ ],
- "features_optional": [ ],
- "nameplate_name": "Hooloovoo",
- "nameplate_brand_name": "MG",
- "owner_locale": "se_SE",
- "owner_name": "Ritchie-Kunde",
- "owner_city": "Hermistonshire",
- "owner_opening_hours": "Mon-Fri: 9:00 - 19:00\nSat: 11:00 - 18:00\nSun: Closed\n",
- "owner_contact_details": "31019 Velvet Rest\nLake Irafurt",
- "interior_color": "Ebony",
- "created_by": null,
- "price_hidden": false,
- "prices_type": null,
- "external_id": "d373b0",
- "footnote": "Et aspernatur libero quisquam et fuga quas est et minima.",
- "config_url": null,
- "subscribe_price": null,
- "type": "ActiveVehicle",
- "order_number": null,
- "model_display_name": "MG Hooloovoo",
- "price_metadata": { },
- "contains_drive_away_prices": false,
- "disclaimers": { },
- "price_breakdown": false,
- "base_price": null,
- "total_price": null,
- "status": "reserved",
- "color_name": "Olive Paper",
- "color_canonical": "bronze",
- "cover_photo": null,
- "cover_photo_thumb": null,
- "cover_photo_small": null,
- "cover_photo_medium": null,
- "cover_photo_big": null,
- "cover_photo_full": null,
- "cover_photo_quarter_hd": null,
- "cover_photo_hd": null,
- "attachment_url": null
}, - "relationships": {
- "nameplate": {
- "data": {
- "id": "385",
- "type": "nameplate"
}
}, - "brand": {
- "data": {
- "id": "729",
- "type": "brand"
}
}, - "color": {
- "data": {
- "id": "392",
- "type": "color"
}
}, - "owner": {
- "data": {
- "id": "871",
- "type": "company"
}
}, - "listings": {
- "data": [ ]
}, - "photos": {
- "data": [ ]
}, - "pending_operation_requests": {
- "data": [ ]
}
}, - "links": {
- "self": "/vehicles/385",
- "all": "/vehicles"
}
}
], - "meta": {
- "pagination": {
- "scaffold_url": "/vehicles?filter%5Bengine_type_includes%5D=phev&page=PAGE_NUM",
- "count": 1,
- "page": 1,
- "items": 1,
- "pages": 1,
- "last": 1,
- "from": 1,
- "to": 1,
- "prev": null,
- "next": null
}
}
}
Simliast to Filtering the sorting mechanism utilises quite powerful Ransack gem engine
sort
attributeTo sort results one should use sort
GET parameter as a list of collumns that records should be sorted by.
By default sorting works in natura ascending order. To use the ascending order (usefull for prices) column name should
be predicated with minus (-
, U+002D HYPHEN-MINUS) character
To Sort Vechiles in ascending order by msrp_price
sort=msrp_price
To Sort Vechiles in descending order by msrp_price
sort=-msrp_price
To Sort Vechiles in ascending order by production year and then in descending order by msrp_price
sort=production_year,-msrp_price
sort required | string Example: sort=msrp_price Comma separated list of columns to sort vehicles by |
Accept | any Example: application/vnd.api+json |
X-Company-UUID | any Example: 8df09b29-0b56-466e-87d8-e2d27e396e8e |
Authorization | any Example: Bearer STUB_TOKEN_STRING |
Content-Type | any Example: application/vnd.api+json |
{- "data": [
- {
- "id": "392",
- "type": "vehicle",
- "attributes": {
- "version": "Kingdom Come",
- "drivetrain": "Multiversity",
- "production_year": 2011,
- "short_description": "Molestiae eos et illo dignissimos ullam eius corporis dolor eum.",
- "msrp_price": "2000.0",
- "sale_price": null,
- "monthly_price": null,
- "long_description": "Molestiae illum amet provident hic qui quia odio voluptatem optio est nisi ut deserunt suscipit a reiciendis architecto qui vitae.",
- "state": "new",
- "delivery_date": "2024-12-17",
- "transmission": "manual",
- "vin": null,
- "mileage": 548226,
- "engine_capacity": null,
- "battery_capacity": null,
- "engine_type": [
- "phev"
], - "power": 331,
- "video_url": null,
- "created_at": "2024-11-20T08:09:49.144Z",
- "updated_at": "2024-11-20T08:09:49.144Z",
- "power_unit": "bhp",
- "currency": "GBP",
- "mileage_unit": "km",
- "engine_capacity_unit": "cc",
- "engine_capacity_normalized": null,
- "features_standard": [ ],
- "features_optional": [ ],
- "nameplate_name": "Mattress",
- "nameplate_brand_name": "MG",
- "owner_locale": "en_IE",
- "owner_name": "Ritchie-Kunde",
- "owner_city": "Hermistonshire",
- "owner_opening_hours": "Mon-Fri: 9:00 - 19:00\nSat: 11:00 - 18:00\nSun: Closed\n",
- "owner_contact_details": "31019 Velvet Rest\nLake Irafurt",
- "interior_color": "Ebony",
- "created_by": null,
- "price_hidden": false,
- "prices_type": null,
- "external_id": "c928ef",
- "footnote": "Fugiat quo animi veniam similique laborum modi quis deleniti dicta.",
- "config_url": null,
- "subscribe_price": null,
- "type": "ActiveVehicle",
- "order_number": null,
- "model_display_name": "MG Mattress",
- "price_metadata": { },
- "contains_drive_away_prices": false,
- "disclaimers": { },
- "price_breakdown": false,
- "base_price": null,
- "total_price": null,
- "status": "stock",
- "color_name": "Olive Marble",
- "color_canonical": "gray",
- "cover_photo": null,
- "cover_photo_thumb": null,
- "cover_photo_small": null,
- "cover_photo_medium": null,
- "cover_photo_big": null,
- "cover_photo_full": null,
- "cover_photo_quarter_hd": null,
- "cover_photo_hd": null,
- "attachment_url": null
}, - "relationships": {
- "nameplate": {
- "data": {
- "id": "395",
- "type": "nameplate"
}
}, - "brand": {
- "data": {
- "id": "742",
- "type": "brand"
}
}, - "color": {
- "data": {
- "id": "399",
- "type": "color"
}
}, - "owner": {
- "data": {
- "id": "875",
- "type": "company"
}
}, - "listings": {
- "data": [ ]
}, - "photos": {
- "data": [ ]
}, - "pending_operation_requests": {
- "data": [ ]
}
}, - "links": {
- "self": "/vehicles/392",
- "all": "/vehicles"
}
}, - {
- "id": "391",
- "type": "vehicle",
- "attributes": {
- "version": "Teen Titans: The Judas Contract",
- "drivetrain": "Batman: Year One",
- "production_year": 2011,
- "short_description": "Nemo ea fugiat esse error optio excepturi quia voluptas quia.",
- "msrp_price": "1000.0",
- "sale_price": null,
- "monthly_price": null,
- "long_description": "Maxime temporibus sed consectetur aut id doloremque sint a vitae perferendis quidem illo cumque vel et assumenda cupiditate porro eaque.",
- "state": "used",
- "delivery_date": "2024-12-01",
- "transmission": "manual",
- "vin": null,
- "mileage": 868043,
- "engine_capacity": null,
- "battery_capacity": null,
- "engine_type": [
- "mhev"
], - "power": 330,
- "video_url": null,
- "created_at": "2024-11-20T08:09:49.131Z",
- "updated_at": "2024-11-20T08:09:49.131Z",
- "power_unit": "bhp",
- "currency": "GBP",
- "mileage_unit": "km",
- "engine_capacity_unit": "cc",
- "engine_capacity_normalized": null,
- "features_standard": [ ],
- "features_optional": [ ],
- "nameplate_name": "Mattress",
- "nameplate_brand_name": "MG",
- "owner_locale": "en_IE",
- "owner_name": "Ritchie-Kunde",
- "owner_city": "Hermistonshire",
- "owner_opening_hours": "Mon-Fri: 9:00 - 19:00\nSat: 11:00 - 18:00\nSun: Closed\n",
- "owner_contact_details": "31019 Velvet Rest\nLake Irafurt",
- "interior_color": "Ebony",
- "created_by": null,
- "price_hidden": false,
- "prices_type": null,
- "external_id": "53b758",
- "footnote": "Et aspernatur libero quisquam et fuga quas est et minima.",
- "config_url": null,
- "subscribe_price": null,
- "type": "ActiveVehicle",
- "order_number": null,
- "model_display_name": "MG Mattress",
- "price_metadata": { },
- "contains_drive_away_prices": false,
- "disclaimers": { },
- "price_breakdown": false,
- "base_price": null,
- "total_price": null,
- "status": "on_demand",
- "color_name": "Olive Paper",
- "color_canonical": "red",
- "cover_photo": null,
- "cover_photo_thumb": null,
- "cover_photo_small": null,
- "cover_photo_medium": null,
- "cover_photo_big": null,
- "cover_photo_full": null,
- "cover_photo_quarter_hd": null,
- "cover_photo_hd": null,
- "attachment_url": null
}, - "relationships": {
- "nameplate": {
- "data": {
- "id": "395",
- "type": "nameplate"
}
}, - "brand": {
- "data": {
- "id": "742",
- "type": "brand"
}
}, - "color": {
- "data": {
- "id": "398",
- "type": "color"
}
}, - "owner": {
- "data": {
- "id": "875",
- "type": "company"
}
}, - "listings": {
- "data": [ ]
}, - "photos": {
- "data": [ ]
}, - "pending_operation_requests": {
- "data": [ ]
}
}, - "links": {
- "self": "/vehicles/391",
- "all": "/vehicles"
}
}
], - "meta": {
- "pagination": {
- "scaffold_url": "/vehicles?sort=-msrp_price&page=PAGE_NUM",
- "count": 2,
- "page": 1,
- "items": 2,
- "pages": 1,
- "last": 1,
- "from": 1,
- "to": 2,
- "prev": null,
- "next": null
}
}
}
Vehicles list is always paginated.
By default API will return up to 20 items but it can be overriden using items
parameter.
Here we use items=2
bo brevity but it's optional and set to 20 by default.
Paginated results include pagination metadata in the meta
object like this:
"meta": {
"pagination": {
//URL template to fetch additonal pages (PAGE_NUM) should be replaced by page number
"scaffold_url": "...?items=2&page=PAGE_NUM",
"count": 50, // Overall amount of vehicles in collection
"page": 3, // Current page number
"items": 2, // Amount of items page page
"pages": 25, // Amount of all pages
"last": 25, // Last page number
"from": 5, // index of first item on current page
"to": 6, // index of last item on current page
"prev": 2, // previous page number, null if no previous page
"next": 4 // next page number, null if no next page
}
}
page required | number Example: page=2 Pagination page to be requested (default: 1) |
items required | number Example: items=3 Amount of items per page (default: 20) |
Accept | any Example: application/vnd.api+json |
X-Company-UUID | any Example: a0c624e5-78f5-432a-8fa0-d200cfa0a58b |
Authorization | any Example: Bearer STUB_TOKEN_STRING |
Content-Type | any Example: application/vnd.api+json |
{- "data": [
- {
- "id": "403",
- "type": "vehicle",
- "attributes": {
- "version": "Grant Morrison's Animal Man",
- "drivetrain": "JLA: Earth 2",
- "production_year": 2009,
- "short_description": "Fuga libero eius quo quod quis earum quia voluptas eveniet.",
- "msrp_price": "33532.0",
- "sale_price": null,
- "monthly_price": null,
- "long_description": "Error deserunt non delectus praesentium totam dolor hic voluptatem possimus cupiditate ut exercitationem consectetur aperiam maiores nisi accusamus quia repellendus.",
- "state": "new",
- "delivery_date": "2024-11-26",
- "transmission": "manual",
- "vin": null,
- "mileage": 775677,
- "engine_capacity": null,
- "battery_capacity": null,
- "engine_type": [
- "bev"
], - "power": 191,
- "video_url": null,
- "created_at": "2024-11-20T08:09:49.454Z",
- "updated_at": "2024-11-20T08:09:49.454Z",
- "power_unit": "bhp",
- "currency": "GBP",
- "mileage_unit": "km",
- "engine_capacity_unit": "cc",
- "engine_capacity_normalized": null,
- "features_standard": [ ],
- "features_optional": [ ],
- "nameplate_name": "Mattress",
- "nameplate_brand_name": "MG",
- "owner_locale": "en_GB",
- "owner_name": "Ritchie-Kunde",
- "owner_city": "Hermistonshire",
- "owner_opening_hours": "Mon-Fri: 9:00 - 19:00\nSat: 11:00 - 18:00\nSun: Closed\n",
- "owner_contact_details": "31019 Velvet Rest\nLake Irafurt",
- "interior_color": "Ebony",
- "created_by": null,
- "price_hidden": false,
- "prices_type": null,
- "external_id": "a30eda",
- "footnote": "Cumque accusamus voluptatem eos quaerat dolores velit tempora id qui.",
- "config_url": null,
- "subscribe_price": null,
- "type": "ActiveVehicle",
- "order_number": null,
- "model_display_name": "MG Mattress",
- "price_metadata": { },
- "contains_drive_away_prices": false,
- "disclaimers": { },
- "price_breakdown": false,
- "base_price": null,
- "total_price": null,
- "status": "sold",
- "color_name": "Cerulean Granite",
- "color_canonical": "bronze",
- "cover_photo": null,
- "cover_photo_thumb": null,
- "cover_photo_small": null,
- "cover_photo_medium": null,
- "cover_photo_big": null,
- "cover_photo_full": null,
- "cover_photo_quarter_hd": null,
- "cover_photo_hd": null,
- "attachment_url": null
}, - "relationships": {
- "nameplate": {
- "data": {
- "id": "398",
- "type": "nameplate"
}
}, - "brand": {
- "data": {
- "id": "753",
- "type": "brand"
}
}, - "color": {
- "data": {
- "id": "406",
- "type": "color"
}
}, - "owner": {
- "data": {
- "id": "880",
- "type": "company"
}
}, - "listings": {
- "data": [ ]
}, - "photos": {
- "data": [ ]
}, - "pending_operation_requests": {
- "data": [ ]
}
}, - "links": {
- "self": "/vehicles/403",
- "all": "/vehicles"
}
}, - {
- "id": "404",
- "type": "vehicle",
- "attributes": {
- "version": "Doom Patrol",
- "drivetrain": "Superman: Red Son",
- "production_year": 2013,
- "short_description": "Voluptatem nemo et et facilis ullam dolor id non commodi.",
- "msrp_price": "47690.0",
- "sale_price": null,
- "monthly_price": null,
- "long_description": "Sed ab blanditiis doloribus eligendi tenetur hic et aut illo officia tempore eos ducimus placeat sed harum sint sunt quisquam.",
- "state": "approved",
- "delivery_date": "2024-11-28",
- "transmission": "manual",
- "vin": null,
- "mileage": 649064,
- "engine_capacity": null,
- "battery_capacity": null,
- "engine_type": [
- "phev"
], - "power": 364,
- "video_url": null,
- "created_at": "2024-11-20T08:09:49.466Z",
- "updated_at": "2024-11-20T08:09:49.466Z",
- "power_unit": "bhp",
- "currency": "GBP",
- "mileage_unit": "km",
- "engine_capacity_unit": "cc",
- "engine_capacity_normalized": null,
- "features_standard": [ ],
- "features_optional": [ ],
- "nameplate_name": "Mattress",
- "nameplate_brand_name": "MG",
- "owner_locale": "en_GB",
- "owner_name": "Ritchie-Kunde",
- "owner_city": "Hermistonshire",
- "owner_opening_hours": "Mon-Fri: 9:00 - 19:00\nSat: 11:00 - 18:00\nSun: Closed\n",
- "owner_contact_details": "31019 Velvet Rest\nLake Irafurt",
- "interior_color": "Ebony",
- "created_by": null,
- "price_hidden": false,
- "prices_type": null,
- "external_id": "dba655",
- "footnote": "Voluptates et culpa voluptas ipsam corrupti sapiente officiis et inventore.",
- "config_url": null,
- "subscribe_price": null,
- "type": "ActiveVehicle",
- "order_number": null,
- "model_display_name": "MG Mattress",
- "price_metadata": { },
- "contains_drive_away_prices": false,
- "disclaimers": { },
- "price_breakdown": false,
- "base_price": null,
- "total_price": null,
- "status": "delivery",
- "color_name": "Cerulean Granite",
- "color_canonical": "bronze",
- "cover_photo": null,
- "cover_photo_thumb": null,
- "cover_photo_small": null,
- "cover_photo_medium": null,
- "cover_photo_big": null,
- "cover_photo_full": null,
- "cover_photo_quarter_hd": null,
- "cover_photo_hd": null,
- "attachment_url": null
}, - "relationships": {
- "nameplate": {
- "data": {
- "id": "398",
- "type": "nameplate"
}
}, - "brand": {
- "data": {
- "id": "753",
- "type": "brand"
}
}, - "color": {
- "data": {
- "id": "406",
- "type": "color"
}
}, - "owner": {
- "data": {
- "id": "880",
- "type": "company"
}
}, - "listings": {
- "data": [ ]
}, - "photos": {
- "data": [ ]
}, - "pending_operation_requests": {
- "data": [ ]
}
}, - "links": {
- "self": "/vehicles/404",
- "all": "/vehicles"
}
}
], - "meta": {
- "pagination": {
- "scaffold_url": "/vehicles?items=2&page=PAGE_NUM",
- "count": 50,
- "page": 3,
- "items": 2,
- "pages": 25,
- "last": 25,
- "from": 5,
- "to": 6,
- "prev": 2,
- "next": 4
}
}
}
Photos
are attached through relationship to Vehicle
like in example below.
Photos
order in request will be maintained.
Photos
can be assigne during Vehicle
creation and update actions.
Previously assigned photos will be deleted if their ids are ommited from relationship payload.
If payload photos section is empty then photos collection will be emptied!
To not make any changes to photos attached to vehicles it's relationship section in payload should be removed completly.
To inluce photos into the response additional parameter need to be passed in the url.
Photos object will be added in separate included
array in the payload as shown on the last example.
include=photos
id | number Example: 499 |
Accept | any Example: application/vnd.api+json |
X-Company-UUID | any Example: 4076c9a5-4a00-4440-977b-6d32558c449c |
Authorization | any Example: Bearer STUB_TOKEN_STRING |
Content-Type | any Example: application/vnd.api+json |
{- "data": {
- "relationships": {
- "photos": {
- "data": [
- {
- "id": 163
}, - {
- "id": 162
}, - {
- "id": 161
}
]
}, - "owner": {
- "data": {
- "id": 882
}
}
}
}
}
{- "data": {
- "id": "499",
- "type": "vehicle",
- "attributes": {
- "version": "Swamp Thing: The Anatomy Lesson",
- "drivetrain": "Grant Morrison's Animal Man",
- "production_year": 2015,
- "short_description": "Nemo commodi debitis quam sunt repellat similique quia iure quia.",
- "msrp_price": "25216.0",
- "sale_price": null,
- "monthly_price": null,
- "long_description": "Maxime temporibus sed consectetur aut id doloremque sint a vitae perferendis quidem illo cumque vel et assumenda cupiditate porro eaque.",
- "state": "approved",
- "delivery_date": "2024-11-28",
- "transmission": "auto",
- "vin": null,
- "mileage": 718673,
- "engine_capacity": null,
- "battery_capacity": null,
- "engine_type": [
- "diesel"
], - "power": 384,
- "video_url": null,
- "created_at": "2024-11-20T08:09:50.755Z",
- "updated_at": "2024-11-20T08:09:50.880Z",
- "power_unit": "bhp",
- "currency": "GBP",
- "mileage_unit": "km",
- "engine_capacity_unit": "cc",
- "engine_capacity_normalized": null,
- "features_standard": [ ],
- "features_optional": [ ],
- "nameplate_name": "Mattress",
- "nameplate_brand_name": "MG",
- "owner_locale": "en_IE",
- "owner_name": "Ritchie-Kunde",
- "owner_city": "Hermistonshire",
- "owner_opening_hours": "Mon-Fri: 9:00 - 19:00\nSat: 11:00 - 18:00\nSun: Closed\n",
- "owner_contact_details": "31019 Velvet Rest\nLake Irafurt",
- "interior_color": "Ebony",
- "created_by": null,
- "price_hidden": false,
- "prices_type": "incl_taxes",
- "external_id": "942edc",
- "footnote": "Et aspernatur libero quisquam et fuga quas est et minima.",
- "subscribe_price": "1700.0",
- "type": "ActiveVehicle",
- "order_number": null,
- "model_display_name": "MG Mattress",
- "price_metadata": { },
- "contains_drive_away_prices": false,
- "disclaimers": { },
- "price_breakdown": false,
- "base_price": null,
- "total_price": "0.0",
- "status": "stock",
- "color_name": "Cerulean Granite",
- "color_canonical": "silver",
- "cover_photo": "/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6MTcxLCJwdXIiOiJibG9iX2lkIn19--7a9ef7b1d60111a032dfd3794d58d914fb8e46b3/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGciLCJyZXNpemVfYW5kX3BhZCI6WzE2MDAsMTIwMCx7ImJhY2tncm91bmQiOlsyMzgsMjM4LDIzOCwyMzhdLCJhbHBoYSI6dHJ1ZX1dLCJzYXZlciI6eyJxdWFsaXR5Ijo4NX19LCJwdXIiOiJ2YXJpYXRpb24ifX0=--7b5f4ca4fdb73844cccc54630e015a046b05719f/1.jpg",
- "cover_photo_thumb": "/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6MTcxLCJwdXIiOiJibG9iX2lkIn19--7a9ef7b1d60111a032dfd3794d58d914fb8e46b3/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGciLCJyZXNpemVfYW5kX3BhZCI6WzQwMCwzMDAseyJiYWNrZ3JvdW5kIjpbMjM4LDIzOCwyMzgsMjM4XSwiYWxwaGEiOnRydWV9XSwic2F2ZXIiOnsicXVhbGl0eSI6ODV9fSwicHVyIjoidmFyaWF0aW9uIn19--55b64b8565c87129a4465e53843074c92d6a6692/1.jpg",
- "cover_photo_small": "/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6MTcxLCJwdXIiOiJibG9iX2lkIn19--7a9ef7b1d60111a032dfd3794d58d914fb8e46b3/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGciLCJyZXNpemVfYW5kX3BhZCI6WzE2NSw5Mix7ImJhY2tncm91bmQiOlsyMzgsMjM4LDIzOCwyMzhdLCJhbHBoYSI6dHJ1ZX1dLCJzYXZlciI6eyJxdWFsaXR5Ijo4NX19LCJwdXIiOiJ2YXJpYXRpb24ifX0=--66380c5b6b4af7f9e745183631dad0ee428f4cb6/1.jpg",
- "cover_photo_medium": "/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6MTcxLCJwdXIiOiJibG9iX2lkIn19--7a9ef7b1d60111a032dfd3794d58d914fb8e46b3/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGciLCJyZXNpemVfYW5kX3BhZCI6WzQyMCwyMzYseyJiYWNrZ3JvdW5kIjpbMjM4LDIzOCwyMzgsMjM4XSwiYWxwaGEiOnRydWV9XSwic2F2ZXIiOnsicXVhbGl0eSI6ODV9fSwicHVyIjoidmFyaWF0aW9uIn19--4dc07e951609e3efb6b48f3567616f872348d59f/1.jpg",
- "cover_photo_big": "/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6MTcxLCJwdXIiOiJibG9iX2lkIn19--7a9ef7b1d60111a032dfd3794d58d914fb8e46b3/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGciLCJyZXNpemVfYW5kX3BhZCI6Wzc1Miw0MjMseyJiYWNrZ3JvdW5kIjpbMjM4LDIzOCwyMzgsMjM4XSwiYWxwaGEiOnRydWV9XSwic2F2ZXIiOnsicXVhbGl0eSI6ODV9fSwicHVyIjoidmFyaWF0aW9uIn19--87d5dae95cd9117bcea522c1fa34781e19f732de/1.jpg",
- "cover_photo_full": "/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6MTcxLCJwdXIiOiJibG9iX2lkIn19--7a9ef7b1d60111a032dfd3794d58d914fb8e46b3/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGciLCJyZXNpemVfdG9fbGltaXQiOlsxOTIwLDEwODBdLCJzYXZlciI6eyJxdWFsaXR5Ijo4NX19LCJwdXIiOiJ2YXJpYXRpb24ifX0=--cfd1c6e29d0d407efde83e6ff26f8acce153d0b4/1.jpg",
- "cover_photo_quarter_hd": "/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6MTcxLCJwdXIiOiJibG9iX2lkIn19--7a9ef7b1d60111a032dfd3794d58d914fb8e46b3/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGciLCJyZXNpemVfYW5kX3BhZCI6Wzk2MCw1NDAseyJiYWNrZ3JvdW5kIjpbMjM4LDIzOCwyMzgsMjM4XSwiYWxwaGEiOnRydWV9XSwic2F2ZXIiOnsicXVhbGl0eSI6ODV9fSwicHVyIjoidmFyaWF0aW9uIn19--d39339055de4cc3639252e2adcd4214fec0787dc/1.jpg",
- "cover_photo_hd": "/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6MTcxLCJwdXIiOiJibG9iX2lkIn19--7a9ef7b1d60111a032dfd3794d58d914fb8e46b3/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGciLCJyZXNpemVfYW5kX3BhZCI6WzEyODAsNzIwLHsiYmFja2dyb3VuZCI6WzIzOCwyMzgsMjM4LDIzOF0sImFscGhhIjp0cnVlfV0sInNhdmVyIjp7InF1YWxpdHkiOjg1fX0sInB1ciI6InZhcmlhdGlvbiJ9fQ==--42f4d8f39eed9164bf5b7953b39766c46b314eb9/1.jpg",
- "attachment_url": "/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsiZGF0YSI6MTY3LCJwdXIiOiJibG9iX2lkIn19--92a254c085b75cb4bdcd5e8284f7fdb5ec4dd545/1.pdf"
}, - "relationships": {
- "nameplate": {
- "data": {
- "id": "400",
- "type": "nameplate"
}
}, - "brand": {
- "data": {
- "id": "805",
- "type": "brand"
}
}, - "color": {
- "data": {
- "id": "457",
- "type": "color"
}
}, - "owner": {
- "data": {
- "id": "882",
- "type": "company"
}
}, - "listings": {
- "data": [ ]
}, - "photos": {
- "data": [
- {
- "id": "163",
- "type": "photo"
}, - {
- "id": "162",
- "type": "photo"
}, - {
- "id": "161",
- "type": "photo"
}
]
}, - "pending_operation_requests": {
- "data": [ ]
}
}, - "links": {
- "self": "/vehicles/499",
- "all": "/vehicles"
}
}
}
id | number Example: 504 |
Accept | any Example: application/vnd.api+json |
X-Company-UUID | any Example: 83ef47eb-5648-4838-b593-9dcd27c73bb0 |
Authorization | any Example: Bearer STUB_TOKEN_STRING |
Content-Type | any Example: application/vnd.api+json |
{- "data": {
- "id": "504",
- "type": "vehicle",
- "attributes": {
- "version": "Batman: The Long Halloween",
- "drivetrain": "Gotham Central",
- "production_year": 2007,
- "short_description": "Consequuntur aliquid reprehenderit voluptas qui tempore odit debitis ut quo.",
- "msrp_price": "35930.0",
- "sale_price": null,
- "monthly_price": null,
- "long_description": "Provident iusto deleniti reprehenderit et nihil similique maxime facilis dolorem dicta est eum laboriosam odio quidem sint libero quos dolorum.",
- "state": "approved",
- "delivery_date": "2024-11-27",
- "transmission": "manual",
- "vin": null,
- "mileage": 668176,
- "engine_capacity": null,
- "battery_capacity": null,
- "engine_type": [
- "mhev"
], - "power": 303,
- "video_url": null,
- "created_at": "2024-11-20T08:09:51.312Z",
- "updated_at": "2024-11-20T08:09:51.327Z",
- "power_unit": "bhp",
- "currency": "GBP",
- "mileage_unit": "km",
- "engine_capacity_unit": "cc",
- "engine_capacity_normalized": null,
- "features_standard": [ ],
- "features_optional": [ ],
- "nameplate_name": "Arcturan Megagrasshopper",
- "nameplate_brand_name": "Tesla",
- "owner_locale": "en_IE",
- "owner_name": "Ritchie-Kunde",
- "owner_city": "Hermistonshire",
- "owner_opening_hours": "Mon-Fri: 9:00 - 19:00\nSat: 11:00 - 18:00\nSun: Closed\n",
- "owner_contact_details": "31019 Velvet Rest\nLake Irafurt",
- "interior_color": "Ebony",
- "created_by": null,
- "price_hidden": false,
- "prices_type": "incl_taxes",
- "external_id": "d8f6f7",
- "footnote": "Accusamus reprehenderit cupiditate quia enim maxime ut nam earum ut.",
- "subscribe_price": "1700.0",
- "type": "ActiveVehicle",
- "order_number": null,
- "model_display_name": "Tesla Arcturan Megagrasshopper",
- "price_metadata": { },
- "contains_drive_away_prices": false,
- "disclaimers": { },
- "price_breakdown": false,
- "base_price": null,
- "total_price": null,
- "status": "on_demand",
- "color_name": "Burgundy Silk",
- "color_canonical": "yellow",
- "cover_photo": null,
- "cover_photo_thumb": null,
- "cover_photo_small": null,
- "cover_photo_medium": null,
- "cover_photo_big": null,
- "cover_photo_full": null,
- "cover_photo_quarter_hd": null,
- "cover_photo_hd": null,
- "attachment_url": "/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsiZGF0YSI6MTc2LCJwdXIiOiJibG9iX2lkIn19--767a113987f043707e4b14b62fc2a7f0a93e0f3f/1.pdf"
}, - "relationships": {
- "nameplate": {
- "data": {
- "id": "405",
- "type": "nameplate"
}
}, - "brand": {
- "data": {
- "id": "813",
- "type": "brand"
}
}, - "color": {
- "data": {
- "id": "462",
- "type": "color"
}
}, - "owner": {
- "data": {
- "id": "884",
- "type": "company"
}
}, - "listings": {
- "data": [ ]
}, - "photos": {
- "data": [ ]
}, - "pending_operation_requests": {
- "data": [
- {
- "id": "131",
- "type": "vehicle_operation_request"
}
]
}
}, - "links": {
- "self": "/vehicles/504",
- "all": "/vehicles"
}
}, - "included": [
- {
- "id": "131",
- "type": "vehicle_operation_request",
- "attributes": {
- "request_type": "publication",
- "updated_at": "2024-11-20T08:09:51.333Z",
- "status": "pending",
- "owner_name": "Oberbrunner and Sons",
- "owner_id": 888,
- "requester_name": "Stoltenberg, Kris and Rath",
- "requester_id": 890,
- "listing_title": "Barbecue Ribs 88",
- "listing_id": 86,
- "transfer_to_name": "Barton Inc",
- "transfer_to_id": 885,
- "vehicle_id": 504,
- "vehicle_model_display_name": "Tesla Arcturan Megagrasshopper",
- "vehicle_owner_name": "Ritchie-Kunde",
- "vehicle_cover_photo_thumb": null
}
}
]
}
Accept | any Example: application/vnd.api+json |
X-Company-UUID | any Example: 8580d07e-d1a2-4a1c-999f-cb48d5e2ce65 |
Authorization | any Example: Bearer STUB_TOKEN_STRING |
Content-Type | any Example: application/vnd.api+json |
{- "data": [
- {
- "id": "505",
- "type": "vehicle",
- "attributes": {
- "version": "Swamp Thing: The Anatomy Lesson",
- "drivetrain": "Grant Morrison's Animal Man",
- "production_year": 2015,
- "short_description": "Nemo commodi debitis quam sunt repellat similique quia iure quia.",
- "msrp_price": "45238.0",
- "sale_price": null,
- "monthly_price": null,
- "long_description": "Maxime temporibus sed consectetur aut id doloremque sint a vitae perferendis quidem illo cumque vel et assumenda cupiditate porro eaque.",
- "state": "approved",
- "delivery_date": "2024-11-21",
- "transmission": "manual",
- "vin": null,
- "mileage": 200414,
- "engine_capacity": null,
- "battery_capacity": null,
- "engine_type": [
- "hev"
], - "power": 432,
- "video_url": null,
- "created_at": "2024-11-20T08:09:51.392Z",
- "updated_at": "2024-11-20T08:09:51.405Z",
- "power_unit": "bhp",
- "currency": "GBP",
- "mileage_unit": "km",
- "engine_capacity_unit": "cc",
- "engine_capacity_normalized": null,
- "features_standard": [ ],
- "features_optional": [ ],
- "nameplate_name": "Mattress",
- "nameplate_brand_name": "MG",
- "owner_locale": "en_GB",
- "owner_name": "Ritchie-Kunde",
- "owner_city": "Hermistonshire",
- "owner_opening_hours": "Mon-Fri: 9:00 - 19:00\nSat: 11:00 - 18:00\nSun: Closed\n",
- "owner_contact_details": "31019 Velvet Rest\nLake Irafurt",
- "interior_color": "Ebony",
- "created_by": null,
- "price_hidden": false,
- "prices_type": "incl_taxes",
- "external_id": "e8d50e",
- "footnote": "Et aspernatur libero quisquam et fuga quas est et minima.",
- "subscribe_price": "1700.0",
- "type": "ActiveVehicle",
- "order_number": null,
- "model_display_name": "MG Mattress",
- "price_metadata": { },
- "contains_drive_away_prices": false,
- "disclaimers": { },
- "price_breakdown": false,
- "base_price": null,
- "total_price": null,
- "status": "available_soon",
- "color_name": "Cerulean Granite",
- "color_canonical": "blue",
- "cover_photo": null,
- "cover_photo_thumb": null,
- "cover_photo_small": null,
- "cover_photo_medium": null,
- "cover_photo_big": null,
- "cover_photo_full": null,
- "cover_photo_quarter_hd": null,
- "cover_photo_hd": null,
- "attachment_url": "/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsiZGF0YSI6MTc3LCJwdXIiOiJibG9iX2lkIn19--ed795b43a5d910196ef55f6cd17f4ed37a649f37/1.pdf"
}, - "relationships": {
- "nameplate": {
- "data": {
- "id": "406",
- "type": "nameplate"
}
}, - "brand": {
- "data": {
- "id": "814",
- "type": "brand"
}
}, - "color": {
- "data": {
- "id": "463",
- "type": "color"
}
}, - "owner": {
- "data": {
- "id": "903",
- "type": "company"
}
}, - "listings": {
- "data": [ ]
}, - "photos": {
- "data": [ ]
}, - "pending_operation_requests": {
- "data": [ ]
}
}, - "links": {
- "self": "/vehicles/505",
- "all": "/vehicles"
}
}, - {
- "id": "506",
- "type": "vehicle",
- "attributes": {
- "version": "Swamp Thing: The Anatomy Lesson",
- "drivetrain": "Grant Morrison's Animal Man",
- "production_year": 2015,
- "short_description": "Nemo commodi debitis quam sunt repellat similique quia iure quia.",
- "msrp_price": "45238.0",
- "sale_price": null,
- "monthly_price": null,
- "long_description": "Maxime temporibus sed consectetur aut id doloremque sint a vitae perferendis quidem illo cumque vel et assumenda cupiditate porro eaque.",
- "state": "approved",
- "delivery_date": "2024-11-21",
- "transmission": "manual",
- "vin": null,
- "mileage": 200414,
- "engine_capacity": null,
- "battery_capacity": null,
- "engine_type": [
- "hev"
], - "power": 432,
- "video_url": null,
- "created_at": "2024-11-20T08:09:51.428Z",
- "updated_at": "2024-11-20T08:09:51.437Z",
- "power_unit": "bhp",
- "currency": "GBP",
- "mileage_unit": "km",
- "engine_capacity_unit": "cc",
- "engine_capacity_normalized": null,
- "features_standard": [ ],
- "features_optional": [ ],
- "nameplate_name": "Mattress",
- "nameplate_brand_name": "MG",
- "owner_locale": "en_GB",
- "owner_name": "Ritchie-Kunde",
- "owner_city": "Hermistonshire",
- "owner_opening_hours": "Mon-Fri: 9:00 - 19:00\nSat: 11:00 - 18:00\nSun: Closed\n",
- "owner_contact_details": "31019 Velvet Rest\nLake Irafurt",
- "interior_color": "Ebony",
- "created_by": null,
- "price_hidden": false,
- "prices_type": "incl_taxes",
- "external_id": "e8d50e",
- "footnote": "Et aspernatur libero quisquam et fuga quas est et minima.",
- "subscribe_price": "1700.0",
- "type": "DraftVehicle",
- "order_number": null,
- "model_display_name": "MG Mattress",
- "price_metadata": { },
- "contains_drive_away_prices": false,
- "disclaimers": { },
- "price_breakdown": false,
- "base_price": null,
- "total_price": null,
- "status": "available_soon",
- "color_name": "Cerulean Granite",
- "color_canonical": "blue",
- "cover_photo": null,
- "cover_photo_thumb": null,
- "cover_photo_small": null,
- "cover_photo_medium": null,
- "cover_photo_big": null,
- "cover_photo_full": null,
- "cover_photo_quarter_hd": null,
- "cover_photo_hd": null,
- "attachment_url": "/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsiZGF0YSI6MTc3LCJwdXIiOiJibG9iX2lkIn19--ed795b43a5d910196ef55f6cd17f4ed37a649f37/1.pdf"
}, - "relationships": {
- "nameplate": {
- "data": {
- "id": "406",
- "type": "nameplate"
}
}, - "brand": {
- "data": {
- "id": "814",
- "type": "brand"
}
}, - "color": {
- "data": {
- "id": "463",
- "type": "color"
}
}, - "owner": {
- "data": {
- "id": "903",
- "type": "company"
}
}, - "listings": {
- "data": [ ]
}, - "photos": {
- "data": [ ]
}, - "pending_operation_requests": {
- "data": [ ]
}
}, - "links": {
- "self": "/vehicles/506",
- "all": "/vehicles"
}
}
], - "meta": {
- "pagination": {
- "scaffold_url": "/vehicles?page=PAGE_NUM",
- "count": 2,
- "page": 1,
- "items": 2,
- "pages": 1,
- "last": 1,
- "from": 1,
- "to": 2,
- "prev": null,
- "next": null
}
}
}
Accept | any Example: application/vnd.api+json |
X-Company-UUID | any Example: e14b5961-b19d-4fc9-a095-943146cb2e26 |
Authorization | any Example: Bearer STUB_TOKEN_STRING |
Content-Type | any Example: application/vnd.api+json |
{- "data": {
- "attributes": {
- "version": "Swamp Thing: The Anatomy Lesson",
- "drivetrain": "Grant Morrison's Animal Man",
- "short_description": "Nemo commodi debitis quam sunt repellat similique quia iure quia.",
- "long_description": "Maxime temporibus sed consectetur aut id doloremque sint a vitae perferendis quidem illo cumque vel et assumenda cupiditate porro eaque.",
- "footnote": "Et aspernatur libero quisquam et fuga quas est et minima.",
- "production_year": 2015,
- "state": "approved",
- "status": "sold",
- "transmission": "manual",
- "engine_type": [
- "phev_rev"
], - "delivery_date": "2024-11-24",
- "power": 156,
- "msrp_price": 29211,
- "interior_color": "Ebony",
- "mileage": 548504,
- "type": "ActiveVehicle",
- "metadata": null,
- "external_id": "e549ff",
- "features_optional": null,
- "features_standard": null,
- "color_id": 465,
- "attachment": "eyJfcmFpbHMiOnsiZGF0YSI6MTc5LCJwdXIiOiJibG9iX2lkIn19--2222398fe3b8a14f4265fc36842c4c4fd4ffdea0",
- "subscribe_price": 1700,
- "prices_type": "incl_taxes"
}, - "relationships": {
- "nameplate": {
- "data": {
- "id": 408
}
}, - "owner": {
- "data": {
- "id": 905
}
}, - "color": {
- "data": {
- "id": 465
}
}
}
}
}
{- "data": {
- "id": "508",
- "type": "vehicle",
- "attributes": {
- "version": "Swamp Thing: The Anatomy Lesson",
- "drivetrain": "Grant Morrison's Animal Man",
- "production_year": 2015,
- "short_description": "Nemo commodi debitis quam sunt repellat similique quia iure quia.",
- "msrp_price": "29211.0",
- "sale_price": null,
- "monthly_price": null,
- "long_description": "Maxime temporibus sed consectetur aut id doloremque sint a vitae perferendis quidem illo cumque vel et assumenda cupiditate porro eaque.",
- "state": "approved",
- "delivery_date": "2024-11-24",
- "transmission": "manual",
- "vin": null,
- "mileage": 548504,
- "engine_capacity": null,
- "battery_capacity": null,
- "engine_type": [
- "phev_rev"
], - "power": 156,
- "video_url": null,
- "created_at": "2024-11-20T08:09:51.600Z",
- "updated_at": "2024-11-20T08:09:51.609Z",
- "power_unit": "bhp",
- "currency": "GBP",
- "mileage_unit": "km",
- "engine_capacity_unit": "cc",
- "engine_capacity_normalized": null,
- "features_standard": [ ],
- "features_optional": [ ],
- "nameplate_name": "Mattress",
- "nameplate_brand_name": "MG",
- "owner_locale": "pl_PL",
- "owner_name": "Ritchie-Kunde",
- "owner_city": "Hermistonshire",
- "owner_opening_hours": "Mon-Fri: 9:00 - 19:00\nSat: 11:00 - 18:00\nSun: Closed\n",
- "owner_contact_details": "31019 Velvet Rest\nLake Irafurt",
- "interior_color": "Ebony",
- "created_by": "test user",
- "price_hidden": false,
- "prices_type": "incl_taxes",
- "external_id": null,
- "footnote": "Et aspernatur libero quisquam et fuga quas est et minima.",
- "subscribe_price": "1700.0",
- "type": "ActiveVehicle",
- "order_number": null,
- "model_display_name": "MG Mattress",
- "price_metadata": { },
- "contains_drive_away_prices": false,
- "disclaimers": { },
- "price_breakdown": false,
- "base_price": null,
- "total_price": "0.0",
- "status": "sold",
- "color_name": "Cerulean Granite",
- "color_canonical": "blue",
- "cover_photo": null,
- "cover_photo_thumb": null,
- "cover_photo_small": null,
- "cover_photo_medium": null,
- "cover_photo_big": null,
- "cover_photo_full": null,
- "cover_photo_quarter_hd": null,
- "cover_photo_hd": null,
- "attachment_url": "/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsiZGF0YSI6MTc5LCJwdXIiOiJibG9iX2lkIn19--2222398fe3b8a14f4265fc36842c4c4fd4ffdea0/1.pdf"
}, - "relationships": {
- "nameplate": {
- "data": {
- "id": "408",
- "type": "nameplate"
}
}, - "brand": {
- "data": {
- "id": "816",
- "type": "brand"
}
}, - "color": {
- "data": {
- "id": "465",
- "type": "color"
}
}, - "owner": {
- "data": {
- "id": "905",
- "type": "company"
}
}, - "listings": {
- "data": [ ]
}, - "photos": {
- "data": [ ]
}, - "pending_operation_requests": {
- "data": [ ]
}
}, - "links": {
- "self": "/vehicles/508",
- "all": "/vehicles"
}
}
}
id | number Example: 507 |
Accept | any Example: application/vnd.api+json |
X-Company-UUID | any Example: 367d22e6-3f8d-419a-9d98-0609eac62e0a |
Authorization | any Example: Bearer STUB_TOKEN_STRING |
Content-Type | any Example: application/vnd.api+json |
{- "data": {
- "id": "507",
- "type": "vehicle",
- "attributes": {
- "version": "Swamp Thing: The Anatomy Lesson",
- "drivetrain": "Grant Morrison's Animal Man",
- "production_year": 2015,
- "short_description": "Nemo commodi debitis quam sunt repellat similique quia iure quia.",
- "msrp_price": "28168.0",
- "sale_price": null,
- "monthly_price": null,
- "long_description": "Maxime temporibus sed consectetur aut id doloremque sint a vitae perferendis quidem illo cumque vel et assumenda cupiditate porro eaque.",
- "state": "approved",
- "delivery_date": "2024-12-16",
- "transmission": "manual",
- "vin": null,
- "mileage": 36868,
- "engine_capacity": null,
- "battery_capacity": null,
- "engine_type": [
- "bev"
], - "power": 165,
- "video_url": null,
- "created_at": "2024-11-20T08:09:51.515Z",
- "updated_at": "2024-11-20T08:09:51.531Z",
- "power_unit": "bhp",
- "currency": "GBP",
- "mileage_unit": "km",
- "engine_capacity_unit": "cc",
- "engine_capacity_normalized": null,
- "features_standard": [ ],
- "features_optional": [ ],
- "nameplate_name": "Mattress",
- "nameplate_brand_name": "MG",
- "owner_locale": "en_IE",
- "owner_name": "Ritchie-Kunde",
- "owner_city": "Hermistonshire",
- "owner_opening_hours": "Mon-Fri: 9:00 - 19:00\nSat: 11:00 - 18:00\nSun: Closed\n",
- "owner_contact_details": "31019 Velvet Rest\nLake Irafurt",
- "interior_color": "Ebony",
- "created_by": null,
- "price_hidden": false,
- "prices_type": "incl_taxes",
- "external_id": "b3b292",
- "footnote": "Et aspernatur libero quisquam et fuga quas est et minima.",
- "subscribe_price": "1700.0",
- "type": "ActiveVehicle",
- "order_number": null,
- "model_display_name": "MG Mattress",
- "price_metadata": { },
- "contains_drive_away_prices": false,
- "disclaimers": { },
- "price_breakdown": false,
- "base_price": null,
- "total_price": null,
- "status": "demo",
- "color_name": "Cerulean Granite",
- "color_canonical": "orange",
- "cover_photo": null,
- "cover_photo_thumb": null,
- "cover_photo_small": null,
- "cover_photo_medium": null,
- "cover_photo_big": null,
- "cover_photo_full": null,
- "cover_photo_quarter_hd": null,
- "cover_photo_hd": null,
- "attachment_url": "/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsiZGF0YSI6MTc4LCJwdXIiOiJibG9iX2lkIn19--59d6982115c7d7953ee43f39bef3484f1ebdd430/1.pdf"
}, - "relationships": {
- "nameplate": {
- "data": {
- "id": "407",
- "type": "nameplate"
}
}, - "brand": {
- "data": {
- "id": "815",
- "type": "brand"
}
}, - "color": {
- "data": {
- "id": "464",
- "type": "color"
}
}, - "owner": {
- "data": {
- "id": "904",
- "type": "company"
}
}, - "listings": {
- "data": [ ]
}, - "photos": {
- "data": [ ]
}, - "pending_operation_requests": {
- "data": [ ]
}
}, - "links": {
- "self": "/vehicles/507",
- "all": "/vehicles"
}
}
}
id | number Example: 510 |
Accept | any Example: application/vnd.api+json |
X-Company-UUID | any Example: cb784f30-c07f-453a-96d3-0fcc41c4ecdd |
Authorization | any Example: Bearer STUB_TOKEN_STRING |
Content-Type | any Example: application/vnd.api+json |
{- "data": {
- "attributes": {
- "version": "Starro",
- "drivetrain": "Grant Morrison's Animal Man",
- "short_description": "Nemo commodi debitis quam sunt repellat similique quia iure quia.",
- "long_description": "Maxime temporibus sed consectetur aut id doloremque sint a vitae perferendis quidem illo cumque vel et assumenda cupiditate porro eaque.",
- "footnote": "Et aspernatur libero quisquam et fuga quas est et minima.",
- "production_year": 2015,
- "state": "approved",
- "status": "stock",
- "transmission": "auto",
- "engine_type": [
- "phev"
], - "delivery_date": "2024-11-26",
- "power": 401,
- "msrp_price": 42101,
- "interior_color": "Ebony",
- "mileage": 87109,
- "type": "ActiveVehicle",
- "metadata": null,
- "external_id": "7a6885",
- "features_optional": null,
- "features_standard": null,
- "color_id": 468,
- "attachment": "eyJfcmFpbHMiOnsiZGF0YSI6MTgyLCJwdXIiOiJibG9iX2lkIn19--976770900ab43f75d639d296b20e23bda9546785",
- "subscribe_price": 1700,
- "prices_type": "incl_taxes"
}, - "relationships": {
- "nameplate": {
- "data": {
- "id": 411
}
}, - "owner": {
- "data": {
- "id": 909
}
}, - "color": {
- "data": {
- "id": 468
}
}
}
}
}
{- "data": {
- "id": "510",
- "type": "vehicle",
- "attributes": {
- "version": "Starro",
- "drivetrain": "Grant Morrison's Animal Man",
- "production_year": 2015,
- "short_description": "Nemo commodi debitis quam sunt repellat similique quia iure quia.",
- "msrp_price": "42101.0",
- "sale_price": null,
- "monthly_price": null,
- "long_description": "Maxime temporibus sed consectetur aut id doloremque sint a vitae perferendis quidem illo cumque vel et assumenda cupiditate porro eaque.",
- "state": "approved",
- "delivery_date": "2024-11-26",
- "transmission": "auto",
- "vin": null,
- "mileage": 87109,
- "engine_capacity": null,
- "battery_capacity": null,
- "engine_type": [
- "phev"
], - "power": 401,
- "video_url": null,
- "created_at": "2024-11-20T08:09:51.796Z",
- "updated_at": "2024-11-20T08:09:51.841Z",
- "power_unit": "bhp",
- "currency": "GBP",
- "mileage_unit": "km",
- "engine_capacity_unit": "cc",
- "engine_capacity_normalized": null,
- "features_standard": [ ],
- "features_optional": [ ],
- "nameplate_name": "Mattress",
- "nameplate_brand_name": "MG",
- "owner_locale": "pl_PL",
- "owner_name": "Ritchie-Kunde",
- "owner_city": "Hermistonshire",
- "owner_opening_hours": "Mon-Fri: 9:00 - 19:00\nSat: 11:00 - 18:00\nSun: Closed\n",
- "owner_contact_details": "31019 Velvet Rest\nLake Irafurt",
- "interior_color": "Ebony",
- "created_by": null,
- "price_hidden": false,
- "prices_type": "incl_taxes",
- "external_id": "7a6885",
- "footnote": "Et aspernatur libero quisquam et fuga quas est et minima.",
- "subscribe_price": "1700.0",
- "type": "ActiveVehicle",
- "order_number": null,
- "model_display_name": "MG Mattress",
- "price_metadata": { },
- "contains_drive_away_prices": false,
- "disclaimers": { },
- "price_breakdown": false,
- "base_price": null,
- "total_price": "0.0",
- "status": "stock",
- "color_name": "Cerulean Granite",
- "color_canonical": "silver",
- "cover_photo": null,
- "cover_photo_thumb": null,
- "cover_photo_small": null,
- "cover_photo_medium": null,
- "cover_photo_big": null,
- "cover_photo_full": null,
- "cover_photo_quarter_hd": null,
- "cover_photo_hd": null,
- "attachment_url": "/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsiZGF0YSI6MTgyLCJwdXIiOiJibG9iX2lkIn19--976770900ab43f75d639d296b20e23bda9546785/1.pdf"
}, - "relationships": {
- "nameplate": {
- "data": {
- "id": "411",
- "type": "nameplate"
}
}, - "brand": {
- "data": {
- "id": "819",
- "type": "brand"
}
}, - "color": {
- "data": {
- "id": "468",
- "type": "color"
}
}, - "owner": {
- "data": {
- "id": "909",
- "type": "company"
}
}, - "listings": {
- "data": [ ]
}, - "photos": {
- "data": [ ]
}, - "pending_operation_requests": {
- "data": [ ]
}
}, - "links": {
- "self": "/vehicles/510",
- "all": "/vehicles"
}
}
}
id | number Example: 518 |
Accept | any Example: application/vnd.api+json |
X-Company-UUID | any Example: 4e37ed74-7b71-40f3-8bd3-2b36831b54cf |
Authorization | any Example: Bearer STUB_TOKEN_STRING |
Content-Type | any Example: application/vnd.api+json |
{- "data": {
- "id": "518",
- "type": "vehicle",
- "attributes": {
- "version": "Swamp Thing: The Anatomy Lesson",
- "drivetrain": "Grant Morrison's Animal Man",
- "production_year": 2015,
- "short_description": "Nemo commodi debitis quam sunt repellat similique quia iure quia.",
- "msrp_price": "38153.0",
- "sale_price": null,
- "monthly_price": null,
- "long_description": "Maxime temporibus sed consectetur aut id doloremque sint a vitae perferendis quidem illo cumque vel et assumenda cupiditate porro eaque.",
- "state": "approved",
- "delivery_date": "2024-12-03",
- "transmission": "auto",
- "vin": null,
- "mileage": 770509,
- "engine_capacity": null,
- "battery_capacity": null,
- "engine_type": [
- "phev"
], - "power": 297,
- "video_url": null,
- "created_at": "2024-11-20T08:09:52.383Z",
- "updated_at": "2024-11-20T08:09:52.410Z",
- "power_unit": "bhp",
- "currency": "GBP",
- "mileage_unit": "km",
- "engine_capacity_unit": "cc",
- "engine_capacity_normalized": null,
- "features_standard": [ ],
- "features_optional": [ ],
- "nameplate_name": "Mattress",
- "nameplate_brand_name": "MG",
- "owner_locale": "en_GB",
- "owner_name": "Ritchie-Kunde",
- "owner_city": "Hermistonshire",
- "owner_opening_hours": "Mon-Fri: 9:00 - 19:00\nSat: 11:00 - 18:00\nSun: Closed\n",
- "owner_contact_details": "31019 Velvet Rest\nLake Irafurt",
- "interior_color": "Ebony",
- "created_by": null,
- "price_hidden": false,
- "prices_type": "incl_taxes",
- "external_id": "f96c2d",
- "footnote": "Et aspernatur libero quisquam et fuga quas est et minima.",
- "subscribe_price": "1700.0",
- "type": "ActiveVehicle",
- "order_number": null,
- "model_display_name": "MG Mattress",
- "price_metadata": { },
- "contains_drive_away_prices": false,
- "disclaimers": { },
- "price_breakdown": false,
- "base_price": null,
- "total_price": null,
- "status": "in_production",
- "color_name": "Cerulean Granite",
- "color_canonical": "green",
- "cover_photo": null,
- "cover_photo_thumb": null,
- "cover_photo_small": null,
- "cover_photo_medium": null,
- "cover_photo_big": null,
- "cover_photo_full": null,
- "cover_photo_quarter_hd": null,
- "cover_photo_hd": null,
- "attachment_url": "/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsiZGF0YSI6MTg5LCJwdXIiOiJibG9iX2lkIn19--009fd821d4632cf5afa0eab4d56fb91b5fd8da2d/1.pdf"
}, - "relationships": {
- "nameplate": {
- "data": {
- "id": "421",
- "type": "nameplate"
}
}, - "brand": {
- "data": {
- "id": "832",
- "type": "brand"
}
}, - "color": {
- "data": {
- "id": "478",
- "type": "color"
}
}, - "owner": {
- "data": {
- "id": "918",
- "type": "company"
}
}, - "listings": {
- "data": [ ]
}, - "photos": {
- "data": [ ]
}, - "pending_operation_requests": {
- "data": [ ]
}
}, - "links": {
- "all": "/vehicles"
}
}
}
This endpoint will return duplicated data for a Vehicle
based on the Vehicle
with :id
passed in the url.
This endpoint returns only data, it will not create new Vehicle
record in database.
The exchanged data/relationships listed below will be omitted
id | number Example: 509 |
Accept | any Example: application/vnd.api+json |
X-Company-UUID | any Example: 848692a7-947a-4d3b-8f9a-28c9e22db1cd |
Authorization | any Example: Bearer STUB_TOKEN_STRING |
Content-Type | any Example: application/vnd.api+json |
{- "data": {
- "id": null,
- "type": "vehicle",
- "attributes": {
- "version": "Swamp Thing: The Anatomy Lesson",
- "drivetrain": "Grant Morrison's Animal Man",
- "production_year": 2015,
- "short_description": null,
- "msrp_price": "39301.0",
- "sale_price": null,
- "monthly_price": null,
- "long_description": "Maxime temporibus sed consectetur aut id doloremque sint a vitae perferendis quidem illo cumque vel et assumenda cupiditate porro eaque.",
- "state": "approved",
- "delivery_date": "2024-12-15",
- "transmission": "auto",
- "vin": null,
- "mileage": 264029,
- "engine_capacity": null,
- "battery_capacity": null,
- "engine_type": [
- "diesel"
], - "power": 162,
- "video_url": null,
- "created_at": null,
- "updated_at": null,
- "power_unit": "bhp",
- "currency": "GBP",
- "mileage_unit": "km",
- "engine_capacity_unit": "cc",
- "engine_capacity_normalized": null,
- "features_standard": [ ],
- "features_optional": [ ],
- "nameplate_name": "Mattress",
- "nameplate_brand_name": "MG",
- "owner_locale": "ro_RO",
- "owner_name": "Ritchie-Kunde",
- "owner_city": "Hermistonshire",
- "owner_opening_hours": "Mon-Fri: 9:00 - 19:00\nSat: 11:00 - 18:00\nSun: Closed\n",
- "owner_contact_details": "31019 Velvet Rest\nLake Irafurt",
- "interior_color": "Ebony",
- "created_by": "test user",
- "price_hidden": false,
- "prices_type": "incl_taxes",
- "external_id": "970e78",
- "footnote": "Et aspernatur libero quisquam et fuga quas est et minima.",
- "subscribe_price": "1700.0",
- "type": "ActiveVehicle",
- "order_number": null,
- "model_display_name": "MG Mattress",
- "price_metadata": { },
- "contains_drive_away_prices": false,
- "disclaimers": { },
- "price_breakdown": false,
- "base_price": null,
- "total_price": null,
- "status": "delivery",
- "color_name": "Cerulean Granite",
- "color_canonical": "bronze",
- "cover_photo": null,
- "cover_photo_thumb": null,
- "cover_photo_small": null,
- "cover_photo_medium": null,
- "cover_photo_big": null,
- "cover_photo_full": null,
- "cover_photo_quarter_hd": null,
- "cover_photo_hd": null,
- "attachment_url": null
}, - "relationships": {
- "nameplate": {
- "data": {
- "id": "410",
- "type": "nameplate"
}
}, - "brand": {
- "data": {
- "id": "818",
- "type": "brand"
}
}, - "color": {
- "data": {
- "id": "467",
- "type": "color"
}
}, - "owner": {
- "data": {
- "id": "908",
- "type": "company"
}
}, - "listings": {
- "data": [ ]
}, - "photos": {
- "data": [ ]
}, - "pending_operation_requests": {
- "data": [ ]
}
}, - "links": {
- "all": "/vehicles"
}
}
}
Accept | any Example: application/vnd.api+json |
X-Company-UUID | any Example: ef726f66-a68f-4393-b30a-6082ba9b1f06 |
Authorization | any Example: Bearer STUB_TOKEN_STRING |
Content-Type | any Example: application/vnd.api+json |
ID,VIN,Order Number,Added date,Publication date,Number of images,Owner account name,Vehicle type,Car State,Car Status,Price,Model,Version,Fuel Type,Engine capacity,Engine power,Transmission,Exterior Color,Interior Color
uuid | string Example: 9f0849e3-998e-4f05-bea5-723b329e763b |
vehicle_id | number Example: 28 |
Accept | any Example: application/vnd.api+json |
Content-Type | any Example: application/vnd.api+json |
{- "data": {
- "id": "28",
- "type": "vehicle",
- "attributes": {
- "nameplate_name": "Range Rover Evoque",
- "trim": "HSE",
- "drivetrain": "P300",
- "state": "new",
- "msrp_price": "27146.0",
- "currency": "USD",
- "sale_price": null,
- "engine_type": [
- "diesel"
], - "power": 200,
- "power_unit": "bhp",
- "mileage": 828702,
- "mileage_unit": "km",
- "engine_capacity": 2998,
- "disclaimers": { },
- "model_year": 2010,
- "owner_name": "Ritchie-Kunde",
- "owner_city": "Hermistonshire",
- "owner_address": "99667 Major Corners, Antoniomouth, LA 39348-8794",
- "vin": "XXXYYYZZZ",
- "features_standard": [
- "Standard Feature 0",
- "Standard Feature 1"
], - "features_optional": [ ],
- "cover_photo": "/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6NywicHVyIjoiYmxvYl9pZCJ9fQ==--f9bacdfdbfa76a0a3695be481983a3c888fe249c/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGciLCJyZXNpemVfYW5kX3BhZCI6WzE2MDAsMTIwMCx7ImJhY2tncm91bmQiOlsyMzgsMjM4LDIzOCwyMzhdLCJhbHBoYSI6dHJ1ZX1dLCJzYXZlciI6eyJxdWFsaXR5Ijo4NX19LCJwdXIiOiJ2YXJpYXRpb24ifX0=--7b5f4ca4fdb73844cccc54630e015a046b05719f/1.jpg",
- "primary_cta_type": "contact",
- "secondary_cta_url": null,
- "secondary_cta_type": null,
- "color_name": "Cyan Copper"
}
}
}
Accept | any Example: application/vnd.api+json |
Content-Type | any Example: application/vnd.api+json |
{- "data": [
- {
- "id": "91",
- "type": "brand",
- "attributes": {
- "name": "Dodge"
}, - "links": {
- "nameplates": "/public_api/brands/91/nameplates"
}
}
]
}
id | number Example: 92 |
Accept | any Example: application/vnd.api+json |
Content-Type | any Example: application/vnd.api+json |
{- "data": [
- {
- "id": "49",
- "type": "nameplate",
- "attributes": {
- "name": "Vl'Hurg",
- "model_group": null
}
}, - {
- "id": "50",
- "type": "nameplate",
- "attributes": {
- "name": "Damogran Frond Crested Eagle",
- "model_group": null
}
}, - {
- "id": "51",
- "type": "nameplate",
- "attributes": {
- "name": "Sarkopsi",
- "model_group": null
}
}
]
}
Is used to store config for origin urls.
It contains config_type
attribute with possible values default
, cash
, lease
, subscription
and additional
. Each origin can have single config per each type.
GET /public_api/company_config/all
This endpoint is used to fetch configs for declared origin. By default it returns all configs for that origin.
To fetch config for the specific origin, it has to be declared in Company-Config
header . For example:
Company-Config: 'https://jaguar.com'
param | example | type | required | description |
---|---|---|---|---|
config_type | additional,cash | string | no | used to filter config types, multiple types have to be separated by comma |
Response is an array of configs for origin declared in the header. Each of the contains attributes data
and config_type
Accept | any Example: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5 |
{- "data": [
- {
- "id": "1",
- "type": "company_config",
- "attributes": {
- "data": {
- "a": 1
}, - "config_type": "default"
}
}, - {
- "id": "2",
- "type": "company_config",
- "attributes": {
- "data": {
- "a": 1
}, - "config_type": "additional"
}
}, - {
- "id": "3",
- "type": "company_config",
- "attributes": {
- "data": {
- "a": 1
}, - "config_type": "cash"
}
}
]
}
GET /public_api/company_config/(:config_type)
This endpoint is used to fetch a specific config for declared origin. By default it returns default config for that origin.
To fetch config for the specific origin, it has to be declared in Company-Config
header . For example:
Company-Config: 'https://jaguar.com'
param | example | type | required | description |
---|---|---|---|---|
config_type | additional | string | no | used to fetch config of specific type |
Response is an config object containing attributes data
and config_type
Accept | any Example: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5 |
{- "data": {
- "id": "26",
- "type": "company_config",
- "attributes": {
- "data": {
- "a": 1
}, - "config_type": "default"
}
}
}
/public_api
section is intended to be freely used on all websites and provide data to StockLocator widgets.
Its behaviour is mostly modeled based on private /vehicles
controller but lacks authorization, returns only active vehicles and is
optimized for typical website usecases.
Basic required attribute to use it is Listing
object uuid
value.
As far as I know this value is currently not displayed on the SL frontend (to be fixed) so ask Badyl for it if you need
one :)
config_url required | string |
Accept | any Example: application/json |
Content-Type | any Example: application/json |
{- "data": {
- "nameplate_name": "Discovery",
- "nameplate_brand_name": "Land Rover",
- "nameplate_model_group": "Discovery",
- "version": "DISCOVERY S",
- "gross_price": "370010.00",
- "gross_currency": "EUR-PL",
- "net_price": "370010.00",
- "net_currency": "EUR-PL",
- "color": "Fuji White",
- "engine_type": [
- "diesel",
- "mhev"
], - "delivery_date": "To be confirmed"
}
}
Filtering mechanism utilises quite powerful Ransack gem engine
Prefilters are parameters used to filter vehicles before any counting or dynamic filtering takes place. They are simple filters without any predicates. There are two perfilters:
forced_brands_names - filters vehicles by brand names separated by comma, ex. forced_brands_names=Land Rover,Jaguar
forced_dealer_codes - filters vehicles by owner dealer codes, separated by comma, ex. forced_dealer_codes=50001,50002
forced_statuses - filters vehicles by statuses, separated by comma, ex. forced_dealer_codes=reserved,sold
filter
attributeTo filter results one should use filter[]
GET parameter
object with each search/filter criteria as a separate parameter entry.
this parameters entries should adher to format of filter[:attribute_filtered:_:matcher_operator:]=value1
.
attribute_filter
partIn general it's possible to filter by all object parameters that can be seen in
a typical API response. For vehicles it includes version
, drivetrain
, production_year
etc.
However, there's one non-standard attribute that you can filter by - display_price
. It filters/sorts vehicles
by the actual Vehicle price (so it checks whether a vehicle has sale_price
value - if not, it takes msrp_price
for that vehicle as the current price).
On top of that one can filter based on selected related models by concatenating relationship name and related obejct attribute. For example Nameplate
name is not stored in the Vehicle
model but it can ge used as filter parameter as nameplate_name
.
This kind of relationship searches can go deeper. Since Brand
is related to Nameplate
not Vechile
itself, to filter vehicles by Brand
name we should user nameplate_brand_name
attributes.
matcher
partFull list of all available matcher operators can be seen here: https://github.com/activerecord-hackery/ransack#search-matchers
Most usefull and important ones are:
Matcher | Description |
---|---|
_eq | Equality |
_gt | Greater then |
_gteq | Greater than or equal |
_lt | Less then |
_lteq | Less than or equal |
_start | Starts with |
_i_cont | Contains value with (case insensitive) |
_cont | Contains value with (case sensitive) |
_in | Match any values separated by comma Eg: filter[name_in]=Bob,Alice |
To return vehicles which match one of multiple filters, or
operator has to be used. For example, to search for vehicles which vin
or order_number
start with some value filter should looke like this:
filter[vin_or_order_number_start]=123
engine_types
and owner_dealers_codes
are specific parameters due to the fact they are stored as array in the database so
simple string-based cont
predicates will not work. To filter based on this array content new predicate _includes
was added. So to filter for all "Petrol" powered vehicles request should look like this:
filter[engine_type_includes]=petrol
This will return both hybrid and non-hybrid Vehicles as long as they also include petrol in engine_type
array
Multiple engine types can be searched separated by comma:
filter[engine_type_includes]=petrol,bev
Will return petrol as well as bev engines
financing options
is a specific parameter based on scope and does not have any predicates. To use it chosen values separated by comma have to be provided:
filter[financing_options]=cash,lease,rent
status
filter is based on two attributes. It filters vehicles by status
attribute and also checks lock_id
which indicates that vehicle is soft-locked. In case it is soft-locked it is searched as it would be of reserved
status. Because of that status
filter is processed outside ransack and accepts _eq
and _in
predicates only.
To Search Vechiles with production year beetween 2015 and 2018:
filter[production_year_gteq]=2015&filter[production_year_lteq]=2018
To Search all Jaguars
filter[nameplate_brand_name_eq]=Jaguar
To Search all Vechiles with HSE in version
filter[version_i_cont]=HSE
uuids | string Example: c91c6e63-b126-49d2-a5ab-c7ce115d0d70 |
filter required | object |
Accept | any Example: application/vnd.api+json |
Content-Type | any Example: application/vnd.api+json |
{- "data": [
- {
- "id": "56",
- "type": "listing_vehicles",
- "attributes": {
- "version": "Gotham Central",
- "drivetrain": "Crisis On Infinite Earths",
- "production_year": 2014,
- "short_description": "Ullam molestias qui asperiores quis ad aut aperiam voluptas eius.",
- "state": "new",
- "delivery_date": "2024-12-04",
- "transmission": "auto",
- "vin": null,
- "mileage": 354519,
- "engine_capacity": null,
- "engine_type": [
- "petrol",
- "phev"
], - "power": 160,
- "video_url": null,
- "created_at": "2024-11-20T08:09:25.263Z",
- "power_unit": "bhp",
- "currency": "KMF",
- "mileage_unit": "km",
- "engine_capacity_unit": "cc",
- "engine_capacity_normalized": null,
- "nameplate_name": "Nameplate 3",
- "nameplate_brand_name": "Brand 2",
- "owner_city": "West Cassie",
- "price_hidden": false,
- "prices_type": null,
- "external_id": "89d97f",
- "model_display_name": "Brand 2 Nameplate 3",
- "order_number": null,
- "nameplate_model_group": null,
- "nameplate_external_code": null,
- "metadata": null,
- "owner_phone": "+218 (693) 382-1207 x4974",
- "owner_email": "willena@okeefe.info",
- "owner_zipcode": null,
- "owner_address": "Suite 304 14113 Danelle Valleys, Salvadorfort, NM 91809",
- "owner_state": null,
- "owner_metadata": { },
- "interior_color": "Ebony",
- "price_metadata": { },
- "code5000": null,
- "disclaimers": { },
- "price_breakdown": false,
- "base_price": null,
- "total_price": null,
- "status": "stock",
- "color_name": "Aquamarine Cotton",
- "color_canonical": "blue",
- "owner_name": "Williamson Group",
- "msrp_price": "160000.0",
- "sale_price": "140000.0",
- "monthly_price": null,
- "subscribe_price": "8000.0",
- "photos": [ ],
- "cover_photo": null,
- "cover_photo_medium": null,
- "cover_photo_hd": null,
- "cover_photo_quarter_hd": null,
- "owner_opening_hours": "<p>Mon-Fri: 9:00 - 19:00<br>\nSat: 11:00 - 18:00<br>\nSun: Closed</p>\n",
- "owner_contact_details": "<p>7685 Marcelino Valleys<br>\nSouth Zoraida</p>\n",
- "financing_options": {
- "cash": true,
- "lease": false,
- "rent": true
}
}
}, - {
- "id": "58",
- "type": "listing_vehicles",
- "attributes": {
- "version": "Jack Kirby's New Gods",
- "drivetrain": "Doom Patrol",
- "production_year": 2021,
- "short_description": "Autem et saepe itaque a et nemo et autem in.",
- "state": "used",
- "delivery_date": "2024-12-07",
- "transmission": "manual",
- "vin": null,
- "mileage": 461348,
- "engine_capacity": null,
- "engine_type": [
- "diesel"
], - "power": 200,
- "video_url": null,
- "created_at": "2024-11-20T08:09:25.321Z",
- "power_unit": "bhp",
- "currency": "COP",
- "mileage_unit": "km",
- "engine_capacity_unit": "cc",
- "engine_capacity_normalized": null,
- "nameplate_name": "Nameplate 4",
- "nameplate_brand_name": "Brand 2",
- "owner_city": "Bonnieton",
- "price_hidden": false,
- "prices_type": null,
- "external_id": "715adc",
- "model_display_name": "Brand 2 Nameplate 4",
- "order_number": null,
- "nameplate_model_group": null,
- "nameplate_external_code": null,
- "metadata": null,
- "owner_phone": "+675 847.191.1373 x705",
- "owner_email": "yuri@monahan.name",
- "owner_zipcode": null,
- "owner_address": "37396 Hoppe Pines, Maggioport, DE 25181",
- "owner_state": null,
- "owner_metadata": { },
- "interior_color": "Ebony",
- "price_metadata": { },
- "code5000": null,
- "disclaimers": { },
- "price_breakdown": false,
- "base_price": null,
- "total_price": null,
- "status": "sold",
- "color_name": "Raspberry Plastic",
- "color_canonical": "black",
- "owner_name": "Blick-Predovic",
- "msrp_price": "180000.0",
- "sale_price": null,
- "monthly_price": null,
- "subscribe_price": "9000.0",
- "photos": [ ],
- "cover_photo": null,
- "cover_photo_medium": null,
- "cover_photo_hd": null,
- "cover_photo_quarter_hd": null,
- "owner_opening_hours": "<p>Mon-Fri: 9:00 - 19:00<br>\nSat: 11:00 - 18:00<br>\nSun: Closed</p>\n",
- "owner_contact_details": "<p>65804 Sirena Course<br>\nLake Janeen</p>\n",
- "financing_options": {
- "cash": true,
- "lease": false,
- "rent": true
}
}
}, - {
- "id": "59",
- "type": "listing_vehicles",
- "attributes": {
- "version": "JLA: Earth 2",
- "drivetrain": "Superman For All Seasons",
- "production_year": 2021,
- "short_description": "Et repellat rem est id aperiam quo inventore quasi fuga.",
- "state": "approved",
- "delivery_date": "2024-12-07",
- "transmission": "manual",
- "vin": null,
- "mileage": 161931,
- "engine_capacity": null,
- "engine_type": [
- "diesel"
], - "power": 140,
- "video_url": null,
- "created_at": "2024-11-20T08:09:25.348Z",
- "power_unit": "bhp",
- "currency": "KPW",
- "mileage_unit": "km",
- "engine_capacity_unit": "cc",
- "engine_capacity_normalized": null,
- "nameplate_name": "Vl'Hurg",
- "nameplate_brand_name": "Brand 1",
- "owner_city": "Faustinotown",
- "price_hidden": false,
- "prices_type": null,
- "external_id": "95d80b",
- "model_display_name": "Brand 1 Vl'Hurg",
- "order_number": null,
- "nameplate_model_group": "Discovery",
- "nameplate_external_code": null,
- "metadata": null,
- "owner_phone": "+263 1-893-221-6168 x6372",
- "owner_email": "marguerita.leffler@sporer-hartmann.co",
- "owner_zipcode": null,
- "owner_address": "Apt. 517 3007 Herb Motorway, South Candra, SD 33134-9739",
- "owner_state": null,
- "owner_metadata": { },
- "interior_color": "Ebony",
- "price_metadata": { },
- "code5000": null,
- "disclaimers": { },
- "price_breakdown": false,
- "base_price": null,
- "total_price": null,
- "status": "sold",
- "color_name": "Red Silk",
- "color_canonical": "gray",
- "owner_name": "O'Hara, Morissette and Goyette",
- "msrp_price": "180000.0",
- "sale_price": null,
- "monthly_price": null,
- "subscribe_price": "9000.0",
- "photos": [ ],
- "cover_photo": null,
- "cover_photo_medium": null,
- "cover_photo_hd": null,
- "cover_photo_quarter_hd": null,
- "owner_opening_hours": "<p>Mon-Fri: 9:00 - 19:00<br>\nSat: 11:00 - 18:00<br>\nSun: Closed</p>\n",
- "owner_contact_details": "<p>502 Keely Pine<br>\nPort Tabetha</p>\n",
- "financing_options": {
- "cash": true,
- "lease": false,
- "rent": true
}
}
}
], - "meta": {
- "pagination": {
- "scaffold_url": "/public_api/listing/c91c6e63-b126-49d2-a5ab-c7ce115d0d70?filter%5Bengine_type_includes%5D=phev%2Cdiesel&page=PAGE_NUM",
- "count": 3,
- "page": 1,
- "items": 3,
- "pages": 1,
- "last": 1,
- "from": 1,
- "to": 3,
- "prev": null,
- "next": null
}, - "dealers": [
- {
- "id": 252,
- "name": "Dare, Weissnat and Kautzer",
- "city": "Bentonmouth",
- "dealer_codes": [ ],
- "metadata": { }
}, - {
- "id": 253,
- "name": "Blick-Predovic",
- "city": "Bonnieton",
- "dealer_codes": [ ],
- "metadata": { }
}, - {
- "id": 254,
- "name": "O'Hara, Morissette and Goyette",
- "city": "Faustinotown",
- "dealer_codes": [ ],
- "metadata": { }
}, - {
- "id": 250,
- "name": "Lueilwitz LLC",
- "city": "New Valport",
- "dealer_codes": [ ],
- "metadata": { }
}, - {
- "id": 251,
- "name": "Williamson Group",
- "city": "West Cassie",
- "dealer_codes": [ ],
- "metadata": { }
}, - {
- "id": 249,
- "name": "Conn, Trantow and Bernhard",
- "city": "West Charlena",
- "dealer_codes": [ ],
- "metadata": { }
}
], - "disclaimers": [
- {
- "uuid": "c91c6e63-b126-49d2-a5ab-c7ce115d0d70",
- "disclaimers": { }
}
], - "owner_units": {
- "currency": "GBP",
- "mileage": "km",
- "engine_capacity": "cc",
- "engine_power": "bhp"
}, - "counters": {
- "brands": {
- "Brand 1": 3,
- "Brand 2": 3
}, - "models": {
- "Nameplate 1": 1,
- "Nameplate 2": 1,
- "Nameplate 3": 1,
- "Nameplate 4": 2,
- "Vl'Hurg": 1
}, - "statuses": {
- "sold": 2,
- "reserved": 2,
- "available_soon": 1,
- "stock": 1
}, - "states": {
- "new": 1,
- "used": 3,
- "approved": 2
}, - "engine_types": {
- "petrol": 3,
- "diesel": 2,
- "bev": 1,
- "mhev": 1,
- "phev": 1
}, - "transmissions": {
- "auto": 2,
- "manual": 4
}, - "colors": {
- "black": 2,
- "blue": 1,
- "gray": 1,
- "yellow": 2
}, - "specific_colors": {
- "Brown Wool": 1,
- "Lime Plastic": 1,
- "Aquamarine Cotton": 1,
- "Salmon Wool": 1,
- "Raspberry Plastic": 1,
- "Red Silk": 1
}, - "financing_options": {
- "cash": 6,
- "lease": 1,
- "rent": 3
}, - "dealers": {
- "249": 1,
- "250": 1,
- "251": 1,
- "252": 1,
- "253": 1,
- "254": 1
}
}, - "sort_attribute": "created_at",
- "sort_order": "asc",
- "listing_allowed_vehicle_states": [
- "new",
- "used",
- "approved"
], - "msrp_price": {
- "min": "100000.0",
- "max": "180000.0"
}, - "display_price": {
- "min": "100000.0",
- "max": "180000.0"
}, - "mileage": {
- "min": 27431,
- "max": 643124
}, - "power": {
- "min": 140,
- "max": 200
}, - "production_year": {
- "min": 2010,
- "max": 2021
}, - "nameplates": [
- {
- "id": 68,
- "name": "Nameplate 3"
}, - {
- "id": 69,
- "name": "Nameplate 4"
}, - {
- "id": 70,
- "name": "Vl'Hurg"
}
], - "brands": [
- {
- "id": 125,
- "name": "Brand 1"
}, - {
- "id": 128,
- "name": "Brand 2"
}
]
}
}
Action is used to fetch ONLY lowest-level companies from listings owners hierarchies (leaves) ordered by name.
Request Path
GET /public_api/listing/{listing_uuids separated by comma}/companies
Request Body Structure
param | example | type | required | source in configurator json | description |
---|---|---|---|---|---|
uuids |
"dea07f,dc4cd" | string | yes (in request path) | not present | Ids of listings containing requested vehicles separated by comma (no comma needed for single listing) |
Response
Response JSON contains ordered array with companies.
uuids | string Example: 249a84a5-0217-4589-bbe7-3873f56fe3e4 |
uuids required | string Example: uuids=d6af041b-8a7b-4560-bfaa-d5b8f502710c Listing UUID values |
Accept | any Example: application/json |
Content-Type | any Example: application/json |
{- "data": [
- {
- "id": "331",
- "type": "companies",
- "attributes": {
- "uuid": "f09c50f6-b154-482f-bee7-6c29c9336433",
- "name": "Ritchie-Kunde",
- "city": "Hermistonshire",
- "address": "99667 Major Corners, Antoniomouth, LA 39348-8794",
- "phone": "+994 987.432.9120",
- "email": "harriett@lesch.io",
- "locale": "en_IE",
- "currency": "USD",
- "zipcode": null,
- "timezone": "UTC",
- "mileage_unit": "km",
- "power_unit": "bhp",
- "engine_capacity_unit": "cc",
- "opening_hours": "Mon-Fri: 9:00 - 19:00\nSat: 11:00 - 18:00\nSun: Closed\n",
- "contact_details": "4821 Little Fields\nNew Velvet",
- "skip_company_name_in_location": false,
- "account_type": "retailer",
- "state": null,
- "dealer_codes": [ ],
- "operating_states": [
- "NSW",
- "VIC"
], - "metadata": { }
}, - "meta": {
- "power_units": [
- "bhp",
- "kw"
], - "mileage_units": [
- "km",
- "mi"
], - "engine_capacity_units": [
- "cc",
- "l"
]
}
}
]
}
Action is used to fetch ONLY lowest-level companies (retailers) from listings owners hierarchies (leaves) ordered by name.
Request Path
GET /public_api/listing/{listing_uuids separated by comma}/retailers
Request Body Structure
param | example | type | required | source in configurator json | description |
---|---|---|---|---|---|
uuids |
"dea07f,dc4cd" | string | yes (in request path) | not present | Ids of listings containing requested vehicles separated by comma (no comma needed for single listing) |
Response
Response JSON contains ordered array with companies.
uuids | string Example: 7f382aaf-8772-4c35-b142-97b88ed44334 |
uuids required | string Example: uuids=d6af041b-8a7b-4560-bfaa-d5b8f502710c Listing UUID values |
Accept | any Example: application/json |
Content-Type | any Example: application/json |
{- "data": [
- {
- "id": "335",
- "type": "companies",
- "attributes": {
- "uuid": "423ba712-5cf0-4bd2-9cf6-50e22a0fdc1f",
- "name": "Ritchie-Kunde",
- "city": "Hermistonshire",
- "address": "99667 Major Corners, Antoniomouth, LA 39348-8794",
- "phone": "+994 987.432.9120",
- "email": "harriett@lesch.io",
- "locale": "es_MX",
- "currency": "USD",
- "zipcode": null,
- "timezone": "UTC",
- "mileage_unit": "km",
- "power_unit": "bhp",
- "engine_capacity_unit": "cc",
- "opening_hours": "Mon-Fri: 9:00 - 19:00\nSat: 11:00 - 18:00\nSun: Closed\n",
- "contact_details": "4821 Little Fields\nNew Velvet",
- "skip_company_name_in_location": false,
- "account_type": "retailer",
- "state": null,
- "dealer_codes": [ ],
- "operating_states": [
- "NSW",
- "VIC"
], - "metadata": { }
}, - "meta": {
- "power_units": [
- "bhp",
- "kw"
], - "mileage_units": [
- "km",
- "mi"
], - "engine_capacity_units": [
- "cc",
- "l"
]
}
}
]
}
Simliast to Filtering the sorting mechanism utilises quite powerful Ransack gem engine
sort
attributeTo sort results one should use sort
GET parameter as a list of collumns that records should be sorted by.
By default sorting works in natura ascending order. To use the ascending order (usefull for prices) column name should
be predicated with minus (-
, U+002D HYPHEN-MINUS) character
To Sort Vechiles in ascending order by msrp_price
sort=msrp_price
To Sort Vechiles in descending order by msrp_price
sort=-msrp_price
To Sort Vechiles in ascending order by production year and then in descending order by msrp_price
sort=production_year,-msrp_price
uuids | string Example: e5e14b98-b703-41a9-9811-8f259d6b04e3 |
sort required | string Example: sort=msrp_price Comma separated list of columns to sort vehicles by |
Accept | any Example: application/vnd.api+json |
Content-Type | any Example: application/vnd.api+json |
{- "data": [
- {
- "id": "123",
- "type": "listing_vehicles",
- "attributes": {
- "version": "Teen Titans: The Judas Contract",
- "drivetrain": "The Killing Joke",
- "production_year": 2011,
- "short_description": "Officiis accusamus quia quidem non ratione et quia sit sunt.",
- "state": "used",
- "delivery_date": "2024-11-29",
- "transmission": "auto",
- "vin": null,
- "mileage": 866323,
- "engine_capacity": null,
- "engine_type": [
- "diesel"
], - "power": 200,
- "video_url": null,
- "created_at": "2024-11-20T08:09:30.814Z",
- "power_unit": "bhp",
- "currency": "ISK",
- "mileage_unit": "km",
- "engine_capacity_unit": "cc",
- "engine_capacity_normalized": null,
- "nameplate_name": "Boghog",
- "nameplate_brand_name": "Ford",
- "owner_city": "New Valport",
- "price_hidden": false,
- "prices_type": null,
- "external_id": "7224df",
- "model_display_name": "Ford Boghog",
- "order_number": null,
- "nameplate_model_group": null,
- "nameplate_external_code": null,
- "metadata": null,
- "owner_phone": "+1 1-199-087-8658 x1543",
- "owner_email": "jim@price.name",
- "owner_zipcode": null,
- "owner_address": "270 Keneth Trafficway, Jaymouth, IA 38036-8607",
- "owner_state": null,
- "owner_metadata": { },
- "interior_color": "Ebony",
- "price_metadata": { },
- "code5000": null,
- "disclaimers": { },
- "price_breakdown": false,
- "base_price": null,
- "total_price": null,
- "status": "stock",
- "color_name": "Erin Rubber",
- "color_canonical": "bronze",
- "owner_name": "Lueilwitz LLC",
- "msrp_price": "2000.0",
- "sale_price": null,
- "monthly_price": null,
- "subscribe_price": null,
- "photos": [ ],
- "cover_photo": null,
- "cover_photo_medium": null,
- "cover_photo_hd": null,
- "cover_photo_quarter_hd": null,
- "owner_opening_hours": "<p>Mon-Fri: 9:00 - 19:00<br>\nSat: 11:00 - 18:00<br>\nSun: Closed</p>\n",
- "owner_contact_details": "<p>80588 Spinka Circles<br>\nSilvaville</p>\n",
- "financing_options": {
- "cash": true,
- "lease": false,
- "rent": false
}
}
}, - {
- "id": "122",
- "type": "listing_vehicles",
- "attributes": {
- "version": "The Coyote Gospel",
- "drivetrain": "Gotham Central",
- "production_year": 2011,
- "short_description": "Ab et voluptas consectetur dolore enim vel aut quia et.",
- "state": "used",
- "delivery_date": "2024-12-19",
- "transmission": "manual",
- "vin": null,
- "mileage": 786406,
- "engine_capacity": null,
- "engine_type": [
- "bev"
], - "power": 361,
- "video_url": null,
- "created_at": "2024-11-20T08:09:30.779Z",
- "power_unit": "bhp",
- "currency": "BWP",
- "mileage_unit": "km",
- "engine_capacity_unit": "cc",
- "engine_capacity_normalized": null,
- "nameplate_name": "Perfectly Normal Beast",
- "nameplate_brand_name": "Bugatti",
- "owner_city": "West Charlena",
- "price_hidden": false,
- "prices_type": null,
- "external_id": "971222",
- "model_display_name": "Bugatti Perfectly Normal Beast",
- "order_number": null,
- "nameplate_model_group": null,
- "nameplate_external_code": null,
- "metadata": null,
- "owner_phone": "+66 881-923-7747 x8991",
- "owner_email": "leighann.wiegand@thompson.name",
- "owner_zipcode": null,
- "owner_address": "62288 Jast Shore, Port Becky, OH 41599",
- "owner_state": null,
- "owner_metadata": { },
- "interior_color": "Ebony",
- "price_metadata": { },
- "code5000": null,
- "disclaimers": { },
- "price_breakdown": false,
- "base_price": null,
- "total_price": null,
- "status": "demo",
- "color_name": "Mauve Granite",
- "color_canonical": "black",
- "owner_name": "Conn, Trantow and Bernhard",
- "msrp_price": "1000.0",
- "sale_price": null,
- "monthly_price": null,
- "subscribe_price": null,
- "photos": [ ],
- "cover_photo": null,
- "cover_photo_medium": null,
- "cover_photo_hd": null,
- "cover_photo_quarter_hd": null,
- "owner_opening_hours": "<p>Mon-Fri: 9:00 - 19:00<br>\nSat: 11:00 - 18:00<br>\nSun: Closed</p>\n",
- "owner_contact_details": "<p>740 Schroeder Skyway<br>\nMonicamouth</p>\n",
- "financing_options": {
- "cash": true,
- "lease": false,
- "rent": false
}
}
}
], - "meta": {
- "pagination": {
- "scaffold_url": "/public_api/listing/e5e14b98-b703-41a9-9811-8f259d6b04e3?sort=-msrp_price&page=PAGE_NUM",
- "count": 2,
- "page": 1,
- "items": 2,
- "pages": 1,
- "last": 1,
- "from": 1,
- "to": 2,
- "prev": null,
- "next": null
}, - "dealers": [
- {
- "id": 342,
- "name": "Lueilwitz LLC",
- "city": "New Valport",
- "dealer_codes": [ ],
- "metadata": { }
}, - {
- "id": 341,
- "name": "Conn, Trantow and Bernhard",
- "city": "West Charlena",
- "dealer_codes": [ ],
- "metadata": { }
}
], - "disclaimers": [
- {
- "uuid": "e5e14b98-b703-41a9-9811-8f259d6b04e3",
- "disclaimers": { }
}
], - "owner_units": {
- "currency": "GBP",
- "mileage": "km",
- "engine_capacity": "cc",
- "engine_power": "bhp"
}, - "counters": {
- "brands": {
- "Bugatti": 1,
- "Ford": 1
}, - "models": {
- "Perfectly Normal Beast": 1,
- "Boghog": 1
}, - "statuses": {
- "demo": 1,
- "stock": 1
}, - "states": {
- "used": 2
}, - "engine_types": {
- "diesel": 1,
- "bev": 1
}, - "transmissions": {
- "auto": 1,
- "manual": 1
}, - "colors": {
- "black": 1,
- "bronze": 1
}, - "specific_colors": {
- "Mauve Granite": 1,
- "Erin Rubber": 1
}, - "financing_options": {
- "cash": 2
}, - "dealers": {
- "341": 1,
- "342": 1
}
}, - "sort_attribute": "display_price",
- "sort_order": "desc",
- "listing_allowed_vehicle_states": [
- "new",
- "used",
- "approved"
], - "msrp_price": {
- "min": "1000.0",
- "max": "2000.0"
}, - "display_price": {
- "min": "1000.0",
- "max": "2000.0"
}, - "mileage": {
- "min": 786406,
- "max": 866323
}, - "power": {
- "min": 200,
- "max": 361
}, - "production_year": {
- "min": 2011,
- "max": 2011
}, - "nameplates": [
- {
- "id": 124,
- "name": "Perfectly Normal Beast"
}, - {
- "id": 125,
- "name": "Boghog"
}
], - "brands": [
- {
- "id": 221,
- "name": "Bugatti"
}, - {
- "id": 223,
- "name": "Ford"
}
]
}
}
Vehicles list is always paginated.
By default API will return up to 20 items but it can be overriden using items
parameter.
Here we use items=2
bo brevity but it's optional and set to 20 by default.
Paginated results include pagination metadata in the meta
object like this:
"meta": {
"pagination": {
//URL template to fetch additonal pages (PAGE_NUM) should be replaced by page number
"scaffold_url": "...?items=2&page=PAGE_NUM",
"count": 50, // Overall amount of vehicles in collection
"page": 3, // Current page number
"items": 2, // Amount of items page page
"pages": 25, // Amount of all pages
"last": 25, // Last page number
"from": 5, // index of first item on current page
"to": 6, // index of last item on current page
"prev": 2, // previous page number, null if no previous page
"next": 4 // next page number, null if no next page
}
}
uuids | string Example: 8b8125b6-2d82-4490-84f5-a6d1ffa96e90 |
page required | number Example: page=2 Pagination page to be requested (default: 1) |
items required | number Example: items=3 Amount of items per page (default: 20) |
Accept | any Example: application/vnd.api+json |
Content-Type | any Example: application/vnd.api+json |
{- "data": [
- {
- "id": "145",
- "type": "listing_vehicles",
- "attributes": {
- "version": "Teen Titans: The Judas Contract",
- "drivetrain": "JLA: Tower Of Babel",
- "production_year": 2007,
- "short_description": "Quos totam iusto possimus quo et quod deleniti sequi aperiam.",
- "state": "approved",
- "delivery_date": "2024-12-01",
- "transmission": "auto",
- "vin": null,
- "mileage": 776000,
- "engine_capacity": null,
- "engine_type": [
- "phev"
], - "power": 411,
- "video_url": null,
- "created_at": "2024-11-20T08:09:32.730Z",
- "power_unit": "bhp",
- "currency": "TTD",
- "mileage_unit": "km",
- "engine_capacity_unit": "cc",
- "engine_capacity_normalized": null,
- "nameplate_name": "Mattress",
- "nameplate_brand_name": "Aston Martin",
- "owner_city": "McDermotttown",
- "price_hidden": false,
- "prices_type": null,
- "external_id": "0b4e81",
- "model_display_name": "Aston Martin Mattress",
- "order_number": null,
- "nameplate_model_group": null,
- "nameplate_external_code": null,
- "metadata": null,
- "owner_phone": "+685 633-268-3284 x4519",
- "owner_email": "dudley.schmidt@runolfsdottir-zieme.info",
- "owner_zipcode": null,
- "owner_address": "182 Bogan Center, East Elinor, NM 39203",
- "owner_state": null,
- "owner_metadata": { },
- "interior_color": "Ebony",
- "price_metadata": { },
- "code5000": null,
- "disclaimers": { },
- "price_breakdown": false,
- "base_price": null,
- "total_price": null,
- "status": "on_demand",
- "color_name": "Green Copper",
- "color_canonical": "orange",
- "owner_name": "McClure, McKenzie and Cruickshank",
- "msrp_price": "694000.0",
- "sale_price": null,
- "monthly_price": null,
- "subscribe_price": null,
- "photos": [ ],
- "cover_photo": null,
- "cover_photo_medium": null,
- "cover_photo_hd": null,
- "cover_photo_quarter_hd": null,
- "owner_opening_hours": "<p>Mon-Fri: 9:00 - 19:00<br>\nSat: 11:00 - 18:00<br>\nSun: Closed</p>\n",
- "owner_contact_details": "<p>48982 Jovita Crossroad<br>\nQuentinfurt</p>\n",
- "financing_options": {
- "cash": true,
- "lease": false,
- "rent": false
}
}
}, - {
- "id": "148",
- "type": "listing_vehicles",
- "attributes": {
- "version": "JLA: Earth 2",
- "drivetrain": "Arkham Asylum: A Serious House On Serious Earth",
- "production_year": 2021,
- "short_description": "Accusantium commodi est quis blanditiis architecto culpa pariatur ullam unde.",
- "state": "new",
- "delivery_date": "2024-11-20",
- "transmission": "manual",
- "vin": null,
- "mileage": 560000,
- "engine_capacity": null,
- "engine_type": [
- "mhev"
], - "power": 394,
- "video_url": null,
- "created_at": "2024-11-20T08:09:32.832Z",
- "power_unit": "bhp",
- "currency": "BGN",
- "mileage_unit": "km",
- "engine_capacity_unit": "cc",
- "engine_capacity_normalized": null,
- "nameplate_name": "Hooloovoo",
- "nameplate_brand_name": "Dongfeng Fengshen",
- "owner_city": "Langworthberg",
- "price_hidden": false,
- "prices_type": null,
- "external_id": "92d1f7",
- "model_display_name": "Dongfeng Fengshen Hooloovoo",
- "order_number": null,
- "nameplate_model_group": null,
- "nameplate_external_code": null,
- "metadata": null,
- "owner_phone": "+91 1-819-958-0928",
- "owner_email": "korey@gusikowski.com",
- "owner_zipcode": null,
- "owner_address": "Suite 962 709 Damon Crest, North Jannette, NE 95961-5156",
- "owner_state": null,
- "owner_metadata": { },
- "interior_color": "Ebony",
- "price_metadata": { },
- "code5000": null,
- "disclaimers": { },
- "price_breakdown": false,
- "base_price": null,
- "total_price": null,
- "status": "available_soon",
- "color_name": "Bronze Plastic",
- "color_canonical": "bronze",
- "owner_name": "Reinger-Jerde",
- "msrp_price": "436000.0",
- "sale_price": null,
- "monthly_price": null,
- "subscribe_price": null,
- "photos": [ ],
- "cover_photo": null,
- "cover_photo_medium": null,
- "cover_photo_hd": null,
- "cover_photo_quarter_hd": null,
- "owner_opening_hours": "<p>Mon-Fri: 9:00 - 19:00<br>\nSat: 11:00 - 18:00<br>\nSun: Closed</p>\n",
- "owner_contact_details": "<p>17644 Miguel Spurs<br>\nWest Towandafurt</p>\n",
- "financing_options": {
- "cash": true,
- "lease": false,
- "rent": false
}
}
}
], - "meta": {
- "pagination": {
- "scaffold_url": "/public_api/listing/8b8125b6-2d82-4490-84f5-a6d1ffa96e90?items=2&page=PAGE_NUM",
- "count": 12,
- "page": 3,
- "items": 2,
- "pages": 6,
- "last": 6,
- "from": 5,
- "to": 6,
- "prev": 2,
- "next": 4
}, - "dealers": [
- {
- "id": 373,
- "name": "Hoeger, Streich and Sporer",
- "city": "Boyerborough",
- "dealer_codes": [ ],
- "metadata": { }
}, - {
- "id": 380,
- "name": "Huels, Crist and Christiansen",
- "city": "Lake Jayneton",
- "dealer_codes": [ ],
- "metadata": { }
}, - {
- "id": 382,
- "name": "Reinger-Jerde",
- "city": "Langworthberg",
- "dealer_codes": [ ],
- "metadata": { }
}, - {
- "id": 379,
- "name": "McClure, McKenzie and Cruickshank",
- "city": "McDermotttown",
- "dealer_codes": [ ],
- "metadata": { }
}, - {
- "id": 378,
- "name": "Lind, Schulist and Hills",
- "city": "McKenziestad",
- "dealer_codes": [ ],
- "metadata": { }
}, - {
- "id": 377,
- "name": "Tillman, Heller and McClure",
- "city": "Mollyhaven",
- "dealer_codes": [ ],
- "metadata": { }
}, - {
- "id": 381,
- "name": "Haag-Gulgowski",
- "city": "Mosciskiville",
- "dealer_codes": [ ],
- "metadata": { }
}, - {
- "id": 374,
- "name": "Borer, Doyle and Torphy",
- "city": "New Amie",
- "dealer_codes": [ ],
- "metadata": { }
}, - {
- "id": 376,
- "name": "Boyle Inc",
- "city": "North Noble",
- "dealer_codes": [ ],
- "metadata": { }
}, - {
- "id": 371,
- "name": "Conn and Sons",
- "city": "South Elissatown",
- "dealer_codes": [ ],
- "metadata": { }
}, - {
- "id": 375,
- "name": "Von-Witting",
- "city": "Suzyshire",
- "dealer_codes": [ ],
- "metadata": { }
}, - {
- "id": 372,
- "name": "Williamson Inc",
- "city": "West Lucien",
- "dealer_codes": [ ],
- "metadata": { }
}
], - "disclaimers": [
- {
- "uuid": "8b8125b6-2d82-4490-84f5-a6d1ffa96e90",
- "disclaimers": { }
}
], - "owner_units": {
- "currency": "ILS",
- "mileage": "km",
- "engine_capacity": "cc",
- "engine_power": "bhp"
}, - "counters": {
- "brands": {
- "Lada": 1,
- "Acura": 1,
- "Dacia": 1,
- "Saleen": 1,
- "PGO": 1,
- "NEVS": 1,
- "Ram": 1,
- "Aston Martin": 1,
- "Luxgen": 1,
- "Pagani": 1,
- "Dongfeng Fengshen": 1
}, - "models": {
- "Hooloovoo": 1,
- "Dentrassis": 1,
- "Perfectly Normal Beast": 1,
- "Silastic Armorfiends": 1,
- "Sarkopsi": 1,
- "Ravenous Bugblatter Beast of Traal": 1,
- "Golgafrinchan": 1,
- "Babel Fish": 1,
- "Hingefreel": 1,
- "Mattress": 1
}, - "statuses": {
- "on_demand": 3,
- "reserved": 1,
- "in_production": 2,
- "delivery": 2,
- "demo": 2,
- "available_soon": 1,
- "stock": 1
}, - "states": {
- "new": 3,
- "used": 1,
- "approved": 8
}, - "engine_types": {
- "petrol": 2,
- "diesel": 1,
- "bev": 2,
- "hev": 1,
- "mhev": 2,
- "phev": 3,
- "phev_rev": 1
}, - "transmissions": {
- "auto": 8,
- "manual": 4
}, - "colors": {
- "black": 1,
- "blue": 1,
- "bronze": 2,
- "gray": 2,
- "green": 2,
- "orange": 2,
- "silver": 2
}, - "specific_colors": {
- "Ochre Iron": 1,
- "Grey Granite": 1,
- "Raspberry Marble": 1,
- "Olive Concrete": 1,
- "Pink Linen": 1,
- "Bronze Plastic": 1,
- "Azure Wool": 1,
- "Gray Linen": 1,
- "Green Copper": 1,
- "Violet Cotton": 1,
- "Lime Copper": 1,
- "Raspberry Linen": 1
}, - "financing_options": {
- "cash": 12
}, - "dealers": {
- "371": 1,
- "372": 1,
- "373": 1,
- "374": 1,
- "375": 1,
- "376": 1,
- "377": 1,
- "378": 1,
- "379": 1,
- "380": 1,
- "381": 1,
- "382": 1
}
}, - "sort_attribute": "display_price",
- "sort_order": "desc",
- "listing_allowed_vehicle_states": [
- "new",
- "used",
- "approved"
], - "msrp_price": {
- "min": "95000.0",
- "max": "894000.0"
}, - "display_price": {
- "min": "95000.0",
- "max": "894000.0"
}, - "mileage": {
- "min": 242000,
- "max": 960000
}, - "power": {
- "min": 158,
- "max": 412
}, - "production_year": {
- "min": 2005,
- "max": 2024
}, - "nameplates": [
- {
- "id": 139,
- "name": "Silastic Armorfiends"
}, - {
- "id": 140,
- "name": "Perfectly Normal Beast"
}, - {
- "id": 141,
- "name": "Dentrassis"
}, - {
- "id": 142,
- "name": "Hooloovoo"
}, - {
- "id": 143,
- "name": "Hingefreel"
}, - {
- "id": 144,
- "name": "Golgafrinchan"
}, - {
- "id": 145,
- "name": "Sarkopsi"
}, - {
- "id": 146,
- "name": "Babel Fish"
}, - {
- "id": 147,
- "name": "Mattress"
}, - {
- "id": 148,
- "name": "Ravenous Bugblatter Beast of Traal"
}, - {
- "id": 149,
- "name": "Perfectly Normal Beast"
}, - {
- "id": 150,
- "name": "Hooloovoo"
}
], - "brands": [
- {
- "id": 251,
- "name": "Lada"
}, - {
- "id": 253,
- "name": "Acura"
}, - {
- "id": 255,
- "name": "Dacia"
}, - {
- "id": 257,
- "name": "Saleen"
}, - {
- "id": 259,
- "name": "PGO"
}, - {
- "id": 261,
- "name": "NEVS"
}, - {
- "id": 263,
- "name": "Ram"
}, - {
- "id": 265,
- "name": "Aston Martin"
}, - {
- "id": 267,
- "name": "Aston Martin"
}, - {
- "id": 269,
- "name": "Luxgen"
}, - {
- "id": 271,
- "name": "Pagani"
}, - {
- "id": 273,
- "name": "Dongfeng Fengshen"
}
]
}
}
This endpoint inherits a lot of behaviour and data format from private /vehicles
endpoint but some
details were adapted to better match publich "widget" use case. Differences are
photos
and lisitings
relationships are listed. owner
, color
, nameplate
etc are ommittedmeta
includes max/min values for msrp_price
and mileage
values.photos
in all vehicles listinguuids | string Example: 3888b69c-e219-4656-bd60-317f72f12fb6 |
uuid required | string Example: uuid=d6af041b-8a7b-4560-bfaa-d5b8f502710c Listing UUID value |
Accept | any Example: application/vnd.api+json |
Content-Type | any Example: application/vnd.api+json |
{- "data": [
- {
- "id": "164",
- "type": "listing_vehicles",
- "attributes": {
- "version": "Identity Crisis",
- "drivetrain": "Grant Morrison's Animal Man",
- "production_year": 2006,
- "short_description": "Laborum eum corporis alias sunt in quibusdam neque nisi atque.",
- "state": "used",
- "delivery_date": "2024-12-09",
- "transmission": "auto",
- "vin": null,
- "mileage": 736000,
- "engine_capacity": null,
- "engine_type": [
- "petrol"
], - "power": 264,
- "video_url": null,
- "created_at": "2024-11-20T08:09:34.681Z",
- "power_unit": "bhp",
- "currency": "TWD",
- "mileage_unit": "km",
- "engine_capacity_unit": "cc",
- "engine_capacity_normalized": null,
- "nameplate_name": "Nanites",
- "nameplate_brand_name": "Holden (HSV)",
- "owner_city": "Mitchellville",
- "price_hidden": true,
- "prices_type": null,
- "external_id": "3293cd",
- "model_display_name": "Holden (HSV) Nanites",
- "order_number": null,
- "nameplate_model_group": null,
- "nameplate_external_code": null,
- "metadata": null,
- "owner_phone": "+230 (417) 326-6929 x68515",
- "owner_email": "thu.dubuque@kessler.net",
- "owner_zipcode": null,
- "owner_address": "798 Medhurst Hill, Marionchester, CT 03629-3466",
- "owner_state": null,
- "owner_metadata": { },
- "interior_color": "Ebony",
- "price_metadata": { },
- "code5000": null,
- "disclaimers": { },
- "price_breakdown": false,
- "base_price": null,
- "total_price": null,
- "status": "in_production",
- "color_name": "Silver Rubber",
- "color_canonical": "red",
- "owner_name": "Brakus-Botsford",
- "msrp_price": "0",
- "sale_price": null,
- "monthly_price": null,
- "subscribe_price": null,
- "photos": [
- {
- "sequence": 0,
- "normal": "/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6NDEsInB1ciI6ImJsb2JfaWQifX0=--55d2d645acb036755104f086a10cbfa32cba1f94/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGciLCJyZXNpemVfYW5kX3BhZCI6WzE2MDAsMTIwMCx7ImJhY2tncm91bmQiOlsyMzgsMjM4LDIzOCwyMzhdLCJhbHBoYSI6dHJ1ZX1dLCJzYXZlciI6eyJxdWFsaXR5Ijo4NX19LCJwdXIiOiJ2YXJpYXRpb24ifX0=--7b5f4ca4fdb73844cccc54630e015a046b05719f/1.jpg",
- "medium": "/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6NDEsInB1ciI6ImJsb2JfaWQifX0=--55d2d645acb036755104f086a10cbfa32cba1f94/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGciLCJyZXNpemVfYW5kX3BhZCI6WzQyMCwyMzYseyJiYWNrZ3JvdW5kIjpbMjM4LDIzOCwyMzgsMjM4XSwiYWxwaGEiOnRydWV9XSwic2F2ZXIiOnsicXVhbGl0eSI6ODV9fSwicHVyIjoidmFyaWF0aW9uIn19--4dc07e951609e3efb6b48f3567616f872348d59f/1.jpg",
- "hd": "/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6NDEsInB1ciI6ImJsb2JfaWQifX0=--55d2d645acb036755104f086a10cbfa32cba1f94/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGciLCJyZXNpemVfYW5kX3BhZCI6WzEyODAsNzIwLHsiYmFja2dyb3VuZCI6WzIzOCwyMzgsMjM4LDIzOF0sImFscGhhIjp0cnVlfV0sInNhdmVyIjp7InF1YWxpdHkiOjg1fX0sInB1ciI6InZhcmlhdGlvbiJ9fQ==--42f4d8f39eed9164bf5b7953b39766c46b314eb9/1.jpg",
- "quarter_hd": "/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6NDEsInB1ciI6ImJsb2JfaWQifX0=--55d2d645acb036755104f086a10cbfa32cba1f94/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGciLCJyZXNpemVfYW5kX3BhZCI6Wzk2MCw1NDAseyJiYWNrZ3JvdW5kIjpbMjM4LDIzOCwyMzgsMjM4XSwiYWxwaGEiOnRydWV9XSwic2F2ZXIiOnsicXVhbGl0eSI6ODV9fSwicHVyIjoidmFyaWF0aW9uIn19--d39339055de4cc3639252e2adcd4214fec0787dc/1.jpg"
}, - {
- "sequence": 0,
- "normal": "/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6NDIsInB1ciI6ImJsb2JfaWQifX0=--531b3810f0e6a38e332a2ebc03cedfb64159561b/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGciLCJyZXNpemVfYW5kX3BhZCI6WzE2MDAsMTIwMCx7ImJhY2tncm91bmQiOlsyMzgsMjM4LDIzOCwyMzhdLCJhbHBoYSI6dHJ1ZX1dLCJzYXZlciI6eyJxdWFsaXR5Ijo4NX19LCJwdXIiOiJ2YXJpYXRpb24ifX0=--7b5f4ca4fdb73844cccc54630e015a046b05719f/1.jpg",
- "medium": "/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6NDIsInB1ciI6ImJsb2JfaWQifX0=--531b3810f0e6a38e332a2ebc03cedfb64159561b/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGciLCJyZXNpemVfYW5kX3BhZCI6WzQyMCwyMzYseyJiYWNrZ3JvdW5kIjpbMjM4LDIzOCwyMzgsMjM4XSwiYWxwaGEiOnRydWV9XSwic2F2ZXIiOnsicXVhbGl0eSI6ODV9fSwicHVyIjoidmFyaWF0aW9uIn19--4dc07e951609e3efb6b48f3567616f872348d59f/1.jpg",
- "hd": "/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6NDIsInB1ciI6ImJsb2JfaWQifX0=--531b3810f0e6a38e332a2ebc03cedfb64159561b/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGciLCJyZXNpemVfYW5kX3BhZCI6WzEyODAsNzIwLHsiYmFja2dyb3VuZCI6WzIzOCwyMzgsMjM4LDIzOF0sImFscGhhIjp0cnVlfV0sInNhdmVyIjp7InF1YWxpdHkiOjg1fX0sInB1ciI6InZhcmlhdGlvbiJ9fQ==--42f4d8f39eed9164bf5b7953b39766c46b314eb9/1.jpg",
- "quarter_hd": "/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6NDIsInB1ciI6ImJsb2JfaWQifX0=--531b3810f0e6a38e332a2ebc03cedfb64159561b/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGciLCJyZXNpemVfYW5kX3BhZCI6Wzk2MCw1NDAseyJiYWNrZ3JvdW5kIjpbMjM4LDIzOCwyMzgsMjM4XSwiYWxwaGEiOnRydWV9XSwic2F2ZXIiOnsicXVhbGl0eSI6ODV9fSwicHVyIjoidmFyaWF0aW9uIn19--d39339055de4cc3639252e2adcd4214fec0787dc/1.jpg"
}, - {
- "sequence": 0,
- "normal": "/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6NDMsInB1ciI6ImJsb2JfaWQifX0=--ba88407099de67a94ecf4a5ee3e48e2b8c047d23/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGciLCJyZXNpemVfYW5kX3BhZCI6WzE2MDAsMTIwMCx7ImJhY2tncm91bmQiOlsyMzgsMjM4LDIzOCwyMzhdLCJhbHBoYSI6dHJ1ZX1dLCJzYXZlciI6eyJxdWFsaXR5Ijo4NX19LCJwdXIiOiJ2YXJpYXRpb24ifX0=--7b5f4ca4fdb73844cccc54630e015a046b05719f/1.jpg",
- "medium": "/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6NDMsInB1ciI6ImJsb2JfaWQifX0=--ba88407099de67a94ecf4a5ee3e48e2b8c047d23/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGciLCJyZXNpemVfYW5kX3BhZCI6WzQyMCwyMzYseyJiYWNrZ3JvdW5kIjpbMjM4LDIzOCwyMzgsMjM4XSwiYWxwaGEiOnRydWV9XSwic2F2ZXIiOnsicXVhbGl0eSI6ODV9fSwicHVyIjoidmFyaWF0aW9uIn19--4dc07e951609e3efb6b48f3567616f872348d59f/1.jpg",
- "hd": "/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6NDMsInB1ciI6ImJsb2JfaWQifX0=--ba88407099de67a94ecf4a5ee3e48e2b8c047d23/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGciLCJyZXNpemVfYW5kX3BhZCI6WzEyODAsNzIwLHsiYmFja2dyb3VuZCI6WzIzOCwyMzgsMjM4LDIzOF0sImFscGhhIjp0cnVlfV0sInNhdmVyIjp7InF1YWxpdHkiOjg1fX0sInB1ciI6InZhcmlhdGlvbiJ9fQ==--42f4d8f39eed9164bf5b7953b39766c46b314eb9/1.jpg",
- "quarter_hd": "/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6NDMsInB1ciI6ImJsb2JfaWQifX0=--ba88407099de67a94ecf4a5ee3e48e2b8c047d23/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGciLCJyZXNpemVfYW5kX3BhZCI6Wzk2MCw1NDAseyJiYWNrZ3JvdW5kIjpbMjM4LDIzOCwyMzgsMjM4XSwiYWxwaGEiOnRydWV9XSwic2F2ZXIiOnsicXVhbGl0eSI6ODV9fSwicHVyIjoidmFyaWF0aW9uIn19--d39339055de4cc3639252e2adcd4214fec0787dc/1.jpg"
}
], - "cover_photo": "/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6NDEsInB1ciI6ImJsb2JfaWQifX0=--55d2d645acb036755104f086a10cbfa32cba1f94/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGciLCJyZXNpemVfYW5kX3BhZCI6WzE2MDAsMTIwMCx7ImJhY2tncm91bmQiOlsyMzgsMjM4LDIzOCwyMzhdLCJhbHBoYSI6dHJ1ZX1dLCJzYXZlciI6eyJxdWFsaXR5Ijo4NX19LCJwdXIiOiJ2YXJpYXRpb24ifX0=--7b5f4ca4fdb73844cccc54630e015a046b05719f/1.jpg",
- "cover_photo_medium": "/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6NDEsInB1ciI6ImJsb2JfaWQifX0=--55d2d645acb036755104f086a10cbfa32cba1f94/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGciLCJyZXNpemVfYW5kX3BhZCI6WzQyMCwyMzYseyJiYWNrZ3JvdW5kIjpbMjM4LDIzOCwyMzgsMjM4XSwiYWxwaGEiOnRydWV9XSwic2F2ZXIiOnsicXVhbGl0eSI6ODV9fSwicHVyIjoidmFyaWF0aW9uIn19--4dc07e951609e3efb6b48f3567616f872348d59f/1.jpg",
- "cover_photo_hd": "/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6NDEsInB1ciI6ImJsb2JfaWQifX0=--55d2d645acb036755104f086a10cbfa32cba1f94/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGciLCJyZXNpemVfYW5kX3BhZCI6WzEyODAsNzIwLHsiYmFja2dyb3VuZCI6WzIzOCwyMzgsMjM4LDIzOF0sImFscGhhIjp0cnVlfV0sInNhdmVyIjp7InF1YWxpdHkiOjg1fX0sInB1ciI6InZhcmlhdGlvbiJ9fQ==--42f4d8f39eed9164bf5b7953b39766c46b314eb9/1.jpg",
- "cover_photo_quarter_hd": "/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6NDEsInB1ciI6ImJsb2JfaWQifX0=--55d2d645acb036755104f086a10cbfa32cba1f94/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGciLCJyZXNpemVfYW5kX3BhZCI6Wzk2MCw1NDAseyJiYWNrZ3JvdW5kIjpbMjM4LDIzOCwyMzgsMjM4XSwiYWxwaGEiOnRydWV9XSwic2F2ZXIiOnsicXVhbGl0eSI6ODV9fSwicHVyIjoidmFyaWF0aW9uIn19--d39339055de4cc3639252e2adcd4214fec0787dc/1.jpg",
- "owner_opening_hours": "<p>Mon-Fri: 9:00 - 19:00<br>\nSat: 11:00 - 18:00<br>\nSun: Closed</p>\n",
- "owner_contact_details": "<p>1281 Mattie River<br>\nDeckowburgh</p>\n",
- "financing_options": {
- "cash": true,
- "lease": true,
- "rent": false
}
}
}, - {
- "id": "165",
- "type": "listing_vehicles",
- "attributes": {
- "version": "Crisis On Infinite Earths",
- "drivetrain": "Multiversity",
- "production_year": 2008,
- "short_description": "Qui commodi sapiente at minima occaecati minus sit dolores quia.",
- "state": "used",
- "delivery_date": "2024-12-06",
- "transmission": "auto",
- "vin": null,
- "mileage": 332000,
- "engine_capacity": null,
- "engine_type": [
- "mhev"
], - "power": 163,
- "video_url": null,
- "created_at": "2024-11-20T08:09:34.714Z",
- "power_unit": "bhp",
- "currency": "XFU",
- "mileage_unit": "km",
- "engine_capacity_unit": "cc",
- "engine_capacity_normalized": null,
- "nameplate_name": "Arcturan Megagrasshopper",
- "nameplate_brand_name": "Škoda",
- "owner_city": "Kuphalmouth",
- "price_hidden": false,
- "prices_type": null,
- "external_id": "03aa0f",
- "model_display_name": "Škoda Arcturan Megagrasshopper",
- "order_number": null,
- "nameplate_model_group": null,
- "nameplate_external_code": null,
- "metadata": null,
- "owner_phone": "+64 779-991-3947 x73914",
- "owner_email": "edmund_parisian@corwin.com",
- "owner_zipcode": null,
- "owner_address": "Apt. 211 396 Ruthe Parkways, Lake Emeldamouth, MI 33654",
- "owner_state": null,
- "owner_metadata": { },
- "interior_color": "Ebony",
- "price_metadata": { },
- "code5000": null,
- "disclaimers": { },
- "price_breakdown": false,
- "base_price": null,
- "total_price": null,
- "status": "reserved",
- "color_name": "Raspberry Aluminum",
- "color_canonical": "black",
- "owner_name": "Zieme, Harris and Leuschke",
- "msrp_price": "654000.0",
- "sale_price": null,
- "monthly_price": null,
- "subscribe_price": null,
- "photos": [
- {
- "sequence": 0,
- "normal": "/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6NDQsInB1ciI6ImJsb2JfaWQifX0=--3daab3ed21c0d47fd97ebb1600175a14d3c0d382/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGciLCJyZXNpemVfYW5kX3BhZCI6WzE2MDAsMTIwMCx7ImJhY2tncm91bmQiOlsyMzgsMjM4LDIzOCwyMzhdLCJhbHBoYSI6dHJ1ZX1dLCJzYXZlciI6eyJxdWFsaXR5Ijo4NX19LCJwdXIiOiJ2YXJpYXRpb24ifX0=--7b5f4ca4fdb73844cccc54630e015a046b05719f/1.jpg",
- "medium": "/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6NDQsInB1ciI6ImJsb2JfaWQifX0=--3daab3ed21c0d47fd97ebb1600175a14d3c0d382/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGciLCJyZXNpemVfYW5kX3BhZCI6WzQyMCwyMzYseyJiYWNrZ3JvdW5kIjpbMjM4LDIzOCwyMzgsMjM4XSwiYWxwaGEiOnRydWV9XSwic2F2ZXIiOnsicXVhbGl0eSI6ODV9fSwicHVyIjoidmFyaWF0aW9uIn19--4dc07e951609e3efb6b48f3567616f872348d59f/1.jpg",
- "hd": "/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6NDQsInB1ciI6ImJsb2JfaWQifX0=--3daab3ed21c0d47fd97ebb1600175a14d3c0d382/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGciLCJyZXNpemVfYW5kX3BhZCI6WzEyODAsNzIwLHsiYmFja2dyb3VuZCI6WzIzOCwyMzgsMjM4LDIzOF0sImFscGhhIjp0cnVlfV0sInNhdmVyIjp7InF1YWxpdHkiOjg1fX0sInB1ciI6InZhcmlhdGlvbiJ9fQ==--42f4d8f39eed9164bf5b7953b39766c46b314eb9/1.jpg",
- "quarter_hd": "/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6NDQsInB1ciI6ImJsb2JfaWQifX0=--3daab3ed21c0d47fd97ebb1600175a14d3c0d382/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGciLCJyZXNpemVfYW5kX3BhZCI6Wzk2MCw1NDAseyJiYWNrZ3JvdW5kIjpbMjM4LDIzOCwyMzgsMjM4XSwiYWxwaGEiOnRydWV9XSwic2F2ZXIiOnsicXVhbGl0eSI6ODV9fSwicHVyIjoidmFyaWF0aW9uIn19--d39339055de4cc3639252e2adcd4214fec0787dc/1.jpg"
}, - {
- "sequence": 0,
- "normal": "/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6NDUsInB1ciI6ImJsb2JfaWQifX0=--b3900f435938f7e7c82f0a902ad9f59dff7ee9c1/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGciLCJyZXNpemVfYW5kX3BhZCI6WzE2MDAsMTIwMCx7ImJhY2tncm91bmQiOlsyMzgsMjM4LDIzOCwyMzhdLCJhbHBoYSI6dHJ1ZX1dLCJzYXZlciI6eyJxdWFsaXR5Ijo4NX19LCJwdXIiOiJ2YXJpYXRpb24ifX0=--7b5f4ca4fdb73844cccc54630e015a046b05719f/1.jpg",
- "medium": "/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6NDUsInB1ciI6ImJsb2JfaWQifX0=--b3900f435938f7e7c82f0a902ad9f59dff7ee9c1/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGciLCJyZXNpemVfYW5kX3BhZCI6WzQyMCwyMzYseyJiYWNrZ3JvdW5kIjpbMjM4LDIzOCwyMzgsMjM4XSwiYWxwaGEiOnRydWV9XSwic2F2ZXIiOnsicXVhbGl0eSI6ODV9fSwicHVyIjoidmFyaWF0aW9uIn19--4dc07e951609e3efb6b48f3567616f872348d59f/1.jpg",
- "hd": "/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6NDUsInB1ciI6ImJsb2JfaWQifX0=--b3900f435938f7e7c82f0a902ad9f59dff7ee9c1/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGciLCJyZXNpemVfYW5kX3BhZCI6WzEyODAsNzIwLHsiYmFja2dyb3VuZCI6WzIzOCwyMzgsMjM4LDIzOF0sImFscGhhIjp0cnVlfV0sInNhdmVyIjp7InF1YWxpdHkiOjg1fX0sInB1ciI6InZhcmlhdGlvbiJ9fQ==--42f4d8f39eed9164bf5b7953b39766c46b314eb9/1.jpg",
- "quarter_hd": "/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6NDUsInB1ciI6ImJsb2JfaWQifX0=--b3900f435938f7e7c82f0a902ad9f59dff7ee9c1/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGciLCJyZXNpemVfYW5kX3BhZCI6Wzk2MCw1NDAseyJiYWNrZ3JvdW5kIjpbMjM4LDIzOCwyMzgsMjM4XSwiYWxwaGEiOnRydWV9XSwic2F2ZXIiOnsicXVhbGl0eSI6ODV9fSwicHVyIjoidmFyaWF0aW9uIn19--d39339055de4cc3639252e2adcd4214fec0787dc/1.jpg"
}, - {
- "sequence": 0,
- "normal": "/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6NDYsInB1ciI6ImJsb2JfaWQifX0=--f441b2a6163c7225bba5202a7580a9e51afeef2b/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGciLCJyZXNpemVfYW5kX3BhZCI6WzE2MDAsMTIwMCx7ImJhY2tncm91bmQiOlsyMzgsMjM4LDIzOCwyMzhdLCJhbHBoYSI6dHJ1ZX1dLCJzYXZlciI6eyJxdWFsaXR5Ijo4NX19LCJwdXIiOiJ2YXJpYXRpb24ifX0=--7b5f4ca4fdb73844cccc54630e015a046b05719f/1.jpg",
- "medium": "/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6NDYsInB1ciI6ImJsb2JfaWQifX0=--f441b2a6163c7225bba5202a7580a9e51afeef2b/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGciLCJyZXNpemVfYW5kX3BhZCI6WzQyMCwyMzYseyJiYWNrZ3JvdW5kIjpbMjM4LDIzOCwyMzgsMjM4XSwiYWxwaGEiOnRydWV9XSwic2F2ZXIiOnsicXVhbGl0eSI6ODV9fSwicHVyIjoidmFyaWF0aW9uIn19--4dc07e951609e3efb6b48f3567616f872348d59f/1.jpg",
- "hd": "/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6NDYsInB1ciI6ImJsb2JfaWQifX0=--f441b2a6163c7225bba5202a7580a9e51afeef2b/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGciLCJyZXNpemVfYW5kX3BhZCI6WzEyODAsNzIwLHsiYmFja2dyb3VuZCI6WzIzOCwyMzgsMjM4LDIzOF0sImFscGhhIjp0cnVlfV0sInNhdmVyIjp7InF1YWxpdHkiOjg1fX0sInB1ciI6InZhcmlhdGlvbiJ9fQ==--42f4d8f39eed9164bf5b7953b39766c46b314eb9/1.jpg",
- "quarter_hd": "/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6NDYsInB1ciI6ImJsb2JfaWQifX0=--f441b2a6163c7225bba5202a7580a9e51afeef2b/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGciLCJyZXNpemVfYW5kX3BhZCI6Wzk2MCw1NDAseyJiYWNrZ3JvdW5kIjpbMjM4LDIzOCwyMzgsMjM4XSwiYWxwaGEiOnRydWV9XSwic2F2ZXIiOnsicXVhbGl0eSI6ODV9fSwicHVyIjoidmFyaWF0aW9uIn19--d39339055de4cc3639252e2adcd4214fec0787dc/1.jpg"
}
], - "cover_photo": "/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6NDQsInB1ciI6ImJsb2JfaWQifX0=--3daab3ed21c0d47fd97ebb1600175a14d3c0d382/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGciLCJyZXNpemVfYW5kX3BhZCI6WzE2MDAsMTIwMCx7ImJhY2tncm91bmQiOlsyMzgsMjM4LDIzOCwyMzhdLCJhbHBoYSI6dHJ1ZX1dLCJzYXZlciI6eyJxdWFsaXR5Ijo4NX19LCJwdXIiOiJ2YXJpYXRpb24ifX0=--7b5f4ca4fdb73844cccc54630e015a046b05719f/1.jpg",
- "cover_photo_medium": "/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6NDQsInB1ciI6ImJsb2JfaWQifX0=--3daab3ed21c0d47fd97ebb1600175a14d3c0d382/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGciLCJyZXNpemVfYW5kX3BhZCI6WzQyMCwyMzYseyJiYWNrZ3JvdW5kIjpbMjM4LDIzOCwyMzgsMjM4XSwiYWxwaGEiOnRydWV9XSwic2F2ZXIiOnsicXVhbGl0eSI6ODV9fSwicHVyIjoidmFyaWF0aW9uIn19--4dc07e951609e3efb6b48f3567616f872348d59f/1.jpg",
- "cover_photo_hd": "/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6NDQsInB1ciI6ImJsb2JfaWQifX0=--3daab3ed21c0d47fd97ebb1600175a14d3c0d382/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGciLCJyZXNpemVfYW5kX3BhZCI6WzEyODAsNzIwLHsiYmFja2dyb3VuZCI6WzIzOCwyMzgsMjM4LDIzOF0sImFscGhhIjp0cnVlfV0sInNhdmVyIjp7InF1YWxpdHkiOjg1fX0sInB1ciI6InZhcmlhdGlvbiJ9fQ==--42f4d8f39eed9164bf5b7953b39766c46b314eb9/1.jpg",
- "cover_photo_quarter_hd": "/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6NDQsInB1ciI6ImJsb2JfaWQifX0=--3daab3ed21c0d47fd97ebb1600175a14d3c0d382/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGciLCJyZXNpemVfYW5kX3BhZCI6Wzk2MCw1NDAseyJiYWNrZ3JvdW5kIjpbMjM4LDIzOCwyMzgsMjM4XSwiYWxwaGEiOnRydWV9XSwic2F2ZXIiOnsicXVhbGl0eSI6ODV9fSwicHVyIjoidmFyaWF0aW9uIn19--d39339055de4cc3639252e2adcd4214fec0787dc/1.jpg",
- "owner_opening_hours": "<p>Mon-Fri: 9:00 - 19:00<br>\nSat: 11:00 - 18:00<br>\nSun: Closed</p>\n",
- "owner_contact_details": "<p>2535 Nery Ridges<br>\nNew Ward</p>\n",
- "avl_field": { },
- "financing_options": {
- "cash": true,
- "lease": false,
- "rent": false
}
}
}, - {
- "id": "166",
- "type": "listing_vehicles",
- "attributes": {
- "version": "For The Man Who Has Everything",
- "drivetrain": "Jack Kirby's New Gods",
- "production_year": 2006,
- "short_description": "Culpa harum facilis odio animi quidem dolores ipsa reprehenderit nostrum.",
- "state": "used",
- "delivery_date": "2024-11-24",
- "transmission": "auto",
- "vin": null,
- "mileage": 312000,
- "engine_capacity": null,
- "engine_type": [
- "phev"
], - "power": 179,
- "video_url": null,
- "created_at": "2024-11-20T08:09:34.747Z",
- "power_unit": "bhp",
- "currency": "CZK",
- "mileage_unit": "km",
- "engine_capacity_unit": "cc",
- "engine_capacity_normalized": null,
- "nameplate_name": "Ravenous Bugblatter Beast of Traal",
- "nameplate_brand_name": "Venucia",
- "owner_city": "Jacobsonbury",
- "price_hidden": false,
- "prices_type": null,
- "external_id": "af8f7e",
- "model_display_name": "Venucia Ravenous Bugblatter Beast of Traal",
- "order_number": null,
- "nameplate_model_group": null,
- "nameplate_external_code": null,
- "metadata": null,
- "owner_phone": "+268 490.354.8560 x6236",
- "owner_email": "elli@ferry.biz",
- "owner_zipcode": null,
- "owner_address": "6491 Debera Neck, Chongfort, MA 70532-2245",
- "owner_state": null,
- "owner_metadata": { },
- "interior_color": "Ebony",
- "price_metadata": { },
- "code5000": null,
- "disclaimers": { },
- "price_breakdown": false,
- "base_price": null,
- "total_price": null,
- "status": "reserved",
- "color_name": "Viridian Linen",
- "color_canonical": "black",
- "owner_name": "Kulas, DuBuque and Williamson",
- "msrp_price": "863000.0",
- "sale_price": null,
- "monthly_price": null,
- "subscribe_price": null,
- "photos": [
- {
- "sequence": 0,
- "normal": "/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6NDcsInB1ciI6ImJsb2JfaWQifX0=--aab9f3321b51daf6a8d113fa977cc6074b35b50b/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGciLCJyZXNpemVfYW5kX3BhZCI6WzE2MDAsMTIwMCx7ImJhY2tncm91bmQiOlsyMzgsMjM4LDIzOCwyMzhdLCJhbHBoYSI6dHJ1ZX1dLCJzYXZlciI6eyJxdWFsaXR5Ijo4NX19LCJwdXIiOiJ2YXJpYXRpb24ifX0=--7b5f4ca4fdb73844cccc54630e015a046b05719f/1.jpg",
- "medium": "/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6NDcsInB1ciI6ImJsb2JfaWQifX0=--aab9f3321b51daf6a8d113fa977cc6074b35b50b/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGciLCJyZXNpemVfYW5kX3BhZCI6WzQyMCwyMzYseyJiYWNrZ3JvdW5kIjpbMjM4LDIzOCwyMzgsMjM4XSwiYWxwaGEiOnRydWV9XSwic2F2ZXIiOnsicXVhbGl0eSI6ODV9fSwicHVyIjoidmFyaWF0aW9uIn19--4dc07e951609e3efb6b48f3567616f872348d59f/1.jpg",
- "hd": "/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6NDcsInB1ciI6ImJsb2JfaWQifX0=--aab9f3321b51daf6a8d113fa977cc6074b35b50b/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGciLCJyZXNpemVfYW5kX3BhZCI6WzEyODAsNzIwLHsiYmFja2dyb3VuZCI6WzIzOCwyMzgsMjM4LDIzOF0sImFscGhhIjp0cnVlfV0sInNhdmVyIjp7InF1YWxpdHkiOjg1fX0sInB1ciI6InZhcmlhdGlvbiJ9fQ==--42f4d8f39eed9164bf5b7953b39766c46b314eb9/1.jpg",
- "quarter_hd": "/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6NDcsInB1ciI6ImJsb2JfaWQifX0=--aab9f3321b51daf6a8d113fa977cc6074b35b50b/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGciLCJyZXNpemVfYW5kX3BhZCI6Wzk2MCw1NDAseyJiYWNrZ3JvdW5kIjpbMjM4LDIzOCwyMzgsMjM4XSwiYWxwaGEiOnRydWV9XSwic2F2ZXIiOnsicXVhbGl0eSI6ODV9fSwicHVyIjoidmFyaWF0aW9uIn19--d39339055de4cc3639252e2adcd4214fec0787dc/1.jpg"
}, - {
- "sequence": 0,
- "normal": "/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6NDgsInB1ciI6ImJsb2JfaWQifX0=--fb54829f7f7e998c8afdaace1d8186d06a75cccd/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGciLCJyZXNpemVfYW5kX3BhZCI6WzE2MDAsMTIwMCx7ImJhY2tncm91bmQiOlsyMzgsMjM4LDIzOCwyMzhdLCJhbHBoYSI6dHJ1ZX1dLCJzYXZlciI6eyJxdWFsaXR5Ijo4NX19LCJwdXIiOiJ2YXJpYXRpb24ifX0=--7b5f4ca4fdb73844cccc54630e015a046b05719f/1.jpg",
- "medium": "/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6NDgsInB1ciI6ImJsb2JfaWQifX0=--fb54829f7f7e998c8afdaace1d8186d06a75cccd/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGciLCJyZXNpemVfYW5kX3BhZCI6WzQyMCwyMzYseyJiYWNrZ3JvdW5kIjpbMjM4LDIzOCwyMzgsMjM4XSwiYWxwaGEiOnRydWV9XSwic2F2ZXIiOnsicXVhbGl0eSI6ODV9fSwicHVyIjoidmFyaWF0aW9uIn19--4dc07e951609e3efb6b48f3567616f872348d59f/1.jpg",
- "hd": "/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6NDgsInB1ciI6ImJsb2JfaWQifX0=--fb54829f7f7e998c8afdaace1d8186d06a75cccd/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGciLCJyZXNpemVfYW5kX3BhZCI6WzEyODAsNzIwLHsiYmFja2dyb3VuZCI6WzIzOCwyMzgsMjM4LDIzOF0sImFscGhhIjp0cnVlfV0sInNhdmVyIjp7InF1YWxpdHkiOjg1fX0sInB1ciI6InZhcmlhdGlvbiJ9fQ==--42f4d8f39eed9164bf5b7953b39766c46b314eb9/1.jpg",
- "quarter_hd": "/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6NDgsInB1ciI6ImJsb2JfaWQifX0=--fb54829f7f7e998c8afdaace1d8186d06a75cccd/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGciLCJyZXNpemVfYW5kX3BhZCI6Wzk2MCw1NDAseyJiYWNrZ3JvdW5kIjpbMjM4LDIzOCwyMzgsMjM4XSwiYWxwaGEiOnRydWV9XSwic2F2ZXIiOnsicXVhbGl0eSI6ODV9fSwicHVyIjoidmFyaWF0aW9uIn19--d39339055de4cc3639252e2adcd4214fec0787dc/1.jpg"
}, - {
- "sequence": 0,
- "normal": "/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6NDksInB1ciI6ImJsb2JfaWQifX0=--c7a6cf6e11d8fe5467c73d34692c3ea549d4aeee/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGciLCJyZXNpemVfYW5kX3BhZCI6WzE2MDAsMTIwMCx7ImJhY2tncm91bmQiOlsyMzgsMjM4LDIzOCwyMzhdLCJhbHBoYSI6dHJ1ZX1dLCJzYXZlciI6eyJxdWFsaXR5Ijo4NX19LCJwdXIiOiJ2YXJpYXRpb24ifX0=--7b5f4ca4fdb73844cccc54630e015a046b05719f/1.jpg",
- "medium": "/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6NDksInB1ciI6ImJsb2JfaWQifX0=--c7a6cf6e11d8fe5467c73d34692c3ea549d4aeee/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGciLCJyZXNpemVfYW5kX3BhZCI6WzQyMCwyMzYseyJiYWNrZ3JvdW5kIjpbMjM4LDIzOCwyMzgsMjM4XSwiYWxwaGEiOnRydWV9XSwic2F2ZXIiOnsicXVhbGl0eSI6ODV9fSwicHVyIjoidmFyaWF0aW9uIn19--4dc07e951609e3efb6b48f3567616f872348d59f/1.jpg",
- "hd": "/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6NDksInB1ciI6ImJsb2JfaWQifX0=--c7a6cf6e11d8fe5467c73d34692c3ea549d4aeee/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGciLCJyZXNpemVfYW5kX3BhZCI6WzEyODAsNzIwLHsiYmFja2dyb3VuZCI6WzIzOCwyMzgsMjM4LDIzOF0sImFscGhhIjp0cnVlfV0sInNhdmVyIjp7InF1YWxpdHkiOjg1fX0sInB1ciI6InZhcmlhdGlvbiJ9fQ==--42f4d8f39eed9164bf5b7953b39766c46b314eb9/1.jpg",
- "quarter_hd": "/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6NDksInB1ciI6ImJsb2JfaWQifX0=--c7a6cf6e11d8fe5467c73d34692c3ea549d4aeee/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGciLCJyZXNpemVfYW5kX3BhZCI6Wzk2MCw1NDAseyJiYWNrZ3JvdW5kIjpbMjM4LDIzOCwyMzgsMjM4XSwiYWxwaGEiOnRydWV9XSwic2F2ZXIiOnsicXVhbGl0eSI6ODV9fSwicHVyIjoidmFyaWF0aW9uIn19--d39339055de4cc3639252e2adcd4214fec0787dc/1.jpg"
}
], - "cover_photo": "/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6NDcsInB1ciI6ImJsb2JfaWQifX0=--aab9f3321b51daf6a8d113fa977cc6074b35b50b/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGciLCJyZXNpemVfYW5kX3BhZCI6WzE2MDAsMTIwMCx7ImJhY2tncm91bmQiOlsyMzgsMjM4LDIzOCwyMzhdLCJhbHBoYSI6dHJ1ZX1dLCJzYXZlciI6eyJxdWFsaXR5Ijo4NX19LCJwdXIiOiJ2YXJpYXRpb24ifX0=--7b5f4ca4fdb73844cccc54630e015a046b05719f/1.jpg",
- "cover_photo_medium": "/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6NDcsInB1ciI6ImJsb2JfaWQifX0=--aab9f3321b51daf6a8d113fa977cc6074b35b50b/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGciLCJyZXNpemVfYW5kX3BhZCI6WzQyMCwyMzYseyJiYWNrZ3JvdW5kIjpbMjM4LDIzOCwyMzgsMjM4XSwiYWxwaGEiOnRydWV9XSwic2F2ZXIiOnsicXVhbGl0eSI6ODV9fSwicHVyIjoidmFyaWF0aW9uIn19--4dc07e951609e3efb6b48f3567616f872348d59f/1.jpg",
- "cover_photo_hd": "/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6NDcsInB1ciI6ImJsb2JfaWQifX0=--aab9f3321b51daf6a8d113fa977cc6074b35b50b/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGciLCJyZXNpemVfYW5kX3BhZCI6WzEyODAsNzIwLHsiYmFja2dyb3VuZCI6WzIzOCwyMzgsMjM4LDIzOF0sImFscGhhIjp0cnVlfV0sInNhdmVyIjp7InF1YWxpdHkiOjg1fX0sInB1ciI6InZhcmlhdGlvbiJ9fQ==--42f4d8f39eed9164bf5b7953b39766c46b314eb9/1.jpg",
- "cover_photo_quarter_hd": "/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6NDcsInB1ciI6ImJsb2JfaWQifX0=--aab9f3321b51daf6a8d113fa977cc6074b35b50b/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGciLCJyZXNpemVfYW5kX3BhZCI6Wzk2MCw1NDAseyJiYWNrZ3JvdW5kIjpbMjM4LDIzOCwyMzgsMjM4XSwiYWxwaGEiOnRydWV9XSwic2F2ZXIiOnsicXVhbGl0eSI6ODV9fSwicHVyIjoidmFyaWF0aW9uIn19--d39339055de4cc3639252e2adcd4214fec0787dc/1.jpg",
- "owner_opening_hours": "<p>Mon-Fri: 9:00 - 19:00<br>\nSat: 11:00 - 18:00<br>\nSun: Closed</p>\n",
- "owner_contact_details": "<p>71758 Dickinson Estates<br>\nEast Yong</p>\n",
- "financing_options": {
- "cash": true,
- "lease": false,
- "rent": false
}
}
}
], - "meta": {
- "pagination": {
- "scaffold_url": "/public_api/listing/3888b69c-e219-4656-bd60-317f72f12fb6?page=PAGE_NUM",
- "count": 3,
- "page": 1,
- "items": 3,
- "pages": 1,
- "last": 1,
- "from": 1,
- "to": 3,
- "prev": null,
- "next": null
}, - "dealers": [
- {
- "id": 418,
- "name": "Kulas, DuBuque and Williamson",
- "city": "Jacobsonbury",
- "dealer_codes": [ ],
- "metadata": { }
}, - {
- "id": 417,
- "name": "Zieme, Harris and Leuschke",
- "city": "Kuphalmouth",
- "dealer_codes": [ ],
- "metadata": { }
}, - {
- "id": 416,
- "name": "Brakus-Botsford",
- "city": "Mitchellville",
- "dealer_codes": [ ],
- "metadata": { }
}
], - "disclaimers": [
- {
- "uuid": "3888b69c-e219-4656-bd60-317f72f12fb6",
- "disclaimers": { }
}
], - "owner_units": {
- "currency": "ILS",
- "mileage": "km",
- "engine_capacity": "cc",
- "engine_power": "bhp"
}, - "counters": {
- "brands": {
- "Venucia": 1,
- "Holden (HSV)": 1,
- "Škoda": 1
}, - "models": {
- "Nanites": 1,
- "Arcturan Megagrasshopper": 1,
- "Ravenous Bugblatter Beast of Traal": 1
}, - "statuses": {
- "reserved": 2,
- "in_production": 1
}, - "states": {
- "used": 3
}, - "engine_types": {
- "petrol": 1,
- "mhev": 1,
- "phev": 1
}, - "transmissions": {
- "auto": 3
}, - "colors": {
- "black": 2,
- "red": 1
}, - "specific_colors": {
- "Silver Rubber": 1,
- "Raspberry Aluminum": 1,
- "Viridian Linen": 1
}, - "financing_options": {
- "cash": 3,
- "lease": 1
}, - "dealers": {
- "416": 1,
- "417": 1,
- "418": 1
}
}, - "sort_attribute": "mileage",
- "sort_order": "desc",
- "listing_allowed_vehicle_states": [
- "new",
- "used",
- "approved"
], - "msrp_price": {
- "min": "1000.0",
- "max": "863000.0"
}, - "display_price": {
- "min": "900.0",
- "max": "863000.0"
}, - "mileage": {
- "min": 312000,
- "max": 736000
}, - "power": {
- "min": 163,
- "max": 264
}, - "production_year": {
- "min": 2006,
- "max": 2008
}, - "nameplates": [
- {
- "id": 166,
- "name": "Nanites"
}, - {
- "id": 167,
- "name": "Arcturan Megagrasshopper"
}, - {
- "id": 168,
- "name": "Ravenous Bugblatter Beast of Traal"
}
], - "brands": [
- {
- "id": 305,
- "name": "Holden (HSV)"
}, - {
- "id": 307,
- "name": "Škoda"
}, - {
- "id": 309,
- "name": "Venucia"
}
]
}
}
This endpoint fetches vehicles with similar specification with this passed in query params.
Make sure to pass brand and nameplate in query params, this two params are required.
Request Query Params
param | example | type | required | description |
---|---|---|---|---|
brand |
Jaguar | string | yes | Brand name |
nameplate |
XE | string | yes | Vehicle nameplate |
specpack |
R-Dynamic SE | string | no | Vehicle version |
bodystyle |
'LWB' | enum | no | Vehicle bodystyle (LWB, Long Wheelbase, Standard Wheelbase', 'SWB') |
engine |
'P200' | string | no | Vehicle engine |
fuel_type |
'P' | enum | no | Vehicle fuel type (P, D) |
You can add all filters and sort option for example:
/public_api/listing/:uuid/matching_vehicles?brand=Jaguar&nameplate=XE&filter[state_eq]=new
This request will return all vehicles with brand and nameplate match and with state set to 'new'
uuids | string Example: 0568c941-6ce1-4de1-ad51-8f5e5d24fb39 |
uuid required | string Example: uuid=d6af041b-8a7b-4560-bfaa-d5b8f502710c Listing UUID value |
Accept | any Example: application/vnd.api+json |
Content-Type | any Example: application/vnd.api+json |
{- "data": [
- {
- "id": "196",
- "type": "light_listing_vehicles",
- "attributes": {
- "version": "Crisis On Infinite Earths",
- "drivetrain": "Superman: Red Son",
- "production_year": 2022,
- "mileage": 649000,
- "engine_capacity": null,
- "engine_type": [
- "mhev"
], - "power": 214,
- "power_unit": "bhp",
- "mileage_unit": "km",
- "engine_capacity_unit": "cc",
- "engine_capacity_normalized": null,
- "nameplate_name": "XE",
- "nameplate_brand_name": "Mahindra",
- "price_hidden": false,
- "prices_type": null,
- "video_url": null,
- "state": "approved",
- "order_number": null,
- "model_display_name": "Mahindra XE",
- "price_metadata": { },
- "owner_name": "Dare, Weissnat and Kautzer",
- "owner_metadata": { },
- "disclaimers": { },
- "hybrid_type": [
- "mhev"
], - "status": "delivery",
- "color_name": "Green Marble",
- "msrp_price": "791000.0",
- "sale_price": null,
- "monthly_price": null,
- "subscribe_price": null,
- "cover_photo": null,
- "cover_photo_medium": null,
- "query_match": {
- "nameplate": true,
- "brand": true
}
}
}, - {
- "id": "197",
- "type": "light_listing_vehicles",
- "attributes": {
- "version": "Multiversity",
- "drivetrain": "Gotham Central",
- "production_year": 2021,
- "mileage": 858000,
- "engine_capacity": null,
- "engine_type": [
- "phev_rev"
], - "power": 390,
- "power_unit": "bhp",
- "mileage_unit": "km",
- "engine_capacity_unit": "cc",
- "engine_capacity_normalized": null,
- "nameplate_name": "XE",
- "nameplate_brand_name": "Mahindra",
- "price_hidden": false,
- "prices_type": null,
- "video_url": null,
- "state": "approved",
- "order_number": null,
- "model_display_name": "Mahindra XE",
- "price_metadata": { },
- "owner_name": "Predovic LLC",
- "owner_metadata": { },
- "disclaimers": { },
- "hybrid_type": [
- "phev_rev"
], - "status": "available_soon",
- "color_name": "Raspberry Plastic",
- "msrp_price": "559000.0",
- "sale_price": null,
- "monthly_price": null,
- "subscribe_price": null,
- "cover_photo": null,
- "cover_photo_medium": null,
- "query_match": {
- "nameplate": true,
- "brand": true
}
}
}, - {
- "id": "198",
- "type": "light_listing_vehicles",
- "attributes": {
- "version": "JLA: Earth 2",
- "drivetrain": "Superman For All Seasons",
- "production_year": 2006,
- "mileage": 421000,
- "engine_capacity": null,
- "engine_type": [
- "mhev"
], - "power": 291,
- "power_unit": "bhp",
- "mileage_unit": "km",
- "engine_capacity_unit": "cc",
- "engine_capacity_normalized": null,
- "nameplate_name": "XE",
- "nameplate_brand_name": "Mahindra",
- "price_hidden": false,
- "prices_type": null,
- "video_url": null,
- "state": "approved",
- "order_number": null,
- "model_display_name": "Mahindra XE",
- "price_metadata": { },
- "owner_name": "Morissette Group",
- "owner_metadata": { },
- "disclaimers": { },
- "hybrid_type": [
- "mhev"
], - "status": "demo",
- "color_name": "Red Silk",
- "msrp_price": "302000.0",
- "sale_price": null,
- "monthly_price": null,
- "subscribe_price": null,
- "cover_photo": null,
- "cover_photo_medium": null,
- "query_match": {
- "nameplate": true,
- "brand": true
}
}
}
], - "meta": {
- "limit": null,
- "total_vehicle_count": 3,
- "nameplate_name": "XE"
}
}
This endpoint inherits a lot of behaviour and data format from private /vehicles/:id
endpoint but some
details were adapted to better match publich "widget" use case. Differences are:
photos
and lisitings
relationships are listed. owner
, color
, nameplate
etc are ommittedphotos
are included by defaultuuids | string Example: 8a629f07-39e4-42fb-b390-82e627ed670b |
vehicle_id | number Example: 222 |
uuid required | string Example: uuid=d6af041b-8a7b-4560-bfaa-d5b8f502710c Listing UUID value |
vehicle_id required | number Example: vehicle_id=12 Vehicle ID |
Accept | any Example: application/vnd.api+json |
Content-Type | any Example: application/vnd.api+json |
{- "data": {
- "id": "222",
- "type": "active_vehicle",
- "attributes": {
- "version": "For The Man Who Has Everything",
- "drivetrain": "Jack Kirby's New Gods",
- "production_year": 2006,
- "short_description": "Culpa harum facilis odio animi quidem dolores ipsa reprehenderit nostrum.",
- "long_description": "Eos accusamus laboriosam vel voluptatem mollitia aliquid cum tempore quae perferendis qui maiores modi unde vitae dolorem est quia eligendi.",
- "state": "used",
- "delivery_date": "2024-12-16",
- "transmission": "auto",
- "vin": null,
- "mileage": 837000,
- "engine_capacity": null,
- "battery_capacity": null,
- "engine_type": [
- "phev_rev"
], - "power": 389,
- "video_url": null,
- "created_at": "2024-11-20T08:09:40.478Z",
- "updated_at": "2024-11-20T08:09:40.635Z",
- "power_unit": "bhp",
- "currency": "CZK",
- "mileage_unit": "km",
- "engine_capacity_unit": "cc",
- "engine_capacity_normalized": null,
- "features_standard": [ ],
- "features_optional": [ ],
- "nameplate_name": "Ravenous Bugblatter Beast of Traal",
- "nameplate_brand_name": "Venucia",
- "nameplate_external_code": "Y123",
- "external_code": "Y123",
- "external_code_long": "Y123",
- "owner_address": "6491 Debera Neck, Chongfort, MA 70532-2245",
- "owner_city": "Jacobsonbury",
- "owner_opening_hours": "<p>Mon-Fri: 9:00 - 19:00<br>\nSat: 11:00 - 18:00<br>\nSun: Closed</p>\n",
- "owner_contact_details": "<p>71758 Dickinson Estates<br>\nEast Yong</p>\n",
- "owner_external_code": "DealerCodeXYZ",
- "owner_phone": "+268 490.354.8560 x6236",
- "owner_email": "elli@ferry.biz",
- "owner_zipcode": null,
- "owner_skip_company_name_in_location": false,
- "owner_state": null,
- "owner_uuid": "e34f9f3d-9077-4312-a4a8-3cf8e9c0a233",
- "owner_metadata": { },
- "interior_color": "Ebony",
- "price_hidden": false,
- "prices_type": null,
- "external_id": "32a0f4",
- "footnote": "Quis culpa modi expedita rerum voluptas et id sunt hic.",
- "config_url": null,
- "order_number": null,
- "model_display_name": "Venucia Ravenous Bugblatter Beast of Traal",
- "nameplate_model_group": null,
- "metadata": null,
- "price_metadata": { },
- "code5000": null,
- "disclaimers": { },
- "price_breakdown": false,
- "base_price": null,
- "total_price": null,
- "status": "in_production",
- "color_name": "Viridian Linen",
- "color_canonical": "silver",
- "owner_name": "Kulas, DuBuque and Williamson",
- "msrp_price": "566000.0",
- "sale_price": null,
- "monthly_price": null,
- "subscribe_price": null,
- "cover_photo": "/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6MTI4LCJwdXIiOiJibG9iX2lkIn19--7f6d2b7c67e8b3cbc3c3ef19ed281634fda9d8b0/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGciLCJyZXNpemVfYW5kX3BhZCI6WzE2MDAsMTIwMCx7ImJhY2tncm91bmQiOlsyMzgsMjM4LDIzOCwyMzhdLCJhbHBoYSI6dHJ1ZX1dLCJzYXZlciI6eyJxdWFsaXR5Ijo4NX19LCJwdXIiOiJ2YXJpYXRpb24ifX0=--7b5f4ca4fdb73844cccc54630e015a046b05719f/1.jpg",
- "cover_photo_thumb": "/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6MTI4LCJwdXIiOiJibG9iX2lkIn19--7f6d2b7c67e8b3cbc3c3ef19ed281634fda9d8b0/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGciLCJyZXNpemVfYW5kX3BhZCI6WzQwMCwzMDAseyJiYWNrZ3JvdW5kIjpbMjM4LDIzOCwyMzgsMjM4XSwiYWxwaGEiOnRydWV9XSwic2F2ZXIiOnsicXVhbGl0eSI6ODV9fSwicHVyIjoidmFyaWF0aW9uIn19--55b64b8565c87129a4465e53843074c92d6a6692/1.jpg",
- "cover_photo_small": "/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6MTI4LCJwdXIiOiJibG9iX2lkIn19--7f6d2b7c67e8b3cbc3c3ef19ed281634fda9d8b0/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGciLCJyZXNpemVfYW5kX3BhZCI6WzE2NSw5Mix7ImJhY2tncm91bmQiOlsyMzgsMjM4LDIzOCwyMzhdLCJhbHBoYSI6dHJ1ZX1dLCJzYXZlciI6eyJxdWFsaXR5Ijo4NX19LCJwdXIiOiJ2YXJpYXRpb24ifX0=--66380c5b6b4af7f9e745183631dad0ee428f4cb6/1.jpg",
- "cover_photo_medium": "/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6MTI4LCJwdXIiOiJibG9iX2lkIn19--7f6d2b7c67e8b3cbc3c3ef19ed281634fda9d8b0/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGciLCJyZXNpemVfYW5kX3BhZCI6WzQyMCwyMzYseyJiYWNrZ3JvdW5kIjpbMjM4LDIzOCwyMzgsMjM4XSwiYWxwaGEiOnRydWV9XSwic2F2ZXIiOnsicXVhbGl0eSI6ODV9fSwicHVyIjoidmFyaWF0aW9uIn19--4dc07e951609e3efb6b48f3567616f872348d59f/1.jpg",
- "cover_photo_big": "/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6MTI4LCJwdXIiOiJibG9iX2lkIn19--7f6d2b7c67e8b3cbc3c3ef19ed281634fda9d8b0/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGciLCJyZXNpemVfYW5kX3BhZCI6Wzc1Miw0MjMseyJiYWNrZ3JvdW5kIjpbMjM4LDIzOCwyMzgsMjM4XSwiYWxwaGEiOnRydWV9XSwic2F2ZXIiOnsicXVhbGl0eSI6ODV9fSwicHVyIjoidmFyaWF0aW9uIn19--87d5dae95cd9117bcea522c1fa34781e19f732de/1.jpg",
- "cover_photo_full": "/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6MTI4LCJwdXIiOiJibG9iX2lkIn19--7f6d2b7c67e8b3cbc3c3ef19ed281634fda9d8b0/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGciLCJyZXNpemVfdG9fbGltaXQiOlsxOTIwLDEwODBdLCJzYXZlciI6eyJxdWFsaXR5Ijo4NX19LCJwdXIiOiJ2YXJpYXRpb24ifX0=--cfd1c6e29d0d407efde83e6ff26f8acce153d0b4/1.jpg",
- "cover_photo_quarter_hd": "/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6MTI4LCJwdXIiOiJibG9iX2lkIn19--7f6d2b7c67e8b3cbc3c3ef19ed281634fda9d8b0/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGciLCJyZXNpemVfYW5kX3BhZCI6Wzk2MCw1NDAseyJiYWNrZ3JvdW5kIjpbMjM4LDIzOCwyMzgsMjM4XSwiYWxwaGEiOnRydWV9XSwic2F2ZXIiOnsicXVhbGl0eSI6ODV9fSwicHVyIjoidmFyaWF0aW9uIn19--d39339055de4cc3639252e2adcd4214fec0787dc/1.jpg",
- "cover_photo_hd": "/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6MTI4LCJwdXIiOiJibG9iX2lkIn19--7f6d2b7c67e8b3cbc3c3ef19ed281634fda9d8b0/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGciLCJyZXNpemVfYW5kX3BhZCI6WzEyODAsNzIwLHsiYmFja2dyb3VuZCI6WzIzOCwyMzgsMjM4LDIzOF0sImFscGhhIjp0cnVlfV0sInNhdmVyIjp7InF1YWxpdHkiOjg1fX0sInB1ciI6InZhcmlhdGlvbiJ9fQ==--42f4d8f39eed9164bf5b7953b39766c46b314eb9/1.jpg",
- "attachment_url": null,
- "avl_field": { },
- "financing_options": {
- "cash": true,
- "lease": false,
- "rent": false
}
}, - "relationships": {
- "listings": {
- "data": [
- {
- "id": "53",
- "type": "listing"
}
]
}, - "photos": {
- "data": [
- {
- "id": "129",
- "type": "photo"
}, - {
- "id": "130",
- "type": "photo"
}, - {
- "id": "131",
- "type": "photo"
}
]
}, - "owner": {
- "data": {
- "id": "540",
- "type": "company"
}
}, - "current_listing": {
- "data": {
- "id": "53",
- "type": "listing"
}
}
}, - "links": {
- "self": "/public_api/listing/8a629f07-39e4-42fb-b390-82e627ed670b/vehicle/222",
- "all": "/public_api/listing/8a629f07-39e4-42fb-b390-82e627ed670b"
}
}, - "meta": {
- "buttons": [
- {
- "id": 79,
- "label": "odio",
- "target_type": "url",
- "target_action": "self",
- "button_type": "secondary",
- "created_at": "2024-11-20T08:09:40.344Z",
- "updated_at": "2024-11-20T08:09:40.384Z",
- "button_set_id": 179,
- "button_set_setup_id": 119
}, - {
- "id": 80,
- "label": "eos",
- "target_type": "url",
- "target_action": "self",
- "button_type": "secondary",
- "created_at": "2024-11-20T08:09:40.357Z",
- "updated_at": "2024-11-20T08:09:40.384Z",
- "button_set_id": 180,
- "button_set_setup_id": 119
}, - {
- "id": 81,
- "label": "ut",
- "target_type": "url",
- "target_action": "self",
- "button_type": "secondary",
- "created_at": "2024-11-20T08:09:40.371Z",
- "updated_at": "2024-11-20T08:09:40.385Z",
- "button_set_id": 181,
- "button_set_setup_id": 119
}
], - "prices": {
- "msrp_price": "566000.0",
- "sale_price": null,
- "monthly_price": null,
- "subscribe_price": null
}
}, - "included": [
- {
- "id": "129",
- "type": "photo",
- "attributes": {
- "sequence": 0,
- "thumb_path": "/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6MTI4LCJwdXIiOiJibG9iX2lkIn19--7f6d2b7c67e8b3cbc3c3ef19ed281634fda9d8b0/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGciLCJyZXNpemVfYW5kX3BhZCI6WzQwMCwzMDAseyJiYWNrZ3JvdW5kIjpbMjM4LDIzOCwyMzgsMjM4XSwiYWxwaGEiOnRydWV9XSwic2F2ZXIiOnsicXVhbGl0eSI6ODV9fSwicHVyIjoidmFyaWF0aW9uIn19--55b64b8565c87129a4465e53843074c92d6a6692/1.jpg",
- "image_path": "/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6MTI4LCJwdXIiOiJibG9iX2lkIn19--7f6d2b7c67e8b3cbc3c3ef19ed281634fda9d8b0/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGciLCJyZXNpemVfYW5kX3BhZCI6WzE2MDAsMTIwMCx7ImJhY2tncm91bmQiOlsyMzgsMjM4LDIzOCwyMzhdLCJhbHBoYSI6dHJ1ZX1dLCJzYXZlciI6eyJxdWFsaXR5Ijo4NX19LCJwdXIiOiJ2YXJpYXRpb24ifX0=--7b5f4ca4fdb73844cccc54630e015a046b05719f/1.jpg",
- "small_path": "/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6MTI4LCJwdXIiOiJibG9iX2lkIn19--7f6d2b7c67e8b3cbc3c3ef19ed281634fda9d8b0/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGciLCJyZXNpemVfYW5kX3BhZCI6WzE2NSw5Mix7ImJhY2tncm91bmQiOlsyMzgsMjM4LDIzOCwyMzhdLCJhbHBoYSI6dHJ1ZX1dLCJzYXZlciI6eyJxdWFsaXR5Ijo4NX19LCJwdXIiOiJ2YXJpYXRpb24ifX0=--66380c5b6b4af7f9e745183631dad0ee428f4cb6/1.jpg",
- "medium_path": "/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6MTI4LCJwdXIiOiJibG9iX2lkIn19--7f6d2b7c67e8b3cbc3c3ef19ed281634fda9d8b0/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGciLCJyZXNpemVfYW5kX3BhZCI6WzQyMCwyMzYseyJiYWNrZ3JvdW5kIjpbMjM4LDIzOCwyMzgsMjM4XSwiYWxwaGEiOnRydWV9XSwic2F2ZXIiOnsicXVhbGl0eSI6ODV9fSwicHVyIjoidmFyaWF0aW9uIn19--4dc07e951609e3efb6b48f3567616f872348d59f/1.jpg",
- "big_path": "/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6MTI4LCJwdXIiOiJibG9iX2lkIn19--7f6d2b7c67e8b3cbc3c3ef19ed281634fda9d8b0/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGciLCJyZXNpemVfYW5kX3BhZCI6Wzc1Miw0MjMseyJiYWNrZ3JvdW5kIjpbMjM4LDIzOCwyMzgsMjM4XSwiYWxwaGEiOnRydWV9XSwic2F2ZXIiOnsicXVhbGl0eSI6ODV9fSwicHVyIjoidmFyaWF0aW9uIn19--87d5dae95cd9117bcea522c1fa34781e19f732de/1.jpg",
- "full_path": "/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6MTI4LCJwdXIiOiJibG9iX2lkIn19--7f6d2b7c67e8b3cbc3c3ef19ed281634fda9d8b0/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGciLCJyZXNpemVfdG9fbGltaXQiOlsxOTIwLDEwODBdLCJzYXZlciI6eyJxdWFsaXR5Ijo4NX19LCJwdXIiOiJ2YXJpYXRpb24ifX0=--cfd1c6e29d0d407efde83e6ff26f8acce153d0b4/1.jpg",
- "quarter_hd_path": "/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6MTI4LCJwdXIiOiJibG9iX2lkIn19--7f6d2b7c67e8b3cbc3c3ef19ed281634fda9d8b0/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGciLCJyZXNpemVfYW5kX3BhZCI6Wzk2MCw1NDAseyJiYWNrZ3JvdW5kIjpbMjM4LDIzOCwyMzgsMjM4XSwiYWxwaGEiOnRydWV9XSwic2F2ZXIiOnsicXVhbGl0eSI6ODV9fSwicHVyIjoidmFyaWF0aW9uIn19--d39339055de4cc3639252e2adcd4214fec0787dc/1.jpg",
- "hd_path": "/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6MTI4LCJwdXIiOiJibG9iX2lkIn19--7f6d2b7c67e8b3cbc3c3ef19ed281634fda9d8b0/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGciLCJyZXNpemVfYW5kX3BhZCI6WzEyODAsNzIwLHsiYmFja2dyb3VuZCI6WzIzOCwyMzgsMjM4LDIzOF0sImFscGhhIjp0cnVlfV0sInNhdmVyIjp7InF1YWxpdHkiOjg1fX0sInB1ciI6InZhcmlhdGlvbiJ9fQ==--42f4d8f39eed9164bf5b7953b39766c46b314eb9/1.jpg"
}, - "relationships": {
- "vehicle": {
- "data": {
- "id": "222",
- "type": "vehicle"
}
}
}
}, - {
- "id": "130",
- "type": "photo",
- "attributes": {
- "sequence": 0,
- "thumb_path": "/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6MTI5LCJwdXIiOiJibG9iX2lkIn19--02bcc3467c14e1e02f1568bc4c73d3fc25e14da6/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGciLCJyZXNpemVfYW5kX3BhZCI6WzQwMCwzMDAseyJiYWNrZ3JvdW5kIjpbMjM4LDIzOCwyMzgsMjM4XSwiYWxwaGEiOnRydWV9XSwic2F2ZXIiOnsicXVhbGl0eSI6ODV9fSwicHVyIjoidmFyaWF0aW9uIn19--55b64b8565c87129a4465e53843074c92d6a6692/1.jpg",
- "image_path": "/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6MTI5LCJwdXIiOiJibG9iX2lkIn19--02bcc3467c14e1e02f1568bc4c73d3fc25e14da6/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGciLCJyZXNpemVfYW5kX3BhZCI6WzE2MDAsMTIwMCx7ImJhY2tncm91bmQiOlsyMzgsMjM4LDIzOCwyMzhdLCJhbHBoYSI6dHJ1ZX1dLCJzYXZlciI6eyJxdWFsaXR5Ijo4NX19LCJwdXIiOiJ2YXJpYXRpb24ifX0=--7b5f4ca4fdb73844cccc54630e015a046b05719f/1.jpg",
- "small_path": "/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6MTI5LCJwdXIiOiJibG9iX2lkIn19--02bcc3467c14e1e02f1568bc4c73d3fc25e14da6/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGciLCJyZXNpemVfYW5kX3BhZCI6WzE2NSw5Mix7ImJhY2tncm91bmQiOlsyMzgsMjM4LDIzOCwyMzhdLCJhbHBoYSI6dHJ1ZX1dLCJzYXZlciI6eyJxdWFsaXR5Ijo4NX19LCJwdXIiOiJ2YXJpYXRpb24ifX0=--66380c5b6b4af7f9e745183631dad0ee428f4cb6/1.jpg",
- "medium_path": "/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6MTI5LCJwdXIiOiJibG9iX2lkIn19--02bcc3467c14e1e02f1568bc4c73d3fc25e14da6/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGciLCJyZXNpemVfYW5kX3BhZCI6WzQyMCwyMzYseyJiYWNrZ3JvdW5kIjpbMjM4LDIzOCwyMzgsMjM4XSwiYWxwaGEiOnRydWV9XSwic2F2ZXIiOnsicXVhbGl0eSI6ODV9fSwicHVyIjoidmFyaWF0aW9uIn19--4dc07e951609e3efb6b48f3567616f872348d59f/1.jpg",
- "big_path": "/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6MTI5LCJwdXIiOiJibG9iX2lkIn19--02bcc3467c14e1e02f1568bc4c73d3fc25e14da6/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGciLCJyZXNpemVfYW5kX3BhZCI6Wzc1Miw0MjMseyJiYWNrZ3JvdW5kIjpbMjM4LDIzOCwyMzgsMjM4XSwiYWxwaGEiOnRydWV9XSwic2F2ZXIiOnsicXVhbGl0eSI6ODV9fSwicHVyIjoidmFyaWF0aW9uIn19--87d5dae95cd9117bcea522c1fa34781e19f732de/1.jpg",
- "full_path": "/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6MTI5LCJwdXIiOiJibG9iX2lkIn19--02bcc3467c14e1e02f1568bc4c73d3fc25e14da6/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGciLCJyZXNpemVfdG9fbGltaXQiOlsxOTIwLDEwODBdLCJzYXZlciI6eyJxdWFsaXR5Ijo4NX19LCJwdXIiOiJ2YXJpYXRpb24ifX0=--cfd1c6e29d0d407efde83e6ff26f8acce153d0b4/1.jpg",
- "quarter_hd_path": "/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6MTI5LCJwdXIiOiJibG9iX2lkIn19--02bcc3467c14e1e02f1568bc4c73d3fc25e14da6/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGciLCJyZXNpemVfYW5kX3BhZCI6Wzk2MCw1NDAseyJiYWNrZ3JvdW5kIjpbMjM4LDIzOCwyMzgsMjM4XSwiYWxwaGEiOnRydWV9XSwic2F2ZXIiOnsicXVhbGl0eSI6ODV9fSwicHVyIjoidmFyaWF0aW9uIn19--d39339055de4cc3639252e2adcd4214fec0787dc/1.jpg",
- "hd_path": "/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6MTI5LCJwdXIiOiJibG9iX2lkIn19--02bcc3467c14e1e02f1568bc4c73d3fc25e14da6/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGciLCJyZXNpemVfYW5kX3BhZCI6WzEyODAsNzIwLHsiYmFja2dyb3VuZCI6WzIzOCwyMzgsMjM4LDIzOF0sImFscGhhIjp0cnVlfV0sInNhdmVyIjp7InF1YWxpdHkiOjg1fX0sInB1ciI6InZhcmlhdGlvbiJ9fQ==--42f4d8f39eed9164bf5b7953b39766c46b314eb9/1.jpg"
}, - "relationships": {
- "vehicle": {
- "data": {
- "id": "222",
- "type": "vehicle"
}
}
}
}, - {
- "id": "131",
- "type": "photo",
- "attributes": {
- "sequence": 0,
- "thumb_path": "/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6MTMwLCJwdXIiOiJibG9iX2lkIn19--5ca94eed4b9af6f38e97075256e43fef4545cc2e/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGciLCJyZXNpemVfYW5kX3BhZCI6WzQwMCwzMDAseyJiYWNrZ3JvdW5kIjpbMjM4LDIzOCwyMzgsMjM4XSwiYWxwaGEiOnRydWV9XSwic2F2ZXIiOnsicXVhbGl0eSI6ODV9fSwicHVyIjoidmFyaWF0aW9uIn19--55b64b8565c87129a4465e53843074c92d6a6692/1.jpg",
- "image_path": "/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6MTMwLCJwdXIiOiJibG9iX2lkIn19--5ca94eed4b9af6f38e97075256e43fef4545cc2e/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGciLCJyZXNpemVfYW5kX3BhZCI6WzE2MDAsMTIwMCx7ImJhY2tncm91bmQiOlsyMzgsMjM4LDIzOCwyMzhdLCJhbHBoYSI6dHJ1ZX1dLCJzYXZlciI6eyJxdWFsaXR5Ijo4NX19LCJwdXIiOiJ2YXJpYXRpb24ifX0=--7b5f4ca4fdb73844cccc54630e015a046b05719f/1.jpg",
- "small_path": "/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6MTMwLCJwdXIiOiJibG9iX2lkIn19--5ca94eed4b9af6f38e97075256e43fef4545cc2e/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGciLCJyZXNpemVfYW5kX3BhZCI6WzE2NSw5Mix7ImJhY2tncm91bmQiOlsyMzgsMjM4LDIzOCwyMzhdLCJhbHBoYSI6dHJ1ZX1dLCJzYXZlciI6eyJxdWFsaXR5Ijo4NX19LCJwdXIiOiJ2YXJpYXRpb24ifX0=--66380c5b6b4af7f9e745183631dad0ee428f4cb6/1.jpg",
- "medium_path": "/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6MTMwLCJwdXIiOiJibG9iX2lkIn19--5ca94eed4b9af6f38e97075256e43fef4545cc2e/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGciLCJyZXNpemVfYW5kX3BhZCI6WzQyMCwyMzYseyJiYWNrZ3JvdW5kIjpbMjM4LDIzOCwyMzgsMjM4XSwiYWxwaGEiOnRydWV9XSwic2F2ZXIiOnsicXVhbGl0eSI6ODV9fSwicHVyIjoidmFyaWF0aW9uIn19--4dc07e951609e3efb6b48f3567616f872348d59f/1.jpg",
- "big_path": "/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6MTMwLCJwdXIiOiJibG9iX2lkIn19--5ca94eed4b9af6f38e97075256e43fef4545cc2e/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGciLCJyZXNpemVfYW5kX3BhZCI6Wzc1Miw0MjMseyJiYWNrZ3JvdW5kIjpbMjM4LDIzOCwyMzgsMjM4XSwiYWxwaGEiOnRydWV9XSwic2F2ZXIiOnsicXVhbGl0eSI6ODV9fSwicHVyIjoidmFyaWF0aW9uIn19--87d5dae95cd9117bcea522c1fa34781e19f732de/1.jpg",
- "full_path": "/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6MTMwLCJwdXIiOiJibG9iX2lkIn19--5ca94eed4b9af6f38e97075256e43fef4545cc2e/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGciLCJyZXNpemVfdG9fbGltaXQiOlsxOTIwLDEwODBdLCJzYXZlciI6eyJxdWFsaXR5Ijo4NX19LCJwdXIiOiJ2YXJpYXRpb24ifX0=--cfd1c6e29d0d407efde83e6ff26f8acce153d0b4/1.jpg",
- "quarter_hd_path": "/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6MTMwLCJwdXIiOiJibG9iX2lkIn19--5ca94eed4b9af6f38e97075256e43fef4545cc2e/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGciLCJyZXNpemVfYW5kX3BhZCI6Wzk2MCw1NDAseyJiYWNrZ3JvdW5kIjpbMjM4LDIzOCwyMzgsMjM4XSwiYWxwaGEiOnRydWV9XSwic2F2ZXIiOnsicXVhbGl0eSI6ODV9fSwicHVyIjoidmFyaWF0aW9uIn19--d39339055de4cc3639252e2adcd4214fec0787dc/1.jpg",
- "hd_path": "/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6MTMwLCJwdXIiOiJibG9iX2lkIn19--5ca94eed4b9af6f38e97075256e43fef4545cc2e/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGciLCJyZXNpemVfYW5kX3BhZCI6WzEyODAsNzIwLHsiYmFja2dyb3VuZCI6WzIzOCwyMzgsMjM4LDIzOF0sImFscGhhIjp0cnVlfV0sInNhdmVyIjp7InF1YWxpdHkiOjg1fX0sInB1ciI6InZhcmlhdGlvbiJ9fQ==--42f4d8f39eed9164bf5b7953b39766c46b314eb9/1.jpg"
}, - "relationships": {
- "vehicle": {
- "data": {
- "id": "222",
- "type": "vehicle"
}
}
}
}, - {
- "id": "115",
- "type": "button_set_setup",
- "attributes": {
- "financing_options": [ ],
- "reservation_fee": null,
- "setup_type": "standard"
}, - "relationships": {
- "button_set": {
- "data": {
- "id": "183",
- "type": "button_set"
}
}, - "buttons": {
- "data": [
- {
- "id": "77",
- "type": "button"
}, - {
- "id": "78",
- "type": "button"
}
]
}
}
}, - {
- "id": "119",
- "type": "button_set_setup",
- "attributes": {
- "financing_options": [ ],
- "reservation_fee": null,
- "setup_type": "standard"
}, - "relationships": {
- "button_set": {
- "data": {
- "id": "183",
- "type": "button_set"
}
}, - "buttons": {
- "data": [
- {
- "id": "79",
- "type": "button"
}, - {
- "id": "80",
- "type": "button"
}, - {
- "id": "81",
- "type": "button"
}
]
}
}
}, - {
- "id": "77",
- "type": "button",
- "attributes": {
- "label": "est",
- "button_type": "secondary",
- "target_type": "url",
- "target_action": "self"
}, - "relationships": {
- "button_set": {
- "data": {
- "id": "176",
- "type": "button_set"
}
}
}
}, - {
- "id": "78",
- "type": "button",
- "attributes": {
- "label": "iste",
- "button_type": "secondary",
- "target_type": "url",
- "target_action": "self"
}, - "relationships": {
- "button_set": {
- "data": {
- "id": "177",
- "type": "button_set"
}
}
}
}, - {
- "id": "79",
- "type": "button",
- "attributes": {
- "label": "odio",
- "button_type": "secondary",
- "target_type": "url",
- "target_action": "self"
}, - "relationships": {
- "button_set": {
- "data": {
- "id": "179",
- "type": "button_set"
}
}
}
}, - {
- "id": "80",
- "type": "button",
- "attributes": {
- "label": "eos",
- "button_type": "secondary",
- "target_type": "url",
- "target_action": "self"
}, - "relationships": {
- "button_set": {
- "data": {
- "id": "180",
- "type": "button_set"
}
}
}
}, - {
- "id": "81",
- "type": "button",
- "attributes": {
- "label": "ut",
- "button_type": "secondary",
- "target_type": "url",
- "target_action": "self"
}, - "relationships": {
- "button_set": {
- "data": {
- "id": "181",
- "type": "button_set"
}
}
}
}, - {
- "id": "183",
- "type": "button_set",
- "attributes": {
- "button_set_type": "standard",
- "financing_options": null,
- "name": "nihil 181",
- "reservation_fee": null
}, - "relationships": {
- "buttons": {
- "data": [
- {
- "id": "77",
- "type": "button"
}, - {
- "id": "78",
- "type": "button"
}, - {
- "id": "79",
- "type": "button"
}, - {
- "id": "80",
- "type": "button"
}, - {
- "id": "81",
- "type": "button"
}
]
}, - "button_set_setups": {
- "data": [
- {
- "id": "115",
- "type": "button_set_setup"
}, - {
- "id": "119",
- "type": "button_set_setup"
}
]
}
}
}, - {
- "id": "53",
- "type": "listing",
- "attributes": {
- "disclaimers": { },
- "uuid": "8a629f07-39e4-42fb-b390-82e627ed670b"
}, - "relationships": {
- "button_set": {
- "data": {
- "id": "183",
- "type": "button_set"
}
}
}
}
]
}
This endpoint fetches Vehicle info from OSVD API and tries to generate a configurator URL for that Vehicle. To make it work properly, the Vehicle should have proper values of either VIN or Order Number.
If some values are null, it means that the endpoint was not able to fetch the requested data from one of the APIs.
uuids | string Example: 5862df6a-6dc6-4e98-b075-aa5b998f744b |
vehicle_id | number Example: 227 |
uuid required | string Example: uuid=d6af041b-8a7b-4560-bfaa-d5b8f502710c Listing UUID value |
vehicle_id required | number Example: vehicle_id=12 Vehicle ID |
Accept | any Example: application/vnd.api+json |
Content-Type | any Example: application/vnd.api+json |
{- "data": {
- "id": "227",
- "type": "vehicle_osvd_data",
- "attributes": {
- "vin": "SADHA2B18P1630309",
- "external_code": "X",
- "owner_id": 563,
- "owner_external_code": "DealerCodeXYZ",
- "external_id": "ext_id_val",
- "config_url": {
}, - "engine_no": "Not Applicable",
- "registration_no": null,
- "type": "ActiveVehicle",
- "metadata": null
}
}, - "meta": {
- "errors": [ ]
}
}
uuids | string Example: e62ec798-656e-41dc-bc98-950d3fffa12e |
uuids required | string Example: uuids=d6af041b-8a7b-4560-bfaa-d5b8f502710c Listing UUID value |
Accept | any Example: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5 |
{- "e62ec798-656e-41dc-bc98-950d3fffa12e": [
- "Range Rover Velar",
- "Discovery"
]
}
Is used to store config for origin urls.
It contains config_type
attribute with possible values default
, cash
, lease
, subscription
and additional
. Each origin can have single config per each type.
GET /public_api/company_config/all
This endpoint is used to fetch configs for declared origin. By default it returns all configs for that origin.
To fetch config for the specific origin, it has to be declared in Company-Config
header . For example:
Company-Config: 'https://jaguar.com'
param | example | type | required | description |
---|---|---|---|---|
config_type | additional,cash | string | no | used to filter config types, multiple types have to be separated by comma |
Response is an array of configs for origin declared in the header. Each of the contains attributes data
and config_type
Accept | any Example: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5 |
{- "data": [
- {
- "id": "37",
- "type": "company_config",
- "attributes": {
- "data": {
- "a": 1
}, - "config_type": "general_mazda"
}
}, - {
- "id": "38",
- "type": "company_config",
- "attributes": {
- "data": {
- "a": 1
}, - "config_type": "order_online_mazda"
}
}, - {
- "id": "39",
- "type": "company_config",
- "attributes": {
- "data": {
- "a": 1
}, - "config_type": "order_online_steps_page_mazda"
}
}
]
}
GET /public_api/company_config/(:config_type)
This endpoint is used to fetch a specific config for declared origin. By default it returns default config for that origin.
To fetch config for the specific origin, it has to be declared in Company-Config
header . For example:
Company-Config: 'https://jaguar.com'
param | example | type | required | description |
---|---|---|---|---|
config_type | additional | string | no | used to fetch config of specific type |
Response is an config object containing attributes data
and config_type
Accept | any Example: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5 |
{- "data": {
- "id": "54",
- "type": "company_config",
- "attributes": {
- "data": {
- "a": 1
}, - "config_type": "order_online_mazda"
}
}
}
Is used to store configs for stock matching.
It contains data
attribute to store config and keys
array to identify config
GET /public_api/sl_configurator_journey_configs/:key
This endpoint is used to fetch a specific stock matching config by its key.
param | example | type | required | description |
---|---|---|---|---|
key | first | string | yes (in url) | used to fetch config |
Response is an config object containing attributes data
key | string Example: third |
Accept | any Example: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5 |
{- "data": {
- "id": "2",
- "type": "stock_matching_config",
- "attributes": {
- "data": {
- "a": 1
}
}
}
}
Is used to store configs for widget translations.
It contains data
attribute to store config and keys
array to identify config
GET /public_api/widget_translations_configs/:key
This endpoint is used to fetch a specific widget translations config by its key.
param | example | type | required | description |
---|---|---|---|---|
key | first | string | yes (in url) | used to fetch config |
Response is an config object containing attributes data
key | string Example: second |
Accept | any Example: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5 |
{- "data": {
- "id": "2",
- "type": "widget_translations_config",
- "attributes": {
- "data": {
- "test": "test"
}
}
}
}
FeatureSuggestions are dictionary suggestions entries which are inteded to be used as suggestions for user filling out the Vechile form features section either while adding or editing the Cars.
The FeatureSuggestions
list is updated each time Vehicle is saved to database (created or updated).
Thay are not designed to be manipulated through the API directly.
NOTE: Due to this behaviour X-Comapny-UUID
header is required to filter suggestions based on Company
ownership.
As their intended used is a table with Vehicle
features they always contain label
attrbiute and
optionally can contain code
and category
attributes as well depending on the data filed in the vehicle.
code_query | string Example: A12 |
Accept | any Example: application/vnd.api+json |
X-Company-UUID | any Example: 5b9e7134-c50e-47f0-9d75-6a4e10ef2484 |
Authorization | any Example: Bearer STUB_TOKEN_STRING |
Content-Type | any Example: application/vnd.api+json |
{- "data": [
- {
- "id": "2",
- "type": "feature_suggestion",
- "attributes": {
- "code": "A124",
- "label": "downcase word",
- "locale": "pl_pl",
- "category": "safety",
- "depth": 1
}
}, - {
- "id": "1",
- "type": "feature_suggestion",
- "attributes": {
- "code": "A123",
- "label": "Word Capitalized",
- "locale": "ro_ro",
- "category": "infotainment",
- "depth": 0
}
}
]
}
label_query | string Example: word |
Accept | any Example: application/vnd.api+json |
X-Company-UUID | any Example: b7085733-debd-4e3e-b8e4-6525fffa89de |
Authorization | any Example: Bearer STUB_TOKEN_STRING |
Content-Type | any Example: application/vnd.api+json |
{- "data": [
- {
- "id": "6",
- "type": "feature_suggestion",
- "attributes": {
- "code": "A124",
- "label": "downcase word",
- "locale": "en",
- "category": "interior",
- "depth": 1
}
}, - {
- "id": "5",
- "type": "feature_suggestion",
- "attributes": {
- "code": "A123",
- "label": "Word Capitalized",
- "locale": "pl_pl",
- "category": "interior",
- "depth": 0
}
}
]
}
SimpleSuggestions are simple string based dictionary suggestions which are inteded to be used as suggestions for user filling out the Vechile form either while adding or editing the Cars
The SimpleSuggestion
s list is updated each time Vehicle is saved to database (created or updated).
Thay are not designed to be manipulated through the API directly.
Suggestions are inherited through the companies hierarchy. If Importer already has one Suggestion
in the database the Dealers will see this Suggestion
as well and it will not be automatically
duplicated when adding a Vehicle
NOTE: Due to this behaviour X-Comapny-UUID
header is required to filter suggestions based on Company
ownership.
SimpleSuggestion
will handle only drivetrain
and version
fields.
Versions suggestions are accessed through /suggestions/versions
endpoint.
Simply calling this endpoint will return all version suggestions available for a Company
To filter only to some selected values the endpoint should be called with URL like this:
/suggestions/versions/Value
This will only list Suggestions with case insensitive "value" string inside content
column
Accept | any Example: application/vnd.api+json |
X-Company-UUID | any Example: c1a8a14c-256b-420b-8518-8bb3e9ff72c4 |
Authorization | any Example: Bearer STUB_TOKEN_STRING |
Content-Type | any Example: application/vnd.api+json |
{- "data": [
- {
- "id": "2",
- "type": "simple_suggestion",
- "attributes": {
- "content": "downcase version",
- "locale": "en",
- "kind": "version",
- "depth": 1
}
}, - {
- "id": "1",
- "type": "simple_suggestion",
- "attributes": {
- "content": "Version Capitalized",
- "locale": "en",
- "kind": "version",
- "depth": 0
}
}, - {
- "id": "4",
- "type": "simple_suggestion",
- "attributes": {
- "content": "other content",
- "locale": "en",
- "kind": "version",
- "depth": 0
}
}
]
}
Drivetrains suggestions are accessed through /suggestions/drivetrains
endpoint.
Simply calling this endpoint will return all drivetrain suggestions available for a Company
To filter only to some selected values the endpoint should be called with URL like this:
/suggestions/drivetrains/Petrol
This will only list Suggestions with case insensitive "Petrol" string inside content
column
Accept | any Example: application/vnd.api+json |
X-Company-UUID | any Example: ef7a0981-f349-4dc8-8719-00f73da5e1cf |
Authorization | any Example: Bearer STUB_TOKEN_STRING |
Content-Type | any Example: application/vnd.api+json |
{- "data": [
- {
- "id": "10",
- "type": "simple_suggestion",
- "attributes": {
- "content": "petrol 2",
- "locale": "en",
- "kind": "drivetrain",
- "depth": 1
}
}, - {
- "id": "9",
- "type": "simple_suggestion",
- "attributes": {
- "content": "Petrol 1",
- "locale": "en",
- "kind": "drivetrain",
- "depth": 0
}
}, - {
- "id": "12",
- "type": "simple_suggestion",
- "attributes": {
- "content": "Diesel 1",
- "locale": "en",
- "kind": "drivetrain",
- "depth": 0
}
}
]
}