Skip to content
PressFlow Help Centre

PressFlow Link and Trade API setup guide

Set up your WooCommerce print shop to supply trade partners, or connect to another PressFlow printer and sell their products through your own shop.

Printers: set up the Trade API

Switch the Trade API on, add your trade delivery options, and you are ready to add partners.

  1. Make sure B2B storefronts is on, then go to PressFlow settings > Features and switch on Trade API for resellers.
  2. Open PressFlow > Trade partners.
  3. Under Trade delivery and quotes, add the delivery options resellers can choose, for example Next working day, £6.50, 1 transit day. Prices are net of VAT. You can add up to 12. Each option gets an ID from its name (for example next_working_day); partners see the ID in the API, so it stays fixed once saved. To remove an option, clear its name.
  4. Choose how long quotes stay valid (1 to 168 hours, 24 by default). A quote also ends at the job’s order cut-off, whichever comes first.
  5. Choose how many requests each key may make a minute (10 to 1,200, 120 by default).
  6. Leave Share price tables ticked if you want PressFlow resellers to add your products with exact pricing (see below).
  7. Click Save trade settings.

At the bottom of the screen, For your partners shows your API address and the link to your API description (an OpenAPI file). Give both to any reseller who connects with their own software.

How trade prices are worked out

Trade prices come from your normal product pricing, less the partner’s discount. Set the discount on the B2B company: a standard percentage, and optionally a different one for particular products. When you change your retail prices, trade prices change with them.

Trade quotes are always net of VAT. VAT is added for the delivery address using your WooCommerce tax settings, so a reseller delivering abroad sees the right VAT for that address.

Only published, enabled PressFlow products that price automatically can be sold through the Trade API. Quote-only products are left out.

Sharing price tables

With Share price tables on, a PressFlow reseller who adds your product receives its pricing at their own trade prices, so their shop can price every combination instantly. Partners never see your retail prices, costs or other partners’ prices. Turn it off if you’d rather partners priced each job with a quote; they can still link their own products to yours for supplier routing.

Printers: add a trade partner

A trade partner is one of your B2B companies with trade access switched on. Start every partner in test mode, and allow live ordering when they are ready.

  1. Create the B2B company first (PressFlow > B2B storefronts), with the products they may sell and their trade discount.
  2. On Trade partners, choose the company under Add a partner from your B2B companies and click Set up trade access.
  3. Tick Let this company use the Trade API.
  4. Choose how they pay:
    • Prepay: each order has a payment link, and production waits until it is paid.
    • Credit account: orders go on account against the company’s credit limit. Set the limit under B2B storefronts > Finance; until then the partner can’t order on credit.
  5. Add a technical contact email. Trade orders are billed to the partner, and WooCommerce order emails go to this address.
  6. Optionally add a name on delivery notes. Trade orders ship unbranded; this name is the sender your team prints on the delivery note.
  7. Leave Allow live keys off for now, and click Save partner.

Keys

Under API keys, give the key a name (for example Partner website), choose Test key and click Create key. The key is shown once: copy it and send it to the partner securely. PressFlow keeps only a fingerprint, so a lost key can’t be recovered; create a new one instead.

Test keys (pft_test_…)Live keys (pft_live_…)
Products and pricesYour real onesYour real ones
OrdersNever printed, charged or shown in productionReal WooCommerce orders
AvailableStraight awayOnly after you tick Allow live keys
ConnectionHTTPS or HTTPHTTPS only

Each partner can have up to 10 active keys. Revoke stops a key straight away. Switching off the partner’s trade access, or making their B2B company inactive, stops all their keys.

Allow live ordering

When the partner has tested their integration, tick Allow live keys, save, and create a live key. Their test key keeps working for testing.

Connection codes for PressFlow resellers

