Get blueprint variants
Variants one print provider offers for a blueprint, with size, color and print area size.
GET https://cotlet.dev/api/v1/printify/print-providers/{print_provider_id}/blueprints/{blueprint_id}/variants
read
Returns the variants of one blueprint at one print provider, in stock only by default. Each variant has its ID, options such as color and size, and the print areas in pixels. Set include_out_of_stock to see all of them. Catalog requests are limited to 100 per minute per account.
Parameters
| Name | Type | Description |
|---|---|---|
| blueprint_id integer required | integer | Blueprint ID from list_blueprints. |
| print_provider_id integer required | integer | Print provider ID that makes the blueprint. |
| include_out_of_stock boolean | boolean | true lists out of stock variants too. Default: false. |
Request
curl https://cotlet.dev/api/v1/printify/print-providers/1/blueprints/1/variants \
-H "Authorization: Bearer $COTLET_API_KEY" result = client.call("printify", "get_blueprint_variants", {"blueprint_id":1,"print_provider_id":1}) const result = await cotlet.call('printify', 'get_blueprint_variants', {"blueprint_id":1,"print_provider_id":1}); cotlet call printify get_blueprint_variants --data '{"blueprint_id":1,"print_provider_id":1}' Example response
{
"blueprint_id": 384,
"print_provider_id": 29,
"variants": [
{
"variant_id": 45740,
"title": "Black / S",
"options": {
"color": "Black",
"size": "S"
},
"print_area": {
"position": "front",
"width": 3153,
"height": 3995
}
},
{
"variant_id": 45742,
"title": "Black / L",
"options": {
"color": "Black",
"size": "L"
},
"print_area": {
"position": "front",
"width": 3153,
"height": 3995
}
}
]
}