Changelog
Changes to the Partner API and these docs, newest first. Subscribe to the Atom feed to hear of them, and see the versioning policy for what may change within v1.
November 2026
-
Docs #
EPCIS guide, job error codes, and which writes need an Idempotency-Key
New guide: EPCIS 2.0 exchange, covering capture, identifiers, naming the parent event, queries and limits, with examples DawaTrack's tests run through capture. Errors now lists every
error_codea bulk or capture job returns, the token endpoint's OAuth errors, EPCIS problem details, and what to retry. The Idempotency guide and the OpenAPI schema now name the writes that need anIdempotency-Key. Four never read it:PATCH /lots/{gtin}/{batch_number}/,PATCH /parties/{id}/,POST /capture/code/andPOST /epcis/capture, which is keyed by its events'eventIDs. Reference examples now show realistic values, and the reference lists415and422where they apply. Search finds guide sections as well as pages. The interactive docs at/partner-api/v1/docs/and the OpenAPI schema now carry the same text, grouped as these docs are, with written examples, the scope each operation needs, and an OAuth 2.0 client credentials flow, so Authorize gets a token from your client ID and secret. The API itself didn't change. -
Fixed #
Packing refuses a unit or case still inside another packed container
POST /aggregations/now refuses (409) a child that is still inside another container that hasn't been unpacked: a unit already in a packed case, or a case still on a packed pallet. An item sits in one container at a time, and the national system flags a unit packed under two containers as an invalid parent-child relation. Unpack the old container first (POST /aggregations/{sscc}/disaggregate/), then pack. Applied to v1 at once, as a fix that keeps data correct (versioning). -
Security #
Writing for a DawaTrack facility needs a link to it
On
POST /events/, afacility_idnaming a DawaTrack facility is refused (400) unless your account is linked to that facility (the facility asks DawaTrack to link you). Araw_payload.glnon such an event must be one of the facility's branches.facility_idvalues that aren't DawaTrack facilities (a GLN of your own, a supplier node) are unchanged. Applied to v1 at once, as a fix that keeps data correct (versioning). -
Added #
Report dispensing for the pharmacies you serve
For pharmacy software (a till or dispensing system) linked to DawaTrack facilities: a
DISPENSEyou write withfacility_idset to the facility goes to Kenya's national Track & Trace system with the facility's own national key, once the facility has switched reporting on, from the branch yourraw_payload.glnnames (or its main branch). Put your sale or prescription number inraw_payload.reference_id; never a patient's details. New:GET /facilities/usage/(scopefacilities:read) counts the events you wrote for each linked facility in a period (from,to; the last 30 days by default). -
Changed #
Invoice webhooks no longer fire
Facilities no longer record supplier invoices or payments on DawaTrack (frozen since November, now removed), so
invoice.createdandinvoice.payment_recordedare never sent. The event names are still accepted on a webhook subscription, so existing subscriptions keep working; they just receive no invoice events. Nothing else changes. -
Added #
Name the receiving branch of a DawaTrack facility
On
POST /events/, a SHIP withdestination_schema_nametakes an optionaldestination_gln: the GLN of the facility's branch receiving it, which must be one of its branches (otherwise400). The facility sees which branch the delivery is for, and the national Track and Trace report names that branch; without it, the main branch. Event reads returndestination_gln.destination_glnanddestination_branchare now set by the server only: values put inraw_payloadare dropped. -
Changed #
Your events can reach the national traceability system
Events written through this API now go to Kenya's national Track & Trace system when the supplier account your credential is linked to has saved its own national key and switched reporting on (National T&T, on the supplier portal). A manufacturer key sends your products' commissioning, packing and shipping; a distributor key sends deliveries received and shipments of products you don't make. Nothing changes in what you send or what the API answers. Tested on the national sandbox for wholesale events, not yet for manufacturer events; not live.
-
Added #
Outside recipients of a SHIP can carry a GLN
On
POST /events/, a SHIP'srecipienttakes an optionalgln(a GS1 GLN, check digit checked; a bad one is400). It is kept on the event with the recipient's name and licence, and names the recipient when the shipment is reported to Kenya's national Track & Trace system. -
Added #
Stocktakes on the ledger as STOCK_COUNT events
When a facility reconciles a stocktake, every lot it counted becomes a
STOCK_COUNTevent, matched or not:quantityis the units counted, with no parent, because a count observes the lot rather than following from a receipt. EPCIS exports it as anObjectEventwith bizStepstock_taking. It moves no stock, and traces don't follow it. Partners can't write one:POST /events/withevent_typeSTOCK_COUNTis400. Theevent_typeenum in the API schema gains the value. -
Added #
Theft and loss in facility stock events
A facility can now record stock as stolen or lost. Each is its own QUARANTINE stock event whose
movement_typeisSTOLENorLOST, and EPCIS exports it with bizStepdecommissioningand dispositionstolenorinactive. Before, theft and loss were only count corrections (stock_taking). A damage or expiry write-off now also carriesdisposal_methodwhen the facility recorded how the stock was destroyed. -
Changed #
Batch reads return your custody, not the whole batch
GET /batches/{gtin}/{batch_number}/epcis/,GET /units/andGET /units/{gtin}/{serial}/now return your custody of a batch: your own events, everything that followed from them, and the event you received it from, as trading partners are scoped under the US DSCSA. The lot's owner (its manufacturer, an authorised contract packer, or the owner on the lot record) still gets the whole batch. Writing is unchanged: you record your own events of any batch you hold. Before, any event in a batch showed you all of it, other parties' branches included. -
Added #
GS1 EPCIS 2.0 capture and query
Send an EPCIS 2.0 JSON-LD document to
POST /epcis/capture: commissioning, shipping, receiving and dispensing ObjectEvents become events through the same checks asPOST /events/, with eacheventIDas the event's key and the parent named indawatrack:parentEventIDor, for a receipt, by itsdesadvbusiness transaction. Follow the capture job atGET /epcis/capture/{captureID}.GET /epcis/eventsreturns your own events as anEPCISQueryDocument, filtered byeventType,GE_eventTime,LT_eventTime,EQ_bizStep,MATCH_anyEPCandMATCH_epcClass. -
Added #
National product catalogue code on products
Products take and return
national_product_code: the product's code in Kenya's national product catalogue, kept by the Digital Health Agency with PPB. Send it onPOST /products/like the other declaration fields; it is optional. EPCIS exports carry it on each lot's master data asdawatrack:nationalProductCode. -
Docs #
Code samples in PHP, Java and C#
Every example request is now in cURL, Python, Node.js, PHP, Java and C#, in the API reference and the guides, and Verifying webhooks adds C#. Pick a language once; every example follows it.
-
Docs #
Guides for each partner type
Step-by-step integrations for manufacturers, for distributors and for pharmacies. Identifiers, events and the ledger now says a
COMMISSIONneeds aserial_number. -
Docs #
New guides: data model, recalls, going live, versioning
Identifiers, events and the ledger explains the parent rule; Recalls walks through a drill to the PPB reports; Going live checklist; and this changelog with its versioning policy.
-
Added #
The base URL answers
GET /partner-api/v1/returns the API's name, version and environment, with links to the token endpoint, these docs, the OpenAPI schema and both environments. -
Changed #
The sandbox is its own environment
The sandbox runs at
https://sandbox.dawatrack.com/partner-api/v1with its own data; inside it, sandbox credentials can do everything production allows. New credentials startsbx_orlive_, access tokenssbx_at_orlive_at_; a credential sent to the wrong environment gets401naming where it works. Every response carriesX-DawaTrack-Environment. See Sandbox and production. -
Security #
Webhook signatures cover the timestamp
The signature is an HMAC of the timestamp and the body, so your endpoint can reject a delivery replayed later. See Verifying webhooks.
-
Security #
Revoking a credential stops its tokens at once
Access tokens issued by a revoked credential stop working immediately, not when they expire.
-
Added #
RETRACT
Record that an event of yours didn't happen, for a document cancelled in your system: a
RETRACTnaming it incorrects_event(EPCISdid_not_occur). See the ledger. -
Added #
A request quota per partner
A partner can be given its own daily limit, shown in
X-RateLimit-Limiton every answer. See Rate limits. -
Added #
Receipts from any sender
A trading partner can record its own receipts, naming a
senderoutside DawaTrack. -
Fixed #
The parent rule on every path
Data correctness: the parent rule is enforced on every event written, by every endpoint. See the parent rule.
-
Added #
Consignments and their webhooks
GET /consignments/shows each consignment and what its receiver recorded; theconsignment.receivedandconsignment.not_confirmedwebhooks tell you without polling. The recall report lists the parties outside DawaTrack it reaches. See Shipments. -
Changed #
The token endpoint follows OAuth 2.0
Errors carry
erroranderror_description(RFC 6749), credentials may come by HTTP Basic, and every answer hasCache-Control: no-store.detailis kept for existing clients. -
Changed #
A reused Idempotency-Key is refused
A key sent again with a different body or to another endpoint gets
422withcode: idempotency_key_reused, and nothing runs. See Idempotency. -
Changed #
One open recall per batch
Opening a recall for a batch that already has one gets
409with the existingrecall_id. See Recalls. -
Security #
Webhooks over HTTPS only
New webhook subscriptions must use an
https://URL, and the signing secret is shown once. -
Fixed #
A commission that loses a race
Two commissions of the same serial at the same moment: the second now gets
400, not500.
Partner API v1. The API reference is generated from the API's own code.