FreightMaster API reference: endpoints, fields, errors, events

REST API in JSON: 10 endpoints, Bearer key, RFC 9457 errors, 14 events, HMAC-SHA256 signed webhooks, public OpenAPI specification at /api/openapi.json. Every operation has a stable anchor.

API10 endpoints · 14 events

On this page

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_live_… (production) or fm_test_… (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 /me says what the key can do.

Authentication. Authorization: Bearer <key>, never in the URL.

Errors. application/problem+json (RFC 9457) with a stable code, a type link to its description and a request_id. 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_vat. 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.price_adjusted 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 /shipments 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.expected_by is an indicative time returned by the API, with no commitment. GET /shipments/{shipment_id}/label answers 409 until the label is ready.

Events. Every change of a shipment produces an event, read with GET /events (reference channel, by sequence) or received by signed webhook. Test and production have separate sequences: keep one cursor per mode.

Carriers. carrier.id is an open string. On some accounts, an offer is named “Partenaire Premium” (premium_partner), the trade name of a partner carrier.

Common errors. Every endpoint can return 401 unauthorized, 403 account_disabled, 503 api_disabled and 500 internal; an unknown path returns 404 not_found, a wrong method 405 method_not_allowed.

Versions. Compatible additions do not change the version: read responses without rejecting unknown fields. A breaking change opens /v2, with 12 months of overlap.

NameDescription
Serverhttps://freightmaster.fr/api/v1. Single server. The prefix of the key selects the mode: fm_live_ (production) or fm_test_ (sandbox).
AuthorizationAPI key: fm_live_ (production) or fm_test_ (sandbox) followed by 43 letters and digits. Created in the customer portal, “API” menu, and shown only once.
OpenAPI/api/openapi.json (in English) · /api/openapi.fr.json (in French)

Getting started: a first quote · Labels, tracking and webhooks · Limits · Errors

Endpoints

OperationMethodPathSummary
getAccountGET/meAccount, capabilities and limits of the key
createQuotePOST/quotesQuote a shipment
getQuoteGET/quotes/{quote_id}Read a quote
createShipmentPOST/shipmentsBook an offer
listShipmentsGET/shipmentsList shipments
getShipmentGET/shipments/{shipment_id}Read a shipment
getShipmentLabelGET/shipments/{shipment_id}/labelDownload the label (PDF)
cancelShipmentPOST/shipments/{shipment_id}/cancelCancel a shipment
listEventsGET/eventsRead the event stream
advanceTestShipmentPOST/test/shipments/{shipment_id}/advanceSandbox: 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

NameInTypeRequiredDescription
Accept-Languageheaderstringnoen… 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

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

NameInTypeRequiredDescription
Accept-Languageheaderstringnoen… for messages and labels in English; French otherwise.

Request body

FieldTypeRequiredDescription
originPlaceyesA place of the route.
origin.countrystringyesISO 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.postal_codestringyesFull postal code, in the format of the country (France: 5 digits). Examples (open list): 59000, 69003.
destinationPlaceyesA place of the route.
destination.countrystringyesISO 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.postal_codestringyesFull postal code, in the format of the country (France: 5 digits). Examples (open list): 59000, 69003.
pickup_datestring (date) | nullnoRequested 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.
palletsarray<PalletLine>yesPallet 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[].quantityintegernoNumber of identical pallets on this line.
pallets[].length_cmnumberyesLength in cm. 400 cm at most.
pallets[].width_cmnumberyesWidth in cm.
pallets[].height_cmnumberyesHeight in cm, required. 220 cm at most.
pallets[].weight_kgnumberyesWeight of ONE pallet, in kg. 1,500 kg at most.
servicesServices | nullnoOptional services.
services.delivery_appointmentboolean | nullnoDelivery appointment.
services.private_addressboolean | nullnoPickup or delivery at a private address. Offers whose carrier does not offer it are returned with bookable: false.
services.small_vehicleboolean | nullnoDelivery by a vehicle under 3.5 t.
services.tail_liftboolean | nullnoTail lift. Passed on to your agency; not priced in the quote.
services.europallet_exchangeboolean | nullnoEuro pallet exchange.
services.dangerous_goodsnull | false | objectnonull or { "un_number": "1263" }.
services.dangerous_goods.un_numberstringyes4-digit UN number.
services.insurancenull | false | objectnonull or { "declared_value": 5000 }.
services.insurance.declared_valuenumberyesDeclared value in euros, 1,000,000 at most.
services.guaranteed_deliverystring | nullnoGuaranteed delivery. Offers whose carrier does not offer it are returned with bookable: false. Values: none, guaranteed, guaranteed_before_13h.
referencestring | nullnoYour 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

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

NameInTypeRequiredDescription
quote_idpathstringyesQuote identifier.
Accept-Languageheaderstringnoen… 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

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_no_longer_available or 422 pickup_date_not_allowed: 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

NameInTypeRequiredDescription
Idempotency-KeyheaderstringyesRequired. 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-Languageheaderstringnoen… for messages and labels in English; French otherwise.

Request body

FieldTypeRequiredDescription
quote_idstringyesQuote identifier (24 hours of validity).
offer_idstringyesIdentifier of the offer chosen in this quote.
shipperPartyInputyesShipper: company, contact, phone, e-mail, address, postal code, city, country.
shipper.companystringyesCompany name, written out in full (not a code or an abbreviation).
shipper.contactstringyesContact person. Required for the shipper.
shipper.phonestringyesPhone number.
shipper.emailstring (email)yesE-mail address. Required for the shipper.
shipper.addressstringyesStreet address, written out in full: number and street name.
shipper.postal_codestringyesPostal code: must match the quote.
shipper.citystringyesCity name, written out in full.
shipper.countrystringyesISO country code: must match the quote.
consigneePartyInputyesConsignee: company, phone, address, postal code, city, country.
consignee.companystringyesCompany name, written out in full (not a code or an abbreviation).
consignee.contactstringnoContact person. Required for the shipper.
consignee.phonestringyesPhone number.
consignee.emailstring (email)noE-mail address. Required for the shipper.
consignee.addressstringyesStreet address, written out in full: number and street name.
consignee.postal_codestringyesPostal code: must match the quote.
consignee.citystringyesCity name, written out in full.
consignee.countrystringyesISO country code: must match the quote.
goods_descriptionstringnoDescription of the goods.
pallet_commentsstringnoComments on the pallets.
commentsstringnoComments for your agency.
referencestring | nullnoYour 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

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

NameInTypeRequiredDescription
limitqueryintegernoPage size, 1 to 100.
cursorquerystringnonext_cursor of the previous page.
statusquerystringnoStatuses to keep, separated by commas.
referencequerystringnoYour reference, exact value.
updated_sincequerystring (date-time)noOnly shipments changed since this time.
Accept-Languageheaderstringnoen… 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

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

NameInTypeRequiredDescription
shipment_idpathstringyesShipment identifier (shp_…, shp_test_… in the sandbox).
Accept-Languageheaderstringnoen… 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

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_not_ready with Retry-After. Wait for shipment.label_available rather than polling. In the sandbox, the label is a specimen. Quota: 120 reads per minute, per key.

Parameters

NameInTypeRequiredDescription
shipment_idpathstringyesShipment identifier (shp_…, shp_test_… in the sandbox).
Accept-Languageheaderstringnoen… for messages and labels in English; French otherwise.

Responses

200 The PDF label. application/pdf.

Possible errors

Call with curl

curl -X GET 'https://freightmaster.fr/api/v1/shipments/<shipment_id>/label' \
  -H "Authorization: Bearer $FM_KEY" \
  -o etiquette.pdf

POST /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_cancel. To book the same order again, use a new Idempotency-Key (PO-12345-2). Quota: 20 cancellations per hour, per key.

Parameters

NameInTypeRequiredDescription
shipment_idpathstringyesShipment identifier (shp_…, shp_test_… in the sandbox).
Accept-Languageheaderstringnoen… for messages and labels in English; French otherwise.

Request body

FieldTypeRequiredDescription
reasonstringnoReason, 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

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

NameInTypeRequiredDescription
afterqueryintegernoSequence of the last event already read (next_cursor).
limitqueryintegernoPage size, 1 to 100.
typesquerystringnoTypes to keep, separated by commas. The filter applies within each page: a page can hold fewer events than limit; always go on from next_cursor.
Accept-Languageheaderstringnoen… 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

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.confirmed. Without a call, the steps reached are published at your next read (GET /events, GET /shipments/{shipment_id}, the label). Quota: 120 reads per minute, per key.

Parameters

NameInTypeRequiredDescription
shipment_idpathstringyesShipment identifier (shp_…, shp_test_… in the sandbox).
Accept-Languageheaderstringnoen… 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

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.

FieldTypeRequiredDescription
quote_idstringyesQuote identifier.
object"quote"yes
livemodebooleanyesfalse with a test key.
created_atstring (date-time)yesCreation time (UTC).
expires_atstring (date-time)yesEnd 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.
currencystringyesCurrency of the prices.
referencestring | nullyesYour reference.
pickup_datestring (date)yesRequested pickup date used for the quote.
routeQuoteRouteyesRoute of the quote.
route.originobjectyesOrigin, normalised.
route.origin.countrystringyes
route.origin.postal_codestringyes
route.destinationobjectyesDestination, normalised.
route.destination.countrystringyes
route.destination.postal_codestringyes
shipmentobjectyesThe quoted shipment.
shipment.pallet_countintegeryesNumber of pallets.
shipment.loading_metersnumberyesLoading meters (floor length used in a 2.4 m wide truck).
shipment.actual_weight_kgnumberyesTotal actual weight, in kg.
shipment.volume_m3numberyesTotal volume, in m³.
offersarray<Offer>yesOffers, sorted by total price, lowest first. Their number depends on the route, the load and your account.
unavailablearray<Refusal>yesWhen offers is empty: why.
expiredbooleannoOnly in GET /quotes/{quote_id}: true after expires_at.

Offer

An offer of a carrier for the quoted shipment. Offers are sorted by total price, lowest first.

FieldTypeRequiredDescription
offer_idstringyesOffer identifier, to send to POST /shipments.
carrierCarrieryesCarrier of an offer. The identifier premium_partner (name “Partenaire Premium”) is the trade name of a partner carrier, on some accounts.
carrier.idstringyesStable carrier identifier. Open string: new identifiers may appear without a version change. Examples (open list): dhl_freight, xpo, dgs, dsv, coquelle, france_express, geodis, translocauto, heppner.
carrier.namestringyesCarrier name to display.
productProductyesCarrier product of an offer.
product.idstringyesStable product identifier, <carrier.id>.<product>. Open string. Examples (open list): dhl_freight.pallet, dhl_freight.europe, xpo.standard, dgs.pallet, dgs.weight, dsv.pallet, dsv.weight, coquelle.benelux, coquelle.pallet, france_express.europe, france_express.express, geodis.europe, geodis.standard, translocauto.pallet, translocauto.weight, heppner.pallet, heppner.europe, heppner.weight.
product.namestringyesProduct name to display, always in French: “(Poids)” = by weight, “(Palette)” = per pallet.
chargeable_weight_kgnumber | nullyesChargeable 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.
priceOfferPriceyesPrice of an offer, in euros, for your account.
noticesarray<Notice>yesInformation to read before booking.
bookablebooleanyesfalse when a requested service is not offered by this carrier: the offer cannot be booked.
unsupported_servicesarray<string>noRequested services this carrier does not offer (when bookable is false).
booking_urlstring (uri)noLink 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.

FieldTypeRequiredDescription
transport_excl_vatnumberyesTransport, excluding VAT: total minus the lines.
linesarray<PriceLine>yesOther lines of the price.
total_excl_vatnumberyesTotal excluding VAT, in euros.
vatVatyesVAT.
total_incl_vatnumberyesTotal including VAT, in euros.

PriceLine

A line of the price besides transport: fuel surcharge, service, surcharge.

FieldTypeRequiredDescription
codestringyesStable line code. Open list. Examples (open list): fuel, guaranteed_before_13h, xpo_premium, guaranteed_delivery, delivery_appointment, private_address, small_vehicle, dangerous_goods, europallet_exchange, insurance, urban_delivery, other.
labelstringyesLine label, in French or in English.
amountnumberyesAmount excluding VAT, in euros.
rate_percentnumbernoRate applied, for the fuel surcharge (fuel).

Vat

VAT.

FieldTypeRequiredDescription
regimestringyesVAT regime of your account: fr_standard (20%), eu_reverse_charge (EU company with a VAT number, reverse charge, 0%), non_eu_out_of_scope (company outside the EU, 0%). Values: fr_standard, eu_reverse_charge, non_eu_out_of_scope.
rate_percentnumberyesVAT rate in percent.
amountnumberyesVAT amount in euros.

Notice

Information to read before booking: customs, locality, surcharge included.

FieldTypeRequiredDescription
codestringyesStable notice code. Open list. Examples (open list): customs_not_included, customs_export_included, locality_rate_applied, port_surcharge_included, sector_partially_served, locality_rate_possible, sector_max_price, urban_delivery_included, urban_delivery_possible.
messagestringyesMessage, in French or in English.

Refusal

Why no carrier offers a rate (offers empty).

FieldTypeRequiredDescription
codestringyesStable reason code. Open list. Examples (open list): loading_meters_limit, weight_limit, volume_limit, long_unit_weight_limit, carrier_constraints, postal_code_incomplete, postal_code_ambiguous, postal_code_not_served, destination_not_served, country_not_served, french_department_not_served, rate_on_request, no_rate, no_route.
messagestringyesMessage, in French or in English.

Shipment

A shipment of your account, booked through the API or in the portal.

FieldTypeRequiredDescription
idstringyesShipment identifier. shp_test_… in the sandbox.
object"shipment"yes
livemodebooleanyesfalse for a simulated booking.
channelstringyesWhere the shipment was booked: through the API or in the customer portal. Values: api, portal.
referencestring | nullyesYour reference.
statusstringyesbooked, confirmed (validated by your agency), in_transit, delivered, cancelled. unknown for an unexpected internal value: never an invented status. Values: booked, confirmed, in_transit, delivered, cancelled, unknown.
booked_atstring (date-time) | nullyesBooking time (UTC).
updated_atstring (date-time) | nullyesLast change (UTC).
requested_pickup_datestring (date) | nullyesRequested pickup date. Requested, never guaranteed.
carrierShipmentCarrieryesCarrier of the shipment. It can change after booking (shipment.carrier_changed).
shipperPartyOutputyesShipper or consignee of a shipment. Same fields in production and in the sandbox.
consigneePartyOutputyesShipper or consignee of a shipment. Same fields in production and in the sandbox.
palletsarray<object>yesOne entry per pallet.
pallets[].length_cmnumber | nullno
pallets[].width_cmnumber | nullno
pallets[].height_cmnumber | nullno
pallets[].weight_kgnumber | nullno
priceShipmentPriceyesPrice of the shipment. It can change after booking (shipment.price_adjusted).
labelLabelyesLabel of the shipment: pending, available or not_provided.
trackingTrackingyesTracking of the shipment.
cancelled_atstring (date-time) | nullnoCancellation time, when status is cancelled.
cancellationobjectnoCancellation requested after the label: your agency cancels with the carrier; the status does not change until then.
cancellation.status"requested"yes
cancellation.requested_atstring (date-time) | nullno

ShipmentCarrier

Carrier of the shipment. It can change after booking (shipment.carrier_changed).

FieldTypeRequiredDescription
idstring | nullnoCarrier identifier (see Carrier.id), or null when the carrier is not one of the API carriers.
namestring | nullnoCarrier name.

PartyOutput

Shipper or consignee of a shipment. Same fields in production and in the sandbox.

FieldTypeRequiredDescription
companystring | nullno
contactstring | nullno
phonestring | nullno
emailstring | nullno
addressstring | nullno
postal_codestring | nullno
citystring | nullno
countrystring | nullnoISO 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_namestring | nullnoCountry name as recorded on the shipment, in French (for example France).

ShipmentPrice

Price of the shipment. It can change after booking (shipment.price_adjusted).

FieldTypeRequiredDescription
total_excl_vatnumberyesTotal excluding VAT, in euros.
vatVatyesVAT.
total_incl_vatnumberyesTotal including VAT, in euros.
currencystringyesCurrency.

Label

Label of the shipment: pending, available or not_provided.

LabelPending

No label yet: your agency attaches it after the booking.

FieldTypeRequiredDescription
status"pending"yes
expected_bystring (date-time) | nullnoIndicative time returned by the API, with no commitment. The label can arrive later, or never (not_provided).

LabelAvailable

Label available.

FieldTypeRequiredDescription
status"available"yes
format"pdf"yes
downloadablebooleanyestrue when GET /shipments/{shipment_id}/label serves the file.
urlstring (uri)noAddress of the label in the API (Bearer key required).
versionintegeryesVersion of the label: it increases when the agency replaces it (shipment.label_updated). Reprint when it changes.
updated_atstring (date-time)noLast change of the label.
specimentruenoSandbox 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.

FieldTypeRequiredDescription
status"not_provided"yes

Tracking

Tracking of the shipment.

FieldTypeRequiredDescription
statusstringyesavailable once a usable tracking link or number is known. Values: pending, available.
urlstring (uri) | nullyesTracking page of the carrier.
numberstring | nullyesTracking number.

Cancellation

Cancellation request passed on to your agency (label already attached).

FieldTypeRequiredDescription
idstringyesShipment identifier.
object"cancellation"yes
status"requested"yes
livemodebooleanyes

ShipmentList

A page of shipments, most recent first.

FieldTypeRequiredDescription
object"list"yes
dataarray<Shipment>yes
has_morebooleanyestrue when another page exists.
next_cursorstring | nullyesOpaque cursor of the next page, to send as cursor.

Event

A change of a shipment. Same body in GET /events and in webhooks.

FieldTypeRequiredDescription
idstringyesEvent identifier. The same change always has the same identifier: use it to ignore a duplicate.
object"event"yes
typestringyesEvent type. Values: shipment.booked, shipment.confirmed, shipment.label_available, shipment.label_updated, shipment.label_removed, shipment.tracking_available, shipment.tracking_updated, shipment.in_transit, shipment.delivered, shipment.cancelled, shipment.reinstated, shipment.carrier_changed, shipment.pickup_date_changed, shipment.price_adjusted.
sequenceintegeryesSequence number, strictly increasing per account and per mode (test and production have separate sequences).
created_atstring (date-time)yesTime of the change (UTC).
livemodebooleanyes
dataobjectyesFull snapshot of the shipment after the change.
data.shipmentShipmentyesA shipment of your account, booked through the API or in the portal.

EventList

A page of events, in sequence order.

FieldTypeRequiredDescription
object"list"yes
dataarray<Event>yes
has_morebooleanyestrue when more events follow.
next_cursorstringyesSequence of the last event read: send it as after next time. Keep one cursor per mode.

Account

Account and limits of the key.

FieldTypeRequiredDescription
object"account"yes
livemodebooleanyestrue with a production key, false with a test key.
key_idstringyesPublic identifier of the key (never the key).
accountobjectyesAccount of the key.
account.companystring | nullyes
account.currencystringyes
account.vatobjectyesVAT regime of the account.
account.vat.regimestringyes Values: fr_standard, eu_reverse_charge, non_eu_out_of_scope.
account.vat.rate_percentnumberyes
capabilitiesobjectyesWhat the key can do.
capabilities.can_quotebooleanyesAlways true.
capabilities.can_bookbooleanyestrue when POST /shipments is allowed with this key (always with a test key: simulated booking).
booking_blocked_reasonstringnoProduction key that cannot book: card_prepayment (account paying by card: ask your agency for monthly invoicing from the portal), agency_not_enrolled (your agency has not opened API booking), live_key_requires_review (a test booking must be reviewed by your agency first). Values: card_prepayment, agency_not_enrolled, live_key_requires_review.
limitsobjectyesLimits of the key and of the account.
limits.quotes_per_minuteintegeryesQuotes per minute, per key.
limits.quotes_per_dayintegeryesQuotes per day, per key.
limits.bookings_per_hourintegeryesBookings per hour, per key. A replay of the same request does not count.
limits.cancellations_per_hourintegernoCancellations per hour, per key.
limits.bookings_per_dayintegeryesBookings per day, per key.
limits.reads_per_minuteintegeryesReads per minute, per key.
limits.account_bookings_per_dayintegernoProduction bookings per day for the account (all keys). Can be raised on request, through your agency.
limits.account_bookings_per_monthintegernoProduction bookings per month for the account (all keys). Can be raised on request, through your agency.
limits.account_bookings_todayintegernoProduction bookings of the account today (Paris time).
limits.account_bookings_this_monthintegernoProduction bookings of the account this month (Paris time).
limits.account_quotes_per_dayinteger | nullnoQuotes 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/problem+json).

