Build on Trackberry

A JSON API for shipments, tracking, documents, free time, alerts and checks. Read everything your team sees in the app, and change it with a “Read and write” token.

Get a sandbox token API reference

OpenAPI file No token needed, always the latest version.

Get started in 5 minutes

  1. Get a sandbox token

    Build against an ERP sandbox, a separate organization of sample shipments, so nothing touches real data. An admin creates it under Organization settings → API & webhooks, with a “Read and write” token inside it.

    How the sandbox works
  2. Make your first call

    Call the organization endpoint with your token. The answer names the organization and confirms it is a sandbox.

    Run it below
  3. Pick an SDK or plain HTTP

    The official C# and Java libraries handle retries, idempotency keys, paging and webhook signatures. Any other language works over plain HTTP, from the OpenAPI file.

    Client libraries

Building an ERP integration? The ERP quick start runs the whole flow by hand in 15 minutes.

Guides

One guide for each part of an integration.

Your first call

Paste a sandbox token in the bar and press Run, or copy the call into a terminal and replace tb_your_token. The tabs show the same call in other languages.

curl
curl https://trackberry.com/api/v1/organization \
  -H "Authorization: Bearer tb_your_token"
C#
using System.Net.Http.Headers;

using var request = new HttpRequestMessage(HttpMethod.Get, "https://trackberry.com/api/v1/organization");
request.Headers.Authorization = new AuthenticationHeaderValue("Bearer", "tb_your_token");

using var response = await TrackberryApi.Client.SendAsync(request);
var body = await response.Content.ReadAsStringAsync();
if (!response.IsSuccessStatusCode)
{
    // The body is a JSON error: branch on error.code, show error.message.
    Console.Error.WriteLine($"HTTP {(int)response.StatusCode}: {body}");
    return;
}
Console.WriteLine(body);

// One HttpClient for the whole program: reuse it for every call.
static class TrackberryApi
{
    public static readonly HttpClient Client = new();
}
Java
import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;

public class Main {
    public static void main(String[] args) throws Exception {
        HttpRequest request = HttpRequest.newBuilder(URI.create("https://trackberry.com/api/v1/organization"))
            .header("Authorization", "Bearer tb_your_token")
            .GET()
            .build();

        HttpResponse<String> response = HttpClient.newHttpClient()
            .send(request, HttpResponse.BodyHandlers.ofString());
        System.out.println(response.statusCode() + " " + response.body());
    }
}
Python
import requests

response = requests.get(
    "https://trackberry.com/api/v1/organization",
    headers={"Authorization": "Bearer tb_your_token"},
)
response.raise_for_status()
print(response.json())

Latest API changes

Full changelog
  1. Failed imports, figures_version, Grouped lines, and 19 more

  2. ERP import, Changes after import, Article numbers

  3. expected_costs on the shipment, Automations with several actions, and triggered by an event…

Libraries and source code

Both libraries are open source under the MIT license, and generated from the OpenAPI file.

Everything else Trackberry publishes is on the open source page.