Skip to main content

Developer Documentation

Developer documentation is available at developer.cargobase.com

Cargobase developer documentation is at https://developer.cargobase.com. It covers the APIs, authentication, data models and integration guides for connecting Cargobase with your own systems, such as posting tracking milestones and approving or declining invoices.

Getting an API token

To call the APIs, you need an access token. Shipper and provider companies can generate one in Cargobase:

  1. Go to Settings → Admin settings → API Tokens.

  2. Click Generate token. The full token is shown only once, so copy it and store it securely before closing the dialog. You can also revoke tokens here.

Your user role needs the Create developer tokens permission (under Developer in User roles). Without it, the API Tokens page doesn't appear.

For help with an integration or questions about the APIs, contact your Customer Excellence Manager.

What providers can do with the API

  • Quotes: submit or update quotes on requests you were invited to.

  • Status updates: POST /api/1/carrier-tracking-webhook with a Provider API token (same path on the sandbox and production hosts). Send JSON for milestones, or multipart/form-data with the payload in data (JSON string) and files in documents when attaching documents such as a POD (repeat documents for several files; don't Base64-encode them). Include shipment_id, tracking_number, tracking_type, tracking_update_text, tracking_status_tag, mode_of_transport, event_time and created_time; for DELIVERED, also send actual_arrival_time.

  • Bookings (if set up): Cargobase can push a JSON booking payload to your system when a shipment is booked. This is set up per integration – ask your Customer Excellence Manager. It isn't self-serve.

  • Invoices: submit invoices in Cargobase. The API can read invoice data. Attaching a PDF to a tracking update doesn't submit an invoice.

Full field lists and status values: https://developer.cargobase.com.

Did this answer your question?