Recipe: a carrier waybill from order fields
Which order fields a waybill needs and how to write the number back.
For orders with delivery.method: "carrier", GET /v1/admin/orders/:id returns the recipient, the address and delivery.provider with its carrierData (for Nova Poshta: the settlement and the branch). Bazzario creates waybills for integrated carriers itself; this recipe is for an external system that creates them in the carrier’s own account.
| For the waybill | Order field |
|---|---|
| Recipient | shippingAddress.name, phone (E.164) |
| City and branch or address | shippingAddress, delivery.carrierData |
| Carrier and service | delivery.provider, delivery.serviceType |
| Cash on delivery | paymentMethod: "cod", total (minor units), currency |
| Weight and parcels | Your own data: the order does not store them |
- Fetch new orders (
status,updatedSince) or react toorder.created. - Create the waybill with the carrier’s API from the fields above.
- Write the number back:
PATCH /v1/admin/orders/:idwithtrackingNumberandstatus: "SHIPPED". The buyer gets an email with the tracking number.
curl -X PATCH https://api.bazzario.app/v1/admin/orders/ORDER_ID \
-H "Authorization: Bearer bzk_YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{ "trackingNumber": "20450123456789", "status": "SHIPPED" }'