Stream courier quotes as they become available
POST /api/v5/bookings/stream
Server-Sent Events endpoint for the v5 quote flow. Emits ready, quote, carrier_error, and complete events. Uses the same authentication, anonymous rate limit, member discount, surcharge, warranty, and cache behaviour as POST /api/v5/bookings.
Authorizations
Section titled “Authorizations ”- ApiKeyAuth
- None
Request Body required
Section titled “Request Body required ”object
object
object
object
object
object
object
Examples
Sydney to Sydney cartons
{ "sender": { "address": "1 Market Street", "company_name": "Sender Pty Ltd", "email": "sender@example.com", "name": "Sender Contact", "phone": "0290000000", "postcode": "2000", "suburb": "Sydney", "state": "NSW", "country": "AU", "type": "business", "tailgate": false }, "receiver": { "address": "25 George Street", "company_name": "Receiver Pty Ltd", "email": "receiver@example.com", "name": "Receiver Contact", "phone": "0291111111", "postcode": "2000", "suburb": "Sydney", "state": "NSW", "country": "AU", "type": "business", "tailgate": false }, "items": [ { "description": "Carton", "length": 30, "width": 20, "height": 15, "weight": 2, "quantity": 1, "sku": "DEMO-CARTON-1" }, { "description": "Carton", "length": 40, "width": 30, "height": 20, "weight": 5, "quantity": 1, "sku": "DEMO-CARTON-2" } ], "declared_value": 250, "insured_value": 0, "description": "Demo Sydney carton quote", "referrer": "api-demo", "requesting_site": "api-worker-demo", "tailgate_pickup": false, "tailgate_delivery": false, "options": { "authority_to_leave": false, "disable_cache": false }}Responses
Section titled “ Responses ”Server-Sent Events stream of quote progress
Example
event: readydata: {"carrierCount":4,"cached":false}
event: quotedata: {"carrier":"direct_couriers","latencyMs":421}
event: completedata: {"cached":false,"durationMs":1380}Validation error
object
object
Arbitrary JSON value (string, number, boolean, null, array, or object).
Validation paths whose rejected values were substituted by server-side module settings rather than supplied by the caller.
object
Invalid api key
object
object
Arbitrary JSON value (string, number, boolean, null, array, or object).
Validation paths whose rejected values were substituted by server-side module settings rather than supplied by the caller.
object
Member not found
object
object
Arbitrary JSON value (string, number, boolean, null, array, or object).
Validation paths whose rejected values were substituted by server-side module settings rather than supplied by the caller.
object
Rate-limited
object
object
Arbitrary JSON value (string, number, boolean, null, array, or object).
Validation paths whose rejected values were substituted by server-side module settings rather than supplied by the caller.
object
Quote reference data unavailable
object
object
Arbitrary JSON value (string, number, boolean, null, array, or object).
Validation paths whose rejected values were substituted by server-side module settings rather than supplied by the caller.