GET Customer Accounts Vehicle
Returns one of the customer's saved vehicles. Curbside and drive-thru orders use this to tell staff what to look for.
To attach a vehicle to an order, send its identifier as customer_account_vehicle_id in the cart's curbside order type properties — see Place order for Curbside.
Path Parameters
- Type: stringFormat: uuidcustomer
_account _id requiredCustomer account UUID
- Type: stringvehicle
_id requiredVehicle UUID
Headers
- Type: stringAcceptrequired
Type of content accepted by the API (application/json in most cases)
- Type: stringApplicationrequired
Application key for specific client app
- Type: stringA
P I - V E R S I O N requiredVersion of the API to be used
- Type: stringAuthorization
Authorization header
- Type: stringX
- Request - I D requiredUnique request identifier
Responses
- application/json
- 401
Missing or invalid token, or the path account is not the signed-in account.
- 404
No such vehicle for this customer.
Request Example for get/customer-accounts/{customer_account_id}/vehicles/{vehicle_id}
curl https://api-public-demo.menu.app/api/customer-accounts/4e42c2a6-3f23-11ed-936c-1a67b454859d/vehicles/4c8a6770-99c4-4f08-9d91-26152dcb0c89 \
--header 'Accept: application/json' \
--header 'Application: application-key' \
--header 'API-VERSION: ' \
--header 'X-Request-ID: c10b4a70-6274-490d-80a0-03e7bb826937'
{
"status": "OK",
"code": 200,
"data": {
"vehicle": {
"id": 77,
"customer_account_id": 9031,
"brand_and_model": "Fiat Bravo 1.9 MJET",
"color": "Gray",
"license_plate_number": "CA102FX"
}
}
}