Supplied partner API · developer documentation
Connected storefronts

Sell Supplied products from your own store.

Send us your customers' orders. We pick, pack and ship them in your name, and tell you what happened. The API is your whole interface.

Introduction

For storefronts that sell Supplied products without holding stock. You send us your customers' orders; we pick, pack and ship them in your name, and tell you what happened. There is no portal to log in to: this API is the whole interface.

The basics

Base URLhttps://api.supplied.example/functions/v1/supplied-partner-api/v1
Supplied gives you the host. Type it in the box at the top of this page and every example uses it.
FormatJSON in and out. Fields are snake_case. Amounts are integer cents (1800 is $18.00, always USD). Times are ISO 8601; the ones we generate are UTC. Read a timestamp that comes from the warehouse (shipped_at, delivered_at) with a standard ISO 8601 parser, as it may carry an offset.
AuthenticationYour API key, as a bearer token. How keys and test mode work.
Server to serverCall the API from your server only. It refuses browsers (no CORS) so a key can never be used from a web page.
Request-IdEvery answer has a Request-Id header. Quote it if you contact Supplied.
LimitsRequest bodies up to 256,000 bytes. Up to 200 lines per order. Up to 5 webhook endpoints per mode.

How the pieces fit

Your store→POST /orders→Supplied checks it→Warehouse ships→Webhook to you, with tracking
Everything here is tested.Every request and response in this documentation was recorded from the running API by its own end-to-end test, and the code in the guides is run by that test too. If the API changes, the test fails until this page is regenerated.

Quickstart

Five steps from nothing to a delivered test order. Use a test key (sk_test_…): nothing reaches the warehouse and nothing is invoiced.

1. Get your keys

Supplied gives you a test key and a live key, and the API host. Keep them on your server, for example in an environment variable called SUPPLIED_API_KEY. The examples below read the key from there.

2. See your catalog

Your catalog is what you can order, at your prices, with live stock. Prices are in cents.

Request
Response
200 OK· Request-Id: req_…
{
  "object": "list",
  "data": [
    {
      "object": "product",
      "sku": "PL-BPC-GLOW",
      "name": "BPC-157 10mg (Glow label)",
      "description": "Research peptide, 10 mg vial",
      "unit_price_cents": 1800,
      "currency": "USD",
      "min_quantity": 1,
      "price_tiers": [],
      "available": 100,
      "inventory_as_of": "2026-11-03T15:04:05Z",
      "image_url": "https://api.supplied.example/storage/v1/object/public/supplied-product-photos/forms/v1/bare/vial.jpg"
    },
    {
      "object": "product",
      "sku": "PL-GHK-GLOW",
      "name": "GHK-Cu 50mg (Glow label)",
      "description": null,
      "unit_price_cents": 2200,
      "currency": "USD",
      "min_quantity": 1,
      "price_tiers": [],
      "available": 1,
      "inventory_as_of": "2026-11-03T15:04:46Z",
      "image_url": "https://api.supplied.example/storage/v1/object/public/supplied-product-photos/forms/v1/bare/vial.jpg"
    },
    {
      "object": "product",
      "sku": "PL-TB4-GLOW",
      "name": "TB-500 5mg (Glow label)",
      "description": null,
      "unit_price_cents": 2600,
      "currency": "USD",
      "min_quantity": 5,
      "price_tiers": [],
      "available": 40,
      "inventory_as_of": "2026-11-03T15:05:27Z",
      "image_url": "https://api.supplied.example/storage/v1/object/public/supplied-product-photos/forms/v1/bare/vial.jpg"
    }
  ]
}

3. Place a test order

Send your own order number as external_id. It is how we recognise a retry, so sending the same order twice never creates two.

Request
Response
201 Created· Request-Id: req_…
{
  "object": "order",
  "id": "TEST-1046-89FE",
  "external_id": "TEST-RUN-1",
  "livemode": false,
  "status": "received",
  "hold_reasons": [],
  "ship_to": {
    "name": "Dana Consumer",
    "company": null,
    "line1": "9 Elm St",
    "line2": "Apt 4",
    "city": "Denver",
    "state": "CO",
    "postal_code": "80202",
    "country": "US",
    "phone": "555-0100"
  },
  "lines": [
    {
      "sku": "PL-BPC-GLOW",
      "name": "BPC-157 10mg (Glow label)",
      "quantity": 2,
      "shipped_quantity": 0,
      "unit_price_cents": 1800,
      "total_cents": 3600
    }
  ],
  "total_cents": 8600,
  "subtotal_cents": 3600,
  "currency": "USD",
  "shipping_method": null,
  "notes": null,
  "shipments": [],
  "shipped_at": null,
  "delivered_at": null,
  "cancelled_at": null,
  "created_at": "2026-11-03T15:17:04Z",
  "updated_at": "2026-11-03T15:17:04Z",
  "shipping_cents": 5000
}

4. Ship it, then deliver it

With a test key, two helpers play the warehouse. They move the order along and send the same webhooks a real shipment would.

Request
Response
200 OK· Request-Id: req_…
{
  "object": "order",
  "id": "TEST-1046-89FE",
  "external_id": "TEST-RUN-1",
  "livemode": false,
  "status": "shipped",
  "hold_reasons": [],
  "ship_to": {
    "name": "Dana Consumer",
    "company": null,
    "line1": "9 Elm St",
    "line2": "Apt 4",
    "city": "Denver",
    "state": "CO",
    "postal_code": "80202",
    "country": "US",
    "phone": "555-0100"
  },
  "lines": [
    {
      "sku": "PL-BPC-GLOW",
      "name": "BPC-157 10mg (Glow label)",
      "quantity": 2,
      "shipped_quantity": 2,
      "unit_price_cents": 1800,
      "total_cents": 3600
    }
  ],
  "total_cents": 8600,
  "subtotal_cents": 3600,
  "currency": "USD",
  "shipping_method": null,
  "notes": null,
  "shipments": [
    {
      "lines": [
        {
          "sku": "PL-BPC-GLOW",
          "quantity": 2
        }
      ],
      "tracking_number": "1ZTEST0000000001",
      "carrier": "UPS"
    }
  ],
  "shipped_at": "2026-11-03T15:17:45Z",
  "delivered_at": null,
  "cancelled_at": null,
  "created_at": "2026-11-03T15:17:04Z",
  "updated_at": "2026-11-03T15:17:45Z",
  "shipping_cents": 5000
}
Request
Response
200 OK· Request-Id: req_…
{
  "object": "order",
  "id": "TEST-1046-89FE",
  "external_id": "TEST-RUN-1",
  "livemode": false,
  "status": "delivered",
  "hold_reasons": [],
  "ship_to": {
    "name": "Dana Consumer",
    "company": null,
    "line1": "9 Elm St",
    "line2": "Apt 4",
    "city": "Denver",
    "state": "CO",
    "postal_code": "80202",
    "country": "US",
    "phone": "555-0100"
  },
  "lines": [
    {
      "sku": "PL-BPC-GLOW",
      "name": "BPC-157 10mg (Glow label)",
      "quantity": 2,
      "shipped_quantity": 2,
      "unit_price_cents": 1800,
      "total_cents": 3600
    }
  ],
  "total_cents": 8600,
  "subtotal_cents": 3600,
  "currency": "USD",
  "shipping_method": null,
  "notes": null,
  "shipments": [
    {
      "lines": [
        {
          "sku": "PL-BPC-GLOW",
          "quantity": 2
        }
      ],
      "tracking_number": "1ZTEST0000000001",
      "carrier": "UPS"
    }
  ],
  "shipped_at": "2026-11-03T15:17:45Z",
  "delivered_at": "2026-11-03T15:18:26Z",
  "cancelled_at": null,
  "created_at": "2026-11-03T15:17:04Z",
  "updated_at": "2026-11-03T15:18:26Z",
  "shipping_cents": 5000
}

5. Get told when things change

Subscribe an HTTPS address on your server. We check it answers before we send anything, and the secret in the answer is how you verify every delivery. More on webhooks.

Request
Response
201 Created· Request-Id: req_…
{
  "object": "webhook_endpoint",
  "id": "3f6c1a90-5b7d-4e21-9a4c-7a1c40e2b100",
  "url": "https://api.glowstore.example/supplied-webhooks",
  "events": [
    "inventory.updated",
    "order.delivered",
    "order.shipped"
  ],
  "description": "production",
  "livemode": true,
  "status": "active",
  "secret": "whsec_5d2f7c1e9b0a4d38a6f1c2e7b9d04a83",
  "health": {
    "consecutive_failures": 0,
    "pending": 0
  },
  "verified_at": "2026-11-03T15:09:33Z",
  "created_at": "2026-11-03T15:08:52Z"
}

The same, as one script

This script looks at the catalog, places an order and reads it back. It is the one our own test runs against the API, so it works as written.

place-first-order.mjs
// Your first order, end to end: look at the catalog, place an order, read it back.
// Run with a TEST key first: nothing reaches the warehouse and nothing is invoiced.
//   SUPPLIED_API_BASE=https://<host>/functions/v1/supplied-partner-api/v1 SUPPLIED_API_KEY=sk_test_… node place-first-order.mjs

export async function placeFirstOrder({ baseUrl, apiKey, fetch = globalThis.fetch }) {
  const call = async (method, path, body) => {
    const res = await fetch(`${baseUrl}${path}`, {
      method,
      headers: { Authorization: `Bearer ${apiKey}`, 'Content-Type': 'application/json' },
      body: body === undefined ? undefined : JSON.stringify(body),
    });
    const json = await res.json();
    if (!res.ok) throw new Error(`${json.error.code}: ${json.error.message} (Request-Id ${res.headers.get('Request-Id')})`);
    return json;
  };

  // 1. What can I order?
  const { data: products } = await call('GET', '/products');
  const product = products.find((p) => p.available === null || p.available >= p.min_quantity);
  if (!product) throw new Error('Nothing in your catalog is in stock right now.');

  // 2. Place the order. external_id is YOUR order number: sending it again never creates a second order.
  const order = await call('POST', '/orders', {
    external_id: 'GLOW-1042',
    ship_to: { name: 'Dana Consumer', line1: '9 Elm St', line2: 'Apt 4', city: 'Denver', state: 'CO', postal_code: '80202', country: 'US', phone: '555-0100' },
    lines: [{ sku: product.sku, quantity: Math.max(2, product.min_quantity) }], // never below the product's minimum
  });

  // 3. Read it back by your own number.
  return call('GET', `/orders/${encodeURIComponent(order.external_id)}`);
}

if (import.meta.url === `file://${process.argv[1]}`) {
  placeFirstOrder({ baseUrl: process.env.SUPPLIED_API_BASE, apiKey: process.env.SUPPLIED_API_KEY }).then((o) => console.log(o.id, o.status));
}
Going liveSwap in your live key. Orders are then real: they go to the warehouse and are invoiced when they ship. Read the checklist first.

A real example: Glow Peptides

Glow Peptides runs an online store. It sells Supplied products under its own name and holds no stock: when a customer pays, Glow's server tells Supplied, Supplied ships the parcel, and Glow tells the customer. This is that whole story, with the code Glow runs. Every snippet here is run against the API by our automated tests.

