---
title: "Order data model"
url: "https://docs.unified.to/printing/order/model"
description: "The Order data model object in Unified's Order API: 17 fields, including created_at, updated_at and external_identifier, with types and enum values."
date: "2026-11-24T21:03:15.660Z"
updated: "2026-11-24T21:03:15.660Z"
---
# Order data model

Updated: November 24, 2026

A production order placed with the print vendor

 View field support, webhooks, and list parameters for each integration on the [Supported Integrations](https://docs.unified.to/printing/integrations.md) page. 

| Field                               | Type                     | Required | Description                                                                                                                                                                                                   |
| ----------------------------------- | ------------------------ | -------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| id                                  | string                   | No       |                                                                                                                                                                                                               |
| created\_at                         | string (date-time)       | No       | (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)                                                                                                                                                                      |
| updated\_at                         | string (date-time)       | No       | (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)                                                                                                                                                                      |
| external\_identifier                | string                   | No       | Order identifier from the ordering system                                                                                                                                                                     |
| customer\_identifier                | string                   | No       | Identifier of the end customer in the ordering system                                                                                                                                                         |
| status                              | enum                     | No       | Values: DRAFT, PENDING, ON\_HOLD, IN\_PRODUCTION, PARTIALLY\_SHIPPED, SHIPPED, DELIVERED, CANCELLED, FAILED, OTHER                                                                                            |
| currency                            | string                   | No       | ISO 4217 currency code                                                                                                                                                                                        |
| shipping\_address                   | object                   | No       | Recipient and delivery address                                                                                                                                                                                |
| shipping\_address.name              | string                   | No       | Recipient full name                                                                                                                                                                                           |
| shipping\_address.company\_name     | string                   | No       |                                                                                                                                                                                                               |
| shipping\_address.email             | string                   | No       |                                                                                                                                                                                                               |
| shipping\_address.telephone         | string                   | No       |                                                                                                                                                                                                               |
| shipping\_address.address1          | string                   | No       | first line of the street address                                                                                                                                                                              |
| shipping\_address.address2          | string                   | No       | second line of the street address                                                                                                                                                                             |
| shipping\_address.city              | string                   | No       | city or locality                                                                                                                                                                                              |
| shipping\_address.region            | string                   | No       | state, province or regional area                                                                                                                                                                              |
| shipping\_address.region\_code      | string                   | No       | state, province or regional area code                                                                                                                                                                         |
| shipping\_address.postal\_code      | string                   | No       | postal or ZIP code                                                                                                                                                                                            |
| shipping\_address.country           | string                   | No       | country name                                                                                                                                                                                                  |
| shipping\_address.country\_code     | string                   | No       | ISO 3166-1 alpha-2 country code                                                                                                                                                                               |
| shipping\_method                    | string                   | No       | Shipping method code                                                                                                                                                                                          |
| lineitems                           | PrintingLineitem\[\]     | No       |                                                                                                                                                                                                               |
| lineitems\[\].id                    | string                   | No       | Line item identifier                                                                                                                                                                                          |
| lineitems\[\].product\_id           | string                   | No       | The PrintingProduct ID of the blank product                                                                                                                                                                   |
| lineitems\[\].variant\_identifier   | string                   | No       | Identifier of the product variant                                                                                                                                                                             |
| lineitems\[\].name                  | string                   | No       | Display name                                                                                                                                                                                                  |
| lineitems\[\].sku                   | string                   | No       | Product identifier (SKU) from the ordering system                                                                                                                                                             |
| lineitems\[\].quantity              | number                   | No       |                                                                                                                                                                                                               |
| lineitems\[\].unit\_price\_amount   | number                   | No       | Production price per unit charged by the print vendor                                                                                                                                                         |
| lineitems\[\].retail\_price\_amount | number                   | No       | Retail price per unit paid by the end customer                                                                                                                                                                |
| lineitems\[\].files                 | PrintingLineitemFile\[\] | No       | Print files, one per placement                                                                                                                                                                                |
| lineitems\[\].files\[\].placement   | string                   | No       | Placement code the file is printed on (eg. front, back)                                                                                                                                                       |
| lineitems\[\].files\[\].file\_id    | string                   | No       | The PrintingFile ID                                                                                                                                                                                           |
| lineitems\[\].files\[\].url         | string                   | No       | URL of the print file                                                                                                                                                                                         |
| subtotal\_amount                    | number                   | No       | Total production cost of all line items                                                                                                                                                                       |
| discount\_amount                    | number                   | No       |                                                                                                                                                                                                               |
| shipping\_amount                    | number                   | No       | Shipping cost                                                                                                                                                                                                 |
| tax\_amount                         | number                   | No       | Taxes, including VAT                                                                                                                                                                                          |
| total\_amount                       | number                   | No       | Grand total charged by the print vendor                                                                                                                                                                       |
| shipments                           | PrintingShipment\[\]     | No       |                                                                                                                                                                                                               |
| shipments\[\].id                    | string                   | No       | Shipment identifier                                                                                                                                                                                           |
| shipments\[\].carrier               | string                   | No       | Carrier name                                                                                                                                                                                                  |
| shipments\[\].service               | string                   | No       | Delivery service name                                                                                                                                                                                         |
| shipments\[\].tracking\_number      | string                   | No       |                                                                                                                                                                                                               |
| shipments\[\].tracking\_url         | string                   | No       |                                                                                                                                                                                                               |
| shipments\[\].shipped\_at           | string (date-time)       | No       | (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)                                                                                                                                                                      |
| shipments\[\].delivered\_at         | string (date-time)       | No       | (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)                                                                                                                                                                      |
| metadata                            | PrintingMetadata\[\]     | No       |                                                                                                                                                                                                               |
| metadata\[\].id                     | string                   | No       | The ID of the custom field definition (from the metadata/metadata endpoint).                                                                                                                                  |
| metadata\[\].slug                   | string                   | No       | The integration's API name (key) of an existing custom field.                                                                                                                                                 |
| metadata\[\].value                  | object                   | No       | The field's value, typed by format.                                                                                                                                                                           |
| metadata\[\].namespace              | string                   | No       |                                                                                                                                                                                                               |
| metadata\[\].format                 | enum                     | No       | The 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\_data            | object                   | No       |                                                                                                                                                                                                               |

## TypeScript

```typescript
export type PrintingOrder = {
	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)
	external_identifier?: string; // Order identifier from the ordering system
	customer_identifier?: string; // Identifier of the end customer in the ordering system
	status?: 'DRAFT' | 'PENDING' | 'ON_HOLD' | 'IN_PRODUCTION' | 'PARTIALLY_SHIPPED' | 'SHIPPED' | 'DELIVERED' | 'CANCELLED' | 'FAILED' | 'OTHER';
	currency?: string; // ISO 4217 currency code
	shipping_address?: {
		name?: string; // Recipient full name 
		company_name?: string; 
		email?: string; 
		telephone?: string; 
		address1?: string; // first line of the street address 
		address2?: string; // second line of the street address 
		city?: string; // city or locality 
		region?: string; // state, province or regional area 
		region_code?: string; // state, province or regional area code 
		postal_code?: string; // postal or ZIP code 
		country?: string; // country name 
		country_code?: string; // ISO 3166-1 alpha-2 country code 
	}; // Recipient and delivery address
	shipping_method?: string; // Shipping method code
	lineitems?: [];
	subtotal_amount?: number; // Total production cost of all line items
	discount_amount?: number;
	shipping_amount?: number; // Shipping cost
	tax_amount?: number; // Taxes, including VAT
	total_amount?: number; // Grand total charged by the print vendor
	shipments?: [];
	metadata?: [];
	raw?: any; // Raw data from integration
} 
```

## Zod

```typescript
import { z } from 'zod';

export const ZodPrintingOrder = 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)"),
	external_identifier: z.string().optional().describe("Order identifier from the ordering system"),
	customer_identifier: z.string().optional().describe("Identifier of the end customer in the ordering system"),
	status: z.enum("DRAFT", "PENDING", "ON_HOLD", "IN_PRODUCTION", "PARTIALLY_SHIPPED", "SHIPPED", "DELIVERED", "CANCELLED", "FAILED", "OTHER").optional(),
	currency: z.string().optional().describe("ISO 4217 currency code"),
	shipping_address: z.object({
			name: z.string().optional().describe("Recipient full name"),
			company_name: z.string().optional(),
			email: z.string().optional(),
			telephone: z.string().optional(),
			address1: z.string().optional().describe("first line of the street address"),
			address2: z.string().optional().describe("second line of the street address"),
			city: z.string().optional().describe("city or locality"),
			region: z.string().optional().describe("state, province or regional area"),
			region_code: z.string().optional().describe("state, province or regional area code"),
			postal_code: z.string().optional().describe("postal or ZIP code"),
			country: z.string().optional().describe("country name"),
			country_code: z.string().optional().describe("ISO 3166-1 alpha-2 country code")
}).optional().describe("Recipient and delivery address"),
	shipping_method: z.string().optional().describe("Shipping method code"),
	lineitems: z.array().optional(),
	subtotal_amount: z.number().optional().describe("Total production cost of all line items"),
	discount_amount: z.number().optional(),
	shipping_amount: z.number().optional().describe("Shipping cost"),
	tax_amount: z.number().optional().describe("Taxes, including VAT"),
	total_amount: z.number().optional().describe("Grand total charged by the print vendor"),
	shipments: z.array().optional(),
	metadata: z.array().optional(),

});
```

## Python

```python
import dataclasses

@dataclasses.dataclass
class PrintingOrderStatus(str, Enum):
	DRAFT = 'DRAFT'
	PENDING = 'PENDING'
	ON_HOLD = 'ON_HOLD'
	IN_PRODUCTION = 'IN_PRODUCTION'
	PARTIALLY_SHIPPED = 'PARTIALLY_SHIPPED'
	SHIPPED = 'SHIPPED'
	DELIVERED = 'DELIVERED'
	CANCELLED = 'CANCELLED'
	FAILED = 'FAILED'
	OTHER = 'OTHER'

@dataclasses.dataclass
class PropertyPrintingOrderShipping_address:
	"""Recipient full name"""
	name: Optional[str]
	company_name: Optional[str]
	email: Optional[str]
	telephone: Optional[str]
	"""first line of the street address"""
	address1: Optional[str]
	"""second line of the street address"""
	address2: Optional[str]
	"""city or locality"""
	city: Optional[str]
	"""state, province or regional area"""
	region: Optional[str]
	"""state, province or regional area code"""
	region_code: Optional[str]
	"""postal or ZIP code"""
	postal_code: Optional[str]
	"""country name"""
	country: Optional[str]
	"""ISO 3166-1 alpha-2 country code"""
	country_code: Optional[str]

@dataclasses.dataclass
class PrintingOrder:
	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]
	"""Order identifier from the ordering system"""
	external_identifier: Optional[str]
	"""Identifier of the end customer in the ordering system"""
	customer_identifier: Optional[str]
	status: Optional[PrintingOrderStatus]
	"""ISO 4217 currency code"""
	currency: Optional[str]
	"""Recipient and delivery address"""
	shipping_address: Optional[PropertyPrintingOrderShipping_address]
	"""Shipping method code"""
	shipping_method: Optional[str]
	lineitems: Optional[PropertyPrintingOrderLineitems]
	"""Total production cost of all line items"""
	subtotal_amount: Optional[int]
	discount_amount: Optional[int]
	"""Shipping cost"""
	shipping_amount: Optional[int]
	"""Taxes, including VAT"""
	tax_amount: Optional[int]
	"""Grand total charged by the print vendor"""
	total_amount: Optional[int]
	shipments: Optional[PropertyPrintingOrderShipments]
	metadata: Optional[PropertyPrintingOrderMetadata]

```
