Connects a Printify shop to a store built with Payload's official ecommerce plugin. It syncs Printify products, variants and prices into the store, sends paid orders to Printify, and updates order fulfillment and tracking from webhooks. It can optionally write prices and publish state back to Printify. Requires the ecommerce plugin, a Printify token and webhook secret, and MongoDB transactions for sending orders.
Printify for Payload: print-on-demand for Payload’s ecommerce plugin, with product sync, order fulfillment and tracking, and optional price write-back.
Installation
npm i @extantape/payload-plugin-printify1
Stars
0
Forks
1
Open Issues
2 days ago
Last Updated
378
Weekly Downloads
v0.3.0
npm Version
99.5 KB
Unpacked Size
0
Dependencies
1+1 since Oct 25
| Date | Stars |
|---|---|
| Dec 6, 2026 | 1 |
| Dec 5, 2026 | 1 |
| Dec 4, 2026 | 1 |
| Dec 3, 2026 | 1 |
| Dec 2, 2026 | 1 |
| Dec 1, 2026 | 1 |
| Nov 30, 2026 | 1 |
| Nov 29, 2026 | 1 |
| Nov 28, 2026 | 1 |
| Nov 27, 2026 | 1 |
| Nov 26, 2026 | 1 |
| Nov 25, 2026 | 1 |
| Nov 24, 2026 | 1 |
| Nov 23, 2026 | 1 |
| Nov 22, 2026 | 1 |
| Nov 21, 2026 | 1 |
| Nov 20, 2026 | 1 |
| Nov 19, 2026 | 1 |
| Nov 18, 2026 | 1 |
| Nov 17, 2026 | 1 |
| Nov 16, 2026 | 1 |
| Nov 15, 2026 | 1 |
| Nov 14, 2026 | 1 |
| Nov 13, 2026 | 1 |
| Nov 12, 2026 | 1 |
| Nov 11, 2026 | 1 |
| Nov 10, 2026 | 1 |
| Nov 9, 2026 | 0 |
| Nov 8, 2026 | 0 |
| Nov 7, 2026 | 0 |
| Nov 6, 2026 | 0 |
| Nov 5, 2026 | 0 |
| Nov 4, 2026 | 0 |
| Nov 3, 2026 | 0 |
| Nov 2, 2026 | 0 |
| Nov 1, 2026 | 0 |
| Oct 31, 2026 | 0 |
| Oct 30, 2026 | 0 |
| Oct 29, 2026 | 0 |
| Oct 28, 2026 | 0 |
| Oct 27, 2026 | 0 |
| Oct 26, 2026 | 0 |
| Oct 25, 2026 | 0 |
398+398 since Nov 1
| Date | Weekly downloads |
|---|---|
| Dec 6, 2026 | 398 |
| Dec 5, 2026 | 447 |
| Dec 4, 2026 | 767 |
| Dec 3, 2026 | 780 |
| Dec 2, 2026 | 808 |
| Dec 1, 2026 | 816 |
| Nov 30, 2026 | 697 |
| Nov 29, 2026 | 954 |
| Nov 28, 2026 | 922 |
| Nov 27, 2026 | 594 |
| Nov 26, 2026 | 567 |
| Nov 25, 2026 | 536 |
| Nov 24, 2026 | 492 |
| Nov 23, 2026 | 438 |
| Nov 22, 2026 | 323 |
| Nov 21, 2026 | 293 |
| Nov 20, 2026 | 282 |
| Nov 19, 2026 | 250 |
| Nov 18, 2026 | 228 |
| Nov 17, 2026 | 202 |
| Nov 16, 2026 | 187 |
| Nov 15, 2026 | 0 |
| Nov 14, 2026 | 303 |
| Nov 13, 2026 | 280 |
| Nov 12, 2026 | 242 |
| Nov 11, 2026 | 224 |
| Nov 10, 2026 | 231 |
| Nov 9, 2026 | 352 |
| Nov 8, 2026 | 328 |
| Nov 7, 2026 | 297 |
| Nov 6, 2026 | 289 |
| Nov 5, 2026 | 251 |
| Nov 4, 2026 | 204 |
| Nov 3, 2026 | 0 |
| Nov 2, 2026 | 0 |
| Nov 1, 2026 | 0 |
Each point is npm's rolling 7-day download count.
Health Score
Composite score based on GitHub activity, stars, npm downloads, publish recency, dependency count, and package size.
Badge for your README
[](https://payloaddirectory.dev/plugins/1439440070-root)<a href="https://payloaddirectory.dev/plugins/1439440070-root"><img src="https://payloaddirectory.dev/badge/1439440070-root.svg" alt="Payload Directory"></a>README
Connects a Printify shop to a store built with Payload's official ecommerce plugin:
products, variants, variantTypes and variantOptions, with prices (cents),
enabled variants and mockup image links. Products removed in Printify become drafts.
Works with any sales channel (Pop-Up Store, Etsy, Shopify, ...). For shops on Printify's
API channel, publishHandshake: true also answers Printify's publishing events
(publishing_succeeded with your product URL).pushPrices: true, a price edited on a synced variant
in Payload is written to the Printify product once Payload has checked and saved the edit,
inside the same database transaction. If Printify refuses (product locked while publishing,
API error) the save is rolled back, and an edit Payload refuses sends nothing, so the two
agree. When two price edits for one Printify product overlap, the later one is refused with
a 409 before it sends anything, and can be tried again. Prices are edited one variant at a
time: a bulk edit that would push a price is refused. Needs database transactions (see
Database transactions, which also lists what is left uncovered).pushVisibility: true, Publish/Unpublish on a synced product in Payload also
publishes/unpublishes it in Printify, after Payload has checked and saved the change and
before the transaction commits (rolled back if Printify refuses). "Save draft" does not.
Products are published and unpublished one at a time: a bulk publish or unpublish that would
reach Printify is refused.status: processing), its Printify items are
sent as a Printify order (external_id = your order id). Orders wait in Printify for approval
unless sendToProduction: true. The order is sent once and never retried. Before the create goes
out, the order is marked sending in one conditional write, so of two saves that pay the same
order at once only one sends it. Each send is also written to a hidden send ledger outside the
save's transaction (see The send ledger), so an order that reached Printify
is never created there again, even when the save that paid it is rolled back. Sending needs MongoDB transactions (see
Database transactions); without them nothing is sent. If Printify answers
with a server error, times out or the connection drops, it may have created the order anyway, so
fulfillment.status becomes unknown and the plugin won't send that order again on its own.
If Printify answers 409 for an order it already holds with this external_id, that order is
recorded and nothing new is created.
If Printify did create it, its next order webhook settles the order by external_id. Otherwise
staff settle it (see Orders with an unknown outcome).
A duplicated order is marked copied and is never sent. An order with an item whose Printify
link doesn't match its product is not sent; it is marked failed (see
Fields only the plugin writes).fulfillment on the order
(status, carrier, tracking number and URL). In a multi-tenant setup, only the owning store's orders.Self-contained: it depends only on payload and Node's crypto.
On its own. Printify needs Payload's official ecommerce plugin, listed before it, plus a Printify shop, a personal access token and a webhook secret. It doesn't use any other plugin.
Works with:
@payloadcms/plugin-ecommerce): required. Printify adds fields and hooks to its products, variants and orders.@payloadcms/plugin-multi-tenant): the tenant option says which site owns the synced products.Family. Printify is in the Patronage family, with Membership, Sponsors, Backing, Credits and Roadmap, though nothing in the code links it to them yet. The families are a working draft that may change.
npm install @extantape/payload-plugin-printify
import { ecommercePlugin } from '@payloadcms/plugin-ecommerce'
import { printifyPlugin } from '@extantape/payload-plugin-printify'
export default buildConfig({
plugins: [
ecommercePlugin({ /* ... */ inventory: false }), // print on demand: no stock to count
printifyPlugin({
apiToken: process.env.PRINTIFY_API_TOKEN,
shopId: process.env.PRINTIFY_SHOP_ID,
webhookSecret: process.env.PRINTIFY_WEBHOOK_SECRET,
productURL: ({ slug }) => `https://example.com/shop/${slug}`,
// Optional:
// sendToProduction: true,
// pushPrices: true,
// pushVisibility: true,
// publishHandshake: true, // shop on the API sales channel
// beforePrintifyWrite: ({ action, doc, req }) => { if (!isProduction) throw new Error('staging only reads Printify') },
// access: { manage: ({ req, action }) => req.user?.roles?.includes('admin') === true }, // who may settle orders and push prices or visibility
// refuseLockedWrites: true, // refuse writes to plugin-only fields instead of dropping them (off by default)
// settle: { resend: true, resendAfterMinutes: 30 }, // allow resending unknown orders
// allowUnguardedSends: true, // send without transactions: read Database transactions first
// currency: 'USD', // priceIn<currency> fields
// tenant: { field: 'tenant', resolve: async (payload) => tenantId }, // multi-tenant stores
// collections: { products: 'products', orders: 'orders', sends: 'printify-sends' }, // custom slugs
}),
],
})
Add it after ecommercePlugin. It adds:
| Collection | Fields |
|---|---|
| products | title, slug, description, images[] (only if missing), printify (productId, shopId, blueprintId, printProviderId, syncedAt), its lock hook and the visibility push hook |
| variants | printify (variantId, productId, sku), the link lock hook, the price push and "from" price hooks |
| orders | fulfillment (provider, externalId, status, error, submittedAt, sendingAt, unknownAt, shipments[]), its lock hook and the submit hook |
and two endpoints: POST /api/printify/webhook, which rejects requests without a valid
X-Pfy-Signature (HMAC-SHA256 of the body with webhookSecret), and
POST /api/printify/orders/:id/settle (below).
listPrintifyShops(token) → [{ id, title, sales_channel }].openssl rand -hex 20.await registerPrintifyWebhooks(payload, 'https://example.com').await syncPrintifyShop(payload) (safe to re-run; read-only on Printify).An order's fulfillment, a product's printify group and a variant's printify.variantId and
printify.productId are written only by the plugin: fulfillment by the paid-order hook, webhooks
and settling, the product and variant links by the sync. Every other write keeps what is stored.
That covers the REST, GraphQL and admin API, the Local API with or without overrideAccess, a
host's own hooks, version restores and duplicates. Values sent there are dropped and the rest of
the save goes through.
To get a refusal instead, set refuseLockedWrites: true. It is off by default, so the values are dropped as described above. An update that carries a different value
for one of these fields is then refused with a 409 and nothing is saved. A write that leaves the
fields out, or sends them as stored, goes through. A version restore that would change them is
refused too. Creates and duplicates are not refused: they start with these fields empty (or
copied), as before.
syncPrintifyShop, syncPrintifyProduct or a Printify product webhook). To change an order's
Printify state, settle it (below).fulfillment.status: copied and is never sent to Printify, even when
it is paid or moved back to paid later. Copies of copies are copied too. Settling refuses a
copied order (409) and sends nothing. To ship the same items again, create a new order.sku is copied from Printify for display. The plugin never reads it, so it stays
editable.What an order line is sent as. Each item is sent with the variant's printify.variantId and
printify.productId, both written by the sync. The variant's printify.productId must equal its
product's printify.productId. If any item fails that check (a variant synced before
productId existed, or a variant whose product was changed in Payload), nothing is sent for the
whole order, fulfillment.status becomes failed with an error naming the fix, and the server
log gets an error. To send it: run syncPrintifyShop, then set the order back to pending and
then to processing. A resend settle that meets such an item answers 409, sends nothing and
leaves the order as it was; run the sync, then settle again.
The plugin's own writes. The plugin marks each of its writes with a grant that only it can
make, for one document and the exact values it writes, valid only while that write runs. Request
context sent by a client can't carry it. Another write on the same request, for example a host
hook that updates the same order from inside the plugin's write, doesn't match those values, so it
is locked like any other write, and the plugin's result is still recorded. If a host
beforeChange hook changes the plugin's values inside its write, the plugin writes its result
straight to the database (skipping hooks and versions) as long as the order's Printify status
hasn't moved on meanwhile, and logs an error either way. The order is still sent only once.
The plugin sends paid orders to Printify, and settles orders, only inside a MongoDB transaction.
That needs a MongoDB replica set (a single-node replica set is enough) with Payload's
transactionOptions left on, which is the MongoDB adapter's default. Inside a transaction, an
order saved by someone else while it is being sent fails with an error and the plugin's Printify
record stands.
Without transactions (a standalone MongoDB, transactionOptions: false, or another database
adapter):
fulfillment.status is set to failed, with an error saying
transactions are needed, unless a save made at the same moment writes over that mark; either way
nothing is sent. Once transactions are on, send it by setting the order to pending, then to
processing. It is sent once.The same holds for a single request that turns transactions off: an order created as paid with
disableTransaction: true is marked failed and not sent.
While the plugin can send, updates to orders made outside a transaction are refused with a 409
error, including Local API calls with disableTransaction: true. Creating orders that way still
works. Direct database writes (payload.db.updateOne and the like) skip Payload's hooks, so the
plugin can't check them: don't write orders that way while they may be paid.
Price pushes (pushPrices) follow the same rule. A price edit that would be sent to Printify
is refused with a 409 outside a transaction, with nothing sent and the price unchanged. This
is a breaking change for hosts that pushed prices without transactions: turn transactions on,
or set allowUnguardedSends: true and accept what that section says. Inside a transaction the
steps run in this order:
That holds for an edit of one variant. Bulk price edits are refused. An update by query
(REST PATCH /api/variants?where=..., the Local API's update with where, or the admin's
Edit many) that would change the price of a synced variant gets a 400 before Payload saves any
record and before anything is sent to Printify. The message says to edit one variant at a time
and names the route, PATCH /api/variants/{id}. Payload saves a bulk update's records together
and keeps a record whose hook failed, so a variant Printify refused would have stayed saved with
a price Printify doesn't hold. An edit of one variant is rolled back.
Visibility pushes (pushVisibility) run the same way inside a transaction: the publish or
unpublish takes the product, Payload checks and saves it, then Printify is told, then the
transaction commits. A publish Payload refuses (an empty required field) sends nothing. A publish
or unpublish that overlaps another one, or a price edit of one of the product's variants, gets a
409 before it sends anything, and so does a price edit that overlaps a publish or unpublish.
Visibility pushes still work without a transaction, with the gaps listed below. Bulk publishes
and unpublishes are refused as bulk price edits are: an update by query (the admin's Publish
many and Unpublish many included) that would publish or unpublish a synced product gets a 400
with nothing saved and nothing sent. The message names PATCH /api/products/{id}.
A bulk update that can't push still goes through. The plugin looks at what the update sets and
runs one query for the records it names, reading them as the caller may. A bulk update passes
when it sets no price and no status, or when no record it matches is linked to Printify with a
different price or status. So Edit many that renames published products and saves them as
published works, and so does a bulk edit of variants that aren't linked to Printify. If a record
would push after all (it changed after the query, or the caller may update a record it can't
read), that record alone is refused with the same message, unsaved and unsent, and the update
lists it under errors.
Any other save of a product or variant that overlaps a price or visibility push can be refused with MongoDB's own write-conflict error (a 500).
What is left uncovered:
transactionOptions: false, or disableTransaction: true)
and a price push under allowUnguardedSends go to Printify before Payload checks and saves the
record, as they did before. If Payload then refuses the save, Printify already has the change.
Nothing holds two of them apart either: two publishes or unpublishes at once both go out.beforePrintifyWrite is asked before Payload checks the record, so it can be called for a
save Payload then refuses. Nothing is sent to Printify in that case.Only the MongoDB adapter is accepted for now. The Postgres and SQLite adapters haven't been tested, so the plugin sends nothing on them.
allowUnguardedSends: true turns the requirement off: the plugin sends and settles without a
transaction, on any adapter. If anyone saves an order (in the admin, over the API or from your own
code) while it is being sent, that save can write over the order's Printify record. The order then
shows either no Printify state or sending. The send ledger still holds the Printify order, and
setting the order to pending, then processing creates no second one:
sending keeps that status. After 10 minutes staff can settle it, and a resend
records the Printify order the ledger holds.With it on, price pushes also go out without a transaction, before Payload checks and saves the
variant. Two price edits for one Printify product made at the same moment can then leave Printify
and Payload with different prices, as nothing holds the second one back, and so can a save Payload
refuses after the push. Only exactly true turns it on: any other value, such as the string
'true', leaves the requirement in place.
With it on, bulk price and visibility edits are let through as well. Inside a transaction Payload
saves a bulk update's records together and keeps a record whose hook failed, so a record whose
push Printify refused stays saved in Payload while Printify holds the old value. Its error says
so: Price saved in Payload but not changed in Printify: Printify answered 422. Printify still holds the old price., or the same starting with Visibility. When the write went out and got no
clear answer (a timeout, a dropped connection, a 5xx), it reads Price saved in Payload, but Printify did not confirm the change, and asks you to check the price in Printify. Run a sync to
bring such a record back in line. Seen on Payload 3.92.1: with bulkOperationsSingleTransaction: true on the MongoDB adapter the refused record is rolled back, and so are the records the same
update saved before it, whose change Printify already has.
Tested on MongoDB only. With it on, don't edit orders while they are being paid.
The plugin adds a hidden collection, printify-sends (rename it with collections.sends). It
holds one record per order the plugin has started sending: whether the send is under way, sent,
failed or unclear, and the Printify order id once Printify answers. The plugin writes it straight
to the database, outside the transaction of the save that paid the order, so a rolled-back save or
a later save of the order can't erase it.
unknown and staff
settle it (see Orders with an unknown outcome). Settling as
sent, or a resend, updates the record.failed and nothing is sent.Clients can't read it: its access answers false, so REST, GraphQL and the admin get nothing. Only
server code can read it, for example the Local API with its default overrideAccess: true. Its
hooks refuse every create, update and delete through Payload, the Local API included. Records are
kept. Don't delete them or write
them with payload.db: the plugin relies on them to send each order once.
On a multi-tenant host, leave this collection out of the multi-tenant plugin's collections; it has no tenant field and no client reads it.
Writes from your own code to an order's fulfillment, a product's printify group or a variant's
printify.variantId and printify.productId are now ignored, Local API included. Duplicated
orders are never sent, and duplicated products and variants start unlinked. An order with an item
whose variant isn't linked to its product's Printify product isn't sent; it is marked failed.
Paid orders are sent, and orders settled, only with MongoDB transactions on. The plugin adds a
hidden printify-sends collection (see The send ledger); on MongoDB it needs
no migration. After upgrading:
transactionOptions not set to false (see Database transactions).
If the plugin logs "paid orders will NOT be sent" at startup, they aren't on. Orders paid
meanwhile are marked failed; send them afterwards by setting them to pending, then
processing. Also remove disableTransaction: true from your own code that updates orders.update access that allows the staff who
settle (see Orders with an unknown outcome).await syncPrintifyShop(payload) once, so every variant stores its Printify product. Until
it has run, orders with variants synced by an earlier release are not sent; they are marked
failed, and you can send them afterwards by setting them to pending and then processing.printify.productId links one of your shop's Printify products,
and that no two products link the same one. Then run syncPrintifyShop again. Two products can
offer the same Printify variantId, so variants sharing one is normal and needs no change.printify-sends out of tenant scoping, and keep it in backups. Orders sent before this
release have no ledger record; they keep their Printify id on the order as before.Staging and production usually read the same Printify shop. Pass beforePrintifyWrite and
throw outside production: orders are then marked held and price and visibility edits are refused, while
product sync (read-only on Printify) keeps working everywhere. A refused price or visibility edit
answers 403 with a fixed message. What you threw is written to the server log and is not shown to
the person who made the edit.
access.manage gates every path where a person's request makes the plugin change Printify or an
order's Printify state. It is asked before the plugin reads Printify or writes anything, and
anything but exactly true refuses with a 403 and changes nothing:
action | Path | What doc holds |
|---|---|---|
price | a variant's price edited in the admin, REST or the Local API, when pushPrices is on | the variant as stored; data holds the edit |
visibility | a product published or unpublished the same ways, when pushVisibility is on | the product as stored; data holds the edit |
settle | settleUnknownOrder and POST /api/printify/orders/:id/settle | not given; id is the order id from the URL |
id and doc always come from the stored record, never from the request body. A body that sends
another id, product or tenant shows up only in data, which describes what the request wants
to change and says nothing about who owns the record. Decide on id, doc and site. Settling
passes the order id from the URL and no doc: the orders collection's own update access is what
checks the stored order. beforePrintifyWrite gets the same stored doc and the edit in data for
price and visibility changes.
With tenant set, a site that throws or resolves to null, undefined or an empty string is a 403
before access.manage is asked, so a host that treats a missing site as allowed is not reached.
site is null only when no tenant option is set.
There is no default that allows. With no access.manage, price and visibility pushes are
refused, and so is settling. Edits that push nothing (pushes off, an unchanged price, a draft
save) don't ask. The plugin's own writes (the sync, webhooks and sending a paid order) don't ask
either: sending is gated by beforePrintifyWrite, which still runs for price and visibility
pushes after access.manage says yes.
access: {
manage: async ({ req, user, action, site }) =>
action === 'settle' ? canSettle(user, site) : canEditCatalog(user, site),
}
When creating a Printify order fails with a server error, a timeout or a dropped connection,
Printify may have created it anyway. The order gets fulfillment.status: unknown and is never
sent again on its own. While a create is out, the order reads sending. An order still sending
10 minutes later (the process stopped mid-send) is treated like an unknown one.
Printify tells us. Any signed Printify order event whose order carries our order id
(external_id, or metadata.shop_order_id) settles it: the Printify id and status are recorded.
This only happens while some order is unknown or sending, so other order events cost no extra
Printify call.
Staff settle it. Look for the order id in Printify (it's the order's external_id and label),
then:
import { settleUnknownOrder } from '@extantape/payload-plugin-printify'
// It's in Printify: record it. The plugin reads that order from Printify first and records it
// only if it carries this order id, with Printify's status and shipments.
await settleUnknownOrder(payload, { order: orderId, outcome: 'sent', printifyId: 'Printify order id', req })
// It isn't: send it now, once. Off unless the host sets `settle: { resend: true }`.
await settleUnknownOrder(payload, { order: orderId, outcome: 'resend', req })
From the admin (signed in), the same as a request:
curl -X POST https://example.com/api/printify/orders/ORDER_ID/settle \
-H 'Content-Type: application/json' -b 'payload-token=...' \
-d '{"outcome":"sent","printifyId":"PRINTIFY_ORDER_ID"}'
It answers 200 with the new fulfillment, 400 for a missing or malformed printifyId or a wrong
outcome, 403 when you may not settle that order, 404 when there is no such order, 409 when the
order can't be settled as asked (already recorded, still being sent, no longer paid, Printify turned
off here, resending off, the wait not over, or the Printify order belongs to another order), and
502 when Printify couldn't be read or didn't confirm.
What a host must set up:
access.manage: only requests it answers exactly true for may settle. It is called with
{ req, user, action: 'settle', id, data, site }, where site is what tenant.resolve answers
(null without a tenant option; with one, a site that fails or answers nothing is a 403 before this is called). A query, any other truthy value, a rejected promise or an
error is a no. With no access.manage, nobody can. The same callback is asked on every other
path a person can reach that changes Printify (next section).update access must also allow that person that order. Settling
calls it with the order id. true passes. A query passes when the order matches it, so a
multi-tenant host's per-store admins can settle only their own store's orders. Anything else,
including an empty query or one with an empty and or or list at any depth, is a 403. Payload's ecommerce plugin gives orders update: isAdmin
by default.settle.resend (default off) allows the resend outcome. A resend waits until the order has
been unknown for settle.resendAfterMinutes (default 30, at least 10), so a late Printify create
has time to show up. It then pages through the shop's Printify orders (50 a page, up to 100 pages)
for one carrying this order id. If it finds one, it records that one and sends nothing. If the
list can't be read, it sends nothing and the order stays unknown. Printify's docs don't say
whether the list can be filtered by external_id, so it reads them all.external_id blocks resends. If the shop's order list holds an order
carrying no order id (one made by hand in Printify, or by another tool), the plugin can't rule it
out, so every resend answers 502 and sends nothing while that order is in the list. Find the order
in Printify: if it is this one, settle it as sent with its Printify id.How it behaves:
fulfillment fields (see
Fields only the plugin writes), so settling is the only way to
change them.payload.db.updateOne with it in where). Of two staff settling at once,
one wins and the other gets a 409. This relies on the database adapter doing that conditional
update in one step, as MongoDB's does. Settling runs inside a transaction (see
Database transactions). It is tested on a real MongoDB (in memory);
the SQL adapters haven't been tested.resend goes through the same path as a paid order: the tenant check and beforePrintifyWrite
still apply, and its outcome can be unknown again.npm test runs every test without reaching Printify: Printify is always a fake fetch. Most tests
use a small fake Payload. test/real-db.test.ts runs a real Payload with the official ecommerce
and multi-tenant plugins on an in-memory MongoDB replica set (mongodb-memory-server, which
downloads a MongoDB binary on first run), with and without transactions. It covers the paid-order
hook, saves made while an order is being sent, database transactions and the send ledger, the
refusals without transactions, settling, webhooks, two stores on one Payload, price and visibility edits whose body names another record or store, price edits that overlap, price and visibility edits that Payload or Printify refuses or that overlap each other, bulk price and visibility edits refused through REST and the Local API, bulk updates under allowUnguardedSends in which Printify refuses one record (with and without a transaction for each record), the plugin-only fields kept through REST
and Local API writes, version restores and duplicates, and orders refused when a variant's link
doesn't match its product. Nothing has been tested against Printify
itself or on Postgres or SQLite.
priceInUSD).
The product's own price is the lowest published variant price ("from" price).new PrintifyClient(token).shippingCost(shopId, { line_items, address_to }).ecommerce
Ecommerce utilities for Payload with idempotent Stripe confirmation, orders, carts and inventory handling
10019.0k/wk46.1kv3 v4
payload stock reservation
Validates variant stock and price at checkout and holds stock until payment settles or the hold expires
76152/wk1v3
payload coupons
Coupon codes with percentage and fixed discounts for Payload ecommerce, calculated in integer minor units
76144/wk2v3
payload plugin restock
Supplier lists, purchase orders and receiving drafted from stock levels, with copy-ready orders for suppliers without…
75232/wk0v3
payload plugin shipping
Shipping addresses, carrier rates, labels, label refunds and tracking webhooks for Payload, with EasyPost as provider
75221/wk0v3
payload plugin sample kits
Track sample kits from stock to keeper and back with custody trails, lot recalls and one-time activation secrets
74441/wk0v3