- Introduction
- Authentication
- API Rate Limits
- Payment Method and Billing Address
- Getting Started
- Product Configuration
- Webhook
- Order
- Image
- Product
- Store
- Shipment
- Pricing
- Webhook
Check image
Sandbox
Sandbox
POST
https://us.api-sandbox.lumaprints.com/api/v1/images/checkImageConfig
Image
Request
Authorization
Send your HTTP requests with an
Authorization
header that contains the word Basic followed by a space and a base64-encoded string {{Username}}:{{Password}}Example:
Authorization: Basic *****************
Body Params application/json
subcategoryId
number
required
Example:
101001
printWidth
number
required
Example:
8
printHeight
number
required
Example:
8
imageUrl
string <string>
required
>= 6 characters<= 1024 characters
Example:
https://www.example.com/image.jpg
orderItemOptions
array[string <array>]
required
Example:
[1,11,21]
Example
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://us.api-sandbox.lumaprints.com/api/v1/images/checkImageConfig' \
--header 'Content-Type: application/json' \
--data-raw ''
Responses
🟢200The image is sized correctly.
application/json
Body
message
string <string>
required
Examples:
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.The aspect ratio of the image is not same as the ordered size. We only allow a maximum of 1% difference between the aspect ratio of the image and the ordered size.
imageUrl
string <string>
required
Example:
https://www.example.com/image.jpg
recommendedWidth
number
required
Example:
1600
recommendedHeight
number
required
Example:
2400
expectedAspectRatio
string
required
Example:
2:3
actualImageWidth
number
required
Example:
1600
actualImageHeight
number
required
Example:
2400
actualImageAspectRatio
string
required
Example:
2:3
Example
{
"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"
}
🟠400The image URL is invalid or not accessible.
🟠406The image is sized incorrectly.
Modified at 2024-01-31 17:38:16