Products
Get products
Get all products from a client
request-get
https://api.photo-motion.com/v2/client/{clientId}/productsEach request can return a maximum of 100 rows.
Parameters
| Parameter | Key | Description | Options | |
|---|---|---|---|---|
PATH | clientId | ID of client | Required | |
QUERY | limit | Number of rows | ||
QUERY | offset | Rows to skip | ||
QUERY | order_by | Order by field | name created_at | |
QUERY | order_direction | Sort order | asc desc |
Example to retrieve rows in the range 11 to 20 sorted by the latest creation date: .../products?limit=10&offset=10&order_by=created_at&sort=desc
Response Example
json
[
{
"id": 546750,
"client.id": 29,
"client.name": "Photo-Motion Demo",
"name": "new Mini Cooper Cabrio HiRes + HiSpeed",
"image": "https://cdn.photo-motion.com/images/QJfxZCpgFUxBIoJ3/a9522429-0465-49a0-aa38-83815e695b7a/8f5b1904-1ebe-4bad-acc8-27fb5a648530",
"image_id": 80528177,
"license": "",
"status": "completed",
"vin": "",
"vehicle_make": null,
"vehicle_model": null,
"vehicle_color": null,
"vehicle_style": null,
"offices.id": [],
"offices.name": [],
"adverts": 2,
"images": 347,
"spinners_360": 0,
"videos": 0,
"created_at": "2024-12-18T20:59:52.000000Z",
"updated_at": "2025-01-07T12:31:01.000000Z"
}
]Get product
Get a single product from a client
request-get
https://api.photo-motion.com/v2/client/{clientId}/product/{productId}Parameters
| Parameter | Key | Description | |
|---|---|---|---|
PATH | clientId | ID of client | Required |
PATH | productId | ID of product | Required |
Response Example
json
{
"id": 546750,
"client.id": 29,
"client.name": "Photo-Motion Demo",
"name": "new Mini Cooper Cabrio HiRes + HiSpeed",
"image": "https://cdn.photo-motion.com/images/QJfxZCpgFUxBIoJ3/a9522429-0465-49a0-aa38-83815e695b7a/8f5b1904-1ebe-4bad-acc8-27fb5a648530",
"image_id": 80528177,
"license": "",
"status": "completed",
"vin": "",
"vehicle_make": null,
"vehicle_model": null,
"vehicle_color": null,
"vehicle_style": null,
"offices.id": [],
"offices.name": [],
"adverts": 2,
"images": 347,
"spinners_360": 0,
"videos": 0,
"created_at": "2024-12-18T20:59:52.000000Z",
"updated_at": "2025-01-07T12:31:01.000000Z"
}