Skip to content

API-översikt ​

Trackbay har ett publikt integrations-API för kundsystem (ERP, WMS) som autentiseras med en API-nyckel i headern X-API-Key. Nycklar skapas av en TenantAdmin (se API-nycklar).

Publika endpoints ​

MetodSökvägRollerBeskrivning
GET/api/public/v1/deliveries/{id}API-nyckelA single delivery with its full tracking history. 404 if it does not exist or belongs to a different tenant (indistinguishable by design).
PATCH/api/public/v1/deliveries/{id}/statusAPI-nyckelUpdates a delivery's status. 400 on an invalid transition, 404 if the delivery doesn't exist/belongs to another tenant.
GET/api/public/v1/ordersAPI-nyckelLists every order for the key's tenant, newest first. Product lines are omitted here - fetch a single order for those.
POST/api/public/v1/ordersAPI-nyckelCreates an order for the key's tenant. 409 if the order number is already used within that tenant.
GET/api/public/v1/orders/{id}API-nyckelA single order, including its product lines with picked/remaining quantities. 404 if it does not exist or belongs to a different tenant (indistinguishable by design).
PATCH/api/public/v1/orders/{id}/statusAPI-nyckelUpdates an order's status. 400 on an invalid transition, 404 if the order doesn't exist/belongs to another tenant, 409 if the order is currently blocked or archived.
GET/api/public/v1/orders/{orderId}/deliveryAPI-nyckelThe delivery for a given order (orders and deliveries are 1:1). 404 if the order has no delivery, doesn't exist, or belongs to a different tenant (all indistinguishable by design).

Genererad tabell

Tabellen skapas av yarn generate från API:ts OpenAPI-specifikation. Redigera den inte för hand.