Skip to main content

For distributors and wholesalers

The calls a distributor's warehouse or ERP system makes: confirm what manufacturers send you, answer pharmacies' orders, ship stock on, and act on recalls.

What you need

  • A distributor credential. It comes with products:read, batches:read, events:write, recalls:read, recalls:acknowledge, webhooks:manage, orders:read and orders:write.
  • Links, which decide what you see: ask us to link your credential to your supplier account (for incoming shipments and orders) and to the facilities it acts for (for recalls).

1. Confirm what arrives

GET /receipts/incoming/ lists shipments other suppliers on DawaTrack sent you that you haven't confirmed. Confirm each once with what actually arrived:

POST /receipts/
{
  "shipment_id": 123,
  "quantity": 30,
  "note": ""
}

It writes a RECEIVE linked to the sender's SHIP, and returns its event_id: keep it, it's the parent of what you do with that stock next. Fewer units than declared need a note; more is refused. Production credentials only.

Stock from a sender that isn't on DawaTrack: write the RECEIVE yourself with POST /events/, naming the sender instead of a parent. See the parent rule.

2. Answer pharmacies' orders

Orders pharmacies on DawaTrack place with your supplier account: GET /purchase-orders/?status=SENT, then confirm or reject each, and declare delivery with POST /purchase-orders/{id}/delivery/, giving each line's batch and units. Each line becomes a SHIP the pharmacy's receipt links to. Subscribe to order.created to hear of new ones.

3. Ship stock on

To anyone else, a SHIP per line naming the RECEIVE its units came from, with a consignment number and the receiver: a pharmacy or supplier on DawaTrack, or anyone outside it with an email and phone. See Shipments and confirmation, and read the answers with GET /consignments/.

4. Hold, move, release

  • QUARANTINE holds stock (its parent is the RECEIVE); RELEASE names the QUARANTINE it ends.
  • TRANSFER moves stock between your own sites, naming the RECEIVE at the source.

5. Recalls

GET /recalls/ lists recalls affecting the facilities you're linked to; acknowledge each with POST /recalls/{id}/acknowledge/ once you've acted. Subscribe to recall.issued to hear of them at once. See Recalls.

Before you go live

Work through the going live checklist.

Partner API v1. The API reference is generated from the API's own code.