API referenceOrders
Get one order
GET /v1/orders/{reference} — read one order.
GET
/v1/orders/{reference}{reference} accepts the Univooz reference or your externalOrderId.
curl https://api.univooz.com/v1/orders/ORD-260729-LD4Q \
-H "Authorization: Bearer uv_live_YOUR_KEY"
curl https://api.univooz.com/v1/orders/PO-88213 \
-H "Authorization: Bearer uv_live_YOUR_KEY"Response
200 with the order object.
Errors
| Status | Code |
|---|---|
| 401 | invalid_api_key |
| 404 | order_not_found |
Use this after a failure
Use this endpoint when a webhook does not arrive, or when a create request has a timeout.
Send the identifier you have. If you never received a reference, send your
externalOrderId. This is why the endpoint accepts both.
What gives 404
Three different conditions give the same answer:
- The reference does not exist.
- The order is in the other mode.
- The order belongs to another organization.
Why they are the same. A different answer would tell you that an order exists when you cannot see it.