DropDockUSA · Reseller API v1

The API lets listing and automation tools (DropThatShip, AutoDS, your own scripts) import DropDockUSA products, keep stock in sync and send blind-dropship orders for each end customer.

Base URL: https://dropdockusa.com/api/v1
Authentication: send the reseller's API key in a header:
Authorization: Bearer YOUR_API_KEY (or X-API-Key: YOUR_API_KEY)
Resellers make their key in the catalog under Listing tools → Generate API key. The key starts with ddk_ and is shown only once (we store only a hash); generating a new key stops the old one. The feed link is not an API key: it only reads the product feed.

Rate limit: 60 requests per minute per API key. Above that you get HTTP 429 rate_limited with a Retry-After header.

Format: JSON, UTF-8, prices in USD. Every response has "ok": true or "ok": false with an "error" code.

Products

GET/products — all products that are currently offered.
GET/products/{sku} — one product.

curl -H "Authorization: Bearer YOUR_API_KEY" https://dropdockusa.com/api/v1/products

{
  "ok": true,
  "count": 1,
  "products": [{
    "sku": "TX-TOWEL-01",
    "title": "Turkish cotton bath towel, 70x140 cm",
    "ebay_title": "Turkish cotton bath towel, 70x140 cm",   // max 80 characters
    "description": "...",
"origin_story": "Woven on traditional looms in Denizli from 100% Turkish cotton.", // maker's "Made in Türkiye" story, may be empty
    "price": 12.50,                    // your cost
    "suggested_retail_price": 29.99,
    "currency": "USD",
    "stock": 42,
    "coming_soon_qty": null,           // units on the way when stock is 0
    "in_stock": true,
    "images": ["https://dropdockusa.com/api/img/...?v=1"],
    "condition": "New",
    "ships_from": "Atlanta, GA, US",
    "handling_time_days": 1,
    "shipping_cost": 0.00,             // free blind dropship to your customer
    "updated_at": "2026-10-21 03:00:00"
  }]
}

Poll every 15–60 minutes to keep stock and price in sync. When stock is 0 or a SKU disappears from the list, end or pause the listing.

No-code alternative: the same data as a feed link, https://dropdockusa.com/feed/{feed_token}.csv or .json (the token from your feed link, read-only).

Orders

POST/orders — one order = one parcel to one end customer (contiguous US addresses only).

Order number required: send external_order_id (your marketplace order number, max 100 characters). If your tool has no order number, send an Idempotency-Key: <unique string> header instead; it is stored as the order's external_order_id, so retrying with the same key never makes a second order. Without either you get HTTP 400 missing_external_order_id. When both are sent, external_order_id wins.

curl -X POST https://dropdockusa.com/api/v1/orders \
  -H "Authorization: Bearer YOUR_API_KEY" -H "Content-Type: application/json" \
  -d '{
    "external_order_id": "12-34567-89012",
    "items": [{ "sku": "TX-TOWEL-01", "qty": 1 }],
    "ship_to": {
      "name": "Jane Buyer",
      "line1": "742 Evergreen Ter",
      "line2": "Apt 2",
      "city": "Springfield",
      "state": "IL",
      "zip": "62704",
      "phone": "2175550100"
    }
  }'

201 Created
{
  "ok": true,
  "order_id": "c1f0...",
  "status": "pending_payment",
  "payment_url": "https://checkout.stripe.com/...",
  "total": 12.50,
  "currency": "USD",
  "ship_to": { "...": "address as standardized by the postal check", "verified": true }
}

Every address is checked against USPS delivery data before the order is created. The order is created only for real, deliverable addresses; the address is stored in the standardized form shown in the response. The order ships after the payment_url is paid (card, Stripe).

Items may name products by sku (or catalog id); both can be mixed in one order. Each external_order_id is accepted once: sending it again while its payment page is still open returns HTTP 200 with the same order_id and payment_url ("existing": true); otherwise you get duplicate_order. An unpaid order whose payment page ran out (31 minutes) shows as expired and the same external_order_id can be sent again.

Error codes:

GET/orders — your last 100 orders.   GET/orders/{order_id} — one order.

{
  "ok": true,
  "order": {
    "id": "c1f0...",
    "external_order_id": "12-34567-89012",
    "status": "shipped",        // pending | expired | paid | label_created | shipped | cancelled | refunded
    "items": [{ "sku": "TX-TOWEL-01", "qty": 1, "price": 12.50 }],
    "total": 12.50,
    "currency": "USD",
    "tracking_number": "9400 1000 0000 0000 0000 00",
"carrier": "USPS",
"label_created_at": "2026-10-23 15:04:00",
    "shipped_at": "2026-10-23 18:30:00",  // carrier scanned the parcel; null before
    "delivered_at": null,                 // set when the carrier reports delivery
    "cancel_requested": null,             // time of your cancellation request, or null
    "cancel_declined_at": null,           // time we declined your cancellation request (the order ships as normal), or null
    "hold": null,                         // set while we hold the order (e.g. refund or dispute check); it does not ship until cleared
    "created_at": "...", "paid_at": "..."
  }
}

label_created means the shipping label exists and the tracking number is ready to upload; shipped means the carrier has taken the parcel. Poll an order until tracking_number appears, or use the tracking webhook below.

POST/orders/{order_id}/cancel — request cancellation (no body). Same rule as the Request cancellation button in the catalog: your own order, status paid (also shown as label_created) and not yet scanned by the carrier (shipped_at is null). Request cancellation — we confirm by email within 4 business hours; if the carrier has already scanned it, cancellation is not possible and normal returns apply. A confirmed cancellation is refunded in full to your card and sends an order.cancelled or order.refunded webhook. If we cannot cancel it (already packed or handed over) we email you, set cancel_declined_at, clear cancel_requested and send an order.cancel_declined webhook; the order then ships as normal.

