Skip to content
Bazzario

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 waybillOrder field
RecipientshippingAddress.name, phone (E.164)
City and branch or addressshippingAddress, delivery.carrierData
Carrier and servicedelivery.provider, delivery.serviceType
Cash on deliverypaymentMethod: "cod", total (minor units), currency
Weight and parcelsYour own data: the order does not store them
  1. Fetch new orders (status, updatedSince) or react to order.created.
  2. Create the waybill with the carrier’s API from the fields above.
  3. Write the number back: PATCH /v1/admin/orders/:id with trackingNumber and status: "SHIPPED". The buyer gets an email with the tracking number.
bash
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" }'