Raw schema
{
"type": "object",
"properties": {
"operation_id": {
"type": "string",
"pattern": "^[A-Za-z0-9_-]{8,100}$"
},
"shop_id": {
"anyOf": [
{
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991
},
{
"type": "string",
"pattern": "^[A-Za-z0-9_-]{1,100}$"
}
]
},
"confirm": {
"type": "boolean"
},
"preview_hash": {
"type": "string",
"pattern": "^[a-f0-9]{64}$"
},
"line_items": {
"minItems": 1,
"maxItems": 20,
"type": "array",
"items": {
"type": "object",
"properties": {
"product_id": {
"type": "string",
"pattern": "^[A-Za-z0-9_-]{1,100}$"
},
"variant_id": {
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991
},
"quantity": {
"type": "integer",
"minimum": 1,
"maximum": 10000
}
},
"required": [
"product_id",
"variant_id",
"quantity"
]
}
},
"address_to": {
"type": "object",
"properties": {
"first_name": {
"type": "string",
"minLength": 1,
"maxLength": 100
},
"last_name": {
"type": "string",
"minLength": 1,
"maxLength": 100
},
"email": {
"type": "string",
"maxLength": 254,
"format": "email",
"pattern": "^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"
},
"phone": {
"type": "string",
"minLength": 1,
"maxLength": 50
},
"country": {
"type": "string",
"pattern": "^[A-Z]{2}$"
},
"region": {
"type": "string",
"maxLength": 100
},
"address1": {
"type": "string",
"minLength": 1,
"maxLength": 200
},
"address2": {
"type": "string",
"maxLength": 200
},
"city": {
"type": "string",
"minLength": 1,
"maxLength": 100
},
"zip": {
"type": "string",
"minLength": 1,
"maxLength": 30
},
"company": {
"type": "string",
"maxLength": 100
}
},
"required": [
"first_name",
"last_name",
"email",
"phone",
"country",
"region",
"address1",
"city",
"zip"
]
},
"shipping_method": {
"type": "integer",
"minimum": 1,
"maximum": 4
},
"label": {
"type": "string",
"minLength": 1,
"maxLength": 100
},
"manual_approval_confirmed": {
"description": "Confirm that this exact API store was set to Manual order approval in Printify before creating the order. The public API cannot verify this setting.",
"type": "boolean"
}
},
"required": [
"operation_id",
"shop_id",
"line_items",
"address_to",
"shipping_method"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}