Skip to content

Product Catalog Vehicles

Updated: Aug 27, 2024

Reading

Retrieve vehicles from a product catalog.

Example

Select language

HTTPPHP SDKJavaScript SDKAndroid SDKiOS SDK


GET /v25.0/{product-catalog-id}/vehicles HTTP/1.1  
Host: graph.facebook.com

Try it in Graph API Explorer

If you want to learn how to use the Graph API, read our Using Graph API guide

Parameters

ParameterDescription
bulk_pagination booleanUsed for iterating over the edge in large chunks
filter A JSON-encoded ruleJSON-encoded WCA rule expression representing the filter to be applied for the edge

Fields

Reading from this edge will return a JSON formatted result:

{
"data": [],
"paging": {},
"summary": {}
}
data

A list of Vehicle nodes.

paging

For more details about pagination, see the Graph API guide.

summary

Aggregated information about the edge, such as counts. Specify the fields to fetch in the summary param (like summary=total_count).

FieldDescription
total_count unsigned int32Total number of vehicles returned by the query

Error Codes

Error CodeDescription
100Invalid parameter

Creating

/{product_catalog_id}/vehicles

You can make a POST request to vehicles edge from the following paths:

When posting to this edge, a ProductCatalog will be created.

Parameters

ParameterDescription
address JSON objectaddress required --- city string Default value: "" city city_id string city_id country string Default value: "" country latitude float latitude longitude float longitude neighborhoods array<string> neighborhoods postal_code string Default value: "" postal_code region string Default value: "" region street_address string Default value: "" street_address Show child parameters
applinks Objectapplinks --- web android ios ipad iphone windows_phone Show child parameters
availability enum {AVAILABLE, NOT_AVAILABLE, PENDING, UNKNOWN}availability
body_style enum {CONVERTIBLE, COUPE, CROSSOVER, ESTATE, GRANDTOURER, HATCHBACK, MINIBUS, MINIVAN, MPV, PICKUP, ROADSTER, SALOON, SEDAN, SMALL_CAR, SPORTSCAR, SUPERCAR, SUPERMINI, SUV, TRUCK, VAN, WAGON, OTHER, NONE}body_style required
condition enum {EXCELLENT, VERY_GOOD, GOOD, FAIR, POOR, OTHER, NONE}condition
currency ISO 4217 Currency Codecurrency required
date_first_on_lot stringdate_first_on_lot
dealer_id stringdealer_id
dealer_name stringdealer_name
dealer_phone stringdealer_phone
description stringdescription required
drivetrain enum {TWO_WD, FOUR_WD, AWD, FWD, RWD, OTHER, NONE}drivetrain
exterior_color stringexterior_color required
fb_page_id stringfb_page_id
fuel_type enum {DIESEL, ELECTRIC, GASOLINE, FLEX, HYBRID, OTHER, PETROL, PLUGIN_HYBRID, NONE}fuel_type
images list<Object>images required --- image_url URL required tags list<string> Show child parameters
interior_color stringinterior_color
make stringmake required
mileage JSON objectmileage required --- unit enum {KILOMETERS, MILES} Default value: "MILES" unit value int64 Default value: 0 value Show child parameters
model stringmodel required
price int64price required
state_of_vehicle enum {NEW, USED, CPO}state_of_vehicle required
title stringtitle required
transmission enum {AUTOMATIC, MANUAL, OTHER, NONE}transmission
trim stringtrim
url URIurl required
vehicle_id stringvehicle_id required
vehicle_type enum {BOAT, CAR_TRUCK, COMMERCIAL, MOTORCYCLE, OTHER, POWERSPORT, RV_CAMPER, TRAILER}vehicle_type
vin stringvin required
year int64year required

Return Type

This endpoint supports read-after-write and will read the node represented by id in the return type.

Struct  {
id: numeric string,
}

Error Codes

Error CodeDescription
10800Duplicate retailer_id when attempting to create a store collection
100Invalid parameter
200Permissions error

Updating

You can't perform this operation on this endpoint.

Deleting

You can't perform this operation on this endpoint.

Unofficial mirror for reference/search purposes. All content originates from developers.facebook.com — see the source link at the top of each page. Machine-readable indexes: llms.txt · llms-full.txt · About