Get a single Product Media

GET /api/v2/products/{productId}/media/{id}.json

Retrieve a single Product Media item using its ID.

Scopes

Requires either the products or products.readonly OAuth scope.

Parameters

Accepts the following parameters:

id required
The ID of the Product Media item is supplied as a path parameter.
productId required
The ID of the Product is supplied as a path parameter.


Response

Returns an object with the following properties:

success
A boolean where a value of true represents a successful request.
status
The HTTP status code e.g. 200 for a successful request.
data
Contains the Product Media object.


JSON Example

An example of JSON returned.

{
    "success": true,
    "status": 200,
    "data": {
        "id": 48646,
        "productId": 3066,
        "type": "photo",
        "isPrimary": true,
        "image": "https://cdn.evance.me/portal/web/0/content/images/be05aa4b29f41eb94c6f4bb5a36370be.jpg",
        "video": null,
        "title": null,
        "description": null,
        "sequence": 1,
        "createdOn": "2022-05-21T15:54:05+00:00",
        "createdBy": null,
        "modifiedOn": "2022-05-21T15:54:05+00:00",
        "modifiedBy": null
    }
}