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_idandstatus: the current order status. The IDs are the ones fromGET /order-statuses.paid_status:unpaid,in_payment(partly paid),paidorcanceled.external_order_id: your order number, if the order was created through your access. For any other order it isnull.billingandshipping: in the same format ascustomer.billingandcustomer.shippingwhen you send an order, countries as ISO codes.shippingisnullif the order goes to the billing address.items: per itemitem_id(use it to change the item, see Update an order),sku,article_id,variation_id,name,quantity,unit_price_grossandtotal_gross.- Totals:
shipping_cost_gross,shipping_cost_net,tax_total,grand_total_grossandgrand_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.