FieldTypeRequiredDescription
typestring (uri)yesURL of the error description: https://freightmaster.fr/api/erreurs#<code>.
titlestringyesHTTP status title.
statusintegeryesHTTP status code.
codestringyesStable 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_disabled, account_disabled, not_found, method_not_allowed, unsupported_media_type, payload_too_large, invalid_json, validation_failed, shipment_outside_limits, rate_limited, daily_limit_reached, booking_not_allowed, agency_not_enrolled, live_key_requires_review, account_daily_limit_reached, account_monthly_limit_reached, account_quote_limit_reached, quote_not_found, quote_expired, offer_not_found, offer_not_bookable, offer_no_longer_available, pickup_date_not_allowed, idempotency_key_required, idempotency_key_reused, shipment_not_found, label_not_ready, label_not_downloadable, already_cancelled, cannot_cancel, test_only, engine_error, internal.
detailstringyesHuman-readable message, in French or in English (Accept-Language: en). May change.
errorsarray<FieldError>noField errors, for validation_failed and shipment_outside_limits.
earliest_pickup_datestring (date)noEarliest pickup date accepted now (pickup_date_not_allowed).
request_idstringyesRequest identifier, also in the X-Request-Id header.

FieldError

Error on one field of the request.

FieldTypeRequiredDescription
fieldstringyesPath of the field in the request body, for example pallets[0].weight_kg or shipper.email. Empty when the whole body is concerned.
codestringyesStable field error code. Open list. Examples (open list): required, unknown_field, invalid_type, invalid_number, invalid_quantity, country_not_supported, postal_code_invalid, france_required, invalid_value, un_number_required, declared_value_invalid, invalid_date, pickup_date_too_early, pickup_date_not_business_day, pickup_date_too_far, invalid_reference, too_many_lines, invalid_body, invalid_email, invalid_phone, incomplete, does_not_match_quote, too_many_units, loading_meters_limit, volume_limit, long_unit_weight_limit, unit_too_long, unit_too_high, unit_too_heavy.
messagestringyesHuman-readable message, in French or in English.
earlieststring (date)noEarliest 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=<unix time>,v1=<hex HMAC-SHA256 of "<t>.<raw body>">. 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.