Customer pays on glowpeptides.com→Glow's server: POST /orders→Supplied ships it→Webhook: order.shipped→Glow emails the tracking number

Set up once

  1. Get your keys and your host from Supplied, and make sure your account is on net terms: orders are invoiced when they ship. Keep both keys in your server's configuration.
  2. Match your products to Supplied's. Read GET /products once and store the sku of each product next to your own product page. Prices are yours, in cents; min_quantity is the least a customer may buy. image_url, when Supplied has turned photos on, is a photo to show on that page: copy it, since a new photo comes as a new URL with product.updated.
  3. Run a webhook receiver and subscribe its address (below). Do this with the test key first.

1. A customer pays: send the order

Dana buys two vials of BPC-157. As soon as the payment clears, Glow's server sends the order, using its own order number as external_id. That one field makes the call safe to repeat: if Glow's server crashes or the connection drops after Supplied got the order, sending it again returns the same order and never a second shipment.

submit-order.mjs
// What Glow Peptides' store runs when a customer pays: send the order to Supplied, safely.
// Your own order number is the external_id, so retrying can never create a second order.
//   const result = await submitOrder({ baseUrl, apiKey, order });
//   result.ok ? save(result.supplied.id) : flagForAStaffMember(result.error)

const toSupplied = (order) => ({
  external_id: order.number, // "GLOW-1042": your order number
  ship_to: { name: order.customer.name, line1: order.customer.address1, line2: order.customer.address2 ?? null, city: order.customer.city,
    state: order.customer.state, postal_code: order.customer.zip, country: 'US', phone: order.customer.phone ?? null },
  lines: order.items.map((i) => ({ sku: i.sku, quantity: i.quantity })), // no prices: they come from your catalog
  notes: order.giftMessage ?? null,
});

export async function submitOrder({ baseUrl, apiKey, order, fetch = globalThis.fetch, sleep = (ms) => new Promise((r) => setTimeout(r, ms)), attempts = 4 }) {
  for (let attempt = 1; ; attempt++) {
    let res;
    try {
      res = await fetch(`${baseUrl}/orders`, {
        method: 'POST', headers: { Authorization: `Bearer ${apiKey}`, 'Content-Type': 'application/json' }, body: JSON.stringify(toSupplied(order)),
      });
    } catch (networkError) {
      if (attempt >= attempts) return { ok: false, retry: true, error: `no answer: ${networkError.message}` };
      await sleep(1000 * 2 ** (attempt - 1)); continue; // a timeout: the order may or may not have arrived, so send the same one again
    }
    // A gateway can answer 502 with an HTML page: that is a failure to retry, not something to parse.
    const body = await res.json().catch(() => ({ error: { code: `http_${res.status}`, message: 'The answer was not JSON.' } }));
    if (res.ok) return { ok: true, replay: res.status === 200, supplied: body }; // 201 new, 200 we already had it
    if (res.status >= 500) {
      if (attempt >= attempts) return { ok: false, retry: true, error: `${body.error.code} (Request-Id ${res.headers.get('Request-Id')})` };
      await sleep(1000 * 2 ** (attempt - 1)); continue;
    }
    // 4xx: the request itself is wrong or not allowed. Retrying the same thing never helps: show a person what to fix.
    return { ok: false, retry: false, error: `${body.error.code}: ${body.error.message}`, field: body.error.param ?? null };
  }
}

What the function does with each answer:

AnswerGlow's server
201The order is Supplied's. Save supplied.id and show the customer "We're preparing your order".
200We already had it (a retry). Treat exactly like 201.
No answer, or 5xxSend the same order again after a pause. Never invent a new order number for a retry.
4xxSomething about the order is wrong (error.param says which field): an unknown SKU, a quantity under the minimum, an address field missing. Don't retry; put the order in a "needs attention" list for a person.
Response
201 Created· Request-Id: req_…
{
  "object": "order",
  "id": "SUP-1042-7F3A",
  "external_id": "GLOW-1042",
  "livemode": true,
  "status": "processing",
  "hold_reasons": [],
  "ship_to": {
    "name": "Dana Consumer",
    "company": null,
    "line1": "9 Elm St",
    "line2": "Apt 4",
    "city": "Denver",
    "state": "CO",
    "postal_code": "80202",
    "country": "US",
    "phone": "555-0100"
  },
  "lines": [
    {
      "sku": "PL-BPC-GLOW",
      "name": "BPC-157 10mg (Glow label)",
      "quantity": 2,
      "shipped_quantity": 0,
      "unit_price_cents": 1800,
      "total_cents": 3600
    }
  ],
  "total_cents": 8600,
  "subtotal_cents": 3600,
  "currency": "USD",
  "shipping_method": "ground",
  "notes": "Gift",
  "shipments": [],
  "shipped_at": null,
  "delivered_at": null,
  "cancelled_at": null,
  "created_at": "2026-11-03T15:06:49Z",
  "updated_at": "2026-11-03T15:06:49Z",
  "shipping_cents": 5000
}

2. What the customer sees while they wait

Read an order any time with GET /orders/GLOW-1042 (your own number works), or keep your copy up to date from the webhooks below.

Supplied statusSay to the customer
received, processing"We're preparing your order."
held"Part of your order is on its way to our warehouse and will ship as soon as it arrives." (hold_reasons says which line is short.) You don't need to do anything; it goes out by itself.
shipped, partially_shipped"Shipped" with the carrier and tracking number from shipments.
delivered"Delivered".
cancelled"Cancelled", and refund your customer.

3. The parcel ships: Supplied tells Glow

Glow subscribes the address of its receiver once. The receiver below answers the challenge, checks every delivery's signature, drops repeats, saves the event (your code, in onEvent) and then answers 200. If saving fails it answers 500, and Supplied sends the event again. The code that runs when an order ships is the part Glow edits: here it just logs the tracking number, but this is where Glow saves it and emails Dana.

Request
Response
201 Created· Request-Id: req_…
{
  "object": "webhook_endpoint",
  "id": "3f6c1a90-5b7d-4e21-9a4c-7a1c40e2b100",
  "url": "https://api.glowstore.example/supplied-webhooks",
  "events": [
    "inventory.updated",
    "order.delivered",
    "order.shipped"
  ],
  "description": "production",
  "livemode": true,
  "status": "active",
  "secret": "whsec_5d2f7c1e9b0a4d38a6f1c2e7b9d04a83",
  "health": {
    "consecutive_failures": 0,
    "pending": 0
  },
  "verified_at": "2026-11-03T15:09:33Z",
  "created_at": "2026-11-03T15:08:52Z"
}
webhook-receiver.mjs
// A complete webhook receiver for Supplied events, with no dependencies: node webhook-receiver.mjs
// It answers the verification challenge, checks the signature on every delivery, drops duplicates and stale updates,
// and hands each new event to `onEvent` (where you update your own order, stock or catalog) before it answers 200.
//   SUPPLIED_WEBHOOK_SECRET=whsec_… PORT=3000 node webhook-receiver.mjs
import { createServer } from 'node:http';
import { verifySignature } from './verify-webhook.mjs';

export function createReceiver({ secret, onEvent, seen = new Set(), versions = new Map() }) {
  return async (req, res) => {
    const chunks = [];
    for await (const c of req) chunks.push(c);
    const raw = Buffer.concat(chunks).toString('utf8'); // the raw body: verify it before parsing it
    const reply = (status, body) => { res.writeHead(status, { 'Content-Type': 'application/json' }); res.end(JSON.stringify(body)); };

    let event;
    try { event = JSON.parse(raw); } catch { return reply(400, { error: 'not JSON' }); }

    // 1. When you subscribe (or ask for it again) we send a challenge: answer with it. It is signed too, but the secret
    //    only reaches you in the answer to the subscribe call, so you can't check this first one yet. It carries no data;
    //    answering it only proves the address is yours.
    if (event.type === 'webhook.verification') return reply(200, { challenge: event.challenge });

    // Everything else is checked against the secret, on the raw body, before it is trusted.
    if (!verifySignature(raw, String(req.headers['supplied-signature'] ?? ''), secret)) return reply(401, { error: 'bad signature' });

    // 2. Delivery is at least once: drop an event you already handled.
    if (seen.has(event.id)) return reply(200, { duplicate: true });
    // 3. Drop an older state of a record you already hold a newer one of.
    const key = `${event.resource.type}:${event.resource.id}`;
    if ((versions.get(key) ?? 0) >= event.resource.version) return reply(200, { stale: true });

    // 4. Do the work, then say so. onEvent should be quick (save to your database; queue anything slow) because we wait
    //    10 seconds at most. If it throws, answer 500 and remember nothing: we send the event again.
    try { await onEvent(event); } catch (error) { return reply(500, { error: 'not processed' }); }
    seen.add(event.id);
    versions.set(key, event.resource.version);
    reply(200, { received: true });
  };
}

