LOGCommercial ยท Ninja Van

Ninja Van API

Singapore-headquartered SEA logistics network with APIs for creating orders, generating waybills, tracking parcels and receiving webhook events. Standard choice for e-commerce parcel delivery in SG.

How to authenticate

4 stops to a working call

  1. 1Contact Ninja Van (or your account manager) to become a shipper and get API credentials; there is a sandbox environment (api-sandbox.ninjavan.co).
  2. 2Get an access token via POST /SG/2.0/oauth/access_token with client_id, client_secret, grant_type=client_credentials.
  3. 3Tokens are long-lived; cache until expiry.
  4. 4Create orders on /SG/4.2/orders and subscribe to webhook events for tracking.

Example request

Request
curl -X POST 'https://api.ninjavan.co/SG/2.0/oauth/access_token' -H 'Content-Type: application/json' -d '{"client_id":"YOUR_ID","client_secret":"YOUR_SECRET","grant_type":"client_credentials"}'

Example response

Response (truncated)
{"access_token":"eyJhbGciOi...","expires_in":3600,"token_type":"bearer"}

Ninja Van API: common questions

Is the Ninja Van API free?

The Ninja Van API is listed as contact. Check the official Ninja Van docs for current pricing.

Does the Ninja Van API need an API key?

Yes. It uses OAuth 2.0. Contact Ninja Van (or your account manager) to become a shipper and get API credentials; there is a sandbox environment (api-sandbox.ninjavan.co). Get an access token via POST /SG/2.0/oauth/access_token with client_id, client_secret, grant_type=client_credentials. Tokens are long-lived; cache until expiry. Create orders on /SG/4.2/orders and subscribe to webhook events for tracking.

What is the Ninja Van API endpoint?

The base URL is https://api.ninjavan.co/SG. A working example: curl -X POST 'https://api.ninjavan.co/SG/2.0/oauth/access_token' -H 'Content-Type: application/json' -d '{"client_id":"YOUR_ID","client_secret":"YOUR_SECRET","grant_type":"client_credentials"}'

Notes for AI agents

The country code (SG) is part of the URL path on every endpoint. Shipper onboarding is required; the API is not usable anonymously.

Machine-readable version: /api/apis/ninja-van

On the same line