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/pkfilter — read a single item throughGET /order_items/{id}/.statusis matched as a case-insensitive substring, not exactly, so?status=50also returns items with status500and550.attributesis 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.
Token credential sent in the Authorization header, in the form: Token <your-token>. Requires a staff (admin) account.
The page number to return.
1The number of items to return per page.
10Orders the results by one or more fields. Separate multiple fields with commas. Prefix a field with a hyphen (-) for descending order.
-idFilter by the identifier of the parent order.
Filter by the identifier of the parent order. Equivalent to order.
Filter by the parent order's number. Case-insensitive partial match.
The lifecycle status of an order. Values are numeric strings that increase as the order progresses through its lifecycle.
| Value | Name | Description |
|---|---|---|
50 | cancellation_waiting | Cancellation requested, pending. |
100 | cancelled | Order cancelled. |
200 | waiting | Order created; payment not yet confirmed. |
300 | payment_waiting | Payment initiated, awaiting confirmation. |
350 | confirmation_waiting | Awaiting manual confirmation. |
400 | approved | Payment confirmed; order approved for fulfilment. |
430 | waiting_for_substitute | Waiting for a substitute product. |
450 | preparing | Order being prepared / packed. |
500 | shipped | Order dispatched to carrier. |
510 | shipped_and_informed | Order shipped and customer notified. |
520 | ready_for_pickup | Ready for in-store collection. |
540 | attempted_delivery | Delivery attempted; recipient unavailable. |
544 | review_started | Trade-in review started. |
545 | review_waiting | Trade-in review waiting. |
546 | waiting_for_payment | Waiting for trade-in payment. |
547 | paid | Trade-in payment received. |
550 | delivered | Order delivered to customer. |
600 | refunded | Order refunded. |
700 | merged | Add-on order merged into main order. |
400Possible values: Filter by the e-mail address of the customer who placed the parent order. Case-insensitive partial match.
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.
When true, returns only items whose parent order is currently eligible for payment.
Filter by the easy-return shipment code recorded against the parent order.
Filter by the identifier of the ordered product. An identifier that does not exist is rejected with 400.
Filter by order-item status.
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.
400Filter by exact unit price.
Filter by currency code. Case-insensitive partial match.
Filter by exact tax rate.
Filter by exact retail price.
Filter by exact discount amount.
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.
Filter by exact invoice date-time.
Filter by e-archive URL. Case-insensitive partial match.
Filter by carrier tracking number. Case-insensitive partial match. NULL_VALUE returns only items without a tracking number.
Filter by carrier. Case-insensitive partial match against the carrier code.
arasFilter by the free-text carrier name. Case-insensitive partial match.
Filter by the explicitly defined tracking URL. Case-insensitive partial match.
Filter by the item-level tracking URL. Case-insensitive partial match.
Filter by exact estimated delivery date.
Filter by exact shipping date-time.
Filter by exact delivery date-time.
Filter by exact creation date-time of the order item.
Filter by exact last-modification date-time of the order item.
Filter by the identifier of the parent order item (set on items of a merged add-on order).
Filter by the identifier of the extra product-price record the item was sold at.
Filter by the identifier of the extra product-stock record the item was reserved from.
Filter by the identifier of the seller / data source fulfilling the item.
Filter by the identifier of the shipping option group assigned to the item.
Filter by the stored image path. Exact match.
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.
Several 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.
Three 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.
redA paginated list of order items.
A page of order items.
The total number of order items matching the request.
Link to the next page, or null on the last page.
Link to the previous page, or null on the first page.
The request contains invalid or missing data.
Authentication credentials were not provided or are invalid.
The authenticated user does not have administrator privileges.
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.
GET /api/v1/remote/1/order_items/ HTTP/1.1
Host: sandbox.akinon.com
Authorization: YOUR_API_KEY
Accept: */*
{
"count": 1,
"next": null,
"previous": null,
"results": [
{
"pk": 37,
"product": 944,
"product_sku": "SKU-1",
"status": "400",
"price_currency": "try",
"price": "10.00",
"tax_rate": "18.00",
"invoice_number": null,
"invoice_date": null,
"e_archive_url": null,
"tracking_number": null,
"shipping_company": null,
"retail_price": null,
"attributes": {
"color": "red"
},
"attributes_kwargs": {},
"image": null,
"parent": null,
"extra_product_price": null,
"extra_product_stock": null,
"extra_product_price_detailed": null,
"extra_product_stock_detailed": null,
"extra_field": null,
"estimated_delivery_date": null,
"shipping_tracking_url": null,
"datasource": null,
"datasource_detailed": null,
"shipping_option_group": null,
"defined_shipping_company": null,
"defined_tracking_url": null,
"shipped_date": null,
"delivered_date": null,
"discount_amount": "1.00",
"discounted_price": "9.00"
}
]
}Last updated
Was this helpful?