if (import.meta.url === `file:N
  createServer(createReceiver({
    secret: process.env.SUPPLIED_WEBHOOK_SECRET,
    onEvent: async (event) => {
      if (event.type === 'order.shipped') {
        const order = event.data; O
        for (const s of order.shipments) console.log(`order ${order.external_id} shipped: ${s.carrier} ${s.tracking_number}`);
      } else console.log(event.type, event.resource.id);
    },
  })).listen(Number(process.env.PORT ?? 3000));
}

A delivery for Dana's order looks like this. data is the whole order as it is now, so Glow doesn't have to ask for anything more:

Request
Response
200 OK· Request-Id: req_…
{
  "object": "event",
  "id": "evt_8813",
  "sequence": 12,
  "type": "order.shipped",
  "livemode": true,
  "resource": {
    "id": "SUP-1042-7F3A",
    "type": "order",
    "version": 3
  },
  "data": {
    "object": "order",
    "id": "SUP-1042-7F3A",
    "external_id": "GLOW-1042",
    "livemode": true,
    "status": "shipped",
    "hold_reasons": [],
    "ship_to": {
      "name": "Dana Consumer",
      "company": null,
      "line1": "9 Elm St",
      "line2": "Apt 4",
      "city": "Denver",
      "state": "CO",
      "postal_code": "80202",
      "country": "US",
      "phone": "555-0100"
    },
    "lines": [
      {
        "sku": "PL-BPC-GLOW",
        "name": "BPC-157 10mg (Glow label)",
        "quantity": 2,
        "shipped_quantity": 2,
        "unit_price_cents": 1800,
        "total_cents": 3600
      }
    ],
    "total_cents": 8600,
    "subtotal_cents": 3600,
    "currency": "USD",
    "shipping_method": "ground",
    "notes": "Gift",
    "shipments": [
      {
        "lines": [
          {
            "sku": "PL-BPC-GLOW",
            "quantity": 2
          }
        ],
        "tracking_number": "1Z999AA10123456784",
        "carrier": "UPS"
      }
    ],
    "shipped_at": "2026-11-03T15:12:17Z",
    "delivered_at": null,
    "cancelled_at": null,
    "created_at": "2026-11-03T15:06:49Z",
    "updated_at": "2026-11-03T15:12:58Z",
    "shipping_cents": 5000
  },
  "created_at": "2026-11-03T15:13:39Z"
}

4. When something goes wrong

  • The product is out of stock. The order is accepted and held; it ships by itself when stock arrives. If the customer changes their mind first, cancel it: while it is held that is immediate.
Response
201 Created· Request-Id: req_…
{
  "object": "order",
  "id": "SUP-1043-81EB",
  "external_id": "GLOW-1043",
  "livemode": true,
  "status": "held",
  "hold_reasons": [
    {
      "lines": [
        {
          "sku": "PL-GHK-GLOW",
          "available": 1,
          "ordered": 5
        }
      ],
      "code": "stock",
      "message": "Not all lines are in stock."
    }
  ],
  "ship_to": {
    "name": "Dana Consumer",
    "company": null,
    "line1": "9 Elm St",
    "line2": "Apt 4",
    "city": "Denver",
    "state": "CO",
    "postal_code": "80202",
    "country": "US",
    "phone": "555-0100"
  },
  "lines": [
    {
      "sku": "PL-GHK-GLOW",
      "name": "GHK-Cu 50mg (Glow label)",
      "quantity": 5,
      "shipped_quantity": 0,
      "unit_price_cents": 2200,
      "total_cents": 11000
    }
  ],
  "total_cents": 16000,
  "subtotal_cents": 11000,
  "currency": "USD",
  "shipping_method": null,
  "notes": null,
  "shipments": [],
  "shipped_at": null,
  "delivered_at": null,
  "cancelled_at": null,
  "created_at": "2026-11-03T15:07:30Z",
  "updated_at": "2026-11-03T15:07:30Z",
  "shipping_cents": 5000
}
  • The customer cancels after the warehouse started. You get 409 order_in_fulfillment. The parcel is on its way: refuse the cancellation, or contact Supplied.
  • Glow's server was down for an hour. Supplied retries each delivery for 3 days, but don't depend on that alone. Once a minute (and at start-up), run the catch-up job. It reads every event Glow hasn't processed, in order, and feeds each one to the same handler the webhook uses, so there is only one code path to get right. Store the sequence it returns.
catch-up.mjs
// After an outage, a deploy, or on a schedule: read every event you haven't processed, in order.
// Keep `after` (the last sequence you finished) in your database, and call this with it.
export async function catchUp({ baseUrl, apiKey, after, handle, fetch = globalThis.fetch }) {
  let last = after;
  for (;;) {
    const res = await fetch(`${baseUrl}/events?after=${last}&limit=100`, { headers: { Authorization: `Bearer ${apiKey}` } });
    if (!res.ok) throw new Error(`events: ${res.status} ${(await res.json()).error?.code}`);
    const page = await res.json();
    for (const event of page.data) { await handle(event); last = event.sequence; } // use the same handler as your webhook
    if (!page.has_more) return last; // store this one
  }
}
Try all of this before going live.With a test key the same calls work without a warehouse: ship and deliver a test order and watch your receiver get the same webhooks a real shipment sends. Then swap in the live key. Going-live checklist.

Authentication and test mode

Send your key on every call:

Header
Authorization: Bearer sk_test_…
KeyUse it for
sk_test_…Building and testing. Orders are checked and priced exactly like real ones, but they never reach the warehouse or an invoice. Test orders go through the same checks as live ones (your account must be on net terms, SKUs, minimums, professional products), but nothing is held: a test order is received, then shipped and delivered with the helpers, or cancelled (always at once). So held, processing, partially_shipped and cancel_requested and the events order.held, order.released and order.partially_shipped only happen with live orders.
sk_live_…Real orders, shipped and invoiced.
  • Test and live never mix. A test key only sees test orders and test webhook endpoints, and a live key only live ones. A test order's id starts with TEST-.
  • Keep keys on your server. The API does not allow calls from web pages. Never put a key in a browser or a mobile app.
  • If a key leaks, ask Supplied to revoke it and issue a new one. A revoked key stops working at once.
  • Stock and catalog events go to both modes. Order events go to the mode of the order.

A missing or bad key is 401 invalid_api_key.

Response
401 Unauthorized· Request-Id: req_…
{
  "error": {
    "code": "invalid_api_key",
    "message": "Send your API key as: Authorization: Bearer sk_live_… (or sk_test_…)."
  }
}

Orders and their lifecycle

An order moves through these statuses. You are told of most changes by webhook, and you can always read the order.

received→held→processing→partially_shipped→shipped→delivered
StatusMeaning
receivedAccepted, being checked.
heldWaiting at Supplied. hold_reasons says why: stock (with the short lines), credit, manual_review or warehouse_setup. A stock hold goes out by itself when the stock arrives, unless something else is holding the order too. manual_review and credit holds are cleared by Supplied.
processingAt the warehouse.
partially_shippedSome of it has shipped. Each line's shipped_quantity and each package in shipments say what.
shippedAll of it has shipped. shipments holds the tracking numbers and carriers.
deliveredThe carrier reports it delivered.
cancel_requestedYour cancel reached the warehouse; cancelled follows. No webhook is sent for cancel_requested itself (order.cancelled follows), but the order's updated_at moves, so GET /orders?updated_since=… finds it.
cancelledCancelled.

Tracking comes back on the order

When the warehouse ships, the order shows its packages. This is the order from the quickstart after it shipped (we also send it to you as an order.shipped webhook):

Request
Response
200 OK· Request-Id: req_…
{
  "object": "order",
  "id": "SUP-1042-7F3A",
  "external_id": "GLOW-1042",
  "livemode": true,
  "status": "shipped",
  "hold_reasons": [],
  "ship_to": {
    "name": "Dana Consumer",
    "company": null,
    "line1": "9 Elm St",
    "line2": "Apt 4",
    "city": "Denver",
    "state": "CO",
    "postal_code": "80202",
    "country": "US",
    "phone": "555-0100"
  },
  "lines": [
    {
      "sku": "PL-BPC-GLOW",
      "name": "BPC-157 10mg (Glow label)",
      "quantity": 2,
      "shipped_quantity": 2,
      "unit_price_cents": 1800,
      "total_cents": 3600
    }
  ],
  "total_cents": 8600,
  "subtotal_cents": 3600,
  "currency": "USD",
  "shipping_method": "ground",
  "notes": "Gift",
  "shipments": [
    {
      "lines": [
        {
          "sku": "PL-BPC-GLOW",
          "quantity": 2
        }
      ],
      "tracking_number": "1Z999AA10123456784",
      "carrier": "UPS"
    }
  ],
  "shipped_at": "2026-11-03T15:12:17Z",
  "delivered_at": null,
  "cancelled_at": null,
  "created_at": "2026-11-03T15:06:49Z",
  "updated_at": "2026-11-03T15:12:58Z",
  "shipping_cents": 5000
}

A short-stocked order is held

If a line is short, the order is accepted and held; it ships by itself when the stock arrives. You can cancel it while it is held.

Request
Response
201 Created· Request-Id: req_…
{
  "object": "order",
  "id": "SUP-1043-81EB",
  "external_id": "GLOW-1043",
  "livemode": true,
  "status": "held",
  "hold_reasons": [
    {
      "lines": [
        {
          "sku": "PL-GHK-GLOW",
          "available": 1,
          "ordered": 5
        }
      ],
      "code": "stock",
      "message": "Not all lines are in stock."
    }
  ],
  "ship_to": {
    "name": "Dana Consumer",
    "company": null,
    "line1": "9 Elm St",
    "line2": "Apt 4",
    "city": "Denver",
    "state": "CO",
    "postal_code": "80202",
    "country": "US",
    "phone": "555-0100"
  },
  "lines": [
    {
      "sku": "PL-GHK-GLOW",
      "name": "GHK-Cu 50mg (Glow label)",
      "quantity": 5,
      "shipped_quantity": 0,
      "unit_price_cents": 2200,
      "total_cents": 11000
    }
  ],
  "total_cents": 16000,
  "subtotal_cents": 11000,
  "currency": "USD",
  "shipping_method": null,
  "notes": null,
  "shipments": [],
  "shipped_at": null,
  "delivered_at": null,
  "cancelled_at": null,
  "created_at": "2026-11-03T15:07:30Z",
  "updated_at": "2026-11-03T15:07:30Z",
  "shipping_cents": 5000
}

Cancelling

  • While it is held: cancelled at once.
  • At the warehouse but not started: the cancel is sent there. The order shows cancel_requested, then cancelled.
  • Once picking has started: 409 order_in_fulfillment. Contact Supplied.

Cancelling twice returns the order unchanged. To change an order, cancel it and place a new one with a new external_id.

Professional products

Prescription (503A) and PUO products can't be ordered through the API, because a key has no licensed clinician behind it. They are not in your catalog list, and an order for one is refused as professional_product. Order them in the Supplied portal.

Retries and idempotency

If a request times out, send it again. You can't create an order twice by accident.

Your external_id is the order's identity in your account. POST /orders with an external_id we already have:

  • with the same content returns the existing order with 200 (a new order is 201). The order of the fields doesn't matter, but leaving out notes and sending "notes": null count as different content, so resend exactly what you sent;
  • with different content is refused with 409 external_id_conflict, and nothing changes.
Request
Response
200 OK· Request-Id: req_…
{
  "object": "order",
  "id": "SUP-1042-7F3A",
  "external_id": "GLOW-1042",
  "livemode": true,
  "status": "processing",
  "hold_reasons": [],
  "ship_to": {
    "name": "Dana Consumer",
    "company": null,
    "line1": "9 Elm St",
    "line2": "Apt 4",
    "city": "Denver",
    "state": "CO",
    "postal_code": "80202",
    "country": "US",
    "phone": "555-0100"
  },
  "lines": [
    {
      "sku": "PL-BPC-GLOW",
      "name": "BPC-157 10mg (Glow label)",
      "quantity": 2,
      "shipped_quantity": 0,
      "unit_price_cents": 1800,
      "total_cents": 3600
    }
  ],
  "total_cents": 8600,
  "subtotal_cents": 3600,
  "currency": "USD",
  "shipping_method": "ground",
  "notes": "Gift",
  "shipments": [],
  "shipped_at": null,
  "delivered_at": null,
  "cancelled_at": null,
  "created_at": "2026-11-03T15:06:49Z",
  "updated_at": "2026-11-03T15:06:49Z",
  "shipping_cents": 5000
}
Response
409 Conflict· Request-Id: req_…
{
  "error": {
    "code": "external_id_conflict",
    "message": "Order GLOW-1042 already exists with different details.",
    "param": "external_id"
  }
}

What to retry

You gotDo this
A timeout, a dropped connection, or 500Retry the same request after a few seconds, with the same external_id. Back off: 2, 4, 8 seconds.
4xxDon't retry unchanged: the request is wrong or not allowed. Fix it first.

Webhooks

Instead of asking, get told. Subscribe an HTTPS address on your server and we send each change to it: shipments with tracking numbers, deliveries, cancellations and stock.

1. Subscribe

events lists the types you want, or ["*"] for all. The answer includes the endpoint's secret (whsec_…). It is shown only here: store it.

Request
Response
201 Created· Request-Id: req_…
{
  "object": "webhook_endpoint",
  "id": "3f6c1a90-5b7d-4e21-9a4c-7a1c40e2b100",
  "url": "https://api.glowstore.example/supplied-webhooks",
  "events": [
    "inventory.updated",
    "order.delivered",
    "order.shipped"
  ],
  "description": "production",
  "livemode": true,
  "status": "active",
  "secret": "whsec_5d2f7c1e9b0a4d38a6f1c2e7b9d04a83",
  "health": {
    "consecutive_failures": 0,
    "pending": 0
  },
  "verified_at": "2026-11-03T15:09:33Z",
  "created_at": "2026-11-03T15:08:52Z"
}

2. Answer the challenge

Before anything is sent, we POST a challenge to the address. It must answer within 10 seconds with a 2xx and the challenge back, as JSON or as plain text.

We send, you answer
// we send
{ "object": "event", "type": "webhook.verification", "challenge": "9f1c4b7a02de58a3c6710be4d92f5a38" }

// you answer
{ "challenge": "9f1c4b7a02de58a3c6710be4d92f5a38" }

The challenge is signed like any delivery, but its secret only reaches you in the answer to the subscribe call, so you can't check that first signature: answer it as shown. It carries no data, and answering only proves the address is yours. Every later delivery you must verify. A complete receiver that does all of this is in the example.

The endpoint is active once verified. Until then it is pending_verification: we try again every 5 minutes for a day, and keep what happens meanwhile to send, in order, once it's verified. You can also call POST /webhook_endpoints/{id}/verify. Changing the url means verifying again.

3. Verify every delivery

Each delivery is a POST of one event, with these headers:

Supplied-Signaturet=1793718245,v1=5d2f…: the time, and the signature.
Supplied-Event-IdThe event's id.
Supplied-Event-TypeFor example order.shipped.
Supplied-Delivery-Attempt1 the first time, higher on a retry.
Request
Response
200 OK· Request-Id: req_…
{
  "object": "event",
  "id": "evt_8813",
  "sequence": 12,
  "type": "order.shipped",
  "livemode": true,
  "resource": {
    "id": "SUP-1042-7F3A",
    "type": "order",
    "version": 3
  },
  "data": {
    "object": "order",
    "id": "SUP-1042-7F3A",
    "external_id": "GLOW-1042",
    "livemode": true,
    "status": "shipped",
    "hold_reasons": [],
    "ship_to": {
      "name": "Dana Consumer",
      "company": null,
      "line1": "9 Elm St",
      "line2": "Apt 4",
      "city": "Denver",
      "state": "CO",
      "postal_code": "80202",
      "country": "US",
      "phone": "555-0100"
    },
    "lines": [
      {
        "sku": "PL-BPC-GLOW",
        "name": "BPC-157 10mg (Glow label)",
        "quantity": 2,
        "shipped_quantity": 2,
        "unit_price_cents": 1800,
        "total_cents": 3600
      }
    ],
    "total_cents": 8600,
    "subtotal_cents": 3600,
    "currency": "USD",
    "shipping_method": "ground",
    "notes": "Gift",
    "shipments": [
      {
        "lines": [
          {
            "sku": "PL-BPC-GLOW",
            "quantity": 2
          }
        ],
        "tracking_number": "1Z999AA10123456784",
        "carrier": "UPS"
      }
    ],
    "shipped_at": "2026-11-03T15:12:17Z",
    "delivered_at": null,
    "cancelled_at": null,
    "created_at": "2026-11-03T15:06:49Z",
    "updated_at": "2026-11-03T15:12:58Z",
    "shipping_cents": 5000
  },
  "created_at": "2026-11-03T15:13:39Z"
}
Check the signature before you trust a delivery.Compute HMAC-SHA256(secret, "<t>.<raw body>") in hex and compare it with v1 using a constant-time comparison. Reject a t older than 5 minutes. Use the raw body bytes, before any JSON parsing.
verify-webhook.mjs
// Checks that a webhook really came from Supplied. Use the raw request body, before any JSON parsing.
import { createHmac, timingSafeEqual } from 'node:crypto';

export function verifySignature(rawBody, signatureHeader, secret, toleranceSeconds = 300) {
  const parts = Object.fromEntries(signatureHeader.split(',').map((p) => p.split('=')));
  const { t, v1 } = parts;
  if (!t || !v1) return false;
  if (Math.abs(Date.now() / 1000 - Number(t)) > toleranceSeconds) return false;
  const expected = createHmac('sha256', secret).update(`${t}.${rawBody}`).digest('hex');
  return v1.length === expected.length && timingSafeEqual(Buffer.from(v1), Buffer.from(expected));
}
verify-webhook.py
import hmac, hashlib, time

def verify_signature(raw_body: bytes, header: str, secret: str, tolerance_seconds: int = 300) -> bool:
    parts = dict(p.split("=", 1) for p in header.split(","))
    if abs(time.time() - int(parts["t"])) > tolerance_seconds:
        return False
    expected = hmac.new(secret.encode(), f"{parts['t']}.".encode() + raw_body, hashlib.sha256).hexdigest()
    return hmac.compare_digest(expected, parts["v1"])

4. Handle it well

  1. Save the event, then answer 2xx within 10 seconds. Queue anything slow for later. Any other answer, a redirect or a timeout counts as a failure and the event is sent again, so answer 2xx only once it is safely stored.
  2. Drop duplicates by id. Delivery is at least once, so an event can arrive twice.
  3. Drop stale updates by resource.version. Versions only go up for a record: if you already hold a higher version of that order, product or SKU, ignore the event. Events for one record are sent one at a time and in order, but your own retries can reorder them.
  4. Treat data as the whole current state, never a change. A stock event says "37 available", never "−1".

Event types

TypedataWhen
order.createdThe orderYou placed an order.
order.heldThe orderIt is waiting at Supplied (hold_reasons says why).
order.releasedThe orderIt was sent to the warehouse.
order.partially_shippedThe orderSome of it shipped. shipments and each line's shipped_quantity say what.
order.shippedThe orderAll of it shipped. shipments holds the tracking numbers.
order.deliveredThe orderThe carrier reports it delivered.
order.cancelledThe orderIt was cancelled.
inventory.updated{ sku, available, as_of }Stock changed. A newer stock event replaces an older one still waiting.
product.addedThe productA product joined your catalog.
product.updatedThe productA product changed.
price.updatedThe productYour price or a price tier changed.
product.removed{ sku, removed: true }A product left your catalog.
ping—A test, from POST /webhook_endpoints/{id}/test.

An endpoint made with a test key gets test-mode order events. Stock and catalog events go to both modes.

If your server is down

We retry with growing gaps (30 seconds, 1, 5, 15 and 30 minutes, then hourly) for 3 days. Newer stock for a SKU replaces an older stock event still waiting, so you aren't flooded after an outage. An endpoint that answers 410 Gone, or fails for 3 days, is turned off and Supplied is told; its events are kept, and once it's back on (PATCH it to active, or ask Supplied) they are sent in order. An endpoint Supplied turned off itself: contact Supplied to turn it back on.

Response
409 Conflict· Request-Id: req_…
{
  "error": {
    "code": "endpoint_disabled_by_supplied",
    "message": "Supplied turned this endpoint off. Contact Supplied to turn it back on.",
    "param": "status"
  }
}

Good to know

  • The address must be https://, a public name with a dot (no IP addresses, no credentials in the URL), at most 500 characters. Redirects count as failures, and the address we resolve is checked again on every send.
  • You can subscribe to up to 20 event types per endpoint, and events can't be empty.
  • The verification challenge is signed like any delivery, but it has no Supplied-Event-Id or Supplied-Delivery-Attempt header and no id: don't require them there. Answer with the challenge in the first 1,000 bytes of your reply.
  • Stock and catalog events are sent to test endpoints too, with livemode: true. Don't drop an event only because of its livemode.
  • We send User-Agent: Supplied-Webhooks/1.0. There is no fixed list of source IP addresses: rely on the signature.

Check on it

Read an endpoint to see its health, send a test event to check your server now, and list the attempts to find out why deliveries fail.

The event log

Webhooks tell you now. The event log lets you catch up after anything: an outage, a deploy, a missed delivery, or a brand new integration.

  • sequence: your own counter. It only goes up, and can skip numbers.
  • To catch up: store the last sequence you processed. After any gap, read from there with GET /events?after=<sequence> until has_more is false.
  • Retention: events are kept 30 days (longer while one is still waiting to be delivered to you). oldest_sequence is the oldest still available, counted over your whole account, test and live together.
  • Gaps are normal: sequence is shared by your test and live events, so a live key sees numbers skipped.
  • Use: this is how you rebuild anything, with or without webhooks. Process an event the same way whichever way it reached you.
Request
Response
200 OK· Request-Id: req_…
{
  "object": "list",
  "data": [
    {
      "object": "event",
      "id": "evt_8814",
      "sequence": 1,
      "type": "product.added",
      "livemode": true,
      "resource": {
        "id": "PL-BPC-GLOW",
        "type": "product",
        "version": 1
      },
      "data": {
        "object": "product",
        "sku": "PL-BPC-GLOW",
        "name": "BPC-157 10mg (Glow label)",
        "description": "Research peptide, 10 mg vial",
        "unit_price_cents": 1800,
        "currency": "USD",
        "min_quantity": 1,
        "price_tiers": [],
        "available": 100,
        "inventory_as_of": "2026-11-03T15:04:05Z"
      },
      "created_at": "2026-11-03T15:06:08Z"
    },
    {
      "object": "event",
      "id": "evt_8815",
      "sequence": 2,
      "type": "product.added",
      "livemode": true,
      "resource": {
        "id": "PL-GHK-GLOW",
        "type": "product",
        "version": 1
      },
      "data": {
        "object": "product",
        "sku": "PL-GHK-GLOW",
        "name": "GHK-Cu 50mg (Glow label)",
        "description": null,
        "unit_price_cents": 2200,
        "currency": "USD",
        "min_quantity": 1,
        "price_tiers": [],
        "available": 1,
        "inventory_as_of": "2026-11-03T15:04:46Z"
      },
      "created_at": "2026-11-03T15:06:08Z"
    },
    {
      "object": "event",
      "id": "evt_8816",
      "sequence": 3,
      "type": "product.added",
      "livemode": true,
      "resource": {
        "id": "PL-TB4-GLOW",
        "type": "product",
        "version": 1
      },
      "data": {
        "object": "product",
        "sku": "PL-TB4-GLOW",
        "name": "TB-500 5mg (Glow label)",
        "description": null,
        "unit_price_cents": 2600,
        "currency": "USD",
        "min_quantity": 1,
        "price_tiers": [],
        "available": 40,
        "inventory_as_of": "2026-11-03T15:05:27Z"
      },
      "created_at": "2026-11-03T15:06:08Z"
    }
  ],
  "has_more": true,
  "oldest_sequence": 1
}

See GET /events for the parameters.

Going live

Checklist

  1. Your test integration places an order, receives order.shipped and order.delivered webhooks, and reads the tracking number.
  2. Your webhook handler verifies the signature, answers fast, drops duplicates by id and stale updates by resource.version.
  3. You store the last event sequence, and read GET /events after any outage.
  4. You read GET /inventory every 15 minutes as a safety net, and subscribe to inventory.updated.
  5. Your retries reuse the same external_id.
  6. Your live key is on your server only. Ask Supplied for it, and for your live webhook to be set up the same way.

Good to know

  • ship_to.state and ship_to.postal_code are required for every country.
  • GET /orders: limit is clamped to 1–100 rather than refused, and updated_since must be an ISO 8601 time. An order's updated_at moves whenever it changes, including when you ask to cancel it, so reading from the last updated_at you saw finds every change. There is no webhook for cancel_requested itself: order.cancelled follows. Page forward by updated_since (it is inclusive, so expect to see the last order again); starting_after is for a single walk, and an order that changes while you walk can move.
  • GET /inventory?skus= leaves out SKUs that aren't in your catalog.

Not in this version

  • EDI;
  • choosing a carrier or service (the warehouse picks the carrier);
  • returns from your customers (contact Supplied);
  • per-order fees;
  • a per-key rate limit.

Questions, or something you need that isn't here? Contact your Supplied representative, and quote the Request-Id of any call you ask about.

Catalog

What you can order, at your prices, and what is in stock.

List your catalog

GET/products

Your catalog: every product you can order, at your prices, with live stock. Professional products (PUO and 503A) are not listed, because they cannot be ordered through the API. Read it once at start-up and keep it fresh with the product.*, price.updated and inventory.updated events.

Returns

  • 200 a list
Request
Response
200 OK· Request-Id: req_…
{
  "object": "list",
  "data": [
    {
      "object": "product",
      "sku": "PL-BPC-GLOW",
      "name": "BPC-157 10mg (Glow label)",
      "description": "Research peptide, 10 mg vial",
      "unit_price_cents": 1800,
      "currency": "USD",
      "min_quantity": 1,
      "price_tiers": [],
      "available": 100,
      "inventory_as_of": "2026-11-03T15:04:05Z",
      "image_url": "https://api.supplied.example/storage/v1/object/public/supplied-product-photos/forms/v1/bare/vial.jpg"
    },
    {
      "object": "product",
      "sku": "PL-GHK-GLOW",
      "name": "GHK-Cu 50mg (Glow label)",
      "description": null,
      "unit_price_cents": 2200,
      "currency": "USD",
      "min_quantity": 1,
      "price_tiers": [],
      "available": 1,
      "inventory_as_of": "2026-11-03T15:04:46Z",
      "image_url": "https://api.supplied.example/storage/v1/object/public/supplied-product-photos/forms/v1/bare/vial.jpg"
    },
    {
      "object": "product",
      "sku": "PL-TB4-GLOW",
      "name": "TB-500 5mg (Glow label)",
      "description": null,
      "unit_price_cents": 2600,
      "currency": "USD",
      "min_quantity": 5,
      "price_tiers": [],
      "available": 40,
      "inventory_as_of": "2026-11-03T15:05:27Z",
      "image_url": "https://api.supplied.example/storage/v1/object/public/supplied-product-photos/forms/v1/bare/vial.jpg"
    }
  ]
}

Read stock

GET/inventory

Just the stock: sku, available and as_of, for all your SKUs or the ones you name. Subscribe to inventory.updated to stay current, and read this every 15 minutes as a safety net.

Query parameters

FieldDescription
skus
string
Comma-separated SKUs. Leave out for all.

Returns

  • 200 a list
Request
Response
200 OK· Request-Id: req_…
{
  "object": "list",
  "data": [
    {
      "object": "inventory",
      "sku": "PL-BPC-GLOW",
      "available": 100,
      "as_of": "2026-11-03T15:04:05Z"
    },
    {
      "object": "inventory",
      "sku": "PL-GHK-GLOW",
      "available": 1,
      "as_of": "2026-11-03T15:04:46Z"
    },
    {
      "object": "inventory",
      "sku": "PL-TB4-GLOW",
      "available": 40,
      "as_of": "2026-11-03T15:05:27Z"
    }
  ]
}

Orders

Place, read and cancel orders. Idempotent on your own order number.

Place an order

POST/orders

Sends one customer order to Supplied. We pick, pack and ship it in your name.

Idempotent on external_id: if a request times out, send it again. The same external_id with the same content returns the existing order with 200 and never creates a second one; with different content it is 409 external_id_conflict. A new order answers 201.

If a line is short of stock the order is held (see hold_reasons) and goes out by itself when stock arrives. Your account must be invoiced on net terms: orders are invoiced when they ship, with shipping at your account's flat price per order, or at the warehouse's cost when it has none.

Body

FieldDescription
external_idrequired
string
Your order number. Unique in your account, and how a retry is recognised: the same external_id with the same content returns the existing order.
ship_torequired
object
ship_to.namerequired
string
Who the parcel is for.
ship_to.company
string | null
ship_to.line1required
string
ship_to.line2
string | null
ship_to.cityrequired
string
ship_to.staterequired
string
ship_to.postal_coderequired
string
ship_to.countryrequired
string
Two letters
ship_to.phone
string | null
The carrier gets it. We never ask for your customer's email, and we never contact them.
linesrequired
object[]
One line per SKU. Prices come from your catalog; you do not send them.
lines[].skurequired
string
lines[].quantityrequired
integer
A whole number, at least the product's min_quantity.
notes
string | null
Kept on the order for Supplied.
shipping_method
string | null
Kept on the order. When your account has a freight price for this method (a key such as standard, fedex-2day or next-day), the order is billed that freight and the warehouse ships with the matching service; otherwise your account's usual shipping applies.

Returns

  • 200 Order object — the same order was already placed
  • 201 Order object — created

Errors

CodeStatusWhen
invalid_request400The request is malformed: the body is not JSON, a required field is missing, a field has the wrong type, or a query parameter is not valid.
unknown_sku422A SKU is not in your catalog.
below_minimum422A line is below the product's min_quantity for your account.
not_in_step422A line's quantity is not a multiple of the product's order step for your account (for example 25 of a product sold in 10s).
professional_product422PUO and 503A (prescription) products cannot be ordered through the API: a key has no licensed clinician behind it.
external_id_conflict409You already placed an order with this external_id, and this request has different content.
account_not_on_terms403Orders go on your account and are invoiced when they ship.
account_suspended403Your account is suspended.
partner_disabled403API ordering is turned off for your account.

Every call can also answer 401 invalid_api_key and 500 internal_error.

Request
Response
201 Created· Request-Id: req_…
{
  "object": "order",
  "id": "SUP-1042-7F3A",
  "external_id": "GLOW-1042",
  "livemode": true,
  "status": "processing",
  "hold_reasons": [],
  "ship_to": {
    "name": "Dana Consumer",
    "company": null,
    "line1": "9 Elm St",
    "line2": "Apt 4",
    "city": "Denver",
    "state": "CO",
    "postal_code": "80202",
    "country": "US",
    "phone": "555-0100"
  },
  "lines": [
    {
      "sku": "PL-BPC-GLOW",
      "name": "BPC-157 10mg (Glow label)",
      "quantity": 2,
      "shipped_quantity": 0,
      "unit_price_cents": 1800,
      "total_cents": 3600
    }
  ],
  "total_cents": 8600,
  "subtotal_cents": 3600,
  "currency": "USD",
  "shipping_method": "ground",
  "notes": "Gift",
  "shipments": [],
  "shipped_at": null,
  "delivered_at": null,
  "cancelled_at": null,
  "created_at": "2026-11-03T15:06:49Z",
  "updated_at": "2026-11-03T15:06:49Z",
  "shipping_cents": 5000
}

List orders

GET/orders

Your orders that changed since a time, oldest change first, so you can walk forward through your changes. updated_since must be an ISO 8601 time, and limit is clamped to 1 to 100. Page with starting_after=<the last id you got> while has_more is true.

Query parameters

FieldDescription
updated_since
string
Only orders changed at or after this time.
starting_after
string
The id of the last order of the previous page.
limit
integer
How many to return. Default 50.

Returns

  • 200 a list

Errors

CodeStatusWhen
invalid_request400The request is malformed: the body is not JSON, a required field is missing, a field has the wrong type, or a query parameter is not valid.

Every call can also answer 401 invalid_api_key and 500 internal_error.

Request
Response
200 OK· Request-Id: req_…
{
  "object": "list",
  "data": [
    {
      "object": "order",
      "id": "SUP-1043-81EB",
      "external_id": "GLOW-1043",
      "livemode": true,
      "status": "cancelled",
      "hold_reasons": [],
      "ship_to": {
        "name": "Dana Consumer",
        "company": null,
        "line1": "9 Elm St",
        "line2": "Apt 4",
        "city": "Denver",
        "state": "CO",
        "postal_code": "80202",
        "country": "US",
        "phone": "555-0100"
      },
      "lines": [
        {
          "sku": "PL-GHK-GLOW",
          "name": "GHK-Cu 50mg (Glow label)",
          "quantity": 5,
          "shipped_quantity": 0,
          "unit_price_cents": 2200,
          "total_cents": 11000
        }
      ],
      "total_cents": 16000,
      "subtotal_cents": 11000,
      "currency": "USD",
      "shipping_method": null,
      "notes": null,
      "shipments": [],
      "shipped_at": null,
      "delivered_at": null,
      "cancelled_at": "2026-11-03T15:08:11Z",
      "created_at": "2026-11-03T15:07:30Z",
      "updated_at": "2026-11-03T15:08:11Z",
      "shipping_cents": 5000
    },
    {
      "object": "order",
      "id": "SUP-1042-7F3A",
      "external_id": "GLOW-1042",
      "livemode": true,
      "status": "shipped",
      "hold_reasons": [],
      "ship_to": {
        "name": "Dana Consumer",
        "company": null,
        "line1": "9 Elm St",
        "line2": "Apt 4",
        "city": "Denver",
        "state": "CO",
        "postal_code": "80202",
        "country": "US",
        "phone": "555-0100"
      },
      "lines": [
        {
          "sku": "PL-BPC-GLOW",
          "name": "BPC-157 10mg (Glow label)",
          "quantity": 2,
          "shipped_quantity": 2,
          "unit_price_cents": 1800,
          "total_cents": 3600
        }
      ],
      "total_cents": 8600,
      "subtotal_cents": 3600,
      "currency": "USD",
      "shipping_method": "ground",
      "notes": "Gift",
      "shipments": [
        {
          "lines": [
            {
              "sku": "PL-BPC-GLOW",
              "quantity": 2
            }
          ],
          "tracking_number": "1Z999AA10123456784",
          "carrier": "UPS"
        }
      ],
      "shipped_at": "2026-11-03T15:12:17Z",
      "delivered_at": null,
      "cancelled_at": null,
      "created_at": "2026-11-03T15:06:49Z",
      "updated_at": "2026-11-03T15:13:39Z",
      "shipping_cents": 5000
    }
  ],
  "has_more": true
}

Read an order

GET/orders/{id}

One order, by our id or by your own external_id. A test key sees only test orders and a live key only live orders.

Path parameters

FieldDescription
idrequired
string
Our id (SUP-… for live orders, TEST-… for test orders) or your own external_id.

Returns

Errors

CodeStatusWhen
order_not_found404No order of yours has this id or external_id in this mode.

Every call can also answer 401 invalid_api_key and 500 internal_error.

Request
Response
200 OK· Request-Id: req_…
{
  "object": "order",
  "id": "SUP-1042-7F3A",
  "external_id": "GLOW-1042",
  "livemode": true,
  "status": "shipped",
  "hold_reasons": [],
  "ship_to": {
    "name": "Dana Consumer",
    "company": null,
    "line1": "9 Elm St",
    "line2": "Apt 4",
    "city": "Denver",
    "state": "CO",
    "postal_code": "80202",
    "country": "US",
    "phone": "555-0100"
  },
  "lines": [
    {
      "sku": "PL-BPC-GLOW",
      "name": "BPC-157 10mg (Glow label)",
      "quantity": 2,
      "shipped_quantity": 2,
      "unit_price_cents": 1800,
      "total_cents": 3600
    }
  ],
  "total_cents": 8600,
  "subtotal_cents": 3600,
  "currency": "USD",
  "shipping_method": "ground",
  "notes": "Gift",
  "shipments": [
    {
      "lines": [
        {
          "sku": "PL-BPC-GLOW",
          "quantity": 2
        }
      ],
      "tracking_number": "1Z999AA10123456784",
      "carrier": "UPS"
    }
  ],
  "shipped_at": "2026-11-03T15:12:17Z",
  "delivered_at": null,
  "cancelled_at": null,
  "created_at": "2026-11-03T15:06:49Z",
  "updated_at": "2026-11-03T15:12:58Z",
  "shipping_cents": 5000
}

Cancel an order

POST/orders/{id}/cancel

While the order is held it is cancelled at once. If it is at the warehouse but not started, the cancel is sent there: the order shows cancel_requested, then cancelled. Once picking has started it is 409 order_in_fulfillment: contact Supplied. Cancelling twice returns the order unchanged.

Path parameters

FieldDescription
idrequired
string
Our id (SUP-… for live orders, TEST-… for test orders) or your own external_id.

Body

FieldDescription
reason
string
Kept on the order.

Returns

Errors

CodeStatusWhen
order_not_found404No order of yours has this id or external_id in this mode.
order_in_fulfillment409The warehouse has started the order, or it has shipped, so it can no longer be cancelled.

Every call can also answer 401 invalid_api_key and 500 internal_error.

Request
Response
200 OK· Request-Id: req_…
{
  "object": "order",
  "id": "SUP-1043-81EB",
  "external_id": "GLOW-1043",
  "livemode": true,
  "status": "cancelled",
  "hold_reasons": [],
  "ship_to": {
    "name": "Dana Consumer",
    "company": null,
    "line1": "9 Elm St",
    "line2": "Apt 4",
    "city": "Denver",
    "state": "CO",
    "postal_code": "80202",
    "country": "US",
    "phone": "555-0100"
  },
  "lines": [
    {
      "sku": "PL-GHK-GLOW",
      "name": "GHK-Cu 50mg (Glow label)",
      "quantity": 5,
      "shipped_quantity": 0,
      "unit_price_cents": 2200,
      "total_cents": 11000
    }
  ],
  "total_cents": 16000,
  "subtotal_cents": 11000,
  "currency": "USD",
  "shipping_method": null,
  "notes": null,
  "shipments": [],
  "shipped_at": null,
  "delivered_at": null,
  "cancelled_at": "2026-11-03T15:08:11Z",
  "created_at": "2026-11-03T15:07:30Z",
  "updated_at": "2026-11-03T15:08:11Z",
  "shipping_cents": 5000
}

Test mode

Move test orders along without a warehouse (test keys only).

Ship a test order

POST/test_helpers/orders/{id}/ship

Test keys only. Moves a test order to shipped with a tracking number, and sends the same webhooks a real shipment would. The body is optional.

Path parameters

FieldDescription
idrequired
string
Our id (SUP-… for live orders, TEST-… for test orders) or your own external_id.

Body

FieldDescription
tracking_number
string
carrier
string

Returns

Errors

CodeStatusWhen
test_mode_only403A test helper was called with a live key.
order_not_found404No order of yours has this id or external_id in this mode.
invalid_state409The action does not fit the current state, for example shipping a test order that has already shipped, delivering one that has not, or sending a test event that is already being sent.

Every call can also answer 401 invalid_api_key and 500 internal_error.

Request
Response
200 OK· Request-Id: req_…
{
  "object": "order",
  "id": "TEST-1046-89FE",
  "external_id": "TEST-RUN-1",
  "livemode": false,
  "status": "shipped",
  "hold_reasons": [],
  "ship_to": {
    "name": "Dana Consumer",
    "company": null,
    "line1": "9 Elm St",
    "line2": "Apt 4",
    "city": "Denver",
    "state": "CO",
    "postal_code": "80202",
    "country": "US",
    "phone": "555-0100"
  },
  "lines": [
    {
      "sku": "PL-BPC-GLOW",
      "name": "BPC-157 10mg (Glow label)",
      "quantity": 2,
      "shipped_quantity": 2,
      "unit_price_cents": 1800,
      "total_cents": 3600
    }
  ],
  "total_cents": 8600,
  "subtotal_cents": 3600,
  "currency": "USD",
  "shipping_method": null,
  "notes": null,
  "shipments": [
    {
      "lines": [
        {
          "sku": "PL-BPC-GLOW",
          "quantity": 2
        }
      ],
      "tracking_number": "1ZTEST0000000001",
      "carrier": "UPS"
    }
  ],
  "shipped_at": "2026-11-03T15:17:45Z",
  "delivered_at": null,
  "cancelled_at": null,
  "created_at": "2026-11-03T15:17:04Z",
  "updated_at": "2026-11-03T15:17:45Z",
  "shipping_cents": 5000
}

Deliver a test order

POST/test_helpers/orders/{id}/deliver

Test keys only. Moves a shipped test order to delivered, and sends the order.delivered webhook.

Path parameters

FieldDescription
idrequired
string
Our id (SUP-… for live orders, TEST-… for test orders) or your own external_id.

Returns

Errors

CodeStatusWhen
test_mode_only403A test helper was called with a live key.
order_not_found404No order of yours has this id or external_id in this mode.
invalid_state409The action does not fit the current state, for example shipping a test order that has already shipped, delivering one that has not, or sending a test event that is already being sent.

Every call can also answer 401 invalid_api_key and 500 internal_error.

Request
Response
200 OK· Request-Id: req_…
{
  "object": "order",
  "id": "TEST-1046-89FE",
  "external_id": "TEST-RUN-1",
  "livemode": false,
  "status": "delivered",
  "hold_reasons": [],
  "ship_to": {
    "name": "Dana Consumer",
    "company": null,
    "line1": "9 Elm St",
    "line2": "Apt 4",
    "city": "Denver",
    "state": "CO",
    "postal_code": "80202",
    "country": "US",
    "phone": "555-0100"
  },
  "lines": [
    {
      "sku": "PL-BPC-GLOW",
      "name": "BPC-157 10mg (Glow label)",
      "quantity": 2,
      "shipped_quantity": 2,
      "unit_price_cents": 1800,
      "total_cents": 3600
    }
  ],
  "total_cents": 8600,
  "subtotal_cents": 3600,
  "currency": "USD",
  "shipping_method": null,
  "notes": null,
  "shipments": [
    {
      "lines": [
        {
          "sku": "PL-BPC-GLOW",
          "quantity": 2
        }
      ],
      "tracking_number": "1ZTEST0000000001",
      "carrier": "UPS"
    }
  ],
  "shipped_at": "2026-11-03T15:17:45Z",
  "delivered_at": "2026-11-03T15:18:26Z",
  "cancelled_at": null,
  "created_at": "2026-11-03T15:17:04Z",
  "updated_at": "2026-11-03T15:18:26Z",
  "shipping_cents": 5000
}

Webhooks

Be told when something changes. Signed, retried, and verified before anything is sent.

Subscribe an address

POST/webhook_endpoints

Subscribes an HTTPS address to your events. Before anything is sent we POST a challenge to it and it must answer within 10 seconds (see Webhooks). The answer includes the endpoint's secret: it is shown here only, so store it. You can have up to 5 endpoints per mode.

Body

FieldDescription
urlrequired
string
An https:// address on your server.
events
string[]
The event types you want, or ["*"] for all. Default ["*"].
description
string

Returns

Errors

CodeStatusWhen
invalid_url400The webhook address is not an HTTPS URL we can send to (plain http, a private or internal address, or a malformed URL).
invalid_request400The request is malformed: the body is not JSON, a required field is missing, a field has the wrong type, or a query parameter is not valid.
too_many_endpoints409An account can have at most 5 webhook endpoints per mode.

Every call can also answer 401 invalid_api_key and 500 internal_error.

Request
Response
201 Created· Request-Id: req_…
{
  "object": "webhook_endpoint",
  "id": "3f6c1a90-5b7d-4e21-9a4c-7a1c40e2b100",
  "url": "https://api.glowstore.example/supplied-webhooks",
  "events": [
    "inventory.updated",
    "order.delivered",
    "order.shipped"
  ],
  "description": "production",
  "livemode": true,
  "status": "active",
  "secret": "whsec_5d2f7c1e9b0a4d38a6f1c2e7b9d04a83",
  "health": {
    "consecutive_failures": 0,
    "pending": 0
  },
  "verified_at": "2026-11-03T15:09:33Z",
  "created_at": "2026-11-03T15:08:52Z"
}

List endpoints

GET/webhook_endpoints

Your webhook endpoints for this key's mode. The secret is never included.

Returns

  • 200 a list
Request
Response
200 OK· Request-Id: req_…
{
  "object": "list",
  "data": [
    {
      "object": "webhook_endpoint",
      "id": "3f6c1a90-5b7d-4e21-9a4c-7a1c40e2b100",
      "url": "https://api.glowstore.example/supplied-webhooks",
      "events": [
        "inventory.updated",
        "order.delivered",
        "order.shipped"
      ],
      "description": "production",
      "livemode": true,
      "status": "active",
      "health": {
        "consecutive_failures": 0,
        "pending": 0
      },
      "verified_at": "2026-11-03T15:09:33Z",
      "created_at": "2026-11-03T15:08:52Z"
    }
  ],
  "has_more": false
}

Read an endpoint

GET/webhook_endpoints/{id}

One endpoint with its health: last success and failure, the last error, failures in a row, and how many events are waiting.

Path parameters

FieldDescription
idrequired
string
The webhook endpoint's id.

Returns

Errors

CodeStatusWhen
endpoint_not_found404No webhook endpoint of yours has this id in this mode.

Every call can also answer 401 invalid_api_key and 500 internal_error.

Request
Response
200 OK· Request-Id: req_…
{
  "object": "webhook_endpoint",
  "id": "3f6c1a90-5b7d-4e21-9a4c-7a1c40e2b100",
  "url": "https://api.glowstore.example/supplied-webhooks",
  "events": [
    "inventory.updated",
    "order.delivered",
    "order.shipped"
  ],
  "description": "production",
  "livemode": true,
  "status": "active",
  "health": {
    "consecutive_failures": 0,
    "pending": 0
  },
  "verified_at": "2026-11-03T15:09:33Z",
  "created_at": "2026-11-03T15:08:52Z"
}

Change, pause or resume an endpoint

PATCH/webhook_endpoints/{id}

Change url, events or description, or set status to paused or active. Changing the url means verifying again. An endpoint Supplied turned off: contact Supplied to turn it back on.

Path parameters

FieldDescription
idrequired
string
The webhook endpoint's id.

Body

FieldDescription
url
string
events
string[]
description
string
status
enum
activepaused

Returns

Errors

CodeStatusWhen
endpoint_not_found404No webhook endpoint of yours has this id in this mode.
endpoint_disabled_by_supplied409Supplied turned this endpoint off.
not_verified409The webhook endpoint has not answered our challenge yet.
invalid_url400The webhook address is not an HTTPS URL we can send to (plain http, a private or internal address, or a malformed URL).
invalid_request400The request is malformed: the body is not JSON, a required field is missing, a field has the wrong type, or a query parameter is not valid.

Every call can also answer 401 invalid_api_key and 500 internal_error.

Request
Response
200 OK· Request-Id: req_…
{
  "object": "webhook_endpoint",
  "id": "3f6c1a90-5b7d-4e21-9a4c-7a1c40e2b100",
  "url": "https://api.glowstore.example/supplied-webhooks",
  "events": [
    "inventory.updated",
    "order.delivered",
    "order.shipped"
  ],
  "description": "production (v2)",
  "livemode": true,
  "status": "paused",
  "health": {
    "last_success_at": "2026-11-03T15:10:14Z",
    "consecutive_failures": 0,
    "pending": 0
  },
  "verified_at": "2026-11-03T15:09:33Z",
  "created_at": "2026-11-03T15:08:52Z"
}

Unsubscribe

DELETE/webhook_endpoints/{id}

Deletes the endpoint: nothing more is sent to it.

Path parameters

FieldDescription
idrequired
string
The webhook endpoint's id.

Returns

  • 200 a confirmation

Errors

CodeStatusWhen
endpoint_not_found404No webhook endpoint of yours has this id in this mode.

Every call can also answer 401 invalid_api_key and 500 internal_error.

Request
Response
200 OK· Request-Id: req_…
{
  "object": "webhook_endpoint",
  "id": "3f6c1a90-5b7d-4e21-9a4c-7a1c40e2b2f3",
  "deleted": true
}

Verify an endpoint again

POST/webhook_endpoints/{id}/verify

Sends the verification challenge again. The endpoint is active once your server answers it correctly. An endpoint that is already active is returned as it is, with no new challenge.

Path parameters

FieldDescription
idrequired
string
The webhook endpoint's id.

Returns

Errors

CodeStatusWhen
endpoint_not_found404No webhook endpoint of yours has this id in this mode.

Every call can also answer 401 invalid_api_key and 500 internal_error.

Request
Response
200 OK· Request-Id: req_…
{
  "object": "webhook_endpoint",
  "id": "3f6c1a90-5b7d-4e21-9a4c-7a1c40e2b2f3",
  "url": "https://lazy.glowstore.example/hooks",
  "events": [
    "*"
  ],
  "livemode": true,
  "status": "active",
  "health": {
    "consecutive_failures": 0,
    "pending": 0
  },
  "verified_at": "2026-11-03T15:11:36Z",
  "created_at": "2026-11-03T15:10:55Z"
}

Send a test event

POST/webhook_endpoints/{id}/test

Sends a ping now, signed like any real event, and answers with the result: your server's status code, the time taken and any error. Your server's response body is not returned (it is in your own logs).

Path parameters

FieldDescription
idrequired
string
The webhook endpoint's id.

Returns

Errors

CodeStatusWhen
endpoint_not_found404No webhook endpoint of yours has this id in this mode.
not_verified409The webhook endpoint has not answered our challenge yet.
invalid_state409The action does not fit the current state, for example shipping a test order that has already shipped, delivering one that has not, or sending a test event that is already being sent.

Every call can also answer 401 invalid_api_key and 500 internal_error.

Request
Response
200 OK· Request-Id: req_…
{
  "object": "delivery_attempt",
  "event_id": "evt_8812",
  "ok": true,
  "status_code": 200,
  "duration_ms": 118,
  "error": null
}

List delivery attempts

GET/webhook_endpoints/{id}/attempts

Every attempt to reach this endpoint, newest first: use it to find out why deliveries are failing.

Path parameters

FieldDescription
idrequired
string
The webhook endpoint's id.

Query parameters

FieldDescription
limit
integer
How many to return.

Returns

  • 200 a list

Errors

CodeStatusWhen
endpoint_not_found404No webhook endpoint of yours has this id in this mode.

Every call can also answer 401 invalid_api_key and 500 internal_error.

Request
Response
200 OK· Request-Id: req_…
{
  "object": "list",
  "data": [
    {
      "object": "delivery_attempt",
      "id": 2,
      "kind": "event",
      "event_id": "evt_8812",
      "event_type": "ping",
      "attempted_at": "2026-11-03T15:10:14Z",
      "ok": true,
      "status_code": 200,
      "duration_ms": 118,
      "error": null
    },
    {
      "object": "delivery_attempt",
      "id": 1,
      "kind": "verification",
      "event_id": null,
      "event_type": null,
      "attempted_at": "2026-11-03T15:09:33Z",
      "ok": true,
      "status_code": 200,
      "duration_ms": 118,
      "error": null
    }
  ]
}

Events

The replay log behind the webhooks. Catch up after any gap.

Read the event log

GET/events

Your events in order, kept for 30 days (longer while one is still waiting to be delivered). Store the last sequence you processed and, after any gap (an outage, a deploy, a missed webhook), read from there. This is how you rebuild anything, with or without webhooks.

Query parameters

FieldDescription
after
integer
Only events with a higher sequence. Default 0.
limit
integer
How many to return. Default 100.
types
string
Comma-separated event types to keep.

Returns

  • 200 a list

Errors

CodeStatusWhen
invalid_request400The request is malformed: the body is not JSON, a required field is missing, a field has the wrong type, or a query parameter is not valid.

Every call can also answer 401 invalid_api_key and 500 internal_error.

Request
Response
200 OK· Request-Id: req_…
{
  "object": "list",
  "data": [
    {
      "object": "event",
      "id": "evt_8814",
      "sequence": 1,
      "type": "product.added",
      "livemode": true,
      "resource": {
        "id": "PL-BPC-GLOW",
        "type": "product",
        "version": 1
      },
      "data": {
        "object": "product",
        "sku": "PL-BPC-GLOW",
        "name": "BPC-157 10mg (Glow label)",
        "description": "Research peptide, 10 mg vial",
        "unit_price_cents": 1800,
        "currency": "USD",
        "min_quantity": 1,
        "price_tiers": [],
        "available": 100,
        "inventory_as_of": "2026-11-03T15:04:05Z"
      },
      "created_at": "2026-11-03T15:06:08Z"
    },
    {
      "object": "event",
      "id": "evt_8815",
      "sequence": 2,
      "type": "product.added",
      "livemode": true,
      "resource": {
        "id": "PL-GHK-GLOW",
        "type": "product",
        "version": 1
      },
      "data": {
        "object": "product",
        "sku": "PL-GHK-GLOW",
        "name": "GHK-Cu 50mg (Glow label)",
        "description": null,
        "unit_price_cents": 2200,
        "currency": "USD",
        "min_quantity": 1,
        "price_tiers": [],
        "available": 1,
        "inventory_as_of": "2026-11-03T15:04:46Z"
      },
      "created_at": "2026-11-03T15:06:08Z"
    },
    {
      "object": "event",
      "id": "evt_8816",
      "sequence": 3,
      "type": "product.added",
      "livemode": true,
      "resource": {
        "id": "PL-TB4-GLOW",
        "type": "product",
        "version": 1
      },
      "data": {
        "object": "product",
        "sku": "PL-TB4-GLOW",
        "name": "TB-500 5mg (Glow label)",
        "description": null,
        "unit_price_cents": 2600,
        "currency": "USD",
        "min_quantity": 1,
        "price_tiers": [],
        "available": 40,
        "inventory_as_of": "2026-11-03T15:05:27Z"
      },
      "created_at": "2026-11-03T15:06:08Z"
    }
  ],
  "has_more": true,
  "oldest_sequence": 1
}

Webhook delivery

What your server receives. See Webhooks for verification, signatures and retries.

A delivery to your server

WEBHOOKPOST your webhook address

One event, signed: Supplied-Signature: t=…,v1=HMAC-SHA256(secret, "<t>.<raw body>"). Save the event, then answer any 2xx within 10 seconds (queue anything slow).

The event

FieldDescription
object
"event"
id
string
Unique. Drop a delivery whose id you have already processed.
sequence
integer
Your own counter. Only goes up, and can skip numbers. Use it to catch up with GET /events.
type
string
created_at
string
livemode
boolean
resource
object
What changed. Versions only go up for a record, so ignore an event whose version you already hold.
resource.type
enum
orderinventoryproductendpoint
resource.id
string
resource.version
integer
data
object
The record's full state at that moment, never a change.

Returns

  • 200 a list — answer any 2xx within 10 seconds
What your server receives
POST /supplied-webhooks HTTP/1.1
Content-Type: application/json
Supplied-Delivery-Attempt: 1
Supplied-Event-Id: evt_8813
Supplied-Event-Type: order.shipped
Supplied-Signature: t=1793718245,v1=5d2f7c1e9b0a4d38a6f1c2e7b9d04a83e1f06c92b7a45d3180e9fa26c4b7d531

{
  "object": "event",
  "id": "evt_8813",
  "sequence": 12,
  "type": "order.shipped",
  "livemode": true,
  "resource": {
    "id": "SUP-1042-7F3A",
    "type": "order",
    "version": 3
  },
  "data": {
    "object": "order",
    "id": "SUP-1042-7F3A",
    "external_id": "GLOW-1042",
    "livemode": true,
    "status": "shipped",
    "hold_reasons": [],
    "ship_to": {
      "name": "Dana Consumer",
      "company": null,
      "line1": "9 Elm St",
      "line2": "Apt 4",
      "city": "Denver",
      "state": "CO",
      "postal_code": "80202",
      "country": "US",
      "phone": "555-0100"
    },
    "lines": [
      {
        "sku": "PL-BPC-GLOW",
        "name": "BPC-157 10mg (Glow label)",
        "quantity": 2,
        "shipped_quantity": 2,
        "unit_price_cents": 1800,
        "total_cents": 3600
      }
    ],
    "total_cents": 8600,
    "subtotal_cents": 3600,
    "currency": "USD",
    "shipping_method": "ground",
    "notes": "Gift",
    "shipments": [
      {
        "lines": [
          {
            "sku": "PL-BPC-GLOW",
            "quantity": 2
          }
        ],
        "tracking_number": "1Z999AA10123456784",
        "carrier": "UPS"
      }
    ],
    "shipped_at": "2026-11-03T15:12:17Z",
    "delivered_at": null,
    "cancelled_at": null,
    "created_at": "2026-11-03T15:06:49Z",
    "updated_at": "2026-11-03T15:12:58Z",
    "shipping_cents": 5000
  },
  "created_at": "2026-11-03T15:13:39Z"
}

Answer with any 2xx within 10 seconds, then do the work.

Errors

Errors are JSON with a stable code. Branch on the code, never on the message.

Response
422 Unprocessable· Request-Id: req_…
{
  "error": {
    "code": "unknown_sku",
    "message": "NOPE is not in your catalog.",
    "param": "lines[0].sku"
  }
}
  • code: a stable machine-readable code, listed below.
  • message: a sentence for a person. Its wording can change.
  • param: the field at fault, when there is one, for example lines[0].sku.

The HTTP status tells you what to do next: 4xx means fix the request, don't retry it unchanged. 5xx means retry; it is safe, because orders are idempotent.

CodeStatusWhat it meansWhat to do
invalid_request400The request is malformed: the body is not JSON, a required field is missing, a field has the wrong type, or a query parameter is not valid. A body over 256,000 bytes is also answered 413 with this code.Read error.message and error.param: it names the field. Fix the request and send it again. Do not retry unchanged.
invalid_url400The webhook address is not an HTTPS URL we can send to (plain http, a private or internal address, or a malformed URL).Use a public https:// address. Addresses on private networks are refused.
invalid_api_key401No key was sent, it is not in the form sk_live_… or sk_test_…, or it is unknown or revoked.Send Authorization: Bearer <key>. If the key was revoked, ask Supplied for a new one.
partner_disabled403API ordering is turned off for your account.Contact Supplied.
account_suspended403Your account is suspended.Contact Supplied.
account_not_on_terms403Orders go on your account and are invoiced when they ship. Your account does not have net terms yet.Contact Supplied to be set up.
test_mode_only403A test helper was called with a live key.Use an sk_test_… key. Test helpers never touch real orders.
license_required403Reserved. Professional products (PUO and 503A) cannot be ordered through the API at all, so today they are refused as professional_product.Order professional products in the Supplied portal, signed in as a verified clinician.
license_expired403Reserved, as license_required.As license_required.
not_found404The path or method does not exist. Paths start with /v1/.Check the path against this reference.
order_not_found404No order of yours has this id or external_id in this mode. Test orders and live orders never mix.Use the id we returned or your own external_id, and the key of the mode that created the order.
endpoint_not_found404No webhook endpoint of yours has this id in this mode.List your endpoints with GET /webhook_endpoints.
external_id_conflict409You already placed an order with this external_id, and this request has different content. (The same content again is not an error: it returns the existing order.)Use a new external_id for a different order. To change an order, cancel it and place a new one.
order_in_fulfillment409The warehouse has started the order, or it has shipped, so it can no longer be cancelled.Contact Supplied if you must stop it.
invalid_state409The action does not fit the current state, for example shipping a test order that has already shipped, delivering one that has not, or sending a test event that is already being sent.Read the order, then call the helper that fits its status.
not_verified409The webhook endpoint has not answered our challenge yet.Make your server answer the challenge, then call POST /webhook_endpoints/{id}/verify.
too_many_endpoints409An account can have at most 5 webhook endpoints per mode.Delete one you no longer use.
endpoint_disabled_by_supplied409Supplied turned this endpoint off.Contact Supplied.
unknown_sku422A SKU is not in your catalog. error.param says which line.Read your catalog with GET /products and use its SKUs.
below_minimum422A line is below the product's min_quantity for your account.Order at least min_quantity of that product.
not_in_step422A line's quantity is not a multiple of the product's order step for your account (for example 25 of a product sold in 10s). Only while Supplied checks order steps.Order a multiple of the step: 20 or 30 of a product sold in 10s.
professional_product422PUO and 503A (prescription) products cannot be ordered through the API: a key has no licensed clinician behind it. They are not listed in GET /products either.Order them in the Supplied portal, signed in as a verified clinician.
scope_not_allowed403Connected apps only ("Sign in with Supplied"): a connection key may read the catalog and stock, place and look up its own orders and manage its own webhook endpoints. Anything else is refused with this code, as is DELETE /v1/connect with a key that is not a connection key.Use the routes a connection key is for. Other keys are issued by Supplied.
connection_approver_removed403Connected apps only: the person who allowed this connection is no longer an owner of the Supplied account (nor Supplied staff). Every call with the connection key is refused until they are again; DELETE /v1/connect still works.Treat the connection as cut off. Ask an owner of the Supplied account to connect it again.
invalid_client401Connected apps only: POST /v1/connect/token was sent without the app's client id and secret (HTTP Basic, or X-Client-Id and X-Client-Secret), or they are wrong.Send the client id and secret Supplied registered for your app.
invalid_grant400Connected apps only: the code is unknown, expired (codes last 60 seconds), already used (the connection made with it is then revoked), made for another app, or redirect_uri is not the one it was made for.Send the person through Supplied's connect page again for a new code, and swap it at once from your server.
invalid_redirect_uri400Connected apps only: the return address is not exactly one registered for the app.Use a registered return address, character for character, or ask Supplied to register yours.
internal_error500An error on our side. We log it with the Request-Id.Retry after a few seconds with the same external_id (an order is never created twice). If it keeps failing, contact Supplied and quote the Request-Id.

Objects

The shapes the API sends and accepts. Fields can be added over time: ignore the ones you don't know.

Order

FieldDescription
object
"order"
id
string
Our order number: SUP-… (live) or TEST-… (test).
external_id
string
Your order number.
livemode
boolean
false for an order placed with a test key.
status
enum
See the order lifecycle.
receivedheldprocessingpartially_shippedshippeddeliveredcancel_requestedcancelled
hold_reasons
object[]
Why a held order is waiting. Empty otherwise.
hold_reasons[].code
enum
stockcreditmanual_reviewwarehouse_setup
hold_reasons[].message
string
hold_reasons[].lines
any[]
For stock: the short lines, with what is available and what you ordered.
ship_to
object
ship_to.namerequired
string
Who the parcel is for.
ship_to.company
string | null
ship_to.line1required
string
ship_to.line2
string | null
ship_to.cityrequired
string
ship_to.staterequired
string
ship_to.postal_coderequired
string
ship_to.countryrequired
string
Two letters
ship_to.phone
string | null
The carrier gets it. We never ask for your customer's email, and we never contact them.
lines
object[]
lines[].sku
string
lines[].name
string
lines[].quantity
integer
lines[].shipped_quantity
integer
How much of this line has shipped.
lines[].unit_price_cents
integer
lines[].total_cents
integer
subtotal_cents
integer
The products only.
shipping_cents
integer
Shipping on this order. A flat price per order when your account has one (set when the order is placed, never changed afterwards). Otherwise the warehouse's cost, known once the order ships: 0 until then (always 0 on an order paid before it ships, which pays no shipping without a flat price). It is on the invoice.
total_cents
integer
subtotal_cents + shipping_cents: what the order is invoiced at (with a flat price, from the moment it is placed). A cancelled order is not invoiced.
currency
"USD"
shipping_method
string | null
notes
string | null
shipments
object[]
One entry per package, with the tracking number as soon as the warehouse has it.
shipments[].tracking_number
string
shipments[].carrier
string | null
shipments[].lines
object[]
shipments[].lines[].sku
string
shipments[].lines[].quantity
integer
shipped_at
string | null
delivered_at
string | null
cancelled_at
string | null
created_at
string
updated_at
string
When the order last changed: placed, held, released, shipped, delivered, cancel requested or cancelled.

Product

FieldDescription
object
"product"
sku
string
name
string
description
string | null
unit_price_cents
integer
Your drop-ship price for one unit, in cents (1800 = $18.00).
currency
"USD"
min_quantity
integer
The least you can order of this product on one line.
price_tiers
object[]
Lower prices from a quantity per line.
price_tiers[].min_quantity
integer
price_tiers[].unit_price_cents
integer
available
integer | null
What the warehouse can sell now (0 when sold out, never negative). Shared with every channel Supplied sells through, so treat it as live. null: the warehouse has not reported this product yet.
inventory_as_of
string | null
When the warehouse last reported this stock.
image_url
string | null
A photo of the product: a stable, public https URL you may copy. A changed photo is a new URL, and product.updated tells you. Your own label's picture once Supplied has made it, otherwise a plain photo of the container with a blank label (never Supplied's branding). null: no photo yet. Left out while Supplied hasn't turned photos on for your account's API.
strength
object[]
The product's strength as Supplied holds it, left out while Supplied has not filled it in. One row per ingredient, in label order (a blend has several): amount (a number above 0), unit (mg, mcg, g, mL, IU, mg/mL, mcg/mL or IU/mL) and ingredient (the ingredient's name, always present for a blend). An empty list means no strength applies (for example a capsule product sold by pack count).
strength[].amountrequired
number
strength[].unitrequired
string
strength[].ingredient
string
strength_display
string | null
The strength as text, in row order: "10 mg", "10 mg / 10 mg". null when strength is an empty list. Present whenever strength is.

Inventory

FieldDescription
object
"inventory"
sku
string
available
integer | null
What the warehouse can sell now. null: not reported yet.
as_of
string | null

Address

FieldDescription
namerequired
string
Who the parcel is for.
company
string | null
line1required
string
line2
string | null
cityrequired
string
staterequired
string
postal_coderequired
string
countryrequired
string
Two letters
phone
string | null
The carrier gets it. We never ask for your customer's email, and we never contact them.

Webhook endpoint

FieldDescription
object
"webhook_endpoint"
id
string
url
string
events
string[]
The event types you subscribed to, or ["*"] for all.
description
string
livemode
boolean
An endpoint made with a test key gets test-mode order events.
status
enum
pending_verificationactivepauseddisabled
secret
string
whsec_… Only in the answer to POST /webhook_endpoints. Store it: it is never shown again.
created_at
string
verified_at
string
disabled_at
string
disabled_reason
string
health
object
How deliveries are going.
health.last_success_at
string
health.last_failure_at
string
health.last_error
string
health.failing_since
string
health.consecutive_failures
integer
health.pending
integer
Events waiting to be sent.
health.oldest_pending_at
string

Delivery attempt

FieldDescription
object
"delivery_attempt"
kind
enum
Only in the list of attempts (not in the answer to a test send).
eventverification
event_id
string | null
event_type
string | null
attempted_at
string
ok
boolean
status_code
integer | null
What your server answered.
duration_ms
integer
error
string | null

Event

FieldDescription
object
"event"
id
string
Unique. Drop a delivery whose id you have already processed.
sequence
integer
Your own counter. Only goes up, and can skip numbers. Use it to catch up with GET /events.
type
string
created_at
string
livemode
boolean
resource
object
What changed. Versions only go up for a record, so ignore an event whose version you already hold.
resource.type
enum
orderinventoryproductendpoint
resource.id
string
resource.version
integer
data
object
The record's full state at that moment, never a change.

Error

FieldDescription
error.coderequired
string
A stable machine-readable code. Branch on this, never on the message.
error.messagerequired
string
A sentence for a person. Its wording can change.
error.param
string
The field at fault, when one is, e.g. lines[0].sku.