Skip to main content
Omneya
EN
Start test system Try it
Developer docs menu

Read an order

Read an order of your shop by our order number, with status, payment state, addresses, items, totals and tracking numbers.

What you can read

GET /orders/{orderId} returns one order by our order number: the id you received in the response of POST /orders. The key needs the scope orders.read.

Every order of the shop assigned to your access can be read, no matter how it was placed: through your app, in the web shop, on a marketplace or by hand. type tells the kind of document, for example Auftrag (order), Gutschrift (credit note) or Retoure (return).

curl https://shop.example.com/api/v1/orders/104233 \
  -H "Authorization: Bearer $OMNEYA_API_KEY" \
  -H "Accept: application/json"

What the response contains

  • status_id and status: the current order status. The IDs are the ones from GET /order-statuses.
  • paid_status: unpaid, in_payment (partly paid), paid or canceled.
  • external_order_id: your order number, if the order was created through your access. For any other order it is null.
  • billing and shipping: in the same format as customer.billing and customer.shipping when you send an order, countries as ISO codes. shipping is null if the order goes to the billing address.
  • items: per item item_id (use it to change the item, see Update an order), sku, article_id, variation_id, name, quantity, unit_price_gross and total_gross.
  • Totals: shipping_cost_gross, shipping_cost_net, tax_total, grand_total_gross and grand_total_net.
  • shipments: the parcels with their tracking number and tracking link. The list is empty until the order is shipped.

When the order is not found

An unknown order number, a deleted order and an order of another shop all answer 404 not_found, so the response never reveals whether an order number exists elsewhere. If no shop is assigned to your access, the answer is 422 client_not_configured; ask the operator to assign one.

How often to read

There are no notifications for changes, so poll the orders you are waiting for, not all orders. Reading counts towards your requests per minute, see Rate limits. Once an order has reached a final status, for example shipped or cancelled, stop reading it.