Skip to main content

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

  1. 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_code a 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 an Idempotency-Key. Four never read it: PATCH /lots/{gtin}/{batch_number}/, PATCH /parties/{id}/, POST /capture/code/ and POST /epcis/capture, which is keyed by its events' eventIDs. Reference examples now show realistic values, and the reference lists 415 and 422 where 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.

  2. 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).

  3. Added #

    Report dispensing for the pharmacies you serve

    For pharmacy software (a till or dispensing system) linked to DawaTrack facilities: a DISPENSE you write with facility_id set 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 your raw_payload.gln names (or its main branch). Put your sale or prescription number in raw_payload.reference_id; never a patient's details. New: GET /facilities/usage/ (scope facilities:read) counts the events you wrote for each linked facility in a period (from, to; the last 30 days by default).

  4. Changed #

    Invoice webhooks no longer fire

    Facilities no longer record supplier invoices or payments on DawaTrack (frozen since November, now removed), so invoice.created and invoice.payment_recorded are 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.

  5. Added #

    Name the receiving branch of a DawaTrack facility

    On POST /events/, a SHIP with destination_schema_name takes an optional destination_gln: the GLN of the facility's branch receiving it, which must be one of its branches (otherwise 400). 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 return destination_gln. destination_gln and destination_branch are now set by the server only: values put in raw_payload are dropped.

  6. 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.

  7. Added #

    Outside recipients of a SHIP can carry a GLN

    On POST /events/, a SHIP's recipient takes an optional gln (a GS1 GLN, check digit checked; a bad one is 400). 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.

  8. Added #

    Marketing authorisation holder GLN on products

    POST /products/ takes an optional marketing_authorisation_holder_gln (a GS1 GLN, check digit checked), and product reads return it. Kenya's national Track & Trace system needs the holder's GLN on the commissioning of goods whose holder is foreign.

  9. Added #

    Stocktakes on the ledger as STOCK_COUNT events

    When a facility reconciles a stocktake, every lot it counted becomes a STOCK_COUNT event, matched or not: quantity is the units counted, with no parent, because a count observes the lot rather than following from a receipt. EPCIS exports it as an ObjectEvent with bizStep stock_taking. It moves no stock, and traces don't follow it. Partners can't write one: POST /events/ with event_type STOCK_COUNT is 400. The event_type enum in the API schema gains the value.

  10. 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_type is STOLEN or LOST, and EPCIS exports it with bizStep decommissioning and disposition stolen or inactive. Before, theft and loss were only count corrections (stock_taking). A damage or expiry write-off now also carries disposal_method when the facility recorded how the stock was destroyed.

  11. Changed #

    Batch reads return your custody, not the whole batch

    GET /batches/{gtin}/{batch_number}/epcis/, GET /units/ and GET /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.

  12. 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 as POST /events/, with each eventID as the event's key and the parent named in dawatrack:parentEventID or, for a receipt, by its desadv business transaction. Follow the capture job at GET /epcis/capture/{captureID}. GET /epcis/events returns your own events as an EPCISQueryDocument, filtered by eventType, GE_eventTime, LT_eventTime, EQ_bizStep, MATCH_anyEPC and MATCH_epcClass.

  13. 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 on POST /products/ like the other declaration fields; it is optional. EPCIS exports carry it on each lot's master data as dawatrack:nationalProductCode.

  14. 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.

  15. Docs #

    The docs on phones, and a sidebar you can hide

    On a phone the menu opens as a drawer that closes when you pick a page, and wide tables and long URLs stay on the screen. On a desktop, hide the menu with the arrow at its top; it stays hidden.

  16. 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 COMMISSION needs a serial_number.

  17. 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.

  18. 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.

  19. Changed #

    The sandbox is its own environment

    The sandbox runs at https://sandbox.dawatrack.com/partner-api/v1 with its own data; inside it, sandbox credentials can do everything production allows. New credentials start sbx_ or live_, access tokens sbx_at_ or live_at_; a credential sent to the wrong environment gets 401 naming where it works. Every response carries X-DawaTrack-Environment. See Sandbox and production.

  20. 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.

  21. Security #

    Revoking a credential stops its tokens at once

    Access tokens issued by a revoked credential stop working immediately, not when they expire.

  22. Added #

    RETRACT

    Record that an event of yours didn't happen, for a document cancelled in your system: a RETRACT naming it in corrects_event (EPCIS did_not_occur). See the ledger.

  23. Added #

    A request quota per partner

    A partner can be given its own daily limit, shown in X-RateLimit-Limit on every answer. See Rate limits.

  24. Added #

    Receipts from any sender

    A trading partner can record its own receipts, naming a sender outside DawaTrack.

  25. 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.

  26. Added #

    Consignments and their webhooks

    GET /consignments/ shows each consignment and what its receiver recorded; the consignment.received and consignment.not_confirmed webhooks tell you without polling. The recall report lists the parties outside DawaTrack it reaches. See Shipments.

  27. Changed #

    The token endpoint follows OAuth 2.0

    Errors carry error and error_description (RFC 6749), credentials may come by HTTP Basic, and every answer has Cache-Control: no-store. detail is kept for existing clients.

  28. Changed #

    A reused Idempotency-Key is refused

    A key sent again with a different body or to another endpoint gets 422 with code: idempotency_key_reused, and nothing runs. See Idempotency.

  29. Changed #

    One open recall per batch

    Opening a recall for a batch that already has one gets 409 with the existing recall_id. See Recalls.

  30. Security #

    Webhooks over HTTPS only

    New webhook subscriptions must use an https:// URL, and the signing secret is shown once.

  31. Fixed #

    A commission that loses a race

    Two commissions of the same serial at the same moment: the second now gets 400, not 500.

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