Product data model

Updated:

A blank product in the print vendor catalog that artwork can be printed on

View field support, webhooks, and list parameters for each integration on the Supported Integrations page.

FieldTypeRequiredDescription
idstringNo
created_atstring (date-time)No(ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
updated_atstring (date-time)No(ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
namestringNo
descriptionstringNo
brandstringNo
modelstringNoManufacturer model name or number
categorystringNoProduct type name (eg. T-Shirt, Poster)
image_urlsstring[]NoSample image URLs
currencystringNoISO 4217 currency code of the variant prices
production_daysnumberNoAverage number of days to produce an order of this product
is_activebooleanNoFalse when the product is discontinued
techniquesPrintingTechnique[]NoPrint techniques available for this product
techniques[].codestringNoTechnique key used in the API (eg. dtg, embroidery)
techniques[].namestringNoDisplay name
techniques[].is_defaultbooleanNo
placementsPrintingPlacement[]NoPrint areas available on this product
placements[].codestringNoPlacement key used when attaching a print file (eg. front, back)
placements[].namestringNoDisplay name
placements[].techniquestringNoPrint technique or decoration method code for this placement (eg. dtg, embroidery)
placements[].widthnumberNoWidth of the print area, in unit
placements[].heightnumberNoHeight of the print area, in unit
placements[].unitenumNoUnit of width and height Values: PIXEL, MILLIMETER, CENTIMETER, INCH, OTHER
placements[].dpinumberNoPrint resolution for the given width and height
placements[].additional_price_amountnumberNoExtra cost when this placement is printed
variantsPrintingProductVariant[]No
variants[].identifierstringNoVariant identifier, used as variant_identifier on order and quote line items
variants[].namestringNoDisplay name
variants[].sizestringNo
variants[].colorstringNo
variants[].color_codestringNoHexadecimal RGB color code
variants[].image_urlstringNo
variants[].price_amountnumberNoBase production price of the blank variant
variants[].is_availablebooleanNoVariant is in stock and can be ordered
variants[].placementsPrintingPlacement[]NoPrint areas of this variant, when they differ per variant
variants[].placements[].codestringNoPlacement key used when attaching a print file (eg. front, back)
variants[].placements[].namestringNoDisplay name
variants[].placements[].techniquestringNoPrint technique or decoration method code for this placement (eg. dtg, embroidery)
variants[].placements[].widthnumberNoWidth of the print area, in unit
variants[].placements[].heightnumberNoHeight of the print area, in unit
variants[].placements[].unitenumNoUnit of width and height Values: PIXEL, MILLIMETER, CENTIMETER, INCH, OTHER
variants[].placements[].dpinumberNoPrint resolution for the given width and height
variants[].placements[].additional_price_amountnumberNoExtra cost when this placement is printed
metadataPrintingMetadata[]No
metadata[].idstringNoThe ID of the custom field definition (from the metadata/metadata endpoint).
metadata[].slugstringNoThe integration's API name (key) of an existing custom field.
metadata[].valueobjectNoThe field's value, typed by format.
metadata[].namespacestringNo
metadata[].formatenumNoThe data type of the custom field, which determines how value is formatted. Values: TEXT, NUMBER, DATE, BOOLEAN, FILE, TEXTAREA, SINGLE_SELECT, MULTIPLE_SELECT, MEASUREMENT, PRICE, YES_NO, CURRENCY, URL
metadata[].extra_dataobjectNo

TypeScript

TypeScript
export type PrintingProduct = {
	id?: string;
	created_at?: string-time; // (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
	updated_at?: string-time; // (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
	name?: string;
	description?: string;
	brand?: string;
	model?: string; // Manufacturer model name or number
	category?: string; // Product type name (eg. T-Shirt, Poster)
	image_urls?: string[]; // Sample image URLs
	currency?: string; // ISO 4217 currency code of the variant prices
	production_days?: number; // Average number of days to produce an order of this product
	is_active?: boolean; // False when the product is discontinued
	techniques?: []; // Print techniques available for this product
	placements?: []; // Print areas available on this product
	variants?: [];
	metadata?: [];
	raw?: any; // Raw data from integration
} 

Zod

Zod
import { z } from 'zod';

export const ZodPrintingProduct = z.object({
	id: z.string().optional(),
	created_at: z.string-time().optional().describe("(ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)"),
	updated_at: z.string-time().optional().describe("(ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)"),
	name: z.string().optional(),
	description: z.string().optional(),
	brand: z.string().optional(),
	model: z.string().optional().describe("Manufacturer model name or number"),
	category: z.string().optional().describe("Product type name (eg. T-Shirt, Poster)"),
	image_urls: z.array().optional().describe("Sample image URLs"),
	currency: z.string().optional().describe("ISO 4217 currency code of the variant prices"),
	production_days: z.number().optional().describe("Average number of days to produce an order of this product"),
	is_active: z.boolean().optional().describe("False when the product is discontinued"),
	techniques: z.array().optional().describe("Print techniques available for this product"),
	placements: z.array().optional().describe("Print areas available on this product"),
	variants: z.array().optional(),
	metadata: z.array().optional(),

});

Python

Python
import dataclasses

@dataclasses.dataclass
class PrintingProduct:
	id: Optional[str]
	"""(ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)"""
	created_at: Optional[str]
	"""(ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)"""
	updated_at: Optional[str]
	name: Optional[str]
	description: Optional[str]
	brand: Optional[str]
	"""Manufacturer model name or number"""
	model: Optional[str]
	"""Product type name (eg. T-Shirt, Poster)"""
	category: Optional[str]
	"""Sample image URLs"""
	image_urls: Optional[List[List[str]]]
	"""ISO 4217 currency code of the variant prices"""
	currency: Optional[str]
	"""Average number of days to produce an order of this product"""
	production_days: Optional[int]
	"""False when the product is discontinued"""
	is_active: Optional[bool]
	"""Print techniques available for this product"""
	techniques: Optional[PropertyPrintingProductTechniques]
	"""Print areas available on this product"""
	placements: Optional[PropertyPrintingProductPlacements]
	variants: Optional[PropertyPrintingProductVariants]
	metadata: Optional[PropertyPrintingProductMetadata]
Are we missing anything? Let us know
Was this page helpful?