What is the Printify API, and why would a store owner use it?
The Printify API is a way for software to talk to your Printify account without clicking through the dashboard. An API is a set of web addresses (called endpoints) that a program can send requests to. Printify's developer portal says the REST API lets an app "create products, submit orders, and more."
Most sellers never need it, because the Shopify, Etsy and TikTok Shop apps send orders to Printify for you. Our guide to connecting suppliers to stores covers that normal setup. You reach for the create order endpoint when orders come from somewhere Printify has no app for:
- A custom website or a headless store
- A spreadsheet of wholesale or team orders
- Sample orders, replacements and re-orders you place yourself
- A form, chat or creator platform where fans order a design
How do I get access, with a token or with OAuth?
Use a Personal Access Token if you are connecting your own shop. A token is a long secret code that works like a password for your program. You make one in Printify under My Profile, then Connections.
According to Printify's developer docs, personal tokens are valid for one year, and they are shown only once, so save yours right away. OAuth 2.0 is for apps that serve many Printify sellers. Its access tokens expire after 6 hours and are renewed with a refresh token, per the same docs.
Which access scope does the create order endpoint need?
You need the orders.write scope. A scope is one permission you turn on for a token. The Printify access scope table lists orders.write as "Create orders in a Merchant's shop" and orders.read as the scope to see orders. Turn on both, so your program can create an order and then check on it.
What base URL and headers does every request need?
Every request goes to the base URL https://api.printify.com/v1/ and carries three headers:
- Authorization: Bearer followed by your token
- Content-Type: application/json, because the body is JSON (a plain text format for data)
- User-Agent: a short name for your app, which Printify's docs say all requests must include
How do I find my shop_id?
Send a GET request to /v1/shops.json with your token. Printify sends back a list of your shops, each with an id and a title. Copy the right id into the order URL.
What does the create order request body look like, field by field?
The body is one JSON object. Printify's OpenAPI file names this call "Submit an order" at POST /v1/shops/{shop_id}/orders.json. Here are the fields you fill in.
| Field | What it means | Example value |
|---|---|---|
| external_id | Your own order number, so you can match the order later | "shop-1042" |
| label | A short name you see in the Printify dashboard | "Order 1042" |
| line_items | A list of the items in the order | see below |
| shipping_method | A number that picks the shipping speed | 1 |
| is_printify_express | Set true only for Printify Express orders | false |
| is_economy_shipping | Set true only for Economy shipping | false |
| send_shipping_notification | Whether Printify emails the buyer the tracking | false |
| address_to | The customer's name, email, phone and address | see below |
Each item in line_items needs a product_id, a variant_id and a quantity. A variant is one exact version of a product, such as a black tee in size M. The IFTTT order action page shows where to find both IDs: the product ID is in the product's web address in your dashboard, and the variant ID is the number for one size, color and style.
The address_to object holds first_name, last_name, email, phone, country, region, address1, address2, city and zip. Use the two-letter country code, like "US." A phone number helps, since some carriers use it for delivery, as the IFTTT field notes point out.
Do I need a saved product first, or can I send the image in the order?
You can do either. With a saved product, you send product_id and variant_id, and Printify uses the design you already set up. This is best for a store with a fixed catalog.
For one-off designs, you can skip the saved product. Instead, send the blueprint_id (the blank product), the print_provider_id (the printer), the variant_id and a print_areas object that points the front (or other area) to an image URL. Printify builds the product as part of the order. The developer docs note that "product creation as a result of Order creation is not limited" by the product publishing cap.
What do the shipping_method numbers mean?
The shipping_method number picks the speed:
- 1 is Standard
- 2 is Priority
- 3 is Printify Express
- 4 is Economy
Not every product supports every method. Printify's OpenAPI file says an order can use Economy (shipping_method 4) "only if every product in it has this flag enabled." For Printify Express, there is also a separate endpoint at /orders/express.json. When in doubt, send the same items and address to POST /orders/shipping.json first, and it returns the cost of each option.
What does Printify send back, and what happens next?
A successful call returns status 200 and a small JSON body with the new order's id. Save that id next to your own external_id. To see the full order, with its status, line items, costs and shipping, call GET /v1/shops/{shop_id}/orders/{order_id}.json.
The new order starts on hold. The IFTTT page explains that Printify may send it to production on its own within 24 hours, which is the default for new stores, unless the shop's order approval is set to Manual. If approval is Manual, call POST /orders/{order_id}/send_to_production.json when you are ready. Printify's help center says most orders then ship within 2 to 7 business days.
Which other order endpoints should I know?
The OpenAPI file lists these order calls, all under /v1/shops/{shop_id}/:
| Endpoint | What it does |
|---|---|
| GET orders.json | Lists your orders |
| GET orders/{order_id}.json | Gets one order |
| POST orders/shipping.json | Prices shipping before you order |
| POST orders/express.json | Submits a Printify Express order |
| POST orders/{order_id}/send_to_production.json | Sends a held order to print |
| POST orders/{order_id}/cancel.json | Cancels the whole order |
| POST orders/{order_id}/line_items/{line_item_id}/cancel.json | Cancels one item before production |
| POST orders/{order_id}/address_change.json | Changes the address, if still possible |
| POST orders/{order_id}/support-requests/reprint | Asks for a reprint |
| POST orders/{order_id}/support-requests/refund | Asks for a refund |
Why did my order call fail, and how do I fix it?
The OpenAPI file lists four error answers for the create order call. Each one points to a different fix.
| Error | What it usually means | Fix |
|---|---|---|
| 400 | The body is broken or a field is missing | Check the JSON, the field names and the country code |
| 404 orderItemNotFound | A product_id or variant_id does not exist in this shop | Copy the IDs again from the right shop |
| 409 conflict | The order clashes with an existing order | Look up your external_id before you send again |
| 422 shippingNotEligible | The shipping method does not fit these items or this address | Price the order with shipping.json, then pick a listed method |
| 429 | Too many requests | Wait and retry more slowly |
What are the rate limits?
Printify's developer docs set a global limit of 600 requests per minute, 100 per minute on catalog endpoints, and 200 per 30 minutes on product publishing. The same page says requests that end in an error "may not exceed 5% of your total requests."
Here is what that means for a real store. Say you send 340 orders a month through the API. If each order uses three calls (price shipping, create, check status), that is 340 × 3 = 1,020 calls a month. Five percent of 1,020 is 51, so more than about 51 failed calls a month puts you over the line. Fix bad IDs at the source instead of retrying them in a loop.
How do I stop duplicate orders when I retry?
Give every order a unique external_id, and check it before you resend. A request can time out after Printify has already made the order. A blind resend can mean paying for the same shirt twice.
Say your tee costs $12.50 to make and $4.75 to ship. A double order wastes $12.50 + $4.75 = $17.25. The safe pattern:
- Before a retry, list your recent orders and look for that external_id
- If you find it, save the order id and stop
- If not, send the order again with the same external_id
Is there a sandbox or test mode?
The Printify developer docs do not offer a sandbox, so every order you create is real. To test safely, set your shop's order approval to Manual first. Then create the test order, check it with GET, and cancel it with cancel.json while it is still on hold.
If you also sell on Etsy, our Printify Etsy setup guide shows how those orders flow without any code.
Can I place Printify orders without writing code?
Yes. For a Shopify or WooCommerce store, the official apps send paid orders to Printify for you, as our Printify Shopify and WooCommerce guide explains.
For the orders the apps do not handle, PodVector AI gives you Victor, an AI employee who runs a print-on-demand business from start to finish. Victor places sample orders, replacements and re-orders at Printify, Printful and Gelato. He sends held orders to production, changes addresses, cancels orders or items, and asks the supplier for a reprint or refund when an item arrives wrong. Each morning he checks for stuck and held orders on his own and writes a short report on what he fixed. Try Victor free.
FAQs
What is the Printify API endpoint to create an order?
It is POST https://api.printify.com/v1/shops/{shop_id}/orders.json. Replace {shop_id} with the id from GET /v1/shops.json. The token you use needs the orders.write scope.
What shipping_method number should I use?
Use 1 for Standard unless you have a reason not to. 2 is Priority, 3 is Printify Express and 4 is Economy. Call orders/shipping.json first to see which ones your items and address allow.
Why does Printify return a 422 when I create an order?
A 422 on this call means the shipping method is not eligible. Most often, you asked for Economy or Express on a product that does not support it. Price the order with shipping.json and choose a method from the answer.
Does a new API order go to production right away?
No. It starts on hold. Printify may send it on its own within 24 hours unless your shop's approval is set to Manual, according to the IFTTT action page. With Manual approval, you send it with send_to_production.json.