Integration guide for WooCommerce stores: live carrier rate quotes for a cart, plus consignment booking, manifesting and document downloads for orders already synced from your WooCommerce store. It runs through the same pipeline as the Fare Freight WooCommerce plugin, so you get the same carrier accounts, margin rules and orders.
| Rate API base URL | ffwooaurate.farefreight.com.au |
| Shipment API base URL | ship.farefreight.com.au |
| Auth header | X-FF-Secret-Key |
| Credentials | API Access, in the merchant portal sidebar |
| Format | JSON, snake_case |
Both hosts are live production. A request may call real carrier APIs and is logged against your live account.
Every request carries your account ID in the path and a secret key in the X-FF-Secret-Key header. The same key works on both hosts.
| Where | Value |
|---|---|
| {accountId} | Your numeric account ID, shown on the API Access page. |
| X-FF-Secret-Key | Your account’s secret key. Treat it like a password and never expose it in browser code. |
A missing or incorrect key returns 401 with no body. Rotating the key in the portal invalidates the old one immediately.
Returns live shipping quotes for one cart. This is separate from the WooCommerce plugin’s own webhook: it runs the identical rating pipeline but is keyed by account ID and secret key, so it’s safe to give to a third-party integration without handing over plugin credentials.
No 400 on a bad body. A missing or malformed field still returns 200 with an empty rates array, the same as the plugin webhook. Check for an empty array rather than expecting a 400.
| Field | Type | Notes | |
|---|---|---|---|
| origin | required | object | See below. |
| destination | required | object | See below. |
| items | required | array | Empty returns empty rates. |
| carttotal | optional | number | Cart subtotal. Drives free-shipping, margin-per-postcode and customer-specific rules. |
| customeremail username | optional | string | Matched against customer-specific pricing rules, if configured. |
| currency / locale | optional | string | Accepted; the response currency comes from your account settings. |
| Field | Type | Notes | |
|---|---|---|---|
| postal_code | required | string | Australian postcode. Missing on destination silently returns empty rates. |
| city | required | string | Suburb / locality. |
| province | recommended | string | NSW, VIC, QLD, WA, SA, TAS, ACT or NT. |
| country | optional | string | e.g. AU. |
| address1 address2 address3 | optional | string | Street address, used by some carriers. |
| name company_name phone / fax / email | optional | string | Passed to carrier consignment details where applicable. |
| address_type | optional | string | Overrides the account’s default delivery type. |
| forklift | optional | string | Destination only. Forklift-at-destination flag used by some carriers. |
Each item needs either variant_id or product_id. Whichever is non-zero is matched to your Fare Freight catalog, and weight, dimensions and freight class come from there.
| Field | Type | Notes | |
|---|---|---|---|
| variant_id / product_id | required (one) | integer | Must match a product/variant in your catalog. If every item resolves to zero weight, rates come back empty. |
| quantity | required | integer | >= 1. |
| price | optional | number | Decimal dollars. Set consistently with carttotal. |
| sku / name / vendor | optional | string | Logging only. |
| weight / grams | optional | — | Accepted but overridden by the catalog lookup. |
A successful call always returns 200, including when rates is empty. An empty array means no configured carrier could quote this address/cart. Rates are sorted cheapest first.
| Status | Meaning | Body |
|---|---|---|
| 401 | Missing/incorrect X-FF-Secret-Key, or the account isn’t active. | empty |
| 422 | Your account has no WooCommerce security code configured yet. Contact Fare Freight. | {“error”: “…”} |
| 429 | Rate limit exceeded. Honour the Retry-After header. | empty |
| 500 | Unexpected server error. Safe to retry once with backoff. | error JSON |
These endpoints book, manifest and download documents for orders already synced from your WooCommerce store into Fare Freight, identified by fulfilment_order_id. They live on ship.farefreight.com.au and use the same account ID and secret key.
| Method | Path | Description |
|---|---|---|
| POST | /api/public/consignment/{accountId} | Book a consignment with the chosen carrier. |
| POST | /api/public/manifest/{accountId} | Manifest one or more booked orders. |
| POST | /api/public/consignment-manifest/{accountId} | Book and manifest in one call. |
| POST | /api/public/download/connote/{accountId} | Connotes as one merged PDF. |
| POST | /api/public/download/manifest/{accountId} | Manifests as one merged PDF. |
| POST | /api/public/download/label/{accountId} | Labels as one merged PDF. |
| status | HTTP | Meaning |
|---|---|---|
| SUCCESS | 200 | Done. |
| ERROR | 422 | The carrier or Fare Freight rejected the request (already booked, already manifested, credentials not found). message says why. |
Calling the consignment endpoint again for an order that’s already booked re-books it with the carrier rather than refusing. Track which orders you’ve booked on your side.
| Status | Meaning | Body |
|---|---|---|
| 400 | A required field is missing or invalid. See errors[]. | {“errors”: […]} |
| 401 | Missing/incorrect secret key, or the account isn’t active. | empty |
| 404 | Unknown fulfilment_order_id, or (downloads) no document yet. | {“error”: “…”} |
| 409 | The order hasn’t been booked yet (manifest/download). | {“error”: “…”} |
| 422 | Unknown/inactive quote.ff_carrier_id, or the carrier doesn’t support that manifest/document. | {“error”: “…”} |
| 429 | Rate limit exceeded, Retry-After: 60. | empty |
| 502 | The carrier rejected or returned an unreadable document. Retry shortly. | {“error”: “…”} |
Field names in errors[] are camelCase (e.g. quote.ffCarrierId), not the snake_case you send. Match on the trailing field name.
Same body for both. Books the order with the carrier connection you choose. Supported carriers: NFM, MachShip, BigPost, KIS, Direct Freight, Allied Express and Australia Post. BigPost has no manifest step, so use consignment only for it.
Where the quote comes from. quote is the service you picked from a Fare Freight consignment quote, and quote.ff_carrier_id is the carrier connection (Carriers tab in the merchant portal) that books it. Send the other quote fields exactly as returned.
| Field | Type | Notes | |
|---|---|---|---|
| fulfilment_order_id | required | integer | The Fare Freight fulfilment order to book. |
| quote | required | object | ff_carrier_id required; service, service_code, carrier_code, carrier_name, shipping_charge, quote_rate_id, service_id, customer_service_id, carrier_id, depot_id, carrier_fees, fees as returned. |
| pickup_date | required | string | YYYY-MM-DD. |
| from_time / to_time | required | string | Pickup window, 24-hour HH:mm. |
| pickup_address | required | object | location_id, city, zip, province_code required; name, address1, address2, province, country optional. |
| delivery_address | required | object | address1, city, zip, province_code, customer_name required; address2, country, phone, email, company optional. |
| items[] | required | array | Each needs variant_id, quantity and positive height, width, length, weight; optional package_type, title, sku, volume, item_id. |
| lift_gate_delivery residential_delivery hand_unload authority_to_leave | optional | boolean | Delivery options, passed to the carrier where supported. |
| delivery_instruction | optional | string | Note for the driver. |
| weight_unit dimensions_unit | optional | string | Defaults to your account’s units. |
Manifests booked orders, grouped by carrier. Supported: NFM, MachShip, KIS, Direct Freight, Allied Express (marked manifested, no separate step) and Australia Post. Up to 100 orders per call. If a carrier group fails you get 422 with each failure in message, and orders shows what did get manifested.
Same body as manifest. Returns one merged PDF for all requested orders, grouped by carrier; on failure you get a JSON error.
| Document | Available for |
|---|---|
| label | NFM, MachShip, Direct Freight, KIS, Allied Express, Australia Post |
| connote | NFM, MachShip, Allied Express, Australia Post |
| manifest | NFM, MachShip, KIS |
A document the carrier doesn’t produce returns 422. A 404 means nothing is available yet; for a manifest, the order usually hasn’t been manifested.
The Rate API and Shipment API are limited separately, each to a burst of 30 requests refilling at 60 per minute per account. Beyond that you get 429 with Retry-After: 60. Need more? Ask your account manager.
| Convention | Detail |
|---|---|
| Money | Decimal dollars in requests, e.g. 49.99; shipping_charge matches the quote you selected. |
| Weight (rate) | Looked up from your catalog. Don’t send or compute it. |
| Weight (shipment) | You send actual per-item weight and dimensions. |
| State/territory | NSW, VIC, QLD, WA, SA, TAS, ACT, NT. |
| Field casing | snake_case in every body. |
For credentials, catalog setup, rate-limit changes or anything unexpected, contact your Fare Freight account manager or info@farefreight.com.au. Using the plugin instead? See Ship from WooCommerce.
Fare Freight · WooCommerce API · v1