Overview
REST API in JSON to quote, book and track pallet shipments in the pallet network (LTL) from an ERP, a transport management system (TMS), a WMS or an online shop. Prices are those of your FreightMaster customer account: you open no contract with a carrier.
One server, two modes. The prefix of the key selects the mode: fm_ (production) or fm_ (sandbox). In the sandbox, quotes are real, at the prices of your account, and bookings are simulated: no real shipment, no message to your agency. A test key is self-service in the customer portal, “API” menu. The production key opens after your agency has reviewed a test booking.
Who can book. Real bookings are reserved for monthly-invoiced accounts whose agency has opened API booking. Other accounts can quote and test; an account paying by card can ask its agency for monthly invoicing from the portal. GET / says what the key can do.
Authentication. Authorization: Bearer <, never in the URL.
Errors. application/ (RFC 9457) with a stable code, a type link to its description and a request_. Messages are in French by default, in English with Accept-Language: en. A body that is not valid JSON is rejected by the hosting platform before the API, with a generic HTML 400 page: check the Content-Type of an error response.
Conventions. Field names in snake_case. Amounts in euros, two decimals, excluding VAT unless the name says incl_. Times in ISO 8601 UTC; calendar dates YYYY-MM-DD, Paris time.
Quote and price. A quote is valid for 24 hours. The price is kept if the booked shipment is identical, as long as the carrier still serves the shipment and the pickup date is still possible; otherwise, request a new quote. The shipment. event reports a price change after booking.
Pickup. On the next business day at the earliest (Paris time, French public holidays excluded). The date is requested, never guaranteed.
Idempotency. POST / requires Idempotency-Key: one key per order and per attempt (PO-12345-1, then PO-12345-2 after a cancellation). Same key and same body for 48 hours: the first response is returned again.
Label and tracking. The label is not created at booking: your agency attaches it afterwards, with no guaranteed time, and sometimes none is attached (for example when the carrier brings it at pickup). label. is an indicative time returned by the API, with no commitment. GET / answers 409 until the label is ready.
Events. Every change of a shipment produces an event, read with GET / (reference channel, by sequence) or received by signed webhook. Test and production have separate sequences: keep one cursor per mode.
Carriers. carrier. is an open string. On some accounts, an offer is named “Partenaire Premium” (premium_), the trade name of a partner carrier.
Common errors. Every endpoint can return 401 unauthorized, 403 account_, 503 api_ and 500 internal; an unknown path returns 404 not_, a wrong method 405 method_.
Versions. Compatible additions do not change the version: read responses without rejecting unknown fields. A breaking change opens /, with 12 months of overlap.
| Name | Description |
|---|---|
| Server | https:/. Single server. The prefix of the key selects the mode: fm_ (production) or fm_ (sandbox). |
| Authorization | API key: fm_ (production) or fm_ (sandbox) followed by 43 letters and digits. Created in the customer portal, “API” menu, and shown only once. |
| OpenAPI | / (in English) · / (in French) |
Getting started: a first quote · Labels, tracking and webhooks · Limits · Errors
Endpoints
| Operation | Method | Path | Summary |
|---|---|---|---|
| getAccount | GET | / | Account, capabilities and limits of the key |
| createQuote | POST | / | Quote a shipment |
| getQuote | GET | / | Read a quote |
| createShipment | POST | / | Book an offer |
| listShipments | GET | / | List shipments |
| getShipment | GET | / | Read a shipment |
| getShipmentLabel | GET | / | Download the label (PDF) |
| cancelShipment | POST | / | Cancel a shipment |
| listEvents | GET | / | Read the event stream |
| advanceTestShipment | POST | / | Sandbox: move a simulated shipment one step forward |
GET /me
Account, capabilities and limits of the key · getAccount
Returns the account of the key, whether it can book, its VAT regime and its limits. Quota: 120 reads per minute, per key.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| Accept-Language | header | string | no | en… for messages and labels in English; French otherwise. |
Responses
200 The account. Returned object: Account.
Response example: Test key (sandbox)
{
"object": "account",
"livemode": false,
"key_id": "key_120b745f43056f60",
"account": {
"company": "Exemple Logistique SAS",
"currency": "EUR",
"vat": {
"regime": "fr_standard",
"rate_percent": 20
}
},
"capabilities": {
"can_quote": true,
"can_book": true
},
"limits": {
"quotes_per_minute": 60,
"quotes_per_day": 2000,
"bookings_per_hour": 20,
"bookings_per_day": 100,
"reads_per_minute": 120,
"cancellations_per_hour": 20,
"account_bookings_per_day": 10,
"account_bookings_per_month": 60,
"account_bookings_today": 0,
"account_bookings_this_month": 0,
"account_quotes_per_day": 200
}
}Response example: Production key of an account paying by card
{
"object": "account",
"livemode": true,
"key_id": "key_cc310f54544e6684",
"account": {
"company": "Exemple Logistique SAS",
"currency": "EUR",
"vat": {
"regime": "fr_standard",
"rate_percent": 20
}
},
"capabilities": {
"can_quote": true,
"can_book": false
},
"booking_blocked_reason": "card_prepayment",
"limits": {
"quotes_per_minute": 60,
"quotes_per_day": 2000,
"bookings_per_hour": 20,
"bookings_per_day": 100,
"reads_per_minute": 120,
"cancellations_per_hour": 20,
"account_bookings_per_day": 10,
"account_bookings_per_month": 60,
"account_bookings_today": 0,
"account_bookings_this_month": 0,
"account_quotes_per_day": 200
}
}Possible errors
401unauthorized: Missing or invalid API key403account_disabled: API access disabled for this account429rate_limited: Too many requests for this key500internal: Internal error503api_disabled: API temporarily disabled
Call with curl
curl -X GET 'https://freightmaster.fr/api/v1/me' \
-H "Authorization: Bearer $FM_KEY"POST /quotes
Quote a shipment · createQuote
Returns the offers of the carriers for one shipment, at the prices of your account, sorted by total price, lowest first. The quote is valid for 24 hours. The number of offers depends on the route, the load and your account. When no carrier offers a rate, offers is empty and unavailable says why. With a test key, quotes are real. Quota: 60 quotes per minute and 2,000 per day, per key.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| Accept-Language | header | string | no | en… for messages and labels in English; French otherwise. |
Request body
| Field | Type | Required | Description |
|---|---|---|---|
| origin | Place | yes | A place of the route. |
| origin. | string | yes | ISO 3166-1 alpha-2 country code. France must be the origin or the destination. A country accepted here is not served on every lane or by every account: the quote response tells you. Values: FR, GB, BE, CZ, DE, NL, IT, ES, PT, PL, RO, BG, AT, GR, FI, HU, SE, AD, BA, HR, DK, EE, IE, XK, LV, LI, LT, LU, MK, ME, NO, RS, SK, SI, CH, GI. |
| origin. | string | yes | Full postal code, in the format of the country (France: 5 digits). Examples (open list): 59000, 69003. |
| destination | Place | yes | A place of the route. |
| destination. | string | yes | ISO 3166-1 alpha-2 country code. France must be the origin or the destination. A country accepted here is not served on every lane or by every account: the quote response tells you. Values: FR, GB, BE, CZ, DE, NL, IT, ES, PT, PL, RO, BG, AT, GR, FI, HU, SE, AD, BA, HR, DK, EE, IE, XK, LV, LI, LT, LU, MK, ME, NO, RS, SK, SI, CH, GI. |
| destination. | string | yes | Full postal code, in the format of the country (France: 5 digits). Examples (open list): 59000, 69003. |
| pickup_ | string (date) | null | no | Requested pickup date (YYYY-MM-DD, Paris time): a business day, from the next business day to 90 days ahead. Default: the next business day. Requested, never guaranteed. |
| pallets | array< | yes | Pallet lines (6 lines at most). Limits of the pallet network: 6 pallets, 2.4 loading meters, 220 cm high, 1,500 kg per pallet, 400 cm long; beyond 240 cm long, 4 m³ per shipment and 100 kg per pallet. |
| pallets[]. | integer | no | Number of identical pallets on this line. |
| pallets[]. | number | yes | Length in cm. 400 cm at most. |
| pallets[]. | number | yes | Width in cm. |
| pallets[]. | number | yes | Height in cm, required. 220 cm at most. |
| pallets[]. | number | yes | Weight of ONE pallet, in kg. 1,500 kg at most. |
| services | Services | null | no | Optional services. |
| services. | boolean | null | no | Delivery appointment. |
| services. | boolean | null | no | Pickup or delivery at a private address. Offers whose carrier does not offer it are returned with bookable: false. |
| services. | boolean | null | no | Delivery by a vehicle under 3.5 t. |
| services. | boolean | null | no | Tail lift. Passed on to your agency; not priced in the quote. |
| services. | boolean | null | no | Euro pallet exchange. |
| services. | null | false | object | no | null or { "un_. |
| services. | string | yes | 4-digit UN number. |
| services. | null | false | object | no | null or { "declared_. |
| services. | number | yes | Declared value in euros, 1,000,000 at most. |
| services. | string | null | no | Guaranteed delivery. Offers whose carrier does not offer it are returned with bookable: false. Values: none, guaranteed, guaranteed_. |
| reference | string | null | no | Your reference (order number), 64 characters at most. Returned in the quote and the shipment. |
Request example: One Euro pallet, Lille to Lyon
{
"origin": {
"country": "FR",
"postal_code": "59000"
},
"destination": {
"country": "FR",
"postal_code": "69003"
},
"pallets": [
{
"quantity": 1,
"length_cm": 120,
"width_cm": 80,
"height_cm": 150,
"weight_kg": 300
}
],
"reference": "PO-12345"
}Request example: Two pallets with delivery appointment and insurance
{
"origin": {
"country": "FR",
"postal_code": "59000"
},
"destination": {
"country": "FR",
"postal_code": "69003"
},
"pickup_date": "2026-11-10",
"pallets": [
{
"quantity": 2,
"length_cm": 120,
"width_cm": 80,
"height_cm": 150,
"weight_kg": 300
}
],
"services": {
"delivery_appointment": true,
"insurance": {
"declared_value": 5000
}
},
"reference": "PO-12346"
}Responses
201 Quote created. Returned object: Quote.
Response example: Excerpt: two of the offers returned (sandbox, 2026-11-07)
{
"quote_id": "qt_IpQdszegRUtiV40B",
"object": "quote",
"livemode": false,
"created_at": "2026-11-07T14:56:56.061Z",
"expires_at": "2026-11-08T14:56:56.061Z",
"currency": "EUR",
"reference": "PO-12345",
"pickup_date": "2026-11-09",
"route": {
"origin": {
"country": "FR",
"postal_code": "59000"
},
"destination": {
"country": "FR",
"postal_code": "69003"
}
},
"shipment": {
"pallet_count": 1,
"loading_meters": 0.4,
"actual_weight_kg": 300,
"volume_m3": 1.44
},
"offers": [
{
"offer_id": "of_mesm3XYcp_tu",
"carrier": {
"id": "dhl_freight",
"name": "DHL Freight"
},
"product": {
"id": "dhl_freight.pallet",
"name": "DHL Freight"
},
"chargeable_weight_kg": 300,
"price": {
"transport_excl_vat": 143.33,
"lines": [
{
"code": "fuel",
"label": "Fuel surcharge",
"amount": 23.65,
"rate_percent": 16.5
}
],
"total_excl_vat": 166.98,
"vat": {
"regime": "fr_standard",
"rate_percent": 20,
"amount": 33.4
},
"total_incl_vat": 200.38
},
"notices": [],
"bookable": true,
"booking_url": "https://freightmaster.fr/simulateur?dep=59&dest=69&pal=120x80x150x300x1"
},
{
"offer_id": "of_WZ02g8-LdlaI",
"carrier": {
"id": "geodis",
"name": "GEODIS"
},
"product": {
"id": "geodis.standard",
"name": "GEODIS"
},
"chargeable_weight_kg": 300,
"price": {
"transport_excl_vat": 419.92,
"lines": [
{
"code": "urban_delivery",
"label": "Restricted urban area delivery",
"amount": 17.33
},
{
"code": "fuel",
"label": "Fuel surcharge",
"amount": 106.65,
"rate_percent": 24.39
}
],
"total_excl_vat": 543.9,
"vat": {
"regime": "fr_standard",
"rate_percent": 20,
"amount": 108.78
},
"total_incl_vat": 652.68
},
"notices": [
{
"code": "urban_delivery_included",
"message": "Restricted urban area delivery: surcharge included."
}
],
"bookable": true,
"booking_url": "https://freightmaster.fr/simulateur?dep=59&dest=69&pal=120x80x150x300x1"
}
],
"unavailable": []
}Possible errors
400invalid_json: Unreadable JSON body401unauthorized: Missing or invalid API key403account_disabled: API access disabled for this account413payload_too_large: Body larger than 64 KB415unsupported_media_type: Body is not JSON422shipment_outside_limits: Shipment outside the pallet network limits422validation_failed: Invalid request (field errors)429account_quote_limit_reached: Account quote limit reached today429daily_limit_reached: Daily limit of this key reached429rate_limited: Too many requests for this key500internal: Internal error502engine_error: Price calculation failed503api_disabled: API temporarily disabled
Call with curl
curl -X POST 'https://freightmaster.fr/api/v1/quotes' \
-H "Authorization: Bearer $FM_KEY" \
-H "Content-Type: application/json" \
-d '{"origin":{"country":"FR","postal_code":"59000"},"destination":{"country":"FR","postal_code":"69003"},"pallets":[{"quantity":1,"length_cm":120,"width_cm":80,"height_cm":150,"weight_kg":300}],"reference":"PO-12345"}'GET /quotes/{quote_id}
Read a quote · getQuote
Returns a quote of your account, created with a key of the same mode. expired says whether it can still be booked. Quota: 120 reads per minute, per key, shared with the other reads.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| quote_ | path | string | yes | Quote identifier. |
| Accept-Language | header | string | no | en… for messages and labels in English; French otherwise. |
Responses
200 The quote. Returned object: Quote.
Response example: Excerpt: two offers
{
"quote_id": "qt_Yl1MZCDdknEncu6h",
"object": "quote",
"livemode": false,
"created_at": "2026-11-07T14:56:54.841Z",
"expires_at": "2026-11-08T14:56:54.841Z",
"currency": "EUR",
"reference": "PO-12345",
"pickup_date": "2026-11-09",
"route": {
"origin": {
"country": "FR",
"postal_code": "59000"
},
"destination": {
"country": "FR",
"postal_code": "69003"
}
},
"shipment": {
"pallet_count": 1,
"loading_meters": 0.4,
"actual_weight_kg": 300,
"volume_m3": 1.44
},
"offers": [
{
"offer_id": "of_5w5LRL-p9Mp-",
"carrier": {
"id": "dhl_freight",
"name": "DHL Freight"
},
"product": {
"id": "dhl_freight.pallet",
"name": "DHL Freight"
},
"chargeable_weight_kg": 300,
"price": {
"transport_excl_vat": 143.33,
"lines": [
{
"code": "fuel",
"label": "Fuel surcharge",
"amount": 23.65,
"rate_percent": 16.5
}
],
"total_excl_vat": 166.98,
"vat": {
"regime": "fr_standard",
"rate_percent": 20,
"amount": 33.4
},
"total_incl_vat": 200.38
},
"notices": [],
"bookable": true,
"booking_url": "https://freightmaster.fr/simulateur?dep=59&dest=69&pal=120x80x150x300x1"
},
{
"offer_id": "of_NFvz4wrdzW4I",
"carrier": {
"id": "geodis",
"name": "GEODIS"
},
"product": {
"id": "geodis.standard",
"name": "GEODIS"
},
"chargeable_weight_kg": 300,
"price": {
"transport_excl_vat": 419.92,
"lines": [
{
"code": "urban_delivery",
"label": "Restricted urban area delivery",
"amount": 17.33
},
{
"code": "fuel",
"label": "Fuel surcharge",
"amount": 106.65,
"rate_percent": 24.39
}
],
"total_excl_vat": 543.9,
"vat": {
"regime": "fr_standard",
"rate_percent": 20,
"amount": 108.78
},
"total_incl_vat": 652.68
},
"notices": [
{
"code": "urban_delivery_included",
"message": "Restricted urban area delivery: surcharge included."
}
],
"bookable": true,
"booking_url": "https://freightmaster.fr/simulateur?dep=59&dest=69&pal=120x80x150x300x1"
}
],
"unavailable": [],
"expired": false
}Possible errors
401unauthorized: Missing or invalid API key403account_disabled: API access disabled for this account404quote_not_found: Quote not found429rate_limited: Too many requests for this key500internal: Internal error503api_disabled: API temporarily disabled
Call with curl
curl -X GET 'https://freightmaster.fr/api/v1/quotes/<quote_id>' \
-H "Authorization: Bearer $FM_KEY"POST /shipments
Book an offer · createShipment
Books one offer of a quote. Production key: real booking, for a monthly-invoiced account whose agency has opened API booking and has reviewed a test booking; a booking limit applies per account (per day and per month). Test key: simulated booking, for every account. Country, postal codes, pallets, services and pickup date are those of the quote. The price is the quoted one if the shipment is identical, as long as the carrier still serves it and the pickup date is still possible; otherwise, 409 offer_ or 422 pickup_: request a new quote. The response comes at once with status: booked and a pending label. Quota: 20 bookings per hour, per key (a replay of the same request does not count).
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| Idempotency-Key | header | string | yes | Required. 8 to 255 printable ASCII characters. Same key and same body for 48 hours: the first response is returned again (Idempotent-Replayed: true). Use one key per order and per attempt (PO-12345-1, then PO-12345-2 after a cancellation). |
| Accept-Language | header | string | no | en… for messages and labels in English; French otherwise. |
Request body
| Field | Type | Required | Description |
|---|---|---|---|
| quote_ | string | yes | Quote identifier (24 hours of validity). |
| offer_ | string | yes | Identifier of the offer chosen in this quote. |
| shipper | PartyInput | yes | Shipper: company, contact, phone, e-mail, address, postal code, city, country. |
| shipper. | string | yes | Company name, written out in full (not a code or an abbreviation). |
| shipper. | string | yes | Contact person. Required for the shipper. |
| shipper. | string | yes | Phone number. |
| shipper. | string (email) | yes | E-mail address. Required for the shipper. |
| shipper. | string | yes | Street address, written out in full: number and street name. |
| shipper. | string | yes | Postal code: must match the quote. |
| shipper. | string | yes | City name, written out in full. |
| shipper. | string | yes | ISO country code: must match the quote. |
| consignee | PartyInput | yes | Consignee: company, phone, address, postal code, city, country. |
| consignee. | string | yes | Company name, written out in full (not a code or an abbreviation). |
| consignee. | string | no | Contact person. Required for the shipper. |
| consignee. | string | yes | Phone number. |
| consignee. | string (email) | no | E-mail address. Required for the shipper. |
| consignee. | string | yes | Street address, written out in full: number and street name. |
| consignee. | string | yes | Postal code: must match the quote. |
| consignee. | string | yes | City name, written out in full. |
| consignee. | string | yes | ISO country code: must match the quote. |
| goods_ | string | no | Description of the goods. |
| pallet_ | string | no | Comments on the pallets. |
| comments | string | no | Comments for your agency. |
| reference | string | null | no | Your reference. Default: the quote's reference. |
Request example: Booking of the first offer
{
"quote_id": "qt_Yl1MZCDdknEncu6h",
"offer_id": "of_5w5LRL-p9Mp-",
"shipper": {
"company": "Exemple Expéditeur SAS",
"contact": "Claire Martin",
"phone": "+33 3 20 00 00 00",
"email": "expedition@exemple.fr",
"address": "12 rue Nationale",
"postal_code": "59000",
"city": "Lille",
"country": "FR",
"country_name": "France"
},
"consignee": {
"company": "Exemple Destinataire SARL",
"contact": "Paul Durand",
"phone": "+33 4 72 00 00 00",
"email": "reception@exemple.fr",
"address": "8 rue Garibaldi",
"postal_code": "69003",
"city": "Lyon",
"country": "FR",
"country_name": "France"
},
"goods_description": "Machine parts on a stretch-wrapped pallet",
"reference": "PO-12345"
}Responses
201 Shipment booked (or replay of the same request). Returned object: Shipment.
Response example: Simulated booking (sandbox, 2026-11-07)
{
"id": "shp_test_21a2cc4aa5d746ccaeabd1a7",
"object": "shipment",
"livemode": false,
"channel": "api",
"reference": "PO-12345",
"status": "booked",
"booked_at": "2026-11-07T14:56:56.846Z",
"updated_at": "2026-11-07T14:56:56.846Z",
"requested_pickup_date": "2026-11-09",
"carrier": {
"id": "dhl_freight",
"name": "DHL Freight"
},
"shipper": {
"company": "Exemple Expéditeur SAS",
"contact": "Claire Martin",
"phone": "+33 3 20 00 00 00",
"email": "expedition@exemple.fr",
"address": "12 rue Nationale",
"postal_code": "59000",
"city": "Lille",
"country": "FR",
"country_name": "France"
},
"consignee": {
"company": "Exemple Destinataire SARL",
"contact": "Paul Durand",
"phone": "+33 4 72 00 00 00",
"email": "reception@exemple.fr",
"address": "8 rue Garibaldi",
"postal_code": "69003",
"city": "Lyon",
"country": "FR",
"country_name": "France"
},
"pallets": [
{
"length_cm": 120,
"width_cm": 80,
"height_cm": 150,
"weight_kg": 300
}
],
"price": {
"total_excl_vat": 166.98,
"vat": {
"regime": "fr_standard",
"rate_percent": 20,
"amount": 33.4
},
"total_incl_vat": 200.38,
"currency": "EUR"
},
"label": {
"status": "pending",
"expected_by": "2026-11-09T11:00:00.000Z"
},
"tracking": {
"status": "pending",
"url": null,
"number": null
}
}Possible errors
400idempotency_key_required: Idempotency-Key header missing400invalid_json: Unreadable JSON body401unauthorized: Missing or invalid API key403account_disabled: API access disabled for this account403agency_not_enrolled: Agency has not opened API booking403booking_not_allowed: Account paying by card: no API booking403live_key_requires_review: Production booking not yet reviewed404offer_not_found: Offer not found in the quote404quote_not_found: Quote not found409idempotency_key_reused: Idempotency key reused with another body409offer_no_longer_available: Carrier no longer serves the shipment410quote_expired: Quote expired413payload_too_large: Body larger than 64 KB415unsupported_media_type: Body is not JSON422idempotency_key_reused: Idempotency key reused with another body422offer_not_bookable: Offer cannot be booked422pickup_date_not_allowed: Pickup date no longer possible422validation_failed: Invalid request (field errors)429account_daily_limit_reached: Account booking limit reached today429account_monthly_limit_reached: Account booking limit reached this month429daily_limit_reached: Daily limit of this key reached429rate_limited: Too many requests for this key500internal: Internal error502engine_error: Price calculation failed503api_disabled: API temporarily disabled
Call with curl
curl -X POST 'https://freightmaster.fr/api/v1/shipments' \
-H "Authorization: Bearer $FM_KEY" \
-H "Content-Type: application/json" \
-d '{"quote_id":"qt_Yl1MZCDdknEncu6h","offer_id":"of_5w5LRL-p9Mp-","shipper":{"company":"Exemple Expéditeur SAS","contact":"Claire Martin","phone":"+33 3 20 00 00 00","email":"expedition@exemple.fr","address":"12 rue Nationale","postal_code":"59000","city":"Lille","country":"FR","country_name":"France"},"consignee":{"company":"Exemple Destinataire SARL","contact":"Paul Durand","phone":"+33 4 72 00 00 00","email":"reception@exemple.fr","address":"8 rue Garibaldi","postal_code":"69003","city":"Lyon","country":"FR","country_name":"France"},"goods_description":"Machine parts on a stretch-wrapped pallet","reference":"PO-12345"}'GET /shipments
List shipments · listShipments
Shipments of your account, most recent first: booked through the API or in the portal (production key), or simulated (test key). Quota: 120 reads per minute, per key.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| limit | query | integer | no | Page size, 1 to 100. |
| cursor | query | string | no | next_ of the previous page. |
| status | query | string | no | Statuses to keep, separated by commas. |
| reference | query | string | no | Your reference, exact value. |
| updated_ | query | string (date-time) | no | Only shipments changed since this time. |
| Accept-Language | header | string | no | en… for messages and labels in English; French otherwise. |
Responses
200 A page of shipments. Returned object: ShipmentList.
Response example: Sandbox, 2026-11-07
{
"object": "list",
"data": [
{
"id": "shp_test_21a2cc4aa5d746ccaeabd1a7",
"object": "shipment",
"livemode": false,
"channel": "api",
"reference": "PO-12345",
"status": "delivered",
"booked_at": "2026-11-07T14:56:56.846Z",
"updated_at": "2026-11-07T14:57:02.043Z",
"requested_pickup_date": "2026-11-09",
"carrier": {
"id": "dhl_freight",
"name": "DHL Freight"
},
"shipper": {
"company": "Exemple Expéditeur SAS",
"contact": "Claire Martin",
"phone": "+33 3 20 00 00 00",
"email": "expedition@exemple.fr",
"address": "12 rue Nationale",
"postal_code": "59000",
"city": "Lille",
"country": "FR",
"country_name": "France"
},
"consignee": {
"company": "Exemple Destinataire SARL",
"contact": "Paul Durand",
"phone": "+33 4 72 00 00 00",
"email": "reception@exemple.fr",
"address": "8 rue Garibaldi",
"postal_code": "69003",
"city": "Lyon",
"country": "FR",
"country_name": "France"
},
"pallets": [
{
"length_cm": 120,
"width_cm": 80,
"height_cm": 150,
"weight_kg": 300
}
],
"price": {
"total_excl_vat": 166.98,
"vat": {
"regime": "fr_standard",
"rate_percent": 20,
"amount": 33.4
},
"total_incl_vat": 200.38,
"currency": "EUR"
},
"label": {
"status": "available",
"format": "pdf",
"downloadable": true,
"url": "https://freightmaster.fr/api/v1/shipments/shp_test_21a2cc4aa5d746ccaeabd1a7/label",
"version": 1,
"specimen": true
},
"tracking": {
"status": "available",
"url": "https://freightmaster.fr/api",
"number": "TEST-AEABD1A7"
}
},
{
"id": "shp_test_5c18450607cb5d54ac01489b",
"object": "shipment",
"livemode": false,
"channel": "api",
"reference": "PO-12345",
"status": "delivered",
"booked_at": "2026-11-06T18:55:06.762Z",
"updated_at": "2026-11-06T18:55:10.365Z",
"requested_pickup_date": "2026-11-09",
"carrier": {
"id": "xpo",
"name": "XPO"
},
"shipper": {
"company": "Exemple Expéditeur SAS",
"contact": "Claire Martin",
"phone": "+33 2 40 00 00 00",
"email": "expedition@exemple.fr",
"address": "12 rue de la Marne",
"postal_code": "44000",
"city": "Nantes",
"country": "FR",
"country_name": "France"
},
"consignee": {
"company": "Exemple Destinataire SARL",
"contact": "Paul Durand",
"phone": "+33 4 72 00 00 00",
"email": "reception@exemple.fr",
"address": "8 rue Garibaldi",
"postal_code": "69003",
"city": "Lyon",
"country": "FR",
"country_name": "France"
},
"pallets": [
{
"length_cm": 120,
"width_cm": 80,
"height_cm": 150,
"weight_kg": 300
}
],
"price": {
"total_excl_vat": 199.69,
"vat": {
"regime": "fr_standard",
"rate_percent": 20,
"amount": 39.94
},
"total_incl_vat": 239.63,
"currency": "EUR"
},
"label": {
"status": "available",
"format": "pdf",
"downloadable": true,
"url": "https://freightmaster.fr/api/v1/shipments/shp_test_5c18450607cb5d54ac01489b/label",
"version": 1,
"specimen": true
},
"tracking": {
"status": "available",
"url": "https://freightmaster.fr/api",
"number": "TEST-AC01489B"
}
}
],
"has_more": true,
"next_cursor": "Mg"
}Possible errors
401unauthorized: Missing or invalid API key403account_disabled: API access disabled for this account429rate_limited: Too many requests for this key500internal: Internal error503api_disabled: API temporarily disabled
Call with curl
curl -X GET 'https://freightmaster.fr/api/v1/shipments' \
-H "Authorization: Bearer $FM_KEY"GET /shipments/{shipment_id}
Read a shipment · getShipment
Full state of a shipment, including label and tracking. Quota: 120 reads per minute, per key.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| shipment_ | path | string | yes | Shipment identifier (shp_, shp_ in the sandbox). |
| Accept-Language | header | string | no | en… for messages and labels in English; French otherwise. |
Responses
200 The shipment. Returned object: Shipment.
Response example: Simulated shipment, delivered (sandbox, 2026-11-07)
{
"id": "shp_test_21a2cc4aa5d746ccaeabd1a7",
"object": "shipment",
"livemode": false,
"channel": "api",
"reference": "PO-12345",
"status": "delivered",
"booked_at": "2026-11-07T14:56:56.846Z",
"updated_at": "2026-11-07T14:57:02.043Z",
"requested_pickup_date": "2026-11-09",
"carrier": {
"id": "dhl_freight",
"name": "DHL Freight"
},
"shipper": {
"company": "Exemple Expéditeur SAS",
"contact": "Claire Martin",
"phone": "+33 3 20 00 00 00",
"email": "expedition@exemple.fr",
"address": "12 rue Nationale",
"postal_code": "59000",
"city": "Lille",
"country": "FR",
"country_name": "France"
},
"consignee": {
"company": "Exemple Destinataire SARL",
"contact": "Paul Durand",
"phone": "+33 4 72 00 00 00",
"email": "reception@exemple.fr",
"address": "8 rue Garibaldi",
"postal_code": "69003",
"city": "Lyon",
"country": "FR",
"country_name": "France"
},
"pallets": [
{
"length_cm": 120,
"width_cm": 80,
"height_cm": 150,
"weight_kg": 300
}
],
"price": {
"total_excl_vat": 166.98,
"vat": {
"regime": "fr_standard",
"rate_percent": 20,
"amount": 33.4
},
"total_incl_vat": 200.38,
"currency": "EUR"
},
"label": {
"status": "available",
"format": "pdf",
"downloadable": true,
"url": "https://freightmaster.fr/api/v1/shipments/shp_test_21a2cc4aa5d746ccaeabd1a7/label",
"version": 1,
"specimen": true
},
"tracking": {
"status": "available",
"url": "https://freightmaster.fr/api",
"number": "TEST-AEABD1A7"
}
}Possible errors
401unauthorized: Missing or invalid API key403account_disabled: API access disabled for this account404shipment_not_found: Shipment not found429rate_limited: Too many requests for this key500internal: Internal error503api_disabled: API temporarily disabled
Call with curl
curl -X GET 'https://freightmaster.fr/api/v1/shipments/<shipment_id>' \
-H "Authorization: Bearer $FM_KEY"GET /shipments/{shipment_id}/label
Download the label (PDF) · getShipmentLabel
Streams the PDF label. While your agency has not attached it: 409 label_ with Retry-After. Wait for shipment. rather than polling. In the sandbox, the label is a specimen. Quota: 120 reads per minute, per key.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| shipment_ | path | string | yes | Shipment identifier (shp_, shp_ in the sandbox). |
| Accept-Language | header | string | no | en… for messages and labels in English; French otherwise. |
Responses
200 The PDF label. application/pdf.
Possible errors
401unauthorized: Missing or invalid API key403account_disabled: API access disabled for this account404shipment_not_found: Shipment not found409label_not_downloadable: Label not downloadable through the API409label_not_ready: Label not available yet429rate_limited: Too many requests for this key500internal: Internal error503api_disabled: API temporarily disabled
Call with curl
curl -X GET 'https://freightmaster.fr/api/v1/shipments/<shipment_id>/label' \
-H "Authorization: Bearer $FM_KEY" \
-o etiquette.pdfPOST /shipments/{shipment_id}/cancel
Cancel a shipment · cancelShipment
Before the label: immediate cancellation, 200 with the cancelled shipment. After the label: 202, the request is passed on to your agency, which cancels with the carrier; the status does not change until then. In transit or delivered: 409 cannot_. To book the same order again, use a new Idempotency-Key (PO-12345-2). Quota: 20 cancellations per hour, per key.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| shipment_ | path | string | yes | Shipment identifier (shp_, shp_ in the sandbox). |
| Accept-Language | header | string | no | en… for messages and labels in English; French otherwise. |
Request body
| Field | Type | Required | Description |
|---|---|---|---|
| reason | string | no | Reason, passed on to your agency. |
Request example: With a reason
{
"reason": "Order cancelled by the customer"
}Responses
200 Shipment cancelled. Returned object: Shipment.
Response example: Cancelled before the label (sandbox, 2026-11-07)
{
"id": "shp_test_85c8659ab5900689593b8a61",
"object": "shipment",
"livemode": false,
"channel": "api",
"reference": "PO-12345",
"status": "cancelled",
"booked_at": "2026-11-07T14:57:04.527Z",
"updated_at": "2026-11-07T14:57:04.527Z",
"requested_pickup_date": "2026-11-09",
"carrier": {
"id": "dhl_freight",
"name": "DHL Freight"
},
"shipper": {
"company": "Exemple Expéditeur SAS",
"contact": "Claire Martin",
"phone": "+33 3 20 00 00 00",
"email": "expedition@exemple.fr",
"address": "12 rue Nationale",
"postal_code": "59000",
"city": "Lille",
"country": "FR",
"country_name": "France"
},
"consignee": {
"company": "Exemple Destinataire SARL",
"contact": "Paul Durand",
"phone": "+33 4 72 00 00 00",
"email": "reception@exemple.fr",
"address": "8 rue Garibaldi",
"postal_code": "69003",
"city": "Lyon",
"country": "FR",
"country_name": "France"
},
"pallets": [
{
"length_cm": 120,
"width_cm": 80,
"height_cm": 150,
"weight_kg": 300
}
],
"price": {
"total_excl_vat": 166.98,
"vat": {
"regime": "fr_standard",
"rate_percent": 20,
"amount": 33.4
},
"total_incl_vat": 200.38,
"currency": "EUR"
},
"label": {
"status": "pending",
"expected_by": "2026-11-09T11:00:00.000Z"
},
"tracking": {
"status": "pending",
"url": null,
"number": null
},
"cancelled_at": "2026-11-07T14:57:05.364Z"
}202 Cancellation requested from your agency. Returned object: Cancellation.
Response example: Cancellation requested after the label
{
"id": "shp_test_ddb67084a2a412fd4c533c89",
"object": "cancellation",
"status": "requested",
"livemode": false
}Possible errors
400invalid_json: Unreadable JSON body401unauthorized: Missing or invalid API key403account_disabled: API access disabled for this account403booking_not_allowed: Account paying by card: no API booking404shipment_not_found: Shipment not found409already_cancelled: Shipment already cancelled409cannot_cancel: Shipment can no longer be cancelled413payload_too_large: Body larger than 64 KB415unsupported_media_type: Body is not JSON429rate_limited: Too many requests for this key500internal: Internal error503api_disabled: API temporarily disabled
Call with curl
curl -X POST 'https://freightmaster.fr/api/v1/shipments/<shipment_id>/cancel' \
-H "Authorization: Bearer $FM_KEY" \
-H "Content-Type: application/json" \
-d '{"reason":"Order cancelled by the customer"}'GET /events
Read the event stream · listEvents
Events of your account after the sequence after, in order. Reference channel: a system that missed a webhook, or cannot receive one, catches up here. Test and production keys read separate streams with separate sequences: keep one cursor per mode. Events are kept 90 days (30 days in the sandbox). Quota: 120 reads per minute, per key.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| after | query | integer | no | Sequence of the last event already read (next_). |
| limit | query | integer | no | Page size, 1 to 100. |
| types | query | string | no | Types to keep, separated by commas. The filter applies within each page: a page can hold fewer events than limit; always go on from next_. |
| Accept-Language | header | string | no | en… for messages and labels in English; French otherwise. |
Responses
200 A page of events. Returned object: EventList.
Response example: Excerpt: two events (sandbox, 2026-11-07)
{
"object": "list",
"data": [
{
"id": "evt_shp_test_21a2cc4aa5d746ccaeabd1a7.booked",
"object": "event",
"type": "shipment.booked",
"sequence": 127,
"created_at": "2026-11-07T14:56:57.100Z",
"livemode": false,
"data": {
"shipment": {
"id": "shp_test_21a2cc4aa5d746ccaeabd1a7",
"object": "shipment",
"livemode": false,
"channel": "api",
"reference": "PO-12345",
"status": "booked",
"booked_at": "2026-11-07T14:56:56.846Z",
"updated_at": "2026-11-07T14:56:56.846Z",
"requested_pickup_date": "2026-11-09",
"carrier": {
"id": "dhl_freight",
"name": "DHL Freight"
},
"shipper": {
"company": "Exemple Expéditeur SAS",
"contact": "Claire Martin",
"phone": "+33 3 20 00 00 00",
"email": "expedition@exemple.fr",
"address": "12 rue Nationale",
"postal_code": "59000",
"city": "Lille",
"country": "FR",
"country_name": "France"
},
"consignee": {
"company": "Exemple Destinataire SARL",
"contact": "Paul Durand",
"phone": "+33 4 72 00 00 00",
"email": "reception@exemple.fr",
"address": "8 rue Garibaldi",
"postal_code": "69003",
"city": "Lyon",
"country": "FR",
"country_name": "France"
},
"pallets": [
{
"length_cm": 120,
"width_cm": 80,
"height_cm": 150,
"weight_kg": 300
}
],
"price": {
"total_excl_vat": 166.98,
"vat": {
"regime": "fr_standard",
"rate_percent": 20,
"amount": 33.4
},
"total_incl_vat": 200.38,
"currency": "EUR"
},
"label": {
"status": "pending",
"expected_by": "2026-11-09T11:00:00.000Z"
},
"tracking": {
"status": "pending",
"url": null,
"number": null
}
}
}
},
{
"id": "evt_shp_test_21a2cc4aa5d746ccaeabd1a7.label_available",
"object": "event",
"type": "shipment.label_available",
"sequence": 128,
"created_at": "2026-11-07T14:56:59.734Z",
"livemode": false,
"data": {
"shipment": {
"id": "shp_test_21a2cc4aa5d746ccaeabd1a7",
"object": "shipment",
"livemode": false,
"channel": "api",
"reference": "PO-12345",
"status": "booked",
"booked_at": "2026-11-07T14:56:56.846Z",
"updated_at": "2026-11-07T14:56:56.846Z",
"requested_pickup_date": "2026-11-09",
"carrier": {
"id": "dhl_freight",
"name": "DHL Freight"
},
"shipper": {
"company": "Exemple Expéditeur SAS",
"contact": "Claire Martin",
"phone": "+33 3 20 00 00 00",
"email": "expedition@exemple.fr",
"address": "12 rue Nationale",
"postal_code": "59000",
"city": "Lille",
"country": "FR",
"country_name": "France"
},
"consignee": {
"company": "Exemple Destinataire SARL",
"contact": "Paul Durand",
"phone": "+33 4 72 00 00 00",
"email": "reception@exemple.fr",
"address": "8 rue Garibaldi",
"postal_code": "69003",
"city": "Lyon",
"country": "FR",
"country_name": "France"
},
"pallets": [
{
"length_cm": 120,
"width_cm": 80,
"height_cm": 150,
"weight_kg": 300
}
],
"price": {
"total_excl_vat": 166.98,
"vat": {
"regime": "fr_standard",
"rate_percent": 20,
"amount": 33.4
},
"total_incl_vat": 200.38,
"currency": "EUR"
},
"label": {
"status": "available",
"format": "pdf",
"downloadable": true,
"url": "https://freightmaster.fr/api/v1/shipments/shp_test_21a2cc4aa5d746ccaeabd1a7/label",
"version": 1,
"specimen": true
},
"tracking": {
"status": "pending",
"url": null,
"number": null
}
}
}
}
],
"has_more": true,
"next_cursor": "128"
}Possible errors
401unauthorized: Missing or invalid API key403account_disabled: API access disabled for this account429rate_limited: Too many requests for this key500internal: Internal error503api_disabled: API temporarily disabled
Call with curl
curl -X GET 'https://freightmaster.fr/api/v1/events' \
-H "Authorization: Bearer $FM_KEY"POST /test/shipments/{shipment_id}/advance
Sandbox: move a simulated shipment one step forward · advanceTestShipment
Test keys only. A simulated shipment moves on with time: specimen label after 2 minutes, tracking after 3, in transit after 5, delivered after 10. Each call moves it one step at once and publishes the event of the step reached (label, tracking, in transit, delivered), with livemode: false; the sandbox never publishes shipment.. Without a call, the steps reached are published at your next read (GET /, GET /, the label). Quota: 120 reads per minute, per key.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| shipment_ | path | string | yes | Shipment identifier (shp_, shp_ in the sandbox). |
| Accept-Language | header | string | no | en… for messages and labels in English; French otherwise. |
Responses
200 The simulated shipment after the step. Returned object: Shipment.
Response example: After one step: specimen label (sandbox, 2026-11-07)
{
"id": "shp_test_21a2cc4aa5d746ccaeabd1a7",
"object": "shipment",
"livemode": false,
"channel": "api",
"reference": "PO-12345",
"status": "booked",
"booked_at": "2026-11-07T14:56:56.846Z",
"updated_at": "2026-11-07T14:56:56.846Z",
"requested_pickup_date": "2026-11-09",
"carrier": {
"id": "dhl_freight",
"name": "DHL Freight"
},
"shipper": {
"company": "Exemple Expéditeur SAS",
"contact": "Claire Martin",
"phone": "+33 3 20 00 00 00",
"email": "expedition@exemple.fr",
"address": "12 rue Nationale",
"postal_code": "59000",
"city": "Lille",
"country": "FR",
"country_name": "France"
},
"consignee": {
"company": "Exemple Destinataire SARL",
"contact": "Paul Durand",
"phone": "+33 4 72 00 00 00",
"email": "reception@exemple.fr",
"address": "8 rue Garibaldi",
"postal_code": "69003",
"city": "Lyon",
"country": "FR",
"country_name": "France"
},
"pallets": [
{
"length_cm": 120,
"width_cm": 80,
"height_cm": 150,
"weight_kg": 300
}
],
"price": {
"total_excl_vat": 166.98,
"vat": {
"regime": "fr_standard",
"rate_percent": 20,
"amount": 33.4
},
"total_incl_vat": 200.38,
"currency": "EUR"
},
"label": {
"status": "available",
"format": "pdf",
"downloadable": true,
"url": "https://freightmaster.fr/api/v1/shipments/shp_test_21a2cc4aa5d746ccaeabd1a7/label",
"version": 1,
"specimen": true
},
"tracking": {
"status": "pending",
"url": null,
"number": null
}
}Possible errors
401unauthorized: Missing or invalid API key403account_disabled: API access disabled for this account403test_only: Test keys only404shipment_not_found: Shipment not found409already_cancelled: Shipment already cancelled429rate_limited: Too many requests for this key500internal: Internal error503api_disabled: API temporarily disabled
Call with curl
curl -X POST 'https://freightmaster.fr/api/v1/test/shipments/<shipment_id>/advance' \
-H "Authorization: Bearer $FM_KEY"Objects
Quote
A quote: the offers of the carriers for one shipment, valid for 24 hours.
| Field | Type | Required | Description |
|---|---|---|---|
| quote_ | string | yes | Quote identifier. |
| object | "quote" | yes | |
| livemode | boolean | yes | false with a test key. |
| created_ | string (date-time) | yes | Creation time (UTC). |
| expires_ | string (date-time) | yes | End of validity: 24 hours after creation. Within this time, booking an identical shipment keeps the quoted price, as long as the carrier still serves it and the pickup date is still possible. |
| currency | string | yes | Currency of the prices. |
| reference | string | null | yes | Your reference. |
| pickup_ | string (date) | yes | Requested pickup date used for the quote. |
| route | QuoteRoute | yes | Route of the quote. |
| route. | object | yes | Origin, normalised. |
| route. | string | yes | |
| route. | string | yes | |
| route. | object | yes | Destination, normalised. |
| route. | string | yes | |
| route. | string | yes | |
| shipment | object | yes | The quoted shipment. |
| shipment. | integer | yes | Number of pallets. |
| shipment. | number | yes | Loading meters (floor length used in a 2.4 m wide truck). |
| shipment. | number | yes | Total actual weight, in kg. |
| shipment. | number | yes | Total volume, in m³. |
| offers | array< | yes | Offers, sorted by total price, lowest first. Their number depends on the route, the load and your account. |
| unavailable | array< | yes | When offers is empty: why. |
| expired | boolean | no | Only in GET /: true after expires_. |
Offer
An offer of a carrier for the quoted shipment. Offers are sorted by total price, lowest first.
| Field | Type | Required | Description |
|---|---|---|---|
| offer_ | string | yes | Offer identifier, to send to POST /. |
| carrier | Carrier | yes | Carrier of an offer. The identifier premium_ (name “Partenaire Premium”) is the trade name of a partner carrier, on some accounts. |
| carrier. | string | yes | Stable carrier identifier. Open string: new identifiers may appear without a version change. Examples (open list): dhl_, xpo, dgs, dsv, coquelle, france_, geodis, translocauto, heppner. |
| carrier. | string | yes | Carrier name to display. |
| product | Product | yes | Carrier product of an offer. |
| product. | string | yes | Stable product identifier, <. Open string. Examples (open list): dhl_, dhl_, xpo., dgs., dgs., dsv., dsv., coquelle., coquelle., france_, france_, geodis., geodis., translocauto., translocauto., heppner., heppner., heppner.. |
| product. | string | yes | Product name to display, always in French: “(Poids)” = by weight, “(Palette)” = per pallet. |
| chargeable_ | number | null | yes | Chargeable weight returned by the price calculation for this offer, in kg, to one decimal place, always above 0; null when it is not known, never 0. |
| price | OfferPrice | yes | Price of an offer, in euros, for your account. |
| notices | array< | yes | Information to read before booking. |
| bookable | boolean | yes | false when a requested service is not offered by this carrier: the offer cannot be booked. |
| unsupported_ | array< | no | Requested services this carrier does not offer (when bookable is false). |
| booking_ | string (uri) | no | Link to the FreightMaster simulator with the route and the pallets already filled in. A person validates the booking: the link books nothing. A customer already logged in arrives in their portal with the prices of their account; a visitor who is not logged in arrives on the public simulator, with public prices. In France, the link carries the department only: the price is recalculated once the full address is entered, and may differ from the quote. Useful for an account that cannot book through the API. |
OfferPrice
Price of an offer, in euros, for your account.
| Field | Type | Required | Description |
|---|---|---|---|
| transport_ | number | yes | Transport, excluding VAT: total minus the lines. |
| lines | array< | yes | Other lines of the price. |
| total_ | number | yes | Total excluding VAT, in euros. |
| vat | Vat | yes | VAT. |
| total_ | number | yes | Total including VAT, in euros. |
PriceLine
A line of the price besides transport: fuel surcharge, service, surcharge.
| Field | Type | Required | Description |
|---|---|---|---|
| code | string | yes | Stable line code. Open list. Examples (open list): fuel, guaranteed_, xpo_, guaranteed_, delivery_, private_, small_, dangerous_, europallet_, insurance, urban_, other. |
| label | string | yes | Line label, in French or in English. |
| amount | number | yes | Amount excluding VAT, in euros. |
| rate_ | number | no | Rate applied, for the fuel surcharge (fuel). |
Vat
VAT.
| Field | Type | Required | Description |
|---|---|---|---|
| regime | string | yes | VAT regime of your account: fr_ (20%), eu_ (EU company with a VAT number, reverse charge, 0%), non_ (company outside the EU, 0%). Values: fr_, eu_, non_. |
| rate_ | number | yes | VAT rate in percent. |
| amount | number | yes | VAT amount in euros. |
Notice
Information to read before booking: customs, locality, surcharge included.
| Field | Type | Required | Description |
|---|---|---|---|
| code | string | yes | Stable notice code. Open list. Examples (open list): customs_, customs_, locality_, port_, sector_, locality_, sector_, urban_, urban_. |
| message | string | yes | Message, in French or in English. |
Refusal
Why no carrier offers a rate (offers empty).
| Field | Type | Required | Description |
|---|---|---|---|
| code | string | yes | Stable reason code. Open list. Examples (open list): loading_, weight_, volume_, long_, carrier_, postal_, postal_, postal_, destination_, country_, french_, rate_, no_, no_. |
| message | string | yes | Message, in French or in English. |
Shipment
A shipment of your account, booked through the API or in the portal.
| Field | Type | Required | Description |
|---|---|---|---|
| id | string | yes | Shipment identifier. shp_ in the sandbox. |
| object | "shipment" | yes | |
| livemode | boolean | yes | false for a simulated booking. |
| channel | string | yes | Where the shipment was booked: through the API or in the customer portal. Values: api, portal. |
| reference | string | null | yes | Your reference. |
| status | string | yes | booked, confirmed (validated by your agency), in_, delivered, cancelled. unknown for an unexpected internal value: never an invented status. Values: booked, confirmed, in_, delivered, cancelled, unknown. |
| booked_ | string (date-time) | null | yes | Booking time (UTC). |
| updated_ | string (date-time) | null | yes | Last change (UTC). |
| requested_ | string (date) | null | yes | Requested pickup date. Requested, never guaranteed. |
| carrier | ShipmentCarrier | yes | Carrier of the shipment. It can change after booking (shipment.). |
| shipper | PartyOutput | yes | Shipper or consignee of a shipment. Same fields in production and in the sandbox. |
| consignee | PartyOutput | yes | Shipper or consignee of a shipment. Same fields in production and in the sandbox. |
| pallets | array< | yes | One entry per pallet. |
| pallets[]. | number | null | no | |
| pallets[]. | number | null | no | |
| pallets[]. | number | null | no | |
| pallets[]. | number | null | no | |
| price | ShipmentPrice | yes | Price of the shipment. It can change after booking (shipment.). |
| label | Label | yes | Label of the shipment: pending, available or not_. |
| tracking | Tracking | yes | Tracking of the shipment. |
| cancelled_ | string (date-time) | null | no | Cancellation time, when status is cancelled. |
| cancellation | object | no | Cancellation requested after the label: your agency cancels with the carrier; the status does not change until then. |
| cancellation. | "requested" | yes | |
| cancellation. | string (date-time) | null | no |
ShipmentCarrier
Carrier of the shipment. It can change after booking (shipment.).
| Field | Type | Required | Description |
|---|---|---|---|
| id | string | null | no | Carrier identifier (see Carrier.), or null when the carrier is not one of the API carriers. |
| name | string | null | no | Carrier name. |
PartyOutput
Shipper or consignee of a shipment. Same fields in production and in the sandbox.
| Field | Type | Required | Description |
|---|---|---|---|
| company | string | null | no | |
| contact | string | null | no | |
| phone | string | null | no | |
string | null | no | ||
| address | string | null | no | |
| postal_ | string | null | no | |
| city | string | null | no | |
| country | string | null | no | ISO 3166-1 alpha-2 code of the country, read from the recorded country name; null when that name is not recognised (older addresses typed by hand). |
| country_ | string | null | no | Country name as recorded on the shipment, in French (for example France). |
ShipmentPrice
Price of the shipment. It can change after booking (shipment.).
| Field | Type | Required | Description |
|---|---|---|---|
| total_ | number | yes | Total excluding VAT, in euros. |
| vat | Vat | yes | VAT. |
| total_ | number | yes | Total including VAT, in euros. |
| currency | string | yes | Currency. |
Label
Label of the shipment: pending, available or not_.
LabelPending
No label yet: your agency attaches it after the booking.
| Field | Type | Required | Description |
|---|---|---|---|
| status | "pending" | yes | |
| expected_ | string (date-time) | null | no | Indicative time returned by the API, with no commitment. The label can arrive later, or never (not_). |
LabelAvailable
Label available.
| Field | Type | Required | Description |
|---|---|---|---|
| status | "available" | yes | |
| format | "pdf" | yes | |
| downloadable | boolean | yes | true when GET / serves the file. |
| url | string (uri) | no | Address of the label in the API (Bearer key required). |
| version | integer | yes | Version of the label: it increases when the agency replaces it (shipment.). Reprint when it changes. |
| updated_ | string (date-time) | no | Last change of the label. |
| specimen | true | no | Sandbox only: specimen label, not usable for a real shipment. |
LabelNotProvided
The shipment left without a label in FreightMaster (for example, the carrier brought it at pickup). Stop waiting for it.
| Field | Type | Required | Description |
|---|---|---|---|
| status | "not_ | yes |
Tracking
Tracking of the shipment.
| Field | Type | Required | Description |
|---|---|---|---|
| status | string | yes | available once a usable tracking link or number is known. Values: pending, available. |
| url | string (uri) | null | yes | Tracking page of the carrier. |
| number | string | null | yes | Tracking number. |
Cancellation
Cancellation request passed on to your agency (label already attached).
| Field | Type | Required | Description |
|---|---|---|---|
| id | string | yes | Shipment identifier. |
| object | "cancellation" | yes | |
| status | "requested" | yes | |
| livemode | boolean | yes |
ShipmentList
A page of shipments, most recent first.
| Field | Type | Required | Description |
|---|---|---|---|
| object | "list" | yes | |
| data | array< | yes | |
| has_ | boolean | yes | true when another page exists. |
| next_ | string | null | yes | Opaque cursor of the next page, to send as cursor. |
Event
A change of a shipment. Same body in GET / and in webhooks.
| Field | Type | Required | Description |
|---|---|---|---|
| id | string | yes | Event identifier. The same change always has the same identifier: use it to ignore a duplicate. |
| object | "event" | yes | |
| type | string | yes | Event type. Values: shipment., shipment., shipment., shipment., shipment., shipment., shipment., shipment., shipment., shipment., shipment., shipment., shipment., shipment.. |
| sequence | integer | yes | Sequence number, strictly increasing per account and per mode (test and production have separate sequences). |
| created_ | string (date-time) | yes | Time of the change (UTC). |
| livemode | boolean | yes | |
| data | object | yes | Full snapshot of the shipment after the change. |
| data. | Shipment | yes | A shipment of your account, booked through the API or in the portal. |
EventList
A page of events, in sequence order.
| Field | Type | Required | Description |
|---|---|---|---|
| object | "list" | yes | |
| data | array< | yes | |
| has_ | boolean | yes | true when more events follow. |
| next_ | string | yes | Sequence of the last event read: send it as after next time. Keep one cursor per mode. |
Account
Account and limits of the key.
| Field | Type | Required | Description |
|---|---|---|---|
| object | "account" | yes | |
| livemode | boolean | yes | true with a production key, false with a test key. |
| key_ | string | yes | Public identifier of the key (never the key). |
| account | object | yes | Account of the key. |
| account. | string | null | yes | |
| account. | string | yes | |
| account. | object | yes | VAT regime of the account. |
| account. | string | yes | Values: fr_, eu_, non_. |
| account. | number | yes | |
| capabilities | object | yes | What the key can do. |
| capabilities. | boolean | yes | Always true. |
| capabilities. | boolean | yes | true when POST / is allowed with this key (always with a test key: simulated booking). |
| booking_ | string | no | Production key that cannot book: card_ (account paying by card: ask your agency for monthly invoicing from the portal), agency_ (your agency has not opened API booking), live_ (a test booking must be reviewed by your agency first). Values: card_, agency_, live_. |
| limits | object | yes | Limits of the key and of the account. |
| limits. | integer | yes | Quotes per minute, per key. |
| limits. | integer | yes | Quotes per day, per key. |
| limits. | integer | yes | Bookings per hour, per key. A replay of the same request does not count. |
| limits. | integer | no | Cancellations per hour, per key. |
| limits. | integer | yes | Bookings per day, per key. |
| limits. | integer | yes | Reads per minute, per key. |
| limits. | integer | no | Production bookings per day for the account (all keys). Can be raised on request, through your agency. |
| limits. | integer | no | Production bookings per month for the account (all keys). Can be raised on request, through your agency. |
| limits. | integer | no | Production bookings of the account today (Paris time). |
| limits. | integer | no | Production bookings of the account this month (Paris time). |
| limits. | integer | null | no | Quotes per day for the whole account, with a test key or for an account paying by card; null otherwise. |
Problem
Error in the RFC 9457 format (application/).
| Field | Type | Required | Description |
|---|---|---|---|
| type | string (uri) | yes | URL of the error description: https:/. |
| title | string | yes | HTTP status title. |
| status | integer | yes | HTTP status code. |
| code | string | yes | Stable error code, in snake_case. Your code should rely on it, never on detail. Open list: new codes may appear. Examples (open list): unauthorized, api_, account_, not_, method_, unsupported_, payload_, invalid_, validation_, shipment_, rate_, daily_, booking_, agency_, live_, account_, account_, account_, quote_, quote_, offer_, offer_, offer_, pickup_, idempotency_, idempotency_, shipment_, label_, label_, already_, cannot_, test_, engine_, internal. |
| detail | string | yes | Human-readable message, in French or in English (Accept-Language: en). May change. |
| errors | array< | no | Field errors, for validation_ and shipment_. |
| earliest_ | string (date) | no | Earliest pickup date accepted now (pickup_). |
| request_ | string | yes | Request identifier, also in the X-Request-Id header. |
FieldError
Error on one field of the request.
| Field | Type | Required | Description |
|---|---|---|---|
| field | string | yes | Path of the field in the request body, for example pallets[0]. or shipper.. Empty when the whole body is concerned. |
| code | string | yes | Stable field error code. Open list. Examples (open list): required, unknown_, invalid_, invalid_, invalid_, country_, postal_, france_, invalid_, un_, declared_, invalid_, pickup_, pickup_, pickup_, invalid_, too_, invalid_, invalid_, invalid_, incomplete, does_, too_, loading_, volume_, long_, unit_, unit_, unit_. |
| message | string | yes | Human-readable message, in French or in English. |
| earliest | string (date) | no | Earliest accepted pickup date, for pickup date errors. |
Webhooks
Signature and retries
Every delivery is a POST signed with the secret of the endpoint (whsec_, shown once in the portal). Header FreightMaster-Signature: t=<. Check the signature on the RAW body, then reject a t older than 5 minutes. Answer 2xx within 10 seconds; redirects are not followed. Retries after 1, 5, 15 and 30 minutes, 1, 2 and 4 hours, then every 6 hours, until 72 hours after the event; an endpoint failing for 72 hours is disabled and you get an e-mail. 3 endpoints per account, in production or test mode, set in the customer portal. The same event can arrive twice: deduplicate on id.
| Header | Description |
|---|---|
| FreightMaster-Signature | Signature: t=<. |
| FreightMaster-Event-Id | Event identifier (same as id in the body). |
| FreightMaster-Event-Type | Event type (same as type in the body). |
Events
shipment.booked- Shipment booked (through the API or in the portal).
shipment.confirmed- Shipment validated by your agency.
shipment.label_available- Label attached by your agency: download it with
GET /.shipments/ {shipment_ id}/ label shipment.label_updated- Label replaced:
label.has increased. Reprint it.version shipment.label_removed- Label removed by your agency.
shipment.tracking_available- Tracking link or number available.
shipment.tracking_updated- Tracking link or number changed.
shipment.in_transit- Shipment in transit.
shipment.delivered- Shipment delivered.
shipment.cancelled- Shipment cancelled.
shipment.reinstated- A cancelled shipment is active again (cancellation reversed by your agency).
shipment.carrier_changed- Carrier changed by your agency.
shipment.pickup_date_changed- Requested pickup date changed by your agency.
shipment.price_adjusted- Price of the shipment changed after booking: read
pricein the snapshot. webhook.test- Sent only by the “Test” button of an endpoint, in the customer portal. Not part of the event stream (
sequence: null).
Example of received body: shipment.label_available
{
"id": "evt_shp_test_21a2cc4aa5d746ccaeabd1a7.label_available",
"object": "event",
"type": "shipment.label_available",
"sequence": 128,
"created_at": "2026-11-07T14:56:59.734Z",
"livemode": false,
"data": {
"shipment": {
"id": "shp_test_21a2cc4aa5d746ccaeabd1a7",
"object": "shipment",
"livemode": false,
"channel": "api",
"reference": "PO-12345",
"status": "booked",
"booked_at": "2026-11-07T14:56:56.846Z",
"updated_at": "2026-11-07T14:56:56.846Z",
"requested_pickup_date": "2026-11-09",
"carrier": {
"id": "dhl_freight",
"name": "DHL Freight"
},
"shipper": {
"company": "Exemple Expéditeur SAS",
"contact": "Claire Martin",
"phone": "+33 3 20 00 00 00",
"email": "expedition@exemple.fr",
"address": "12 rue Nationale",
"postal_code": "59000",
"city": "Lille",
"country": "FR",
"country_name": "France"
},
"consignee": {
"company": "Exemple Destinataire SARL",
"contact": "Paul Durand",
"phone": "+33 4 72 00 00 00",
"email": "reception@exemple.fr",
"address": "8 rue Garibaldi",
"postal_code": "69003",
"city": "Lyon",
"country": "FR",
"country_name": "France"
},
"pallets": [
{
"length_cm": 120,
"width_cm": 80,
"height_cm": 150,
"weight_kg": 300
}
],
"price": {
"total_excl_vat": 166.98,
"vat": {
"regime": "fr_standard",
"rate_percent": 20,
"amount": 33.4
},
"total_incl_vat": 200.38,
"currency": "EUR"
},
"label": {
"status": "available",
"format": "pdf",
"downloadable": true,
"url": "https://freightmaster.fr/api/v1/shipments/shp_test_21a2cc4aa5d746ccaeabd1a7/label",
"version": 1,
"specimen": true
},
"tracking": {
"status": "pending",
"url": null,
"number": null
}
}
}
}Errors
OpenAPI specification
The full specification, for a client generator or an assistant:
https://freightmaster.fr/api/openapi.json(in English)https://freightmaster.fr/api/openapi.fr.json(in French)