GET /2024-09/products/{product}/images

Get the list of images for a specific product

Responses

  • 200 application/json

    A successful response returning the list of product images

    Hide response attributes Show response attributes object
    • meta object
      Hide meta attributes Show meta attributes object
      • current_page integer
      • from integer | null
      • last_page integer
      • path string
      • per_page integer
      • to integer | null
      • total integer
    • data array[object] Required

      Representation of a product image

      Hide data attributes Show data attributes object
      • id string(uuid)

        The UUID of the resource.

      • product_id string(uuid)

        The UUID of the product this image belongs to

      • public_url string(uri)

        The publicly accessible URL for the image

      • created_at string(date-time)

        The date and time the resource was created.

      • updated_at string(date-time)

        The date and time the resource was last updated.

  • 401 application/json

    The request requires user authentication or the user is not authorized to access this resource.

    Hide response attribute Show response attribute object
    • message string
  • 403 application/json

    Forbidden - The user does not have permission to access this resource.

    Hide response attribute Show response attribute object
    • message string Required
  • 404 application/json

    The specified resource was not found

    Hide response attribute Show response attribute object
    • message string
GET /2024-09/products/{product}/images
curl \
 --request GET 'https://app.merchanthq.com/api/2024-09/products/{product}/images' \
 --header "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
{
  "links": {
    "first": "https://app.merchanthq.com/api/2024-09/merchants?page=1",
    "last": "https://app.merchanthq.com/api/2024-09/merchants?page=10",
    "prev": "https://app.merchanthq.com/api/2024-09/merchants?page=1",
    "next": "https://app.merchanthq.com/api/2024-09/merchants?page=3"
  },
  "meta": {
    "current_page": 1,
    "from": 1,
    "last_page": 10,
    "path": "https://app.merchanthq.com/api/2024-09/merchants",
    "per_page": 10,
    "to": 10,
    "total": 20
  },
  "data": [
    {
      "id": "1e7f0a0f-b5a9-4d1a-a2d5-d0e0c2b1c3d4",
      "product_id": "1e7f0a0f-b5a9-4d1a-a2d5-d0e0c2b1c3d4",
      "public_url": "https://cdn.merchanthq.com/products/1e7f0a0f-b5a9-4d1a-a2d5-d0e0c2b1c3d4/image1.jpg",
      "created_at": "2025-01-10T10:37:11Z",
      "updated_at": "2025-01-10T10:37:11Z"
    }
  ]
}
Response examples (401)
{
  "message": "Unauthorized"
}
Response examples (403)
{
  "message": "This action is unauthorized."
}
Response examples (404)
{
  "message": "Not found"
}