Skip to main content

Recalls

How a manufacturer rehearses and opens a recall, how it reaches every facility that holds the batch, and how distributors and pharmacies acknowledge it. The reach is read from the ledger, so it's only as complete as the events recorded for the batch.

The flow

  1. The manufacturer runs a drill to see how far a recall would reach, without telling anyone.
  2. It opens the recall. Every facility that received the batch is notified before the call returns, and, unless the class is CAUTION_IN_USE, the batch is quarantined there.
  3. Each facility acknowledges. Facilities that don't are notified again, as often as the severity class requires.
  4. The manufacturer follows progress and downloads the reports PPB requires.

1. Rehearse with a drill

A drill takes the same body as a real recall. It returns how many facilities a recall would reach, by hop, and sends and quarantines nothing. Keep the returned record: it's your evidence for PPB's annual recall-system challenge. Drills never appear in the public recall lookup.

POST /recalls/drill/
{
  "batch_number": "BTH-2026-041",
  "reason": "CONTAMINATION",
  "severity_class": "CLASS_II",
  "instructions": "DRILL - no action required."
}

If the reach is smaller than you expect, check the batch for orphan events: a shipment recorded without its parent can't be followed.

2. Open the recall

POST /recalls/
{
  "batch_number": "BTH-2026-041",
  "reason": "CONTAMINATION",
  "severity_class": "CLASS_II",
  "instructions": "Quarantine the batch and await collection instructions."
}
FieldValues
reasonQUALITY_DEFECT, CONTAMINATION, MISLABELING, ADVERSE_REACTION, REGULATORY_WITHDRAWAL, OTHER
severity_classCLASS_I (reasonable probability of serious harm or death), CLASS_II, CLASS_III, or CAUTION_IN_USE (an alert without a stock pull: nothing is quarantined)
  • A batch has one open recall at a time. Opening a second for the same batch (or the same sscc) gets 409 with the existing recall_id.
  • A manufacturer without a supplier account on DawaTrack also names the gtin, and may recall only products it is the registered manufacturer of.
  • Recalls opened through the API are always voluntary.

Who it reaches

Every facility the ledger shows received the batch, at every hop: including those that bought it through wholesale resale, and parties outside DawaTrack that were named on a shipment, who are emailed. Follow it with:

  • GET /recalls/{id}/: deadlines and acknowledgement progress.
  • GET /recalls/{id}/tree/: every facility reached, nested under who resold to whom.
  • GET /recalls/{id}/affected/: quantities, SSCCs and units per facility, with a summary across all of them.

3. Acknowledge (distributors and pharmacies)

A distributor or pharmacy credential linked to a facility sees the recalls that affect it with GET /recalls/, and confirms it has acted:

POST /recalls/{id}/acknowledge/
{
  "schema_name": "pharmacy_a",
  "notes": "Stock pulled from the shelf."
}

schema_name can be left out when the credential is linked to one facility only.

Being told instead of polling

Subscribe to recall.issued, recall.escalated, recall.acknowledged and hold.lifted. See Webhook events.

4. PPB reports

GET /recalls/{id}/report/?stage=initial, follow_up or final returns the three reports PPB requires for each recall. They report acknowledgements and the stock each facility held when the recall reached it; they don't estimate returned or destroyed quantities that weren't recorded.

Has this batch been recalled?

Anyone can check a batch, with no credentials: GET /recall-lookup/{gtin}/{batch_number}/.

Trying it in the sandbox

In the sandbox a manufacturer can open a real recall on its demo batch: it reaches DawaTrack Sandbox Pharmacy, and the email goes only to you. A distributor or pharmacy sandbox is linked to DawaTrack Sandbox Pharmacy and can practise acknowledging it.

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