Check image
POST
/api/v1/images/checkImageConfigCheck if the image is sized correctly based on the provided width, height and options. You don't need to call this endpoint every time you submit an order. The submit order endpoint automatically verifies if the images meet the required dimensions.
Request
The subcategory of the product to check the image against.
The width of the print to check the image against in inches.
The height of the print to check the image against in inches.
The URL of the image of the order item.
The ID of options of the product to check the image against.
{
"subcategoryId": "101001",
"printWidth": "8",
"printHeight": "8",
"imageUrl": "https://www.example.com/image.jpg",
"orderItemOptions": [
1,
11,
21
]
}
Request samples
Responses
Message indicating if the image is sized correctly.
The URL of the image
The width of the print was checked against the image in pixels.
The height of the print was checked against the image in pixels.
The expected aspect ratio of the image.
The actual width of the image in pixels.
The actual height of the image in pixels.
The actual aspect ratio of the image.
{
"message": "The aspect ratio of the image is the same as the ordered size. We allow a maximum of 1% difference between the aspect ratio of the image and the ordered size.",
"imageUrl": "https://www.example.com/image.jpg",
"recommendedWidth": 1600,
"recommendedHeight": 2400,
"expectedAspectRatio": "2:3",
"actualImageWidth": 1600,
"actualImageHeight": 2400,
"actualImageAspectRatio": "2:3"
}