For manufacturers
The calls a manufacturer's ERP makes, in order: register products, commission and pack them, ship them or answer pharmacies' orders, and recall a batch when it has to. Each step links to its detail.
What you need
- A manufacturer credential. It comes with
products:read,products:write,batches:read,events:write,recalls:read,recalls:write,webhooks:manage,orders:readandorders:write. See Scopes and partner types. - For orders, deliveries and your recalls' reach, ask us to link your credential to your supplier account on DawaTrack. You see your products, deliveries and recalls through it.
- Build it in the sandbox first: there, every step below works with any GTIN.
1. Register your products
POST /products/ registers a product you manufacture, or updates one your credential already owns. GET /products/{gtin}/ reads it back. A product already in the catalogue with no manufacturer (most came from the PPB register) isn't changed: the call opens an ownership claim for DawaTrack to decide, and returns 202. Production credentials only.
2. Commission units
A COMMISSION brings a serialised unit onto the ledger; serial_number is required. It names no parent: it's where the lot starts. Its batch number must fit a GS1 DataMatrix, and its expiry and manufacture date create the lot record. A GTIN and serial can be commissioned once, ever.
{
"event_type": "COMMISSION",
"gtin": "06164004321562",
"batch_number": "BTH-2026-041",
"serial_number": "SN-000001",
"expiry_date": "2028-06-30"
}
For a production run, send up to 1,000 at a time with POST /events/bulk/.
3. Pack cases and pallets
POST /aggregations/ declares which units, or which smaller cases, are packed under an SSCC; POST /aggregations/{sscc}/disaggregate/ unpacks it. A recall of a case then reaches every unit in it. To let a contract packer pack for you, authorize it with POST /packing-authorizations/. All three are manufacturer and production credentials only.
4. Ship
Either record your shipments yourself, or answer the orders pharmacies place with you:
- Your own shipments: a
SHIPper line, naming itsCOMMISSIONorAGGREGATEasparent_event, with a consignment number and the receiver. See Shipments and confirmation. - Orders from pharmacies on DawaTrack:
GET /purchase-orders/?status=SENTlists those waiting. Confirm or reject each, thenPOST /purchase-orders/{id}/delivery/with each line's batch and units: every line becomes aSHIP, and the pharmacy's receipt links to it. Theorder.createdwebhook tells you when one arrives.
5. Follow where it went
GET /consignments/: what each receiver recorded, line by line; or theconsignment.receivedwebhook.GET /batches/: receipts of your shipments, whoever received them.GET /batches/{gtin}/{batch_number}/tree/: every party a batch reached, hop by hop. Check/orphans/too: an orphan is an event a recall can't reach.
6. Recall a batch
Rehearse with POST /recalls/drill/, open with POST /recalls/, follow acknowledgements, and download PPB's reports. 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.