Download OpenAPI specification:
Logistics operations API for the 4klyft platform.
This API provides comprehensive endpoints for managing:
All API endpoints (except /api/docs and /api/v1/iam/auth/*) require JWT Bearer token authentication.
Include the token in the Authorization header:
Authorization: Bearer <your-jwt-token>
API requests are rate-limited to ensure fair usage. Standard limits are:
Represents a shipment moving through the logistics pipeline.
Shipments are assigned to routes for delivery and track the full lifecycle from creation to delivery.
Types:
Returns the carrier provider registry that drives the carrier-creation picker.
{- "totalItems": 0,
- "search": {
- "@type": "string",
- "template": "string",
- "variableRepresentation": "string",
- "mapping": [
- {
- "@type": "string",
- "variable": "string",
- "property": "string",
- "required": true
}
]
}, - "member": [
- {
- "@context": "string",
- "@id": "string",
- "@type": "string",
- "type": "ups",
- "label": "UPS",
- "capabilities": [
- "rate"
], - "serviceLevels": [
- "GROUND",
- "NEXT_DAY_AIR"
], - "coverage": [
- "US",
- "CA"
], - "credentialFields": [
- {
- "key": "clientId",
- "label": "Client ID",
- "type": "text",
- "required": true,
- "help": "string"
}
], - "supportedScopes": [
- "platform"
], - "allowsManualConfiguration": false
}
]
}Returns only whether a shared account is configured. The secret config is never returned.
| type required | string CarrierPlatformCredential identifier |
{- "@context": "string",
- "@id": "string",
- "@type": "string",
- "type": "ups",
- "configured": true
}Validates the supplied credentials against the provider's credential-field schema and stores them encrypted. Write-only — the secret is never echoed back.
| type required | string CarrierPlatformCredential identifier |
The updated CarrierPlatformCredential resource
object Provider credential config/secrets keyed by the provider's declared credential-field keys. Write-only — never returned. |
{- "credentials": {
- "apiKey": "sk_live_xxx",
- "accountNumber": "123456"
}
}{- "@context": "string",
- "@id": "string",
- "@type": "string",
- "type": "ups",
- "configured": true
}Retrieve a paginated list of external shipping providers.
| page | integer Default: 1 The collection page number |
{- "totalItems": 0,
- "search": {
- "@type": "string",
- "template": "string",
- "variableRepresentation": "string",
- "mapping": [
- {
- "@type": "string",
- "variable": "string",
- "property": "string",
- "required": true
}
]
}, - "view": {
- "@id": "string",
- "@type": "string",
- "first": "string",
- "last": "string",
- "previous": "string",
- "next": "string"
}, - "member": [
- {
- "@context": "string",
- "@id": "string",
- "@type": "string",
- "id": "string",
- "code": "UPS-PRIMARY",
- "name": "UPS",
- "type": "ups",
- "isInternal": false,
- "credentialScope": "platform",
- "environment": "sandbox",
- "status": "active",
- "capabilities": [
- "rate"
], - "serviceLevels": [
- "GROUND",
- "NEXT_DAY_AIR"
], - "coverage": [
- "US",
- "CA",
- "GB"
], - "createdAt": "string",
- "updatedAt": "string"
}
]
}Register an external carrier
The new Carrier resource
| code required | string [ 2 .. 64 ] characters |
| type required | string Default: "custom" Enum: "ups" "dhl" "fedex" "usps" "sendcloud" "custom" "internal" |
| credentialScope | string or null Value: "tenant" Credential model — |
| environment | string Default: "sandbox" Enum: "sandbox" "production" Provider environment — "sandbox" (test upstream, the default) or "production" (live upstream). Opting into production is deliberate. |
object BYO provider keys/secrets/config — required only for tenant scope. | |
| name | string or null <= 255 characters Display name — required for the custom provider, inherited otherwise. |
| capabilities | Array of strings Capabilities — custom provider only. |
| coverage | Array of strings Coverage as ISO 3166-1 alpha-2 country codes — custom provider only. |
{- "code": "string",
- "type": "ups",
- "credentialScope": "tenant",
- "environment": "sandbox",
- "credentials": {
- "property1": "string",
- "property2": "string"
}, - "name": "string",
- "capabilities": [
- "string"
], - "coverage": [
- "string"
]
}{- "@context": "string",
- "@id": "string",
- "@type": "string",
- "id": "string",
- "code": "UPS-PRIMARY",
- "name": "UPS",
- "type": "ups",
- "isInternal": false,
- "credentialScope": "platform",
- "environment": "sandbox",
- "status": "active",
- "capabilities": [
- "rate"
], - "serviceLevels": [
- "GROUND",
- "NEXT_DAY_AIR"
], - "coverage": [
- "US",
- "CA",
- "GB"
], - "createdAt": "string",
- "updatedAt": "string"
}Get an external carrier
| id required | string Carrier identifier |
{- "@context": "string",
- "@id": "string",
- "@type": "string",
- "id": "string",
- "code": "UPS-PRIMARY",
- "name": "UPS",
- "type": "ups",
- "isInternal": false,
- "credentialScope": "platform",
- "environment": "sandbox",
- "status": "active",
- "capabilities": [
- "rate"
], - "serviceLevels": [
- "GROUND",
- "NEXT_DAY_AIR"
], - "coverage": [
- "US",
- "CA",
- "GB"
], - "createdAt": "string",
- "updatedAt": "string"
}Update an external carrier
| id required | string Carrier identifier |
The updated Carrier resource
| name | string [ 2 .. 255 ] characters |
| type | string Default: "custom" Enum: "ups" "dhl" "fedex" "usps" "custom" "internal" |
| capabilities | Array of strings |
| serviceLevels | Array of strings |
| coverage | Array of strings |
| environment | string or null Enum: "sandbox" "production" Provider environment — "sandbox" or "production". Omit to leave unchanged. |
{- "name": "string",
- "type": "ups",
- "capabilities": [
- "string"
], - "serviceLevels": [
- "string"
], - "coverage": [
- "string"
], - "environment": "sandbox"
}{- "@context": "string",
- "@id": "string",
- "@type": "string",
- "id": "string",
- "code": "UPS-PRIMARY",
- "name": "UPS",
- "type": "ups",
- "isInternal": false,
- "credentialScope": "platform",
- "environment": "sandbox",
- "status": "active",
- "capabilities": [
- "rate"
], - "serviceLevels": [
- "GROUND",
- "NEXT_DAY_AIR"
], - "coverage": [
- "US",
- "CA",
- "GB"
], - "createdAt": "string",
- "updatedAt": "string"
}Activate an external carrier
| id required | string Carrier identifier |
{- "@context": "string",
- "@id": "string",
- "@type": "string",
- "id": "string",
- "code": "UPS-PRIMARY",
- "name": "UPS",
- "type": "ups",
- "isInternal": false,
- "credentialScope": "platform",
- "environment": "sandbox",
- "status": "active",
- "capabilities": [
- "rate"
], - "serviceLevels": [
- "GROUND",
- "NEXT_DAY_AIR"
], - "coverage": [
- "US",
- "CA",
- "GB"
], - "createdAt": "string",
- "updatedAt": "string"
}Deactivate an external carrier
| id required | string Carrier identifier |
{- "@context": "string",
- "@id": "string",
- "@type": "string",
- "id": "string",
- "code": "UPS-PRIMARY",
- "name": "UPS",
- "type": "ups",
- "isInternal": false,
- "credentialScope": "platform",
- "environment": "sandbox",
- "status": "active",
- "capabilities": [
- "rate"
], - "serviceLevels": [
- "GROUND",
- "NEXT_DAY_AIR"
], - "coverage": [
- "US",
- "CA",
- "GB"
], - "createdAt": "string",
- "updatedAt": "string"
}Fetch live rate quotes for a shipment from a carrier (carrierId query parameter, required).
| serviceLevel required | string CarrierRate identifier |
| page | integer Default: 1 The collection page number |
{- "totalItems": 0,
- "search": {
- "@type": "string",
- "template": "string",
- "variableRepresentation": "string",
- "mapping": [
- {
- "@type": "string",
- "variable": "string",
- "property": "string",
- "required": true
}
]
}, - "view": {
- "@id": "string",
- "@type": "string",
- "first": "string",
- "last": "string",
- "previous": "string",
- "next": "string"
}, - "member": [
- {
- "@context": "string",
- "@id": "string",
- "@type": "string",
- "serviceLevel": "GROUND",
- "amount": 595,
- "currency": "EUR",
- "estimatedTransitDays": 2
}
]
}A shipping client — a first-class customer that LINKS to an existing Partner (billing/contact entity) and layers shipping-specific defaults on top: preferred pickup/delivery addresses, billing terms, service level, and handling requirements.
Tenant-managed reference data. The linked partner is immutable once set.
Retrieve a paginated list of shipping clients.
| page | integer Default: 1 The collection page number |
{- "totalItems": 0,
- "search": {
- "@type": "string",
- "template": "string",
- "variableRepresentation": "string",
- "mapping": [
- {
- "@type": "string",
- "variable": "string",
- "property": "string",
- "required": true
}
]
}, - "view": {
- "@id": "string",
- "@type": "string",
- "first": "string",
- "last": "string",
- "previous": "string",
- "next": "string"
}, - "member": [
- {
- "@context": "string",
- "@id": "string",
- "@type": "string",
- "id": "string",
- "partnerId": "string",
- "partnerName": "Acme Corp",
- "status": "active",
- "accountReference": "string",
- "defaultServiceLevel": "standard",
- "defaultHandlingRequirements": [
- "fragile"
], - "defaultPickupAddress": {
- "street": "1 Market St",
- "streetLine2": "string",
- "city": "Springfield",
- "province": "string",
- "postalCode": "12345",
- "countryCode": "US",
- "contactName": "string",
- "contactPhone": "string",
- "instructions": "string",
- "latitude": 0,
- "longitude": 0
}, - "defaultDeliveryAddress": {
- "street": "1 Market St",
- "streetLine2": "string",
- "city": "Springfield",
- "province": "string",
- "postalCode": "12345",
- "countryCode": "US",
- "contactName": "string",
- "contactPhone": "string",
- "instructions": "string",
- "latitude": 0,
- "longitude": 0
}, - "billingTerms": {
- "netDays": 30,
- "currency": "EUR",
- "paymentMethod": "string"
}, - "createdAt": "string",
- "updatedAt": "string"
}
]
}Register a shipping client for an existing partner
The new Client resource
| partnerId required | string <= 100 characters The existing Partner this client wraps. |
| accountReference | string or null <= 128 characters |
| defaultServiceLevel | string or null Enum: "standard" "express" "same_day" "next_day" |
| defaultHandlingRequirements | Array of strings |
ShipmentAddressInput (object) or null | |
ShipmentContactInput (object) or null | |
ShipmentCoordinatesInput (object) or null | |
ShipmentAddressInput (object) or null | |
ShipmentContactInput (object) or null | |
ShipmentCoordinatesInput (object) or null | |
ClientBillingTermsInput (object) or null |
{- "partnerId": "string",
- "accountReference": "string",
- "defaultServiceLevel": "standard",
- "defaultHandlingRequirements": [
- "string"
], - "pickupAddress": {
- "street": "string",
- "city": "string",
- "postalCode": "string",
- "countryCode": "st",
- "streetLine2": "string",
- "province": "string"
}, - "pickupContact": {
- "name": "string",
- "phone": "string",
- "email": "string"
}, - "pickupCoordinates": {
- "latitude": -90,
- "longitude": -180
}, - "deliveryAddress": {
- "street": "string",
- "city": "string",
- "postalCode": "string",
- "countryCode": "st",
- "streetLine2": "string",
- "province": "string"
}, - "deliveryContact": {
- "name": "string",
- "phone": "string",
- "email": "string"
}, - "deliveryCoordinates": {
- "latitude": -90,
- "longitude": -180
}, - "billingTerms": {
- "netDays": 0,
- "currency": "str",
- "paymentMethod": "string"
}
}{- "@context": "string",
- "@id": "string",
- "@type": "string",
- "id": "string",
- "partnerId": "string",
- "partnerName": "Acme Corp",
- "status": "active",
- "accountReference": "string",
- "defaultServiceLevel": "standard",
- "defaultHandlingRequirements": [
- "fragile"
], - "defaultPickupAddress": {
- "street": "1 Market St",
- "streetLine2": "string",
- "city": "Springfield",
- "province": "string",
- "postalCode": "12345",
- "countryCode": "US",
- "contactName": "string",
- "contactPhone": "string",
- "instructions": "string",
- "latitude": 0,
- "longitude": 0
}, - "defaultDeliveryAddress": {
- "street": "1 Market St",
- "streetLine2": "string",
- "city": "Springfield",
- "province": "string",
- "postalCode": "12345",
- "countryCode": "US",
- "contactName": "string",
- "contactPhone": "string",
- "instructions": "string",
- "latitude": 0,
- "longitude": 0
}, - "billingTerms": {
- "netDays": 30,
- "currency": "EUR",
- "paymentMethod": "string"
}, - "createdAt": "string",
- "updatedAt": "string"
}Get a shipping client
| id required | string Client identifier |
{- "@context": "string",
- "@id": "string",
- "@type": "string",
- "id": "string",
- "partnerId": "string",
- "partnerName": "Acme Corp",
- "status": "active",
- "accountReference": "string",
- "defaultServiceLevel": "standard",
- "defaultHandlingRequirements": [
- "fragile"
], - "defaultPickupAddress": {
- "street": "1 Market St",
- "streetLine2": "string",
- "city": "Springfield",
- "province": "string",
- "postalCode": "12345",
- "countryCode": "US",
- "contactName": "string",
- "contactPhone": "string",
- "instructions": "string",
- "latitude": 0,
- "longitude": 0
}, - "defaultDeliveryAddress": {
- "street": "1 Market St",
- "streetLine2": "string",
- "city": "Springfield",
- "province": "string",
- "postalCode": "12345",
- "countryCode": "US",
- "contactName": "string",
- "contactPhone": "string",
- "instructions": "string",
- "latitude": 0,
- "longitude": 0
}, - "billingTerms": {
- "netDays": 30,
- "currency": "EUR",
- "paymentMethod": "string"
}, - "createdAt": "string",
- "updatedAt": "string"
}Update a shipping client profile
| id required | string Client identifier |
The updated Client resource
| accountReference | string or null <= 128 characters |
| defaultServiceLevel | string or null Enum: "standard" "express" "same_day" "next_day" |
| defaultHandlingRequirements | Array of strings |
ShipmentAddressInput (object) or null | |
ShipmentContactInput (object) or null | |
ShipmentCoordinatesInput (object) or null | |
ShipmentAddressInput (object) or null | |
ShipmentContactInput (object) or null | |
ShipmentCoordinatesInput (object) or null | |
ClientBillingTermsInput (object) or null |
{- "accountReference": "string",
- "defaultServiceLevel": "standard",
- "defaultHandlingRequirements": [
- "string"
], - "pickupAddress": {
- "street": "string",
- "city": "string",
- "postalCode": "string",
- "countryCode": "st",
- "streetLine2": "string",
- "province": "string"
}, - "pickupContact": {
- "name": "string",
- "phone": "string",
- "email": "string"
}, - "pickupCoordinates": {
- "latitude": -90,
- "longitude": -180
}, - "deliveryAddress": {
- "street": "string",
- "city": "string",
- "postalCode": "string",
- "countryCode": "st",
- "streetLine2": "string",
- "province": "string"
}, - "deliveryContact": {
- "name": "string",
- "phone": "string",
- "email": "string"
}, - "deliveryCoordinates": {
- "latitude": -90,
- "longitude": -180
}, - "billingTerms": {
- "netDays": 0,
- "currency": "str",
- "paymentMethod": "string"
}
}{- "@context": "string",
- "@id": "string",
- "@type": "string",
- "id": "string",
- "partnerId": "string",
- "partnerName": "Acme Corp",
- "status": "active",
- "accountReference": "string",
- "defaultServiceLevel": "standard",
- "defaultHandlingRequirements": [
- "fragile"
], - "defaultPickupAddress": {
- "street": "1 Market St",
- "streetLine2": "string",
- "city": "Springfield",
- "province": "string",
- "postalCode": "12345",
- "countryCode": "US",
- "contactName": "string",
- "contactPhone": "string",
- "instructions": "string",
- "latitude": 0,
- "longitude": 0
}, - "defaultDeliveryAddress": {
- "street": "1 Market St",
- "streetLine2": "string",
- "city": "Springfield",
- "province": "string",
- "postalCode": "12345",
- "countryCode": "US",
- "contactName": "string",
- "contactPhone": "string",
- "instructions": "string",
- "latitude": 0,
- "longitude": 0
}, - "billingTerms": {
- "netDays": 30,
- "currency": "EUR",
- "paymentMethod": "string"
}, - "createdAt": "string",
- "updatedAt": "string"
}Activate a shipping client
| id required | string Client identifier |
{- "@context": "string",
- "@id": "string",
- "@type": "string",
- "id": "string",
- "partnerId": "string",
- "partnerName": "Acme Corp",
- "status": "active",
- "accountReference": "string",
- "defaultServiceLevel": "standard",
- "defaultHandlingRequirements": [
- "fragile"
], - "defaultPickupAddress": {
- "street": "1 Market St",
- "streetLine2": "string",
- "city": "Springfield",
- "province": "string",
- "postalCode": "12345",
- "countryCode": "US",
- "contactName": "string",
- "contactPhone": "string",
- "instructions": "string",
- "latitude": 0,
- "longitude": 0
}, - "defaultDeliveryAddress": {
- "street": "1 Market St",
- "streetLine2": "string",
- "city": "Springfield",
- "province": "string",
- "postalCode": "12345",
- "countryCode": "US",
- "contactName": "string",
- "contactPhone": "string",
- "instructions": "string",
- "latitude": 0,
- "longitude": 0
}, - "billingTerms": {
- "netDays": 30,
- "currency": "EUR",
- "paymentMethod": "string"
}, - "createdAt": "string",
- "updatedAt": "string"
}Deactivate a shipping client
| id required | string Client identifier |
{- "@context": "string",
- "@id": "string",
- "@type": "string",
- "id": "string",
- "partnerId": "string",
- "partnerName": "Acme Corp",
- "status": "active",
- "accountReference": "string",
- "defaultServiceLevel": "standard",
- "defaultHandlingRequirements": [
- "fragile"
], - "defaultPickupAddress": {
- "street": "1 Market St",
- "streetLine2": "string",
- "city": "Springfield",
- "province": "string",
- "postalCode": "12345",
- "countryCode": "US",
- "contactName": "string",
- "contactPhone": "string",
- "instructions": "string",
- "latitude": 0,
- "longitude": 0
}, - "defaultDeliveryAddress": {
- "street": "1 Market St",
- "streetLine2": "string",
- "city": "Springfield",
- "province": "string",
- "postalCode": "12345",
- "countryCode": "US",
- "contactName": "string",
- "contactPhone": "string",
- "instructions": "string",
- "latitude": 0,
- "longitude": 0
}, - "billingTerms": {
- "netDays": 30,
- "currency": "EUR",
- "paymentMethod": "string"
}, - "createdAt": "string",
- "updatedAt": "string"
}