List a product type's variants
const url = 'https://digize.com/api/v1/printify/catalog/blueprints/1/providers/1/variants';const options = {method: 'GET', headers: {'x-api-key': '<x-api-key>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://digize.com/api/v1/printify/catalog/blueprints/1/providers/1/variants \ --header 'x-api-key: <x-api-key>'What a print provider makes of a product type: each variant (a colour and size, say) with its id, its value of every option, and where a design can go on it (front, back, …) with the print area’s size in pixels. options lists the option names and values in Printify’s order, for a picker.
Needs the commerce:read permission.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”A blueprint id from printify.catalog.blueprints.
A print provider id from printify.catalog.providers.
Responses
Section titled “Responses”Done
object
object
object
The variant id the product is made with.
Its value of each option, such as { color: 'Black', size: 'L' }.
object
Where a design can go, with the print area’s size in pixels.
object
Example generated
{ "provider": "example", "options": [ { "name": "example", "values": [ "example" ] } ], "variants": [ { "id": 1, "title": "example", "options": { "additionalProperty": "example" }, "placeholders": [ { "position": "example", "width": 1, "height": 1 } ] } ]}What was sent isn’t valid (invalid).
object
object
object
Example
{ "error": { "code": "invalid" }}No key, or one that’s unknown, off or expired.
object
object
object
Example
{ "error": { "code": "invalid" }}The key doesn’t have the permission this needs.
object
object
object
Example
{ "error": { "code": "invalid" }}Nothing has that id (not_found).
object
object
object
Example
{ "error": { "code": "invalid" }}Over the rate limit; see retry-after.
object
object
object
Example
{ "error": { "code": "invalid" }}