Quickstart
Make a read-only staging request first. You need a separately provisioned staging key with orders:read. A brand admin manages keys in Dashboard → Settings → Developer. Store the one-time secret in your secrets manager and expose it locally as DV_CLIENT_ID and DV_CLIENT_SECRET; never commit or log credentials.
1. Exchange the key
curl -X POST https://api-stg.deltavelocity.in/v1/oauth/token \
-d grant_type=client_credentials \
-d client_id="$DV_CLIENT_ID" \
-d client_secret="$DV_CLIENT_SECRET"
{
"access_token": "eyJhbGciOi…",
"token_type": "bearer",
"expires_in": 3600,
"scope": "orders:read"
}
Keep the returned token in DV_TOKEN. It normally lasts 60 minutes; expires_in is seconds. Reuse it until shortly before expiry. Token exchange also accepts JSON with the same three fields.
2. Read your warehouses
curl https://api-stg.deltavelocity.in/v1/warehouses \
-H "Authorization: Bearer $DV_TOKEN"
GET /v1/warehouses (scope orders:read) confirms authentication and shows your available dispatch locations without creating an order or booking a courier. An empty result means you need a warehouse before shipping.
3. Prepare your first shipment
Continue to Ship → Plan a shipment, then Orders and booking. Confirm your warehouse, GST approval, serviceability, wallet and courier test arrangements before creating orders. Review auto-allocation first: creating an order with ship: false can still book it when that setting is enabled.