The Partner Shipping API lets approved business accounts quote, book, and track courier deliveries in Dar es Salaam from your own systems. Use sandbox keys to test without moving real parcels, then switch to live keys when your integration is ready.
API access is enabled per corporate account. Keys, webhook endpoints, and delivery logs are managed in the DROP-IT corporate portal under Developers.
The API follows a predictable flow: list approved pickup addresses, create a priced quote, confirm a shipment from that quote, then poll or listen for status updates. Operations staff can still use the corporate portal while your integration handles day-to-day booking.
Corporate business account with Partner Shipping API enabled by DROP-IT support.
HTTPS-only webhook URLs on your side (no redirects).
JSON request and response bodies with standard HTTP status codes.
Sandbox and live keys share the same base URL but are scoped by key prefix. Sandbox bookings create simulated shipments you can advance with the simulate endpoint; live bookings create real parcels subject to credit and service rules.
Sandbox
dk_sandbox_…
Safe for CI and staging. No real riders or charges. Use simulate to walk through statuses.
Live
dk_live_…
Production traffic. Requires active API access and approved corporate billing.
Base URL:
https://api.dropit.co.tz/api/v1/partner
Authentication
Send your API key as a Bearer token on every request. Keys are shown once when created; store them in a secrets manager. Each key carries abilities (for example read quotes vs create shipments) configured when the key is issued.
Authorization: Bearer dk_sandbox_your_key_here
Keys are header-only. Never put an API key in a query string or URL path (proxies, access logs, and browser history can leak it).
Grant only the abilities your integration needs. Prefer read abilities first; add shipments.write only when booking from your system.
Live keys belong in server-side secret storage. Rotate them periodically (and whenever a key may have been exposed).
Unauthorized or revoked keys return 401; missing abilities return 403. Rate limits apply per account (defaults are documented in the portal).
Pickup locations
Quotes reference saved corporate pickup addresses (warehouses, shops, or offices). Manage addresses in the portal, then pass the returned pickup_location_id when creating quotes.
GET https://api.dropit.co.tz/api/v1/partner/pickup-locations
— requires a key with quote read ability.
Quotes
POST a destination, recipient details, and parcel list to receive a quote ID and pricing. Quotes expire; book shipments before the expiry time returned in the response.
Confirm a shipment with the quote ID and your own merchant_reference (order number). Always send an Idempotency-Key header on create so network retries do not double-book.
Retrieve status with
GET https://api.dropit.co.tz/api/v1/partner/shipments/{tracking_number},
list recent jobs with
GET https://api.dropit.co.tz/api/v1/partner/shipments,
and cancel when allowed with
POST …/cancel.
Sandbox shipments support
POST …/simulate
to advance test statuses.
Webhooks
Register HTTPS endpoints in the corporate portal to receive JSON events (shipment created, picked up, out for delivery, delivered, and others). Each delivery includes headers you must verify before trusting the payload.
When a delivery or hub pickup requires confirmation, DROP-IT sends an SMS to the recipient phone you provide on the quote or shipment. Partner API parcels use merchant-aware templates (your company display name and tracking number) so recipients know who sent the parcel.
SMS copy for recipients is sent in English. Your integration should collect valid Tanzanian mobile numbers and keep them updated if orders change before pickup.
OpenAPI specification
Machine-readable schemas, enums, and response shapes live in our OpenAPI document. Use the interactive reference to try requests against your sandbox key, or download the YAML for codegen tools.
You need an approved DROP-IT corporate business account. Contact us with your expected volume and integration timeline; once enabled, you will see Developers in the corporate portal to create sandbox and live keys.
Can I test without creating real deliveries?
Yes. Create sandbox API keys (<code class="font-mono text-body-sm">dk_sandbox_…</code>), book test shipments, and use the simulate endpoint to walk through status changes without dispatching riders.
What happens if I retry shipment creation?
Send the same <code class="font-mono text-body-sm">Idempotency-Key</code> header with an identical body to receive the original response instead of creating a duplicate parcel. Change the key when you intentionally create a new shipment.
Where is the full endpoint list?
The <a href="https://www.dropit.co.tz/developers/reference" class="font-semibold text-primary underline underline-offset-4">interactive API reference</a> mirrors our OpenAPI specification, including request fields and error codes.
Ready to integrate?
Start in sandbox, wire up webhooks, then ask us to review before you flip live keys.