Pricing
Dynamic pricing for a vehicle. Prices change over time and by location, so request pricing when the user needs it rather than caching it. All prices are in the zone's local currency and in minor units.
The pricing model
{
"data": {
"type": "pricing",
"id": "12345678-1337-abcd-1234-1234abcd0002",
"attributes": {
"currency": "EUR",
"pricePerMinute": 15,
"startPrice": 100,
"vat": 0.25
}
}
}
| Field | Type | Description |
|---|---|---|
id | string | The vehicle id (UUID v4) the pricing is derived for. |
type | string | Always pricing. |
pricePerMinute | integer | Price per minute, incl. VAT, in minor units. |
startPrice | integer | Start (unlock) price, incl. VAT, in minor units. |
currency | string | Three-letter currency code (ISO 4217). |
vat | number | VAT percentage. |
Get pricing by vehicle
Returns pricing for a specific vehicle, referenced by its id. Prices update dynamically, so **do not cache** pricing — request it when the user needs it. All prices are in the zone's local currency.