Skip to content

Products

Get products

Get all products from a client

request-get
https://api.photo-motion.com/v2/client/{clientId}/products

Each request can return a maximum of 100 rows.

Parameters

ParameterKeyDescriptionOptions
PATHclientIdID of clientRequired
QUERYlimitNumber of rows
QUERYoffsetRows to skip
QUERYorder_byOrder by fieldname created_at
QUERYorder_directionSort orderasc 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

ParameterKeyDescription
PATHclientIdID of clientRequired
PATHproductIdID of productRequired

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"
}