If the partner uses PressFlow, you don’t need to send keys. Under Connect a PressFlow shop, click Create connection code and send them the code. They paste it into their shop, which then receives its own test and live keys and registers for your order updates. A code works once and expires after 7 days; creating a new one cancels the old one. Once connected, the partner page shows which shop is connected and when.

Activity

Recent activity lists the partner’s last 50 requests with their results, and Trade orders lists their live orders with links to each order in production. The activity log is kept for 90 days. Keys are never recorded.

Printers: trade orders in your shop

A live trade order is an ordinary WooCommerce order, so you handle it in Production & artwork like any other job. The partner is told about every change automatically.

Each trade order is billed to the partner and shipped to the address they give, usually their own customer. The partner’s reference appears on the order as Trade reference and on each job as Job reference. A Trade order card on the job page shows the partner, their reference, how they pay and whether they want a proof.

Payment

  • Credit account orders reserve the amount against the company’s credit limit and move straight into your workflow. An order over the limit is refused before it is created, and the partner is told how much credit is available.
  • Prepay orders wait for payment. The partner gets a payment link, and the job isn’t ready to print until it’s paid. They can send artwork in the meantime.

Artwork

Partners send artwork as a public HTTPS link or as a file they upload first. Each job can have up to 10 labelled files, for example Front and Back.

  • Links are downloaded in the background and go through your usual file checks. The job card says while a download is in progress.
  • If a link can’t be downloaded, PressFlow tries three times, then notes the reason on the order and tells the partner. They can send a new link.
  • Check the artwork as usual. If it needs changes, mark the artwork check as changes required with your message; the partner is told, and can replace the files until the job goes into production.

Proofs

The partner chooses for each order.

Partner’s choiceWhat you doWhat happens
Print as supplied (the default)Accept the artworkPressFlow records the accepted artwork as the approved proof, and the job is ready to print
Proof requiredAccept the artwork, then send a proof as usualThe partner downloads the proof and approves it or asks for changes; their decision appears on the job

Dispatch

Trade orders ship unbranded. If the partner has a name on delivery notes, the job card shows it as the sender. When you record dispatch with the carrier and tracking number, the partner receives them.

Cancelling

Partners can cancel an order until production starts; the WooCommerce order is then cancelled with their reason in the notes. Once a job is printing, they need to contact you.

Test orders

Orders placed with a test key never create WooCommerce orders, never appear in production and are never charged. They’re removed automatically after 7 days.

Order updates (webhooks)

Partners usually set their own webhook through the API. You can also set one for them under Webhooks on their page, separately for test and live. Saving a new address, or ticking New signing secret, shows the signing secret once so you can send it to the partner. The page shows whether the last update was delivered, and the 10 most recent events.

Resellers: connect to a PressFlow printer

Paste the printer’s connection code into your shop, choose a delivery option, and you can start adding their products.

  1. Ask the printer to set you up as a trade partner and send you a connection code. It starts with pfc1., works once and lasts 7 days.
  2. In your shop, go to PressFlow settings > Features and switch on PressFlow printers (PressFlow link).
  3. Open Print suppliers > PressFlow printers, paste the code into Connection code and click Add printer.

Your shop receives its own test and live keys, stored encrypted, and registers to receive the printer’s order updates. There’s nothing to copy back to the printer.

Choose your settings

Each connected printer has its own card.

SettingWhat it doesDefault
ModeTest orders are never printed or charged. Live orders are real; it’s available once the printer allows live orderingTest
Markup for new productsAdded on top of the trade price when you add a product40%
Price checkHolds a job if the printer’s price has moved by more than this since you sold it5%
ProofsPrint as supplied after the printer’s file check, or Send me a proof to approve firstPrint as supplied
DeliveryThe printer’s delivery option used for your jobs. Jobs ship direct to your customer, unbrandedThe printer’s first option
SendingSend jobs automatically once they’re readyOff

The card also shows your trade account name, whether live ordering is enabled, and whether you pay per order or on a credit account (with the credit available). Click Refresh account after the printer changes your account.

