Skip to main content

For pharmacies and hospitals

The calls a pharmacy or hospital system (a dispensing or stock system) makes: read what the facility received, record what it dispenses, and act on recalls.

What you need

  • A pharmacy credential. It comes with products:read, batches:read, events:write, recalls:read, recalls:acknowledge and webhooks:manage.
  • A link to each facility it acts for. Tell us which when you apply: until it's linked, the recall endpoints return nothing for it.

1. Read what the facility received

GET /batches/ lists the deliveries your linked facilities received, newest first: each row is a receipt (a RECEIVE) with its event_id, the shipment it names, the batch and the quantity. Filter by gtin and batch_number. The receipt's event_id is what you name as parent_event when you dispense from it.

A delivery from a supplier outside DawaTrack: record the RECEIVE with POST /events/, naming the sender.

2. Record what you dispense

A DISPENSE names the receipt the units came from. Send no patient details: the ledger never holds them.

POST /events/
{
  "event_type": "DISPENSE",
  "gtin": "06164004321562",
  "batch_number": "BTH-2026-041",
  "quantity": 2,
  "parent_event": 81250
}

Send a day's dispensing in one call with POST /events/bulk/, each event with its own idempotency_key.

3. Hold and release

A QUARANTINE holds stock you received (its parent is the receipt); a RELEASE names the QUARANTINE it ends. A recall quarantines the batch at the facility for you, unless its class is CAUTION_IN_USE.

4. Recalls

  • Subscribe to recall.issued, and to hold.lifted for when a hold ends.
  • GET /recalls/ lists recalls affecting your linked facilities; POST /recalls/{id}/acknowledge/ confirms you've acted, with a note.
  • At the counter, anyone can check a batch with no credentials: GET /recall-lookup/{gtin}/{batch_number}/.

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.