Skip to content

API reference

Open .md

Every operation in YoPrint's public REST API, grouped by what it works on. Each page shows who may call it, its business rules and side effects, the request body, onecurl example, the response and the errors.

Base URL
https://secure.yoprint.com
Authentication
Authorization: Bearer YOUR_API_KEY
Paths
/v2/api/store/{team_slug}/… (153 operations) and /v1/api/store/{team_slug}/… (422)
Spec
Download the OpenAPI file (OpenAPI 3.1.0)

Sales

Sales orders

Sales orders and quotes: create a draft, add jobs and lines, publish it, then run actions on it.

Sales order line items

The lines of a sales order or quote: catalog products, your own products and their sizes and colors, custom lines and fees.

Sales order approvals

Ask the customer to approve a whole sales order or quote, and record their answer.

Sales order files

Files attached to a sales order or quote: the Files section in the web app.

Sales order comments

Internal comments on a published sales order or quote.

Sales order messages

The conversation with the customer on an order: its participants and the emails and text messages sent to them.

Sales order assignees

The team members in an order's Assigned To list.

Sales order tags

Add and remove the team's tags on a sales order or quote.

Sales order purchase orders

Purchase orders linked to a sales order, by the stock workflow or by hand.

Quotes

Lists and exports for quotes only.

Quick lookups that return the first matches, for search boxes and pickers.

Approvals

Every customer approval on your team, across all sales orders and quotes: artwork (job) approvals and whole-order approvals together, by approval id.

Comments

Any internal comment by its id, whatever it is on: a sales order, a quote, a job or a purchase order.

Document numbers

Preview the next sales order, quote, purchase order or stock adjustment number.

Sales tax

Look up the automatic US sales tax rate for a shipping address.

Customers

Customers

The people and companies you sell to.

Customer contacts

The people at a customer.

Customer addresses

A customer's billing and shipping addresses.

Customer brand profiles

Brand Profiles: the company name, logo, contact details and Ship From address printed on a customer's documents and used on its shipments.

Customer credit

Customer credit: money held for a customer, added or taken out by hand and used to pay their sales orders.

Customer files

Files kept on a customer: tax exemption certificates, internal files and files the customer can see.

Contacts

Any contact by its id, whether it belongs to a customer or a vendor.

Products and catalog

Products

Your own products.

Product variants

The size and color combinations of a variant product.

Product stock

Your own stock levels for products, read-only.

Supplier catalog

Live prices, stock and images from your connected suppliers (S&S Activewear, SanMar, Momentec, AS Colour), for catalog products you sell on sales orders.

Tags

Colored labels you put on customers and sales orders.

Purchasing

Purchase orders

Read one purchase order and change its status (two operations kept for the Zapier app), its history, the CSV export and the QuickBooks sync switch.

Vendors

The suppliers you buy from.

Vendor contacts

The people at a vendor.

Vendor files

Files kept on a vendor, such as price lists.

Production

Jobs

A job groups line items on a sales order or quote that are produced together, with their services (decorations), mockups, production files, tasks, dates and a status.

Tasks

Tasks are the production steps of a job (the work pipeline).

Barcodes

Turn a barcode or QR code printed by YoPrint into the record it points to.

Production control

The Production Control calendar: orders with their jobs and tasks over a date range.

Shipping

Shipments

Shipments send some or all of an order's lines to one address by one shipping type, with packages, labels and documents.

Shipment line items

The lines of a shipment: quantities of order lines, and shipping cost lines.

Shipment packages

The packages of a shipment: one per parcel of a label (a multi-parcel label makes several), with carrier, tracking number, size, weight, cost and status.

Shipping labels

Buying Shippo labels (this spends real money), recording labels bought elsewhere, and printing labels.

Shipping rates and estimates

Shipping rates from your connected Shippo account, the carrier accounts behind them, and estimates (rate quotes saved on a shipment).

Invoices and payments

Invoices

Invoices bill some or all of a sales order or quote.

Invoice line items

The lines of an invoice: billed sales order lines, shipping fees, discounts and one tax line.

Payments

Payments, refunds and customer credit on a sales order: payments you record yourself, card payments through a connected gateway, and Square Terminal checkouts.

A payment link records how payments received on a sales order are split across its invoices (the web app calls this a payment allocation).

Messages and activity

Messages

Your team's whole message inbox: emails and texts exchanged with customers and vendors on all sales orders, quotes and purchase orders, with their delivery status.

Message participants

One person on an order's or purchase order's message thread, by participant id: who receives its customer emails and texts.

Notifications

Your own notification feed: the YoPrint activity that concerns you, such as new comments, customer replies, payments and approvals.

Your preferences

Your saved web app preferences for one team, such as grid column layouts.

Imports and exports

Data exports

Whole-team CSV exports from the Download Center: customers, products, sales orders, invoices, payments, tax and purchase orders.

CSV imports

CSV templates, the service pricing CSV upload, and your import jobs.

Uploads

Upload a file first, then attach it to a job, an order, a purchase order or a customer by its id.

Reports

Reports

Period reports of orders, purchase orders, payments and paid invoices, for your own reporting.

Team settings

Webhook subscriptions

Subscribe a URL to YoPrint events, such as a published sales order or a received payment.

Statuses

The status lists for sales orders, quotes, jobs, purchase orders, shipments, message threads and task presets.

Team members

The people on your team, their permission groups, and ownership.

Company locations

The team's own addresses: the primary location, warehouses, the default warehouse and tax nexus.

Company settings

Your company's profile, logo, customer portal look, custom domain, general preferences and list columns.

Compliance requests

Files produced for privacy requests, such as a Shopify customer data request.

Connected devices

Card terminals paired with your team.

Currencies

The team's currencies.

Feature add-ons

Optional features a team turns on or off.

Fee presets

Saved fee names and prices to copy into fee line items.

Integration logs

Recent QuickBooks Online and Shopify sync errors for one sales order, purchase order or shipment.

Integrations

Connections to suppliers, Twilio, GoShippo, QuickBooks Online, Square and Shopify.

Job presets

Ready-made jobs, with their services, tasks, people and files, that you add to a sales order or quote in one step.

Message template attachments

The files a message template attaches when it is sent: document PDFs, job sheets, invoices or an uploaded file.

Message templates

Reusable email and text messages for sales orders, quotes and purchase orders, with placeholders and attachments.

Payment gateways

Card payment gateway credentials: Stripe, PayPal, Square, Charge It Pro and Authorize.Net.

Payment methods

Labels for payments you record yourself, such as Cash or Check.

Payment terms

Deposit and due-date rules that new sales orders and quotes copy from the customer or the team default.

Permission groups

What members can do.

Running numbers

The next sales order, purchase order and invoice numbers.

Service locations

Where on an item a decoration goes, such as "Shirt - Front".

Shipping boxes

Saved box sizes for GoShippo parcels.

Shipping methods

How shipments go out: courier, own delivery, pick-up or a carrier integration service.

Stock adjustment reasons

The reasons offered when stock is adjusted by hand.

Task presets

Named sets of task statuses (pipelines in the API) that tasks on jobs follow.

Tax presets

The taxes you apply to invoices: one rate, or named parts that add up, plus YoPrint's Auto Tax.

Team invitations

Email invitations to join your team, with the permission group the person gets.

YoPrint subscription

Your shop's own YoPrint plan and billing: plans, checkout, card, invoices, cancellation and the billing operations that track each change.

Account

API key

Your personal API key.