HeaderDescription
FreightMaster-SignatureSignature: t=<unix time>,v1=<hex HMAC-SHA256(secret, "<t>.<raw body>")>.
FreightMaster-Event-IdEvent identifier (same as id in the body).
FreightMaster-Event-TypeEvent 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.version has increased. Reprint it.
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 price in 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

CodeHTTP statusesSummary
account_daily_limit_reached429Account booking limit reached today
account_disabled403API access disabled for this account
account_monthly_limit_reached429Account booking limit reached this month
account_quote_limit_reached429Account quote limit reached today
agency_not_enrolled403Agency has not opened API booking
already_cancelled409Shipment already cancelled
api_disabled503API temporarily disabled
booking_not_allowed403Account paying by card: no API booking
cannot_cancel409Shipment can no longer be cancelled
daily_limit_reached429Daily limit of this key reached
engine_error502Price calculation failed
idempotency_key_required400Idempotency-Key header missing
idempotency_key_reused409, 422Idempotency key reused with another body
internal500Internal error
invalid_json400Unreadable JSON body
label_not_downloadable409Label not downloadable through the API
label_not_ready409Label not available yet
live_key_requires_review403Production booking not yet reviewed
method_not_allowed405Method not allowed
not_found404Unknown path
offer_no_longer_available409Carrier no longer serves the shipment
offer_not_bookable422Offer cannot be booked
offer_not_found404Offer not found in the quote
payload_too_large413Body larger than 64 KB
pickup_date_not_allowed422Pickup date no longer possible
quote_expired410Quote expired
quote_not_found404Quote not found
rate_limited429Too many requests for this key
shipment_not_found404Shipment not found
shipment_outside_limits422Shipment outside the pallet network limits
test_only403Test keys only
unauthorized401Missing or invalid API key
unsupported_media_type415Body is not JSON
validation_failed422Invalid request (field errors)

OpenAPI specification

The full specification, for a client generator or an assistant:

Try it with a test key

The sandbox quotes at the prices of your account and simulates bookings, specimen label included. Business registered in France? Sign up on /inscription (form in French).