> For the complete documentation index, see [llms.txt](https://apidocs.akinon.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://apidocs.akinon.com/commerce-openapis/admin/orders/order-items/list-order-items.md).

# List order items

Returns a paginated list of order items, ordered by ascending identifier.

A filter is available for almost every order-item field, and the parent order is traversable through `order__` parameters. Text filters match on a case-insensitive partial match; the rest match exactly. Appending `!` to any filter parameter negates it. Use the `sort` parameter to change the ordering. An invalid value for a typed filter (a non-numeric price, an unparseable date, an identifier that does not exist) is rejected with `400`; unknown parameters are ignored.

Three limitations are worth knowing before relying on this endpoint, all covered in detail in the **Order Items** section:

* There is **no `id` / `pk` filter** — read a single item through `GET /order_items/{id}/`.
* `status` is matched as a **case-insensitive substring**, not exactly, so `?status=50` also returns items with status `500` and `550`.
* `attributes` is filtered **by JSON path** (`?attributes__color=red`), never as a bare value. The other four JSON fields (`attributes_kwargs`, `localized_attributes`, `localized_attributes_kwargs`, `extra_field`) **cannot be filtered on** — those parameters are silently ignored and return the unfiltered page.

```json
{"openapi":"3.1.0","info":{"title":"Admin API","version":"1.0.0"},"tags":[{"name":"Order Items","description":"Administrative endpoints for **order items** — the individual line items of an order. An order item represents a single unit of one product within an order and carries its own status, price, tax rate, invoice data, shipping and tracking details, and free-form EAV attributes.\n\nOrder items are created by the checkout flow together with their parent order. These endpoints exist so that Omnitron and integration systems can read line items and push per-item fulfilment updates back into Commerce — status transitions, invoice numbers, tracking numbers, shipping companies, and shipped / delivered dates.\n\nBecause one order item represents exactly one unit, an order for three of the same product is stored as three separate order items. An item that was added to the basket as a child of another item — an add-on or bundled product, or a trade-in attached to a purchase — points at the order item it belongs to through `parent`, which is always another item of the same order.\n\n## Core Capabilities\n\n**1. Order Item Listing & Filtering**\n* Retrieve a paginated list of order items, ordered by ascending identifier.\n* Filter on almost every order-item field, and on the parent order's fields through `order__` traversal.\n* Change the ordering with the `sort` parameter.\n\n**2. Order Item Retrieval**\n* Retrieve a single order item by its identifier.\n\n**3. Order Item Creation**\n* Create an order item on an existing order. Creation runs through the order service, which overwrites `extra_field` with a snapshot of the price-list and stock-list `extra_field` values and forces the item status to `300` (`payment_waiting`) when the parent order is in that status.\n\n**4. Order Item Update**\n* Partially update an order item — primarily to advance `status` and to write invoice, tracking, shipping and delivery data.\n* Every successful update runs a set of per-item post-update actions (notifications, e-mail, SMS, subscription dispatch, basket-offer revocation) whose behaviour is controlled by the dynamic settings listed at the end of this section.\n\n**5. Deletion is not allowed**\n* `DELETE /order_items/{id}/` always fails with `406 Not Acceptable` and the error code `method_100`. Order items are never removed; cancel or refund an item by moving its `status` to `100` (`cancelled`) or `600` (`refunded`) instead.\n\n## Request and Response Shapes\n\nThe read, create and update shapes are different objects and are **not** interchangeable:\n\n| Operation | Request schema | Response schema |\n|-----------|----------------|-----------------|\n| `GET /order_items/` | — | `PaginatedOrderItemList` (items are `OrderItem`) |\n| `GET /order_items/{id}/` | — | `OrderItem` |\n| `POST /order_items/` | `OrderItemCreateRequest` | `OrderItemCreated` |\n| `PUT /order_items/{id}/` | `OrderItemUpdateRequest` | `OrderItem` |\n| `PATCH /order_items/{id}/` | `OrderItemPatchRequest` | `OrderItem` |\n\nThe read shape (`OrderItem`) identifies the record with `pk` and adds the parent product's `product_sku`, the nested `extra_product_price_detailed` / `extra_product_stock_detailed` / `datasource_detailed` objects, and the computed `discounted_price`. The create response (`OrderItemCreated`) identifies the record with `id` instead and exposes `order`, `created_date`, `modified_date` and the `localized_attributes` pair, but carries none of the nested detail objects and no `product_sku` or `discounted_price`. Do not assume that a field present in one shape exists in the other.\n\n## Order Item Statuses\n\nAn order item's `status` moves independently of its parent order's status, which is what makes partial shipment and partial cancellation possible. Values are numeric strings from the same set the order uses.\n\n| Value | Name | Description |\n|-------|------|-------------|\n| `50` | `cancellation_waiting` | Cancellation has been requested for this item and is pending. |\n| `100` | `cancelled` | The item has been cancelled. |\n| `200` | `waiting` | The item has been created but payment has not yet been confirmed. |\n| `300` | `payment_waiting` | Payment has been initiated and is waiting for confirmation. |\n| `350` | `confirmation_waiting` | The item is awaiting manual confirmation. |\n| `400` | `approved` | Payment confirmed; the item is approved for fulfilment. |\n| `430` | `waiting_for_substitute` | Waiting for a substitute product. |\n| `450` | `preparing` | The item is being prepared / packed. |\n| `500` | `shipped` | The item has been dispatched to the carrier. |\n| `510` | `shipped_and_informed` | The item has been shipped and the customer has been notified. |\n| `520` | `ready_for_pickup` | The item is ready for in-store collection. |\n| `540` | `attempted_delivery` | A delivery attempt was made but the recipient was unavailable. |\n| `544` | `review_started` | A trade-in review has been started for the item. |\n| `545` | `review_waiting` | A trade-in review is waiting. |\n| `546` | `waiting_for_payment` | Waiting for trade-in payment. |\n| `547` | `paid` | Trade-in payment received. |\n| `550` | `delivered` | The item has been delivered to the customer. |\n| `600` | `refunded` | The item has been refunded. |\n| `700` | `merged` | Order-level value carried over from the shared status enum — it marks an add-on *order* that was merged into a main order. The platform does not set it on order items; it is accepted here only because items reuse the order status enum. |\n\n## Update Semantics\n\n* `PATCH` writes only the fields present in the request body; every other field keeps its current value. `modified_date` is always refreshed. Leaving `status` out means \"do not change the status\", and none of the status-gated post-update actions run.\n* **`attributes` is merged, not replaced.** The submitted object is merged key by key into the stored one, so existing keys that are not mentioned survive and a key sent again is overwritten. There is no way to delete an attribute key through this endpoint.\n* `attributes_kwargs` and `extra_field` are **replaced** with whatever is submitted. `localized_attributes` and `localized_attributes_kwargs` are not part of the update shape at all — they can be set at creation but are silently ignored on `PATCH`.\n* `order` cannot be changed after creation — it is not part of the update shapes and is ignored if sent.\n* **Status transition side effects.** When `status` changes while the item is still in `200` (`waiting`) or `300` (`payment_waiting`), the **unreported** sold-quantity counter (`sold_quantity_unreported`) on the item's stock record — its `extra_product_stock` when set, otherwise the product's own stock record — is decremented, marking the sale as reported. It is reduced by one for an ordinary item; for a product sold by weight it is reduced by the item's unit amount rounded up to whole units, and for a quantity-mergeable product by the unit amount stored on the item. It never goes below zero. After the item is saved, the post-update actions run — see **Post-Update Actions** below.\n* **`PUT` and `PATCH` behave the same way, apart from which fields are required.** Both write only the fields present in the body — `PUT` does not reset the fields you leave out. `PUT` requires `product`, `status`, `price_currency`, `price` and `tax_rate`; `PATCH` requires nothing. Use `PATCH` unless you have a reason to send the full record.\n* **`product_sku` is read-only** and is ignored on write, so a body read from `GET` can be sent straight back without stripping it. To point an item at a different product, send `product`; `product_sku` in the response then reflects the new product.\n* `discount_amount` is validated against the item's `price`: it must be greater than or equal to `0` and less than or equal to `price`. `discounted_price` in the response is `price - discount_amount` and is computed, never stored.\n\n## Post-Update Actions\n\nThe item is saved in its own transaction, and the post-update actions then run **synchronously, outside that transaction, before the response is returned**. Two consequences matter in practice: a slow gateway makes the request slow, and a failing action fails the request even though the item has already been saved and committed. Only the ready-for-pickup action swallows its own errors; the rest do not.\n\nWhich actions run depends on whether `status` actually changed — the handler compares the submitted `status` with the stored one:\n\n| Action | Runs when |\n|--------|-----------|\n| Partial shipping e-mail, SMS and push notification | `status` changed to `500` (`shipped`) **and** `tracking_number` is set **and** `SEND_SHIPPING_NOTIFICATIONS_PARTIALLY` is `true`. |\n| Partial delivery e-mail and push notification | `status` changed to `550` (`delivered`) **and** `SEND_SHIPPING_DELIVERED_NOTIFICATIONS_PARTIALLY` is `true`. |\n| Per-item cancellation push notification | `status` changed to `100` (`cancelled`) **and** `SEND_ORDER_CANCELLED_NOTIFICATIONS_PARTIALLY` is `true`. |\n| Ready-for-pickup e-mail | `status` moved from `400` (`approved`) or `450` (`preparing`) to `520` (`ready_for_pickup`) **and** the order ships to a retail-store address. Errors are logged and swallowed. |\n| Subscription (marketing) dispatch | `status` changed **and** `SUBSCRIPTION_ACTIVE` is `true`. |\n| Trade-in e-mail | Every update while the item sits in `544` / `545` with an unresolved `inquiry` and `SEND_TRADEIN_MAIL_CASE` is `true` — **not** limited to status changes. |\n| Post-order basket-offer revocation | Every update while the item's `status` is `100` (`cancelled`) or `600` (`refunded`) and it is tied to a completed post-order action — **not** limited to status changes. Re-running it is a no-op once the offer has been revoked. |\n\nLeaving `status` out of a `PATCH`, or re-sending the item's current value, both count as \"unchanged\": the status-gated actions in the table above are then skipped, while the last two still run.\n\n## Filtering\n\nA filter is available for every order-item field. Text fields match on a **case-insensitive partial match**, and the remaining fields match exactly:\n\n| Parameters | Match |\n|-----------|-------|\n| `status`, `price_currency`, `shipping_company`, `defined_shipping_company`, `invoice_number`, `tracking_number`, `defined_tracking_url`, `e_archive_url`, `shipping_tracking_url` | Case-insensitive partial match. On the nullable ones, `NULL_VALUE` returns only records where the field is empty and `NOT_NULL_VALUE` only records where it is set. `status` and `price_currency` are never null, so `NULL_VALUE` returns an empty page for them. |\n| `price`, `retail_price`, `tax_rate`, `discount_amount` | Exact numeric match. |\n| `product`, `parent`, `order`, `extra_product_price`, `extra_product_stock`, `datasource`, `shipping_option_group` | Exact identifier match. An identifier that does not exist is rejected with `400`. |\n| `created_date`, `modified_date`, `invoice_date`, `shipped_date`, `delivered_date` | Exact ISO 8601 date-time match. |\n| `estimated_delivery_date` | Exact date match. |\n| `image` | Exact match on the stored file path. |\n| `attributes` | Filtered by JSON path — see **Filtering on `attributes`** below. |\n| `attributes_kwargs`, `localized_attributes`, `localized_attributes_kwargs`, `extra_field` | **Not usable** — see the note below `attributes`. |\n\n**There is no `id` or `pk` filter.** To read a single item by its identifier use `GET /order_items/{id}/`.\n\n**`status` is a substring match, not an exact one.** Because the status column stores numeric strings and the filter matches partially, `?status=50` also returns items whose status is `500` or `550`, and `?status=0` returns almost everything. Prefer a value that is not a prefix or infix of another status, or filter on the parent order instead.\n\n**Parent order filters.** The parent order is traversable with a double underscore: `order__id`, `order__status` (exact), `order__number`, `order__user_email`, `order__is_payable`, `order__easy_return_code`, and `order__created_date` with the `__gt`, `__gte`, `__lt`, `__lte`, `__date__gt`, `__date__gte`, `__date__lt` and `__date__lte` lookups. `order=<id>` filters by the parent order's identifier directly.\n\n**Negation.** Appending `!` to any filter parameter excludes the matching records instead of selecting them — `?status!=400` returns every item that is *not* approved.\n\n**Filtering on `attributes`.** Address a key inside the item's EAV attributes with a double underscore — `?attributes__color=red`, or `?attributes__tax__total=12.00` for a nested key. The value is matched as a **case-insensitive substring** of the stored value's text form, so `?attributes__color=re` matches `red`.\n\n| Form | Meaning |\n|------|---------|\n| `?attributes__<key>=<value>` | Case-insensitive substring match on that key. |\n| `?attributes__<key>=<a>,<b>` | Several values for one key are **OR**-ed. |\n| `?attributes__<k1>=<a>&attributes__<k2>=<b>` | Different keys are **AND**-ed. |\n| `?attributes__<key>__exact=<value>` | Exact match instead of a substring. |\n| `?attributes__<key>__isnull=true` | Selects items where the key is absent; `false` selects items that have it. |\n\nThree forms are **not supported** and must be avoided by the caller:\n\n* **A value with no key path** (`?attributes=red`) — always address a key inside the field.\n* **A path segment named after a query lookup** (`?attributes__color__gt=a`, `?attributes__color__icontains=red`) — the segment is resolved as that lookup rather than as a key. Only the `__exact` and `__isnull` suffixes are recognised; every other segment must be an actual key name.\n* **The `!` exclusion suffix on a path** (`?attributes__color!=red`) — negation is resolved against filter names, not JSON paths, so `color!` is looked up as a key that does not exist and the page comes back empty. Do not read that as \"no item matches\".\n\nThe same applies to the other endpoints that filter on a JSON field, such as `/users/`.\n\n**`attributes` is the only usable JSON filter.** `attributes_kwargs`, `localized_attributes`, `localized_attributes_kwargs` and `extra_field` are not wired up for path traversal, so do not send those parameters at all: their path form (`?extra_field__foo=x`) is not a filter name and is ignored like any unknown parameter, and the bare form (`?extra_field=x`) is not usable either.\n\n**Unknown query parameters are ignored** rather than rejected.\n\n## Sorting\n\nWithout a `sort` parameter, results come back ordered by ascending identifier. `sort` accepts a comma-separated list of fields; prefix a field with a hyphen for descending order.\n\nSortable fields: `pk`, `product`, `product__sku`, `status`, `price_currency`, `price`, `tax_rate`, `retail_price`, `discount_amount`, `invoice_number`, `invoice_date`, `e_archive_url`, `tracking_number`, `defined_tracking_url`, `shipping_company`, `defined_shipping_company`, `shipping_tracking_url`, `estimated_delivery_date`, `shipped_date`, `delivered_date`, `parent`, `extra_product_price`, `extra_product_stock`, `datasource`, `shipping_option_group`, `image`, `attributes`, `attributes_kwargs`, `extra_field`.\n\n`discounted_price` is computed and cannot be sorted on; `created_date` and `modified_date` are not part of the read shape and are not sortable either. Unrecognised `sort` values are silently ignored rather than rejected.\n\n## Dynamic Settings & Environment Variables\n\nNone of the settings below affect `GET` responses. They all take effect on the post-update actions that run after a successful `PATCH` (or `PUT`) of an order item; `POST` triggers none of them.\n\n| Key | Type | Default | Effect on `PATCH`/`PUT` |\n|-----|------|---------|-------------------------|\n| `SEND_SHIPPING_NOTIFICATIONS_PARTIALLY` | boolean | `false` | When `true`, moving an item's `status` to `500` (`shipped`) while its `tracking_number` is set schedules a partial-shipment e-mail, SMS and push notification for the parent order, debounced per order + shipping company + tracking number. When `false`, nothing is sent per item and the notification is instead sent once by `PUT`/`PATCH /orders/{id}/` when the whole order reaches `shipped`. |\n| `SEND_SHIPPING_DELIVERED_NOTIFICATIONS_PARTIALLY` | boolean | `false` | When `true`, moving an item's `status` to `550` (`delivered`) schedules a partial-delivery e-mail and push notification. When `false`, delivery is announced once at order level. |\n| `SEND_ORDER_CANCELLED_NOTIFICATIONS_PARTIALLY` | boolean | `false` | When `true`, moving an item's `status` to `100` (`cancelled`) schedules a cancellation notification for the parent order, debounced per order so items cancelled together collapse into a single message. When `false`, the notification is sent once when the whole order is cancelled. |\n| `SEND_TRADEIN_MAIL_CASE` | boolean | `false` | When `true` and the item carries an `inquiry` entry in `attributes` that has not yet been confirmed or rejected, an update leaves the item in `544` (`review_started`) or `545` (`review_waiting`) sends the matching trade-in e-mail. This action is **not** gated on the status actually changing, so a later update that only touches another field re-sends the e-mail while the item is still in one of those two statuses. |\n| `SUBSCRIPTION_ACTIVE` | boolean | `false` | When `true`, every `status` change dispatches the updated item to the configured subscription (marketing) gateway. When `false`, no dispatch happens. |\n| `SUBSCRIPTION_GATEWAY` | string / `null` | `null` | Name of the subscription gateway the item update is dispatched to. Must match a key in `SUBSCRIPTION_GATEWAYS`. |\n| `SUBSCRIPTION_GATEWAYS` | object | `{}` | Configuration map of the available subscription gateways. Keys are gateway names; values are gateway-specific config objects. |\n| `ACTIVE_SUBSCRIPTION_GATEWAYS` | array of strings | `[]` | The subscription gateway names that actually receive the dispatch. |\n| `NOTIFICATION_GATEWAY` | string | `\"\"` | Name of the active push-notification gateway. While it is empty, every push notification triggered by an item update is silently skipped. Must match a key in `NOTIFICATION_GATEWAYS`. |\n| `NOTIFICATION_GATEWAYS` | object | `{\"console\": {\"conf\": {}}}` | Configuration map for the available push-notification gateways. Keys are gateway names; values are gateway-specific config objects. |\n| `SMS_GATEWAY` | string | `\"console\"` | Name of the active SMS gateway used by the partial-shipment SMS. `\"console\"` logs to stdout without sending. Must match a key in `SMS_GATEWAYS`. |\n| `SMS_GATEWAYS` | object | `{\"console\": {\"conf\": {\"verify_message\": \"Verification code: {}\"}}}` | Configuration map for the available SMS gateways. Keys are gateway names; values are gateway-specific config objects. |\n| `EMAIL_BCC_AND_CC` | object | every e-mail template mapped to `{\"bcc\": [], \"cc\": []}` | Per-template BCC and CC addresses for the e-mails sent by these actions. Keys are e-mail template names (`orders_partial_cargo`, `orders_partial_delivered_cargo`, `order_ready_for_pickup`); values are `{\"bcc\": [...], \"cc\": [...]}`. |\n| `DISABLED_EMAIL_TEMPLATES` | object | every template `false`, except `orders_preparing` which is `true` | Per-template kill switch for outbound e-mail. When the template used by one of the actions above is set to `true`, that e-mail is skipped at send time while the SMS and push notification still go out. |\n| `ORDERS_REFUNDABLE_DAYS` | integer / `null` | `null` | The number of days after ordering within which an item may be returned. Read by the order-item model but **not** exposed by these endpoints; it changes no request or response field here. |\n\nEvery dynamic setting above falls back to the Django setting of the same name as its initial default, so a value set in the deployment's settings acts as the default until it is overridden in the dynamic-settings store.\n\n**Environment variables:** No environment variables are read directly by these endpoints."}],"servers":[{"description":"Omnitron Remote Proxy (external access — recommended)","url":"https://{omnitron_url}/api/v1/remote/{channel_id}","variables":{"omnitron_url":{"default":"sandbox.akinon.com","description":"Omnitron server URL (e.g., {omnitron.akinon.com})"},"channel_id":{"default":"1","description":"The channel identifier the remote request is routed through"}}},{"description":"Commerce API Server (internal / direct access only)","url":"https://{commerce_url}/api/v1","variables":{"commerce_url":{"default":"sandbox.akinon.com","description":"Internal commerce server URL, reachable only from within the Omnitron network"}}}],"security":[{"tokenAuth":[]}],"components":{"securitySchemes":{"tokenAuth":{"type":"apiKey","in":"header","name":"Authorization","description":"Token credential sent in the Authorization header, in the form: `Token <your-token>`. Requires a staff (admin) account."}},"parameters":{"page":{"name":"page","in":"query","required":false,"description":"The page number to return.","schema":{"type":"integer","default":1}},"limit":{"name":"limit","in":"query","required":false,"description":"The number of items to return per page.","schema":{"type":"integer","default":10}},"sort":{"name":"sort","in":"query","required":false,"description":"Orders the results by one or more fields. Separate multiple fields with commas. Prefix a field with a hyphen (`-`) for descending order.","schema":{"type":"string"}}},"schemas":{"OrderStatus":{"type":"string","description":"The lifecycle status of an order. Values are numeric strings that increase as the order progresses through its lifecycle.\n\n| Value | Name | Description |\n|-------|------|-------------|\n| `50` | `cancellation_waiting` | Cancellation requested, pending. |\n| `100` | `cancelled` | Order cancelled. |\n| `200` | `waiting` | Order created; payment not yet confirmed. |\n| `300` | `payment_waiting` | Payment initiated, awaiting confirmation. |\n| `350` | `confirmation_waiting` | Awaiting manual confirmation. |\n| `400` | `approved` | Payment confirmed; order approved for fulfilment. |\n| `430` | `waiting_for_substitute` | Waiting for a substitute product. |\n| `450` | `preparing` | Order being prepared / packed. |\n| `500` | `shipped` | Order dispatched to carrier. |\n| `510` | `shipped_and_informed` | Order shipped and customer notified. |\n| `520` | `ready_for_pickup` | Ready for in-store collection. |\n| `540` | `attempted_delivery` | Delivery attempted; recipient unavailable. |\n| `544` | `review_started` | Trade-in review started. |\n| `545` | `review_waiting` | Trade-in review waiting. |\n| `546` | `waiting_for_payment` | Waiting for trade-in payment. |\n| `547` | `paid` | Trade-in payment received. |\n| `550` | `delivered` | Order delivered to customer. |\n| `600` | `refunded` | Order refunded. |\n| `700` | `merged` | Add-on order merged into main order. |","enum":["50","100","200","300","350","400","430","450","500","510","520","540","544","545","546","547","550","600","700"]},"PaginatedOrderItemList":{"type":"object","description":"A page of order items.","properties":{"count":{"type":"integer","description":"The total number of order items matching the request."},"next":{"type":["string","null"],"format":"uri","description":"Link to the next page, or `null` on the last page."},"previous":{"type":["string","null"],"format":"uri","description":"Link to the previous page, or `null` on the first page."},"results":{"type":"array","description":"The order items on this page.","items":{"$ref":"#/components/schemas/OrderItem"}}}},"OrderItem":{"type":"object","description":"An order item — one unit of one product within an order.\n\nThis is the shape returned by `GET /order_items/`, `GET /order_items/{id}/` and `PATCH /order_items/{id}/`. `POST /order_items/` answers with `OrderItemCreated`, which uses `id` instead of `pk` and carries a different set of fields.","properties":{"pk":{"type":"integer","readOnly":true,"description":"The unique identifier of the order item."},"product":{"type":"integer","description":"The identifier of the ordered product."},"product_sku":{"type":"string","readOnly":true,"description":"The SKU of the ordered product, read through from `product.sku`. Ignored on write, so a body read from `GET` can be sent back unchanged. To point the item at a different product, send `product` instead."},"status":{"$ref":"#/components/schemas/OrderStatus"},"price_currency":{"$ref":"#/components/schemas/OrderItemCurrency"},"price":{"type":"string","format":"decimal","description":"The unit price charged for this item, tax included. Up to 12 digits with 2 decimal places."},"tax_rate":{"type":"string","format":"decimal","description":"The VAT rate applied to `price`, as a percentage (e.g. `\"18.00\"`). Up to 5 digits with 2 decimal places."},"invoice_number":{"type":["string","null"],"maxLength":32,"description":"The number of the invoice issued for this item. An invoiced item can no longer be cancelled."},"invoice_date":{"type":["string","null"],"format":"date-time","description":"When the invoice was issued."},"e_archive_url":{"type":["string","null"],"format":"uri","maxLength":1024,"description":"Link to the e-archive invoice document."},"tracking_number":{"type":["string","null"],"maxLength":256,"description":"The carrier's tracking number for this item. Required alongside `status` `500` for a partial shipping notification to be sent."},"shipping_company":{"description":"The carrier shipping this item.","oneOf":[{"$ref":"#/components/schemas/OrderShippingCompany"},{"type":"null"}]},"retail_price":{"type":["string","null"],"format":"decimal","description":"The recommended retail price, used to show a strike-through price."},"attributes":{"type":["object","null"],"description":"Free-form EAV attributes of the item — for example the unit amount of a weight-sold product, or the `inquiry` payload of a trade-in item.\n\nOn `PATCH` the submitted object is **merged** into the stored one rather than replacing it."},"attributes_kwargs":{"type":["object","null"],"description":"Metadata describing how `attributes` were produced. Replaced outright on `PATCH`."},"image":{"type":["string","null"],"format":"uri","description":"The item's own product image. At checkout it is copied from the basket item, so the order keeps the image that was shown at purchase time. Upload a replacement with a `multipart/form-data` request."},"parent":{"type":["integer","null"],"description":"The identifier of the order item this one is attached to — set when the item came from a basket item that was a child of another basket item (an add-on or bundled product), or when it is a trade-in attached to a purchased item. Always another item of the same order."},"extra_product_price":{"type":["integer","null"],"description":"The identifier of the extra product-price record the item was sold at, when it was not sold at the product's primary price."},"extra_product_stock":{"type":["integer","null"],"description":"The identifier of the extra product-stock record the item was reserved from, when it was not reserved from the product's primary stock."},"extra_product_price_detailed":{"readOnly":true,"description":"The `extra_product_price` record, expanded. `null` when the item was sold at the product's primary price.","oneOf":[{"$ref":"#/components/schemas/ExtraProductPrice"},{"type":"null"}]},"extra_product_stock_detailed":{"readOnly":true,"description":"The `extra_product_stock` record, expanded. `null` when the item was reserved from the product's primary stock.","oneOf":[{"$ref":"#/components/schemas/ExtraProductStock"},{"type":"null"}]},"extra_field":{"type":["object","null"],"description":"Free-form data attached to the item. Set at creation to `{\"price_extra_field\": …, \"stock_extra_field\": …}` — a snapshot of the `extra_field` values of the price and stock records the item was sold from. Anything submitted for this field at creation is discarded; on `PATCH` the submitted object replaces the stored one."},"estimated_delivery_date":{"type":["string","null"],"format":"date","description":"The delivery date promised to the customer. Informational only — nothing on this endpoint validates it against `shipped_date` or `delivered_date`."},"shipping_tracking_url":{"type":["string","null"],"format":"uri","maxLength":500,"description":"An item-level tracking URL. This is the **highest-priority** tracking URL — when it is set, the item's effective tracking URL is this value, ahead of `defined_tracking_url` and of the URL derived from `shipping_company` and `tracking_number`."},"datasource":{"type":["integer","null"],"description":"The identifier of the seller / data source fulfilling this item."},"datasource_detailed":{"readOnly":true,"description":"The `datasource` record, expanded.","oneOf":[{"$ref":"#/components/schemas/DataSource"},{"type":"null"}]},"shipping_option_group":{"type":["integer","null"],"description":"The identifier of the shipping option group the item is shipped under."},"defined_shipping_company":{"type":["string","null"],"maxLength":32,"description":"A free-text carrier name, used for carriers that are not in the `shipping_company` list."},"defined_tracking_url":{"type":["string","null"],"format":"uri","maxLength":512,"description":"An explicitly defined tracking URL. Used when `shipping_tracking_url` is empty, and takes precedence over the URL derived from `shipping_company` and `tracking_number`. The effective order is `shipping_tracking_url`, then `defined_tracking_url`, then the carrier-derived URL."},"shipped_date":{"type":["string","null"],"format":"date-time","description":"When the item was dispatched to the carrier."},"delivered_date":{"type":["string","null"],"format":"date-time","description":"When the item was delivered to the customer."},"discount_amount":{"type":["string","null"],"format":"decimal","description":"The discount applied to this item. Must be between `0` and `price`, inclusive."},"discounted_price":{"type":"string","format":"decimal","readOnly":true,"description":"The price after discount — `price` minus `discount_amount`. Computed on read; never stored and never sortable."}}},"OrderItemCurrency":{"type":"string","description":"ISO 4217 currency code the order item's price is expressed in.","enum":["try","eur","usd","egp","gbp","mad","pln","sar","ron","uah","czk","huf","rub","bgn","iqd","kwd","bhd","omr","qar","aed","ngn","inr","lei","kzt","jod","rsd","amd","cfa","lyd"]},"OrderShippingCompany":{"type":"string","description":"Carrier company used to ship the order.","enum":["acs","apiship","aramex","aramex_express","aras","arvato","asil","ay_cargo","b2c_direct","birgunde","bolt","boomex","bovo","boxaty","bpost_24_7","bpost_athome","bpost_international","bpost_pickup","bringo","bringo_express","cainiao","cargus","carriyo","carrtell","cathedis","cdek","ceva_cargo","chrono","city_express","clickpost","deliverigo","dhlexpress","dincer","dpd","droplight","evdemo_lojistik","extension","falcon_flex","fancourier","fareye","fast_cargo","fero_ai","gelal","giz","gkn","gls","hbexpress","hjetxl","hoopkapida","horoz","iMile","in_post","ismail","jetizz","jetizz_v7","jetlogi","k_gelsin","k_sende","kargo_ist","loomis","mng","monist","murat_lgc","mylerz","mylerzsdd","netkargo","novaposhta","octovan_express","other","packupp","pakettaxi","pinkpost","pony_express","porter_express","pts_express","ptt","r2s","rupost","sameday","scotty","sendeo","shipx","sky_express","speedy","speeta","surat","svuum","tmmexpress","tnt_cargo","tyexpress","ups","ups_intl","yurtici"]},"ExtraProductPrice":{"type":"object","description":"An extra product-price record — a price for a product in a price list other than the primary one, typically a seller-specific or channel-specific price.","properties":{"pk":{"type":"integer","readOnly":true,"description":"The unique identifier of the record."},"product":{"type":"integer","description":"The identifier of the priced product."},"price":{"type":"string","format":"decimal","description":"The selling price, tax included."},"currency_type":{"$ref":"#/components/schemas/OrderItemCurrency"},"tax_rate":{"type":"string","format":"decimal","description":"The VAT rate applied to `price`, as a percentage."},"retail_price":{"type":["string","null"],"format":"decimal","description":"The recommended retail price, used to show a strike-through price."},"price_list":{"type":"integer","description":"The identifier of the price list this price belongs to."},"price_list_detailed":{"readOnly":true,"description":"The price list this price belongs to, expanded.","oneOf":[{"$ref":"#/components/schemas/PriceListSummary"},{"type":"null"}]},"extra_field":{"type":["object","null"],"description":"Free-form data carried on the price record. Snapshotted into the order item's `extra_field` as `price_extra_field` at creation."}}},"PriceListSummary":{"type":"object","description":"The price list an extra product price belongs to.","properties":{"pk":{"type":"integer","readOnly":true,"description":"The unique identifier of the price list."},"name":{"type":"string","description":"The display name of the price list."},"code":{"type":["string","null"],"description":"The machine-readable code of the price list."},"currency":{"$ref":"#/components/schemas/OrderItemCurrency"}}},"ExtraProductStock":{"type":"object","description":"An extra product-stock record — stock for a product in a stock list other than the primary one, typically a seller-specific or warehouse-specific quantity.","properties":{"pk":{"type":"integer","readOnly":true,"description":"The unique identifier of the record."},"product":{"type":"integer","description":"The identifier of the stocked product."},"stock":{"type":"integer","description":"The sellable quantity."},"unit_type":{"$ref":"#/components/schemas/ProductStockUnitType"},"stock_list":{"type":"integer","description":"The identifier of the stock list this stock belongs to."},"stock_list_detailed":{"readOnly":true,"description":"The stock list this stock belongs to, expanded.","oneOf":[{"$ref":"#/components/schemas/StockListSummary"},{"type":"null"}]},"extra_field":{"type":["object","null"],"description":"Free-form data carried on the stock record. Snapshotted into the order item's `extra_field` as `stock_extra_field` at creation."}}},"ProductStockUnitType":{"type":"string","description":"The unit of measure of a stock quantity.","enum":["qty","kg"]},"StockListSummary":{"type":"object","description":"The stock list an extra product stock belongs to.","properties":{"pk":{"type":"integer","readOnly":true,"description":"The unique identifier of the stock list."},"name":{"type":"string","description":"The display name of the stock list."},"code":{"type":["string","null"],"description":"The machine-readable code of the stock list."}}},"DataSource":{"type":"object","description":"A data source — the commercial and legal identity of a seller / supplier, bound to the price and stock lists it sells under.","properties":{"pk":{"type":"integer","readOnly":true,"description":"The unique identifier of the data source."},"name":{"type":"string","maxLength":64,"description":"The seller's display name. Unique across all data sources."},"slug":{"type":["string","null"],"maxLength":64,"description":"A URL-safe identifier. Unique when set."},"title":{"type":["string","null"],"maxLength":255,"description":"The seller's full / legal name."},"supplier_code":{"type":"string","maxLength":50,"description":"The seller's unique business code."},"address":{"type":["string","null"],"description":"Postal address."},"email":{"type":["string","null"],"format":"email","description":"Contact e-mail address."},"phone_number":{"type":["string","null"],"maxLength":128,"description":"Contact phone number."},"fax_number":{"type":["string","null"],"maxLength":128,"description":"Fax number."},"kep_address":{"type":["string","null"],"format":"email","description":"Registered electronic-mail (KEP) address."},"mersis_number":{"type":["string","null"],"maxLength":16,"description":"Central Registry (MERSIS) number."},"trade_association":{"type":["string","null"],"maxLength":255,"description":"Trade association / chamber the seller belongs to."},"extras":{"type":"object","description":"Free-form JSON for extra, integration-specific data."},"price_list":{"type":["integer","null"],"description":"The identifier of the price list supplying this seller's prices."},"stock_list":{"type":["integer","null"],"description":"The identifier of the stock list supplying this seller's stock."},"is_active":{"type":"boolean","description":"Whether the data source is active."}}},"ValidationError":{"type":"object","description":"Returned when the request contains invalid or missing data. Errors are grouped by the field they apply to: each key is the name of a field from the request and its value is a list of one or more messages describing what is wrong with that field. Messages that do not belong to any single field are grouped under `non_field_errors`.","properties":{"non_field_errors":{"type":"array","description":"Error messages that apply to the request as a whole rather than to a specific field.","items":{"type":"string"}}},"additionalProperties":{"type":"array","description":"The list of error messages for the field named by the key.","items":{"type":"string"}}},"Error":{"type":"object","description":"An error response.","properties":{"detail":{"type":"string","description":"A human-readable description of the error."}},"additionalProperties":true}},"responses":{"ValidationError":{"description":"The request contains invalid or missing data.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationError"}}}},"Unauthorized":{"description":"Authentication credentials were not provided or are invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"Forbidden":{"description":"The authenticated user does not have administrator privileges.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"InvalidPage":{"description":"The requested `page` does not exist — it is past the last page or not a valid page number. Paginated list endpoints answer with `404` rather than an empty page. The literal value `last` is accepted and returns the final page.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"paths":{"/order_items/":{"get":{"tags":["Order Items"],"operationId":"listOrderItems","summary":"List order items","description":"Returns a paginated list of order items, ordered by ascending identifier.\n\nA filter is available for almost every order-item field, and the parent order is traversable through `order__` parameters. Text filters match on a case-insensitive partial match; the rest match exactly. Appending `!` to any filter parameter negates it. Use the `sort` parameter to change the ordering. An invalid value for a typed filter (a non-numeric price, an unparseable date, an identifier that does not exist) is rejected with `400`; unknown parameters are ignored.\n\nThree limitations are worth knowing before relying on this endpoint, all covered in detail in the **Order Items** section:\n\n* There is **no `id` / `pk` filter** — read a single item through `GET /order_items/{id}/`.\n* `status` is matched as a **case-insensitive substring**, not exactly, so `?status=50` also returns items with status `500` and `550`.\n* `attributes` is filtered **by JSON path** (`?attributes__color=red`), never as a bare value. The other four JSON fields (`attributes_kwargs`, `localized_attributes`, `localized_attributes_kwargs`, `extra_field`) **cannot be filtered on** — those parameters are silently ignored and return the unfiltered page.","parameters":[{"$ref":"#/components/parameters/page"},{"$ref":"#/components/parameters/limit"},{"$ref":"#/components/parameters/sort"},{"name":"order","in":"query","required":false,"description":"Filter by the identifier of the parent order.","schema":{"type":"integer"}},{"name":"order__id","in":"query","required":false,"description":"Filter by the identifier of the parent order. Equivalent to `order`.","schema":{"type":"integer"}},{"name":"order__number","in":"query","required":false,"description":"Filter by the parent order's number. Case-insensitive partial match.","schema":{"type":"string"}},{"name":"order__status","in":"query","required":false,"description":"Filter by the parent order's status. Exact match.","schema":{"$ref":"#/components/schemas/OrderStatus"}},{"name":"order__user_email","in":"query","required":false,"description":"Filter by the e-mail address of the customer who placed the parent order. Case-insensitive partial match.","schema":{"type":"string"}},{"name":"order__created_date","in":"query","required":false,"description":"Filter by the parent order's exact creation date-time. The lookups `order__created_date__gt`, `order__created_date__gte`, `order__created_date__lt`, `order__created_date__lte`, `order__created_date__date__gt`, `order__created_date__date__gte`, `order__created_date__date__lt` and `order__created_date__date__lte` are also available for range filtering.","schema":{"type":"string","format":"date-time"}},{"name":"order__is_payable","in":"query","required":false,"description":"When `true`, returns only items whose parent order is currently eligible for payment.","schema":{"type":"boolean"}},{"name":"order__easy_return_code","in":"query","required":false,"description":"Filter by the easy-return shipment code recorded against the parent order.","schema":{"type":"string"}},{"name":"product","in":"query","required":false,"description":"Filter by the identifier of the ordered product. An identifier that does not exist is rejected with `400`.","schema":{"type":"integer"}},{"name":"status","in":"query","required":false,"description":"Filter by order-item status.\n\n**This is a case-insensitive partial match, not an exact one.** Because statuses are stored as numeric strings, `?status=50` also returns items with status `500` and `550`. Send `NULL_VALUE` / `NOT_NULL_VALUE` to select records where the field is empty or set.","schema":{"type":"string"}},{"name":"price","in":"query","required":false,"description":"Filter by exact unit price.","schema":{"type":"string","format":"decimal"}},{"name":"price_currency","in":"query","required":false,"description":"Filter by currency code. Case-insensitive partial match.","schema":{"type":"string"}},{"name":"tax_rate","in":"query","required":false,"description":"Filter by exact tax rate.","schema":{"type":"string","format":"decimal"}},{"name":"retail_price","in":"query","required":false,"description":"Filter by exact retail price.","schema":{"type":"string","format":"decimal"}},{"name":"discount_amount","in":"query","required":false,"description":"Filter by exact discount amount.","schema":{"type":"string","format":"decimal"}},{"name":"invoice_number","in":"query","required":false,"description":"Filter by invoice number. Case-insensitive partial match. `NULL_VALUE` returns only items that have not been invoiced, `NOT_NULL_VALUE` only those that have.","schema":{"type":"string"}},{"name":"invoice_date","in":"query","required":false,"description":"Filter by exact invoice date-time.","schema":{"type":"string","format":"date-time"}},{"name":"e_archive_url","in":"query","required":false,"description":"Filter by e-archive URL. Case-insensitive partial match.","schema":{"type":"string"}},{"name":"tracking_number","in":"query","required":false,"description":"Filter by carrier tracking number. Case-insensitive partial match. `NULL_VALUE` returns only items without a tracking number.","schema":{"type":"string"}},{"name":"shipping_company","in":"query","required":false,"description":"Filter by carrier. Case-insensitive partial match against the carrier code.","schema":{"type":"string"}},{"name":"defined_shipping_company","in":"query","required":false,"description":"Filter by the free-text carrier name. Case-insensitive partial match.","schema":{"type":"string"}},{"name":"defined_tracking_url","in":"query","required":false,"description":"Filter by the explicitly defined tracking URL. Case-insensitive partial match.","schema":{"type":"string"}},{"name":"shipping_tracking_url","in":"query","required":false,"description":"Filter by the item-level tracking URL. Case-insensitive partial match.","schema":{"type":"string"}},{"name":"estimated_delivery_date","in":"query","required":false,"description":"Filter by exact estimated delivery date.","schema":{"type":"string","format":"date"}},{"name":"shipped_date","in":"query","required":false,"description":"Filter by exact shipping date-time.","schema":{"type":"string","format":"date-time"}},{"name":"delivered_date","in":"query","required":false,"description":"Filter by exact delivery date-time.","schema":{"type":"string","format":"date-time"}},{"name":"created_date","in":"query","required":false,"description":"Filter by exact creation date-time of the order item.","schema":{"type":"string","format":"date-time"}},{"name":"modified_date","in":"query","required":false,"description":"Filter by exact last-modification date-time of the order item.","schema":{"type":"string","format":"date-time"}},{"name":"parent","in":"query","required":false,"description":"Filter by the identifier of the parent order item (set on items of a merged add-on order).","schema":{"type":"integer"}},{"name":"extra_product_price","in":"query","required":false,"description":"Filter by the identifier of the extra product-price record the item was sold at.","schema":{"type":"integer"}},{"name":"extra_product_stock","in":"query","required":false,"description":"Filter by the identifier of the extra product-stock record the item was reserved from.","schema":{"type":"integer"}},{"name":"datasource","in":"query","required":false,"description":"Filter by the identifier of the seller / data source fulfilling the item.","schema":{"type":"integer"}},{"name":"shipping_option_group","in":"query","required":false,"description":"Filter by the identifier of the shipping option group assigned to the item.","schema":{"type":"integer"}},{"name":"image","in":"query","required":false,"description":"Filter by the stored image path. Exact match.","schema":{"type":"string"}},{"name":"attributes__{key}","in":"query","required":false,"description":"Filter on a key inside the item's EAV attributes — `?attributes__color=red`, or `?attributes__tax__total=12.00` for a nested key. The value is matched as a case-insensitive substring of the stored value's text form.\n\nSeveral values for one key are OR-ed (`?attributes__color=red,blue`); different keys are AND-ed. `__exact` switches to an exact match and `__isnull=true` selects items where the key is absent.\n\nThree forms are unsupported and must be avoided: a bare `?attributes=red` (no key), a segment named after a query lookup (`?attributes__color__gt=a`), and the `!` exclusion suffix (`?attributes__color!=red`). See the **Order Items** section for the full rules.","schema":{"type":"string"}}],"responses":{"200":{"description":"A paginated list of order items.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaginatedOrderItemList"}}}},"400":{"$ref":"#/components/responses/ValidationError"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/InvalidPage"}}}}}}
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://apidocs.akinon.com/commerce-openapis/admin/orders/order-items/list-order-items.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
