univoozAPI
API referenceOrders

Cancel an order

POST /v1/orders/{reference}/cancel — stop a delivery.

POST/v1/orders/{reference}/cancel

{reference} is the Univooz reference or your externalOrderId.

curl -X POST https://api.univooz.com/v1/orders/ORD-260729-LD4Q/cancel \
  -H "Authorization: Bearer uv_live_YOUR_KEY"

Response

200 with the order object, at status: "cancelled".

Errors

When you can cancel

Who cancelsLast status that permits it
You, the businessarrived_for_pickup
The fleetarrived_for_delivery

After picked_up the courier has the goods, so only the fleet can cancel.

If your organization delivers its own orders, you are the fleet for those orders. Your limit is then arrived_for_delivery.

After you cancel

  • Univooz does not delete the order. It becomes cancelled and you can still read it.
  • cancelled is final. A second cancellation gives an error.
  • The charge stays. Univooz records it at creation.
  • Univooz sends order.cancelled.

On this page