Skip to main content
DropHub publishes two deployments. They share one contract and nothing else — data, credentials, and webhook secrets are separate.
A production credential is never valid against the sandbox, and a sandbox credential is never valid against production. Keep them in separate secret stores.

Prerequisites

  • A merchant account on the environment you are calling.
  • An API credential for it — a client_id and client_secret, copied from the DropHub dashboard.
  • A saved pickup location. On the sandbox, POST /api/v2/external/sandbox/bootstrap creates SANDBOX_PICKUP for you.

Every request

Every path starts with /api/v2:
Writes also send Content-Type: application/json. Unknown JSON properties are rejected with 400 MALFORMED_JSON. Accept-Language: ar selects Arabic text where a localized message exists. Machine error codes never change with language.
GET /api/v2/public/tracking/{code} is the one endpoint with no Authorization header — it is the link your customer opens. Everything under /api/v2/external requires a bearer token.