Skip to content
PeptideTech
sign in
live113 compounds · 13 vendors listed · 5 graded · audit of 4 Nov 2026 · prices checked 23 Nov 2026independent · grades can’t be bought

custom commerce backends · protocol 2026-11-06

merchant API and webhooks

Sell through PeptideTech Checkout from any store backend. PeptideTech sends signed requests to four endpoints you host, and your server sends signed updates back. Test the whole loop against your own server in the sandbox before you sign anything.

let an AI agent build it

Pick your AI coding tool and your store’s stack. The prompt carries the whole API contract, the signing rules with a test vector, and a sandbox test plan. It contains no keys or secrets: the agent is told to read them from environment variables you set.

signing helper

Save PEPTIDETECH.md in your store’s repository, then run claude "Follow PEPTIDETECH.md to integrate this store with PeptideTech". Or paste the prompt into a Claude Code session.

preview the prompt
# Integrate my store with PeptideTech Checkout

PeptideTech (https://peptidetech.is) is a marketplace whose checkout sells my products and sends me paid orders through its merchant API (protocol 2026-11-06). Build that integration for my store, test it against the PeptideTech sandbox, and stop before anything that needs my approval.

Work in this repository. Read the existing code first (framework, routing, database, product and order models, background jobs) and fit the integration into it rather than starting a separate app, unless the stack cannot host it.

## My store

- Store: (ask me)
- Stack: Node.js
- Base URL PeptideTech will call: https://<my store domain or a subdomain>/peptidetech (suggested; it must be HTTPS on my store's domain or a subdomain, so confirm it with me)

## Ground rules

- Never put secrets in code, chat, logs or URLs. Read PT_SIGNING_SECRET and PT_API_KEY from environment variables; I set them myself.
- During testing do not create real orders, charge anyone, email buyers or change my live catalogue.
- Ask me before deploying, changing DNS, running production migrations or pushing to my main branch.
- Use the contract below exactly. Do not invent fields, endpoints or statuses.

## Reference files

The contract below is complete; fetch these if you can.

- OpenAPI specification: https://peptidetech.is/downloads/merchant-api-openapi.json
- Full guide: https://peptidetech.is/downloads/merchant-api-guide.md
- Signing helpers: https://peptidetech.is/downloads/peptidetech-signing.mjs (Node), https://peptidetech.is/downloads/peptidetech_signing.py (Python), https://peptidetech.is/downloads/peptidetech-signing.php (PHP)
- Signing test vectors: https://peptidetech.is/downloads/peptidetech-signing-vectors.json
- Reference backend (Node, in-memory, shows every endpoint): https://peptidetech.is/downloads/merchant-api-example.mjs
- Human-readable docs: https://peptidetech.is/partners/api

## Signing (both directions)

Every request between PeptideTech and my backend carries three headers:

- x-peptidetech-timestamp: Unix seconds
- x-peptidetech-nonce: 16 to 100 characters of [A-Za-z0-9_-]; for events it equals the event id
- x-peptidetech-signature: hex HMAC-SHA256(signing secret, string_to_sign)

string_to_sign = `timestamp.nonce.METHOD.path.sha256hex(raw body)`, where METHOD is uppercase, path is the exact path including any base path and without the query string, and the body is hashed as the exact raw bytes (a GET hashes the empty string). Reject requests more than 300 seconds from the current time, compare signatures in constant time, and reject a reused event id that arrives with a different body.

Test vector (fake secret): secret `test-vector-secret-not-a-real-key-0001`, method GET, path `/peptidetech/orders/00000000-0000-4000-8000-000000000001`, nonce `b6c1e0f2a3d44e5f8a9b0c1d2e3f4a5b`, timestamp 1794150060, empty body:
- string_to_sign: `1794150060.b6c1e0f2a3d44e5f8a9b0c1d2e3f4a5b.GET./peptidetech/orders/00000000-0000-4000-8000-000000000001.e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855`
- signature: `ff1e5479aa64758de85f6a91bf2d4cd3fa3ab51d212b94460de09ad8198d92a4`

Write a unit test that reproduces this vector before anything else.

## Endpoints my backend must serve under the base URL

All are signed by PeptideTech. Answer JSON objects with HTTP 200, no redirects, at most 1 MB, within 8 seconds (paid-order delivery may take up to 20).

1. POST /verify, body `{"challenge":"…","version":"2026-11-06","permissions":["quotes:read","orders:create","orders:read"]}`. Reply `{"proof": hex HMAC-SHA256(secret, challenge), "permissions": ["quotes:read","orders:create","orders:read"]}`.
2. POST /quote, body `{"items":[{"external_id":"bpc-10","qty":1}],"currency":"USD","address":{name,line1,line2?,city,state,postcode,country,phone?}}` (address absent before checkout has one). Reply `{"quote_id","expires_at","currency":"USD","items":[{"external_id","name","sku","unit_price","line_total","in_stock","stock_quantity"}],"ships": true|false|null,"item_tax","shipping_methods":[{"id","label","cost","tax","days_min","days_max"}],"errors":[]}`. Amounts are non-negative USD numbers from live prices and stock. An empty items list must return empty arrays with currency USD. A quote reserves nothing.
3. POST /webhooks, envelope `{"id","type","version","data"}`; check id equals the nonce header. Types:
   - integration.test: reply `{"ok": true, "proof": hex HMAC-SHA256(secret, data.challenge)}` and create nothing.
   - order.paid: id is `evt_<suborder_id>`. data has suborder_id (UUID), ref, quote_id, email, address, items [{external_id, qty, unit_price}], shipping_method {id,label,cost}, totals {subtotal,shipping,tax,total}, payment {method, provider, coin, txid_in, txid_out, payout_wallet, payout_amount, wallet_amount, guarantee_offset, guarantee_repaid, fee, fee_rate}. Create exactly one order per suborder_id (UNIQUE constraint, insert and receipt in one transaction, committed before replying) and reply `{"order_id","order_number","status":"processing"}`. The same event is retried after 1, 5, 15 and 60 minutes and then every six hours: every duplicate must return the existing order. The buyer has already paid PeptideTech; do not charge them.
   - refund.requested, dispute.requested, tax.requested, verification.requested (only if I opt in): id is `ops_<case id>_<revision>`, data is the case. Store it, alert me, reply `{"ok": true, "event_id": "<id>"}`. A receipt is not a refund.
4. GET /orders/{suborder_id}: reply `{"order_id","order_number","status","tracking":[{"carrier","number","url?"}],"handoff_at"}` for that order, 404 if unknown.

Store the delivery address only for fulfilment. An order email is not marketing consent.

## Calls my backend makes to PeptideTech

Base `https://peptidetech.is/api/partners/v2`, header `Authorization: Bearer $PT_API_KEY`.

- POST /events with a signed envelope `{"id": "event_<random 32 hex>", "type", "data"}` (nonce = id):
  - order.updated (scope orders:write) when the carrier actually has the parcel: `{"suborder_id","status":"shipped","handoff_at":"<ISO time of carrier handoff, after payment, not in the future>","order_id","order_number","tracking":[{"carrier","number"}]}`. Use "delivered" the same way. Never send a tracking number with "processing": a label is not shipment. Carrier handoff is due within 14 days of payment, or the dispatch promise I set, whichever is sooner; after that a refund request opens.
  - heartbeat (scope account:read), data {}, at least daily from a scheduled job.
  - catalogue.upsert (scope catalogue:write): `{"products":[{"id","name","price":"200.00","currency":"USD","status":"publish","stock_status":"instock","stock_quantity","permalink","sku","attributes":[{"name","value"}],"categories":[],"description","coa_links":[{"url","text"}]}],"remove":["product-id"]}`, at most 250 of each. Include the package size in the name or attributes. Only products I choose to list.
  - case.responded (scope operations:write): `{"case_id","reference","note"}`.
- GET /orders/pending (orders:read) and POST /orders/ack `{"suborder_id","order_id","order_number"}` (orders:write): a scheduled job every 15 minutes picks up any order a webhook missed, creates it idempotently and acknowledges it.
- GET /account, GET /operations, GET /tax?month=YYYY-MM for status, cases and tax records. GET /account includes `data_settings`, my data-sharing choices: when `stock` is "status", send stock_status and in_stock but no stock_quantity; when `descriptions` is false, send no product description. PeptideTech discards those fields anyway, so not sending them keeps the data on my side. When `quote_address` is "region", quotes arrive with only city, state, postcode and country, and when `buyer_phone` is false, paid orders carry no phone: handle both.

Errors are JSON `{"error","code"}`. 401 bad_signature includes `signed.string_to_sign` (what PeptideTech signed): compare it with mine. Others: expired_timestamp (sign each attempt fresh), event_id_mismatch, bad_event_id, 403 scope_required, 409 in_progress (retry the same id and body later), 409 for an id reused with a different body, 429 (back off).

## Stack notes

- Use the store's existing Node framework. Read the raw request body before JSON parsing (for Express: `express.raw({ type: 'application/json' })` on these routes only) and sign/verify with the exact path as received (`req.originalUrl` without the query string).
- Use the signing helper https://peptidetech.is/downloads/peptidetech-signing.mjs (no dependencies; exports verifyWebhook, verifyRequest, signRequest, challengeProof) or reproduce it exactly.

## Test it

1. Unit-test signing against the vector above, then the verify/quote/webhook handlers with signed fixtures, including a duplicate order.paid and a wrong signature (must get 401).
2. Tell me to open https://peptidetech.is/partners/sandbox, choose Start sandbox, and put the sandbox signing secret in PT_SIGNING_SECRET locally. Run the backend and expose it over HTTPS with a tunnel (for example `cloudflared tunnel --url http://127.0.0.1:<port>`).
3. Have me enter the tunnel URL plus the base path in "Test your backend" on the sandbox page. All eight checks must pass. Sandbox requests carry `"sandbox": true` and the header `x-peptidetech-sandbox: 1`; never fulfil them.
4. Send one signed order.updated for a sandbox order to https://peptidetech.is/api/partners/sandbox/events with the sandbox ptk_test_ key, to prove outgoing signing.

## Finish

Report: files added or changed, environment variables, scheduled jobs, how to run the tests, and what I still have to do. Going live is mine to do in the PeptideTech portal: sign the Merchant Agreement, choose "API and webhooks", enter the base URL, store the live signing secret in PT_SIGNING_SECRET (it replaces the sandbox one), verify, issue a ptk_api_ key with the scopes the code uses into PT_API_KEY, push the catalogue, add my payout wallet and switch checkout on.

Review what the agent writes before it runs against your live store. Test it in the sandbox first; the agent’s work does not replace verification in the portal.

how it works

PeptideTech calls your backend

At a base URL you choose on your store’s domain, such as https://api.yourstore.example/peptidetech.

  • POST /verify: prove you hold the signing secret, once when you connect.
  • POST /quote: live price, stock, shipping and tax while the shopper checks out.
  • POST /webhooks: order.paid after payment, plus integration.test and optional case events.
  • GET /orders/{suborder_id}: order status, used to reconcile quiet orders.

your backend calls PeptideTech

At https://peptidetech.is/api/partners/v2 with Authorization: Bearer ptk_api_….

  • POST /events: order.updated when the carrier has the parcel, a daily heartbeat, catalogue.upsert and case.responded.
  • POST /catalogue: list or remove products.
  • GET /orders/pending and POST /orders/ack: catch any order a webhook missed.
  • GET /account, /operations and /tax: status, cases and tax records.

Both directions are signed the same way: x-peptidetech-signature is the hex HMAC-SHA256 of timestamp.nonce.METHOD.path.sha256hex(raw body), keyed with your signing secret. There is no general backend login or database access. PeptideTech calls only public HTTPS addresses, follows no redirects, and limits response size and time.

quickstart

  1. Start a sandbox. No account needed. Open the sandbox and copy the ptk_test_ key and the signing secret.
  2. Run the reference backend with the sandbox secret, behind a tunnel so PeptideTech can reach it:
    # 1. Download the reference backend (Node 22+, no dependencies)
    curl -O https://peptidetech.is/downloads/merchant-api-example.mjs
    
    # 2. Start it with the signing secret from your sandbox
    PT_SIGNING_SECRET='paste-your-sandbox-signing-secret' node merchant-api-example.mjs
    # → listening on http://127.0.0.1:3339, routes under /peptidetech
    
    # 3. In another terminal, give it a public HTTPS address
    cloudflared tunnel --url http://127.0.0.1:3339     # or: ngrok http 127.0.0.1:3339
    
    # 4. In the sandbox, test https://<your-tunnel-host>/peptidetech
  3. Choose “Test your backend” in the sandbox and paste the tunnel URL. PeptideTech sends eight signed requests (verify, two quotes, a test webhook, a mis-signed request, a paid order, its retry and a status read) and shows what passed and why anything failed. Sandbox requests carry "sandbox": true and the header x-peptidetech-sandbox: 1, and every buyer in them is fictional.
  4. Swap in your own store logic using the code below, or have an AI agent write it from the integration prompt, and keep the sandbox check passing.
  5. Go live. Create a merchant account, sign the Merchant Agreement, choose “API and webhooks”, set your base URL and save the live signing secret, which replaces the sandbox one. Then verify, issue a ptk_api_ key, push your catalogue, add your payout wallet and switch checkout on.

signing helpers

One file per language, with no dependencies. Each verifies incoming requests, signs outgoing ones and computes the challenge proof. All three are tested against PeptideTech’s own signer using the published test vectors.

If you write your own signer, check it against the vectors. For example, node peptidetech-signing.mjs --test peptidetech-signing-vectors.json runs every vector; the Python and PHP files take the same --test option.

  • Sign the exact path as sent or received, including your base path or /api/partners/v2, without the query string.
  • Hash the raw body bytes. Read them before any JSON parsing, and send exactly the bytes you signed. A GET signs an empty body.
  • Use Unix seconds within five minutes of the current time. For events, the nonce equals the event id.
  • Compare signatures in constant time. Store processed event ids, and reject a reused id with a different body.

receive webhooks

PeptideTech posts every event to your /webhooks. Verify the signature first, then act on the type.

Express shown; any framework works if you read the raw body before parsing it.

import express from 'express';
import { verifyWebhook, challengeProof } from './peptidetech-signing.mjs';

const app = express();
const secret = process.env.PT_SIGNING_SECRET;

// express.raw keeps the exact bytes: the signature covers them.
app.post('/peptidetech/webhooks', express.raw({ type: 'application/json' }), async (req, res) => {
  const check = verifyWebhook({ secret, method: req.method, path: req.originalUrl.split('?')[0], body: req.body, headers: req.headers });
  if (!check.ok) return res.status(401).json({ error: check.reason });
  const event = check.event;

  if (event.type === 'integration.test') {
    return res.json({ ok: true, proof: challengeProof(secret, event.data.challenge) }); // never create an order
  }
  if (event.type === 'order.paid') {
    // One order per suborder_id. A UNIQUE constraint makes every retry return the same order.
    const order = await db.orders.findOrCreate(event.data.suborder_id, event.data);
    return res.json({ order_id: order.id, order_number: order.number, status: 'processing' });
  }
  if (event.type.endsWith('.requested')) { // refund, dispute, tax, verification
    await db.cases.save(event.id, event.data);
    return res.json({ ok: true, event_id: event.id });
  }
  res.status(400).json({ error: 'unknown_event' });
});

Answer within 8 seconds; paid-order delivery may take up to 20. Delivery is at least once. Retries come after 1, 5, 15 and 60 minutes, then every six hours, always with the same event id. If your server was down, GET /orders/pending lists what you missed; acknowledge each one with POST /orders/ack.

send updates

Report carrier handoff, heartbeats and catalogue changes as signed events. A tracking label alone is not shipment: send status: "shipped" with the actual handoff_at.

import crypto from 'node:crypto';
import { signRequest } from './peptidetech-signing.mjs';

const path = '/api/partners/v2/events';  // sandbox: /api/partners/sandbox/events
const id = `event_${crypto.randomUUID().replaceAll('-', '')}`;
const body = JSON.stringify({ id, type: 'order.updated', data: {
  suborder_id: '6f1c2a9e-3b4d-4c5e-8f70-1a2b3c4d5e6f', status: 'shipped',
  handoff_at: new Date().toISOString(), tracking: [{ carrier: 'USPS', number: '9400100000000000000000' }],
} });

const res = await fetch(`https://peptidetech.is${path}`, { method: 'POST', body, headers: {
  authorization: `Bearer ${process.env.PT_API_KEY}`, 'content-type': 'application/json',
  ...signRequest({ secret: process.env.PT_SIGNING_SECRET, method: 'POST', path, body, nonce: id }),
} });
console.log(res.status, await res.json());

event and request reference

PeptideTech → your /webhooks

integration.test · During backend verification and in the sandbox check. Never create an order.

example body
{
  "id": "test_Q2hhbGxlbmdlLWZvci10ZXN0",
  "type": "integration.test",
  "version": "2026-11-06",
  "data": {
    "challenge": "Q2hhbGxlbmdlLWZvci10ZXN0"
  }
}

Reply with

{
  "ok": true,
  "proof": "hex HMAC-SHA256(signing secret, data.challenge)"
}

order.paid · After the buyer pays. Retried until you answer 200; the id stays evt_ + suborder_id.

example body
{
  "id": "evt_6f1c2a9e-3b4d-4c5e-8f70-1a2b3c4d5e6f",
  "type": "order.paid",
  "version": "2026-11-06",
  "data": {
    "suborder_id": "6f1c2a9e-3b4d-4c5e-8f70-1a2b3c4d5e6f",
    "ref": "PT-7Q2KX9",
    "quote_id": "q_8841",
    "email": "buyer@example.com",
    "address": {
      "name": "Alex Example",
      "line1": "100 Main Street",
      "line2": "Suite 4",
      "city": "Houston",
      "state": "TX",
      "postcode": "77001",
      "country": "US",
      "phone": "+1 555 0100"
    },
    "items": [
      {
        "external_id": "bpc-10",
        "qty": 1,
        "unit_price": 200
      }
    ],
    "shipping_method": {
      "id": "usps-priority",
      "label": "USPS Priority",
      "cost": 0
    },
    "totals": {
      "subtotal": 200,
      "shipping": 0,
      "tax": 0,
      "total": 200
    },
    "payment": {
      "method": "card",
      "provider": "paygate",
      "coin": null,
      "txid_in": "example-txid-in",
      "txid_out": "example-txid-out",
      "payout_wallet": "0x…your-wallet",
      "payout_amount": 160,
      "wallet_amount": 160,
      "guarantee_offset": 0,
      "guarantee_repaid": 0,
      "fee": 40,
      "fee_rate": 0.2
    }
  }
}

Reply with

{
  "order_id": "1042",
  "order_number": "1042",
  "status": "processing"
}

refund.requested · Only if you opted in to operations webhooks. Also dispute.requested, tax.requested and verification.requested with the same envelope.

example body
{
  "id": "ops_0b9d8c7a-1111-4222-8333-444455556666_1",
  "type": "refund.requested",
  "data": {
    "id": "0b9d8c7a-1111-4222-8333-444455556666",
    "suborder_id": "6f1c2a9e-3b4d-4c5e-8f70-1a2b3c4d5e6f",
    "kind": "refund",
    "status": "action_required",
    "subject": {
      "order_ref": "PT-7Q2KX9",
      "amount": "210.00",
      "currency": "USD",
      "payment_method": "card",
      "instruction": "Stop fulfilment and refund through the original payment method."
    },
    "due_at": "2026-11-15T00:00:00.000Z"
  }
}

Reply with

{
  "ok": true,
  "event_id": "ops_0b9d8c7a-1111-4222-8333-444455556666_1"
}

PeptideTech → your other endpoints

POST /verify

example request
{
  "challenge": "Q2hhbGxlbmdlLWZvci10ZXN0",
  "version": "2026-11-06",
  "permissions": [
    "quotes:read",
    "orders:create",
    "orders:read"
  ]
}

Reply with

{
  "proof": "hex HMAC-SHA256(signing secret, challenge)",
  "permissions": [
    "quotes:read",
    "orders:create",
    "orders:read"
  ]
}

POST /quote

example request
{
  "items": [
    {
      "external_id": "bpc-10",
      "qty": 1
    }
  ],
  "currency": "USD",
  "address": {
    "name": "Alex Example",
    "line1": "100 Main Street",
    "city": "Houston",
    "state": "TX",
    "postcode": "77001",
    "country": "US"
  }
}

Reply with

{
  "quote_id": "q_8841",
  "expires_at": "2026-11-08T18:30:00Z",
  "currency": "USD",
  "items": [
    {
      "external_id": "bpc-10",
      "name": "BPC-157 10mg",
      "sku": "BPC10",
      "unit_price": 200,
      "line_total": 200,
      "in_stock": true,
      "stock_quantity": 14
    }
  ],
  "ships": true,
  "item_tax": 0,
  "shipping_methods": [
    {
      "id": "usps-priority",
      "label": "USPS Priority",
      "cost": 0,
      "tax": 0,
      "days_min": 2,
      "days_max": 4
    }
  ],
  "errors": []
}

GET /orders/6f1c2a9e-3b4d-4c5e-8f70-1a2b3c4d5e6f

example request
(no body: a signed GET)

Reply with

{
  "order_id": "1042",
  "order_number": "1042",
  "status": "shipped",
  "handoff_at": "2026-11-09T15:00:00Z",
  "tracking": [
    {
      "carrier": "USPS",
      "number": "9400100000000000000000"
    }
  ]
}

Quote item fields: external_id, name, sku, unit_price, line_total, in_stock and stock_quantity. Shipping methods: id, label, cost, tax, days_min and days_max. Use non-negative decimal USD amounts and true live stock. For verification, an empty items list must return an empty USD quote.

your server → POST /api/partners/v2/events

order.updated · needs orders:write · When the carrier has the parcel. handoff_at is required for shipped or delivered.

example body
{
  "id": "event_3f9a1c2b4d5e6f708192a3b4c5d6e7f8",
  "type": "order.updated",
  "data": {
    "suborder_id": "6f1c2a9e-3b4d-4c5e-8f70-1a2b3c4d5e6f",
    "status": "shipped",
    "handoff_at": "2026-11-09T15:00:00Z",
    "order_id": "1042",
    "order_number": "1042",
    "tracking": [
      {
        "carrier": "USPS",
        "number": "9400100000000000000000"
      }
    ]
  }
}

catalogue.upsert · needs catalogue:write · Add, update or remove listed products (also available as POST /catalogue).

example body
{
  "id": "event_catalogue_20261108_0001",
  "type": "catalogue.upsert",
  "data": {
    "products": [
      {
        "id": "bpc-10",
        "name": "BPC-157 10mg",
        "price": "200.00",
        "currency": "USD",
        "status": "publish",
        "stock_status": "instock",
        "stock_quantity": 14,
        "permalink": "https://yourstore.example/products/bpc-10",
        "coa_links": [
          {
            "url": "https://yourstore.example/coa/bpc-10.pdf",
            "text": "COA lot 2411"
          }
        ]
      }
    ],
    "remove": []
  }
}

heartbeat · needs account:read · At least daily, so your catalogue counts as fresh.

example body
{
  "id": "event_heartbeat_20261108_0001",
  "type": "heartbeat",
  "data": {}
}

case.responded · needs operations:write · Answer a refund, dispute, tax or verification case with a reference to check.

example body
{
  "id": "event_case_reply_0000000000001",
  "type": "case.responded",
  "data": {
    "case_id": "0b9d8c7a-1111-4222-8333-444455556666",
    "reference": "provider-refund-id",
    "note": "Refunded to the original card."
  }
}

A completed duplicate returns its earlier result with duplicate: true. Event receipts are kept for 90 days; do not replay older events.

errors

Errors are JSON with error and, where it helps, a stable code. A bad signature also returns what PeptideTech signed (never the secret), so you can see which part differs:

{
  "error": "Invalid webhook signature. Compare signed.string_to_sign with the string your code signed: …",
  "code": "bad_signature",
  "signed": {
    "method": "POST",
    "path": "/api/partners/v2/events",
    "body_sha256": "5d41402abc4b2a76b9719d911017c592…",
    "string_to_sign": "1794150000.event_3f9a….POST./api/partners/v2/events.5d41402a…"
  }
}
HTTPcodeWhat to do
401bad_signatureThe answer includes signed.string_to_sign: what PeptideTech signed. Diff it against the string your code signed. Usual causes: path missing the /api/partners/v2 prefix, body re-serialised after signing, wrong secret.
401expired_timestampSign every attempt with the current Unix time; the window is five minutes. server_time shows PeptideTech’s clock.
401event_id_mismatchx-peptidetech-nonce must equal the event id in the body.
401bad_event_idEvent ids are 16 to 100 letters, digits, underscores or hyphens.
401(none)The API key is missing, expired or revoked. Issue a new one in the portal.
403scope_requiredThe key lacks the scope named in scope. Issue a key with that permission.
409in_progressThe same event is still being processed. Retry the same id and body later with a fresh timestamp and signature.
409(none)This event id was already used with a different body. Use a new id for new content.
413 / 415(none)Send JSON (content-type: application/json) of at most 1 MB.
429(none)Rate limit: 1,200 requests an hour per store. Back off and retry.

data you control

Each store chooses what it shares in its data-sharing settings (onboarding and the dashboard’s settings). PeptideTech enforces them on its side, for the API and the WooCommerce plugin alike: a field switched off is discarded on arrival, and what was already stored is removed when the setting is saved. GET /api/partners/v2/account returns the current data_settings, so your backend can stop sending what will be discarded.

SettingKey and optionsEffect
stock levelsstock: "exact" "status"With “in stock or out of stock only”, PeptideTech discards stock_quantity from your catalogue and quotes. Buyers then see “out of stock” instead of “only 3 left”, and your quote decides whether the requested quantity is available.
product descriptionsdescriptions: true falseDescriptions help match unusual product names to the catalogue. Discarded, matching uses the name, SKU, attributes and categories only, and more products may wait for manual review.
AI-assisted product matchingai_matching: true falseWhen the name rules cannot place a product, PeptideTech can ask an AI model (through OpenRouter) to identify it from the product’s name, SKU, attributes, categories and up to 600 characters of description. Off, those products wait for staff review. This does not cover certificates (COAs): the public certificates you link are still read by an AI vision model to check their evidence.
free-text notes on order updatesorder_notes: true falseThe optional note on an order update is kept in the order’s history. Discarding it avoids storing anything your staff type there by mistake. Case responses still keep their note, because it is part of the evidence.
buyer phone number on paid ordersbuyer_phone: true falseSome carriers want a phone number on the label. Left out, paid-order webhooks and pending orders carry no phone even when the buyer gave one.
address sent with quotes before paymentquote_address: "full" "region"Quotes need enough of the address to price shipping and tax. With “city, state, postcode and country only”, the buyer’s name, street and phone reach your store only after payment, with the paid order.

Always shared: product name, price and in-stock status (to list and sell the product); product link and certificate (COA) links (to cite the product and check its evidence); live quote prices, shipping options and tax (to charge the buyer the right total); your order id and number (to reconcile the paid order with your system); carrier, tracking number and handoff time (to show the buyer their shipment and settle the shipping guarantee).

API permissions

Live base path: /api/partners/v2. Authenticate with Authorization: Bearer ptk_api_… Keys belong to one merchant, expire in 1–90 days and can be revoked by the owner. Only the owner, with their account password, can configure or rotate credentials. Reconfiguring the endpoint rotates the signing secret and revokes every key. API keys cannot sign an agreement, change a payout wallet, administer accounts or issue refunds.

MethodPathRequired scopePurpose
GET/accountaccount:readConnection and listing status
POST/cataloguecatalogue:writeUp to 250 published products; optional remove array of product ids
GET/orders/pendingorders:readThis merchant’s paid orders awaiting acknowledgement
POST/orders/ackorders:writeAcknowledge suborder_id with your order_id and order_number
GET/operationsoperations:readThis store’s refund, dispute and verification cases
POST/operations/respondoperations:writeSubmit evidence; never approves a case or moves money
GET/tax?month=YYYY-MMtax:readMerchant tax records and filing evidence status
POST/eventsPermission for event typeSigned catalogue.upsert, order.updated, heartbeat or case.responded

the sandbox is not live verification

Passing the sandbox check means your code follows the contract. Live selling still needs the current agreement, a verified live connection, a fresh catalogue, matched products with citations, your payout wallet and checkout switched on.

merchant responsibilities and automation

Onboarding records your dispatch promise and acceptance of merchant responsibility for refunds, tax and product compliance, subject to applicable law. Missed dispatch deadlines open refund requests automatically. Your verified API can receive refund.requested, dispute.requested, tax.requested and verification.requested at /webhooks. Acknowledge with ok: true and the event_id; this does not confirm payment.

Submit provider or document references with operations:write. An independently configured evidence service or staff checks them. Merchants cannot verify themselves or mark tax remitted. PayGate cannot execute cash refunds, debit a merchant balance, or supply a dispute feed through this integration. Tax records do not file returns, and buyer age or laboratory credentials are not automatically verified.

order and buyer fields shared

A paid-order webhook or pending-order response includes only this store’s part: suborder_id, reference, quote id, buyer email, name, street address, city, state, postcode, country and phone if supplied; product ids, quantities and paid unit prices; shipping choice; items, shipping, tax and order totals; payment method/provider, coin, transaction ids, this store’s wallet, fee/rate, expected or actual payout and guarantee offsets or repayments.

Quotes receive the requested product ids and quantities plus the buyer’s delivery address when available, before payment, so your backend can calculate shipping and tax. No card number, CVV, password, customer login, order access key, other seller’s order or other seller’s wallet is shared. Fulfilment contact details do not grant marketing permission. Checkout has no merchant marketing opt-in; buyers may separately subscribe through your own consent flow.

carrier handoff refunds and offsets

The current agreement uses carrier handoff within 14 days after payment, rather than delivery. For the API, send order.updated with status shipped or delivered, suborder_id and handoff_at (an ISO timestamp). Send tracking with the handoff. A label on a processing order is refused as shipment. The dashboard records the report, handoff time, tracking, merchant order reference and event activity. PeptideTech does not verify handoff with a carrier API.

If an order is still unshipped at your dispatch deadline, a refund request opens automatically, and customer store credit and merchant debt back up your refund duty. You arrange and fund the money refund. An independent evidence service, where configured, or staff then verify the proof. Later payouts can offset up to 50% of the merchant’s payout until the debt clears. Card disputes and chargebacks are handled manually. API credentials cannot record refund proof or reverse debt.

a 200 dollar order

Illustration: $200 of merchandise, $0 shipping and $0 tax; no credit or previous debt. The seller fee is $40 and expected merchant proceeds are $160 USDC. Card processing adds $10, so the buyer pays $210. Crypto processing adds $4 plus the network estimate, so the buyer pays $204 plus that estimate. Actual settlement is determined by provider confirmation and recorded wallet receipts.

If the order is unshipped at 14 days, the full refund request for a card payment is $210, including the buyer’s $10 processing fee. The $40 seller fee is not returned, so a merchant already paid $160 needs another $50 to fund that refund. Unused goodwill credit is reversed when the refund is confirmed; spent goodwill credit does not reduce the required money refund. A $200 guarantee debt can offset $80 of the $160 merchant proceeds on the next equivalent sale, leaving $80 paid to the merchant. Taxable examples and credit-funded orders differ; see the guide.

live pilot conditions

Agreement version 2026-11-16.1 names the operator as peptidetech.is and chooses Icelandic law. It does not identify an incorporated contracting entity; that remains unresolved. The documents are unreviewed drafts. Identify and agree the contracting party before committing to live sales.

Your backend supplies tax in each quote. PeptideTech has no independent tax engine or completed allocation of marketplace tax responsibilities. Research-use attestation and product screening are implemented, including blocking controlled substances and HGH. They do not establish that any product or buyer is legally eligible; automated age or laboratory credential verification is not implemented. Agree a reviewed U.S. catalogue and buyer policy before a live pilot.