curl -X POST -H "Authorization: Bearer YOUR_API_KEY" https://dropdockusa.com/api/v1/orders/c1f0.../cancel

200 OK
{ "ok": true, "cancel_requested": "2026-10-23 16:10:00", "order": { "...": "same fields as GET /orders/{order_id}" }, "note": "..." }
// sent again: { "ok": true, "cancel_requested": "...", "already": true, ... }
// 404 not_found · 409 cannot_cancel (with "status") — not paid, already shipped, cancelled or refunded

Tracking webhook (push instead of polling)

Save a webhook URL in the catalog under Listing tools → Tracking webhook (https only). We send a POST with JSON when the shipping label is created ("status": "label_created") and again when the carrier takes the parcel ("status": "shipped"). Header: X-DropDock-Event: tracking. We also send order.refunded, order.cancelled and order.cancel_declined (your cancellation request was declined; the order still ships) events with the same body (the event field tells them apart). Reply with any 2xx status; we wait up to 5 seconds and do not follow redirects. If the call fails we retry after 1 minute, 5 minutes, 30 minutes, 2 hours and 12 hours, then stop. GET /orders/{order_id} stays available as a fallback.

Signature: when you save the URL the catalog shows a signing secret once (whsec_…; saving again makes a new one). Every call carries X-DropDock-Signature: t=<unix seconds>,v1=<hex>, where v1 is the HMAC-SHA256, with that secret, of the string t + "." + raw request body. To verify: (1) split the header into t and v1; (2) reject the call if t is more than 5 minutes away from your clock (replay protection); (3) compute the HMAC over `${t}.${rawBody}` and compare it to v1 in constant time; (4) skip the call if you already processed its event_id. Every body has an event_id (uuid, also in the X-DropDock-Event-Id header); retries send the same event_id and body but are signed again with a new t. Only public https addresses are accepted (no IP addresses, localhost or private networks).

POST https://your-tool.example.com/dropdock-tracking
Content-Type: application/json
X-DropDock-Event: tracking
X-DropDock-Event-Id: 6f1e2c4a-8b1d-4c39-9a57-2f0d6b7e9c11
X-DropDock-Signature: t=1792768641,v1=5d1c...

{
"event": "tracking",
"event_id": "6f1e2c4a-8b1d-4c39-9a57-2f0d6b7e9c11",
"order_id": "c1f0...",
"external_order_id": "12-34567-89012",
"status": "label_created", // or "shipped"
"carrier": "USPS",
"tracking": "9400100000000000000000",
"label_created_at": "2026-10-23 15:04:00",
"shipped_at": null,
"sent_at": "2026-10-23T15:04:01.000Z"
}

Verification example (Node.js 18+, Express):

import crypto from "node:crypto";
const SECRET = process.env.DROPDOCK_WEBHOOK_SECRET; // whsec_...
const seen = new Set(); // use your database in production

function verify(rawBody, header) {
  const parts = Object.fromEntries(String(header || "").split(",").map((p) => p.split("=")));
  const t = Number(parts.t), v1 = parts.v1 || "";
  if (!t || Math.abs(Date.now() / 1000 - t) > 300) return false;      // older than 5 minutes: replay
  const want = crypto.createHmac("sha256", SECRET).update(`${t}.${rawBody}`).digest("hex");
  return v1.length === want.length && crypto.timingSafeEqual(Buffer.from(v1), Buffer.from(want));
}

app.post("/dropdock-tracking", express.raw({ type: "application/json" }), (req, res) => {
  const raw = req.body.toString("utf8");                               // the exact bytes we sent
  if (!verify(raw, req.get("X-DropDock-Signature"))) return res.status(401).end();
  const ev = JSON.parse(raw);
  if (seen.has(ev.event_id)) return res.status(200).end();             // retry of an event you already handled
  seen.add(ev.event_id);
  // ... update the order with ev.status, ev.carrier, ev.tracking
  res.status(200).end();
});

The Send a test button in Listing tools sends the same body (with its own event_id and signature) with "test": true and "external_order_id": "TEST-12345".

Order link (one click from your order screen)

For tools that open the supplier page for the reseller (like "go to supplier" buttons), no API call is needed. Open this link in the reseller's browser:

https://dropdockusa.com/catalog/#buy=BASE64URL_JSON

where BASE64URL_JSON is the base64url-encoded UTF-8 JSON of:

{
  "external_order_id": "12-34567-89012",
  "items": [{ "sku": "TX-TOWEL-01", "qty": 1 }],
  "ship_to": { "name": "Jane Buyer", "line1": "742 Evergreen Ter", "line2": "Apt 2",
               "city": "Springfield", "state": "IL", "zip": "62704", "phone": "2175550100" }
}

The page fills the cart and the customer's address, checks the address with USPS data and opens the review screen. The reseller only confirms the address and pays by card. The data after # stays in the browser and is not sent to any server in the URL.

// JavaScript example
const data = { external_order_id, items, ship_to };
const b64 = btoa(unescape(encodeURIComponent(JSON.stringify(data))))
  .replace(/\+/g, "-").replace(/\//g, "_").replace(/=+$/, "");
window.open("https://dropdockusa.com/catalog/#buy=" + b64);

Resellers sign in to the catalog with their email code the first time (sessions last 24 hours).

Contact

Integration questions: [email protected]