Skip to content

List a product type's variants

GET
/api/v1/printify/catalog/blueprints/{blueprintId}/providers/{printProviderId}/variants
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.

blueprintId
required

A blueprint id from printify.catalog.blueprints.

integer
> 0 <= 9007199254740991
printProviderId
required

A print provider id from printify.catalog.providers.

integer
> 0 <= 9007199254740991

Done

Media typeapplication/json
object
provider
required
string
options
required
Array<object>
object
name
required
string
values
required
Array<string>
variants
required
Array<object>
object
id
required

The variant id the product is made with.

integer
>= -9007199254740991 <= 9007199254740991
title
required
string
options
required

Its value of each option, such as { color: 'Black', size: 'L' }.

object
key
additional properties
string
placeholders
required

Where a design can go, with the print area’s size in pixels.

Array<object>
object
position
required
string
width
required
integer
>= -9007199254740991 <= 9007199254740991
height
required
integer
>= -9007199254740991 <= 9007199254740991

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).

Media typeapplication/json
object
error
required
object
code
required
string
Allowed values: invalid unauthorized forbidden not_found conflict too_large rate_limited unavailable internal
message
required
string
details
object
key
additional properties
any

Example

{
"error": {
"code": "invalid"
}
}

No key, or one that’s unknown, off or expired.

Media typeapplication/json
object
error
required
object
code
required
string
Allowed values: invalid unauthorized forbidden not_found conflict too_large rate_limited unavailable internal
message
required
string
details
object
key
additional properties
any

Example

{
"error": {
"code": "invalid"
}
}

The key doesn’t have the permission this needs.

Media typeapplication/json
object
error
required
object
code
required
string
Allowed values: invalid unauthorized forbidden not_found conflict too_large rate_limited unavailable internal
message
required
string
details
object
key
additional properties
any

Example

{
"error": {
"code": "invalid"
}
}

Nothing has that id (not_found).

Media typeapplication/json
object
error
required
object
code
required
string
Allowed values: invalid unauthorized forbidden not_found conflict too_large rate_limited unavailable internal
message
required
string
details
object
key
additional properties
any

Example

{
"error": {
"code": "invalid"
}
}

Over the rate limit; see retry-after.

Media typeapplication/json
object
error
required
object
code
required
string
Allowed values: invalid unauthorized forbidden not_found conflict too_large rate_limited unavailable internal
message
required
string
details
object
key
additional properties
any

Example

{
"error": {
"code": "invalid"
}
}