Introduction
This endpoint returns the pricing history of a vehicle (basic price, VAT price, delivery price, VAT delivery price and basic + delivery VAT price). By using an effective date (optional parameter), you can return the pricing relevant to the chosen vehicle for that moment in time.
Header
When making calls to our API, include the following header:
x-api-key:your-api-key-here
Example Request
https://api.oneautoapi.com/autotrader/mrrpfromid?autotrader_derivative_id=9a6e338af3c749cf8e6819c8c70f791a&effective_date=2021-09-02
Example Sandbox Request
https://sandbox.oneautoapi.com/autotrader/mrrpfromid?autotrader_derivative_id=9a6e338af3c749cf8e6819c8c70f791a&effective_date=2021-09-02
Request Parameters
autotrader_derivative_id
mandatory, string, e.g. 9a6e338af3c749cf8e6819c8c70f791a
Auto Trader identifier for the derivative of the vehicle
effective_date
optional, string, e.g. 2021-09-02
This optional parameter will ensure the pricing relevant to the chosen vehicle for that moment in time is returned
Sample Response
{
"success": true,
"result": {
"prices_data": [
{
"effective_from_date": "2020-01-01",
"effective_to_date": "2020-01-01",
"list_price_ex_vat": 12345.67,
"list_price_vat": 1234.56,
"delivery_price_ex_vat": 12345.67,
"delivery_price_vat": 1234.56,
"list_price_inc_delivery_vat": 12345.67
}
],
"autotrader_derivative_id": "1a2b345cf6d789ef1g0111h2i13j141k"
},
"error": "If there is an error the message would go here"
}Response Parameters
success
e.g. true
Whether the api call was successful
effective_from_date
e.g. 2020-01-01
The date the price is effective from
effective_to_date
e.g. 2020-01-01
The date the price is effective to
list_price_ex_vat
e.g. 12345.67
The list price excluding VAT
list_price_vat
e.g. 1234.56
The list price VAT
delivery_price_ex_vat
e.g. 12345.67
Delivery price excluding VAT
delivery_price_vat
e.g. 1234.56
The delivery price VAT
list_price_inc_delivery_vat
e.g. 12345.67
The list price + delivery price including VAT
autotrader_derivative_id
e.g. 1a2b345cf6d789ef1g0111h2i13j141k
The Auto Trader Derivative ID
error
e.g. If there is an error the message would go here
Details of what went wrong with the api call
Status Codes
200
success, chargeable
Request has been successfully received and a response has been sent.
202
accepted, non-chargeable
Request has been received and accepted for processing, but the action has not yet been completed.
204
no content, non-chargeable
Request has been successfully received but there is no content to return e.g. if an invalid VRM has been sent.
206
partial content, non-chargeable
Request has been successfully received but limited content is returned e.g. if an invalid VRM has been sent.
400
bad request, non-chargeable
Request was not received e.g. if any required parameters are missing.
403
forbidden, non-chargeable
Request was rejected e.g. if the API key is invalid or the service is not enabled.
429
too many requests, non-chargeable
API key rate limit/quota has been exceeded.
500
internal server error, non-chargeable
We are unable to process the request e.g. if the API is under extremely heavy load.
503
service unavailable, non-chargeable
Service is temporarily unavailable. Contact help@oneautoapi.com