Start in test mode, send a few jobs to check everything, then switch to live.

Several printers

You can connect to as many PressFlow printers as you like. Each appears as its own card and as its own supplier in routing. The printer must use the same currency as your shop.

Disconnecting

Disconnect removes the connection. Products you added stay in your shop as they are, but can’t be sent to that printer. If the printer revokes your access, the card says the connection has stopped working; ask them for a new code.

Resellers: add a printer’s products to your shop

Add to my shop creates a draft copy of the printer’s product, priced at your trade price plus your markup, which you check and publish.

  1. On the printer’s card under Print suppliers > PressFlow printers, find the product under Products. Each row shows your trade discount and whether it’s already in your shop.
  2. Check Markup for new products is what you want, then click Add to my shop.
  3. Open the new draft, add your own images and description, then publish it.

The draft has the printer’s options, choices, availability rules, quantities, turnaround dates and artwork requirements. Your customers see the printer’s real production dates, and the order cut-off countdown works as usual.

How the price is set

Every price in the product is the printer’s trade price for you, times your markup. For example, a job that costs you £36.62 sells for £51.27 with a 40% markup. If your shop enters prices including VAT, PressFlow adds VAT on top so the markup is still on the net price.

Price updates

Prices update from the printer once a day. Update prices on the printer’s card does it straight away. When the printer changes a product, the update replaces its options and prices in your copy too, so make price changes through your markup and the printer’s product rather than by editing the copy.

Each printer product can be added once. If the printer doesn’t share price tables, Add to my shop isn’t offered; link one of your own products to theirs under Print suppliers > Routing instead.

A product you add from a printer is never offered on to other resellers through your own Trade API, so every order goes straight to the printer who makes it.

Resellers: send jobs to a PressFlow printer

Once your customer’s job is ready, one click sends it to the printer, and its progress then updates by itself.

A job is ready when it’s paid (or cleared on account), its artwork is accepted and your customer has approved the proof, exactly as for jobs you print yourself. The artwork must be uploaded files, not a transfer link.

Sending a job

  1. Open the job in Production & artwork. The PressFlow printer card shows the printer and whether you’re in test or live mode.
  2. Click Send to printer name.

PressFlow first gets a fresh price from the printer. If the job now costs more or less than expected by more than your price check allows, nothing is sent and the card tells you both prices. Check the new cost, tick Send even if the printer’s price has changed and send again.

The printer receives the job’s options, your reference (PF- followed by your order and job numbers), your customer’s delivery address and private links to the artwork. The links expire after 14 days. Each job is sent as its own order, with its own delivery charge.

Automatic sending

With Send jobs automatically ticked on the printer’s card, jobs are sent about a minute after they become ready. If a job can’t be sent, for example because the price moved, it’s left for you and the reason is noted on the order.

After sending

The card shows the printer’s reference and order number, the current status and the trade cost, and updates as soon as the printer works on the job.

What happensWhat you see
Your account pays per orderA Pay button with the printer’s payment link. The printer waits until it’s paid
The printer needs changesThe reason, on the card and in the order notes
The printer sends a proof (if you asked for one)Download the proof, then Approve for printing or Ask for changes with a note
The job is dispatchedThe carrier and tracking number are added to your job and it’s marked dispatched, so your customer gets your normal dispatch email

Check status now asks the printer for the latest status at any time. Cancel with printer cancels before production starts, so you can fulfil the job another way.

Supplier action needed

Jobs that need you appear under Supplier action needed in production: ready to send (when not sending automatically), an order the printer refused, cancelled or needs changes to, a payment to make, a proof to approve, or an order whose confirmation was lost on the way and needs checking.

Supplier routing with PressFlow printers

Connected PressFlow printers take part in supplier routing beside WTTB, Tradeprint and Route1, so each job can go to whichever supplier is cheapest and on time.

  1. Go to Print suppliers > Routing, enter your product’s ID under Product supplier links and click Open. The product must be an enabled PressFlow product with set sizes (fixed, quantity or options pricing).
  2. Find the printer’s section, named after the printer. Enter the Printer’s product ID: the number shown next to each product on the printer’s card under Print suppliers > PressFlow printers.
  3. Click Suggest from option names. PressFlow fills in how your options match the printer’s. Options with the same keys match automatically.
  4. Check every value, then click Save for that printer’s link.

The link describes only what differs from the printer’s product:

PartUse it forExample
fieldsYour option has a different key from the printer’s (empty to leave your option out){"paper": "stock"}
choicesA choice has a different key{"paper": {"silk_350": "silk"}}
fixedThe printer has an option you don’t offer{"corners": "square"}

Leave both boxes empty and save to remove the link.

Products you added with Add to my shop already belong to that printer, so they need no link. You can still link them to other suppliers to compare.

Choosing a supplier for a job

On a routed job, the Supplier choice card’s Check supplier prices asks every linked supplier, including each PressFlow printer, for its live cost and delivery date. A PressFlow printer’s cost includes its delivery charge. Choose a supplier with its Use button, or let automatic routing choose; the PressFlow printer card then sends the job as described above. A PressFlow printer can also be your preferred supplier when prices are equal.

Troubleshooting and common questions

Most problems come from a setting that isn’t switched on yet; the message usually says which.

What you seeWhyWhat to do
Trade partners isn’t in the PressFlow menuThe feature is offSwitch on Trade API for resellers under PressFlow settings > Features
"Trade partners use B2B companies"B2B storefronts is offSwitch on B2B storefronts first
A partner can’t see a productIt isn’t on their B2B company’s product list, isn’t published, or is quote-onlyAdd it to the company, publish it, or give it automatic pricing
"This trade key is not recognised or has been revoked"The key was mistyped or revokedCreate a new key for the partner
"Live ordering is not switched on for this account yet"Live keys need permissionTick Allow live keys on the partner’s page
"Live keys only work over HTTPS"The request used HTTPUse the HTTPS address
"The printer has not set up trade delivery yet"No trade delivery optionsAdd at least one under Trade delivery and quotes
A credit order is refusedNo credit limit yet, an overdue balance, or not enough creditSet or raise the limit under B2B storefronts > Finance, or the partner pays this order instead
"Prices or VAT changed since this quote"Prices, the partner’s discount or tax settings changed after the quoteRequest a new quote
A trade job says the artwork download failedThe link wasn’t public, had expired or wasn’t a print fileThe partner sends a new link or uploads the file
The partner isn’t receiving updatesNo webhook, or their server didn’t answerCheck Webhooks on the partner’s page for the last delivery result, and send a test event
"This connection code is not valid or has expired"Codes work once, for 7 daysThe printer creates a new code
"A shop cannot connect to itself"The code was pasted into the printer’s own shopPaste it into the reseller’s shop
Add to my shop isn’t shownThe printer doesn’t share price tablesLink your own product under Print suppliers > Routing instead
A job is held with "now charges £… where £… was expected"The printer’s price moved beyond your price checkCheck the cost, then send again with Send even if the printer’s price has changed
"PressFlow printers need files, not a transfer link"The customer sent a transfer linkUpload the files to the job, then send it

Do test orders cost anything or reach production?

No. Test orders never create a WooCommerce order, never appear in production and are never charged. They’re removed after 7 days.

Can a partner see my retail prices or costs?

No. Quotes and shared price tables show only that partner’s trade prices.

What happens if I change my prices?

Trade prices change straight away, because they come from your normal pricing. An earlier quote whose price changed can’t be ordered; the partner is told the new total and requests a new quote. PressFlow resellers’ copies update within a day.

Can a reseller resell my products to another reseller?

No. A product added from another printer is never offered through the reseller’s own Trade API.