Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

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.

get
/order_items/
Authorizations
AuthorizationstringRequired

Token credential sent in the Authorization header, in the form: Token <your-token>. Requires a staff (admin) account.

Query parameters
pageintegerOptional

The page number to return.

Default: 1
limitintegerOptional

The number of items to return per page.

Default: 10
sortstringOptional

Orders the results by one or more fields. Separate multiple fields with commas. Prefix a field with a hyphen (-) for descending order.

Example: -id
orderintegerOptional

Filter by the identifier of the parent order.

order__idintegerOptional

Filter by the identifier of the parent order. Equivalent to order.

order__numberstringOptional

Filter by the parent order's number. Case-insensitive partial match.

order__statusstring · enumOptional

The lifecycle status of an order. Values are numeric strings that increase as the order progresses through its lifecycle.

ValueNameDescription
50cancellation_waitingCancellation requested, pending.
100cancelledOrder cancelled.
200waitingOrder created; payment not yet confirmed.
300payment_waitingPayment initiated, awaiting confirmation.
350confirmation_waitingAwaiting manual confirmation.
400approvedPayment confirmed; order approved for fulfilment.
430waiting_for_substituteWaiting for a substitute product.
450preparingOrder being prepared / packed.
500shippedOrder dispatched to carrier.
510shipped_and_informedOrder shipped and customer notified.
520ready_for_pickupReady for in-store collection.
540attempted_deliveryDelivery attempted; recipient unavailable.
544review_startedTrade-in review started.
545review_waitingTrade-in review waiting.
546waiting_for_paymentWaiting for trade-in payment.
547paidTrade-in payment received.
550deliveredOrder delivered to customer.
600refundedOrder refunded.
700mergedAdd-on order merged into main order.
Example: 400Possible values:
order__user_emailstringOptional

Filter by the e-mail address of the customer who placed the parent order. Case-insensitive partial match.

order__created_datestring · date-timeOptional

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.

order__is_payablebooleanOptional

When true, returns only items whose parent order is currently eligible for payment.

order__easy_return_codestringOptional

Filter by the easy-return shipment code recorded against the parent order.

productintegerOptional

Filter by the identifier of the ordered product. An identifier that does not exist is rejected with 400.

statusstringOptional

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.

Example: 400
pricestring · decimalOptional

Filter by exact unit price.

price_currencystringOptional

Filter by currency code. Case-insensitive partial match.

tax_ratestring · decimalOptional

Filter by exact tax rate.

retail_pricestring · decimalOptional

Filter by exact retail price.

discount_amountstring · decimalOptional

Filter by exact discount amount.

invoice_numberstringOptional

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.

invoice_datestring · date-timeOptional

Filter by exact invoice date-time.

e_archive_urlstringOptional

Filter by e-archive URL. Case-insensitive partial match.

tracking_numberstringOptional

Filter by carrier tracking number. Case-insensitive partial match. NULL_VALUE returns only items without a tracking number.

shipping_companystringOptional

Filter by carrier. Case-insensitive partial match against the carrier code.

Example: aras
defined_shipping_companystringOptional

Filter by the free-text carrier name. Case-insensitive partial match.

defined_tracking_urlstringOptional

Filter by the explicitly defined tracking URL. Case-insensitive partial match.

shipping_tracking_urlstringOptional

Filter by the item-level tracking URL. Case-insensitive partial match.

estimated_delivery_datestring · dateOptional

Filter by exact estimated delivery date.

shipped_datestring · date-timeOptional

Filter by exact shipping date-time.

delivered_datestring · date-timeOptional

Filter by exact delivery date-time.

created_datestring · date-timeOptional

Filter by exact creation date-time of the order item.

modified_datestring · date-timeOptional

Filter by exact last-modification date-time of the order item.

parentintegerOptional

Filter by the identifier of the parent order item (set on items of a merged add-on order).

extra_product_priceintegerOptional

Filter by the identifier of the extra product-price record the item was sold at.

extra_product_stockintegerOptional

Filter by the identifier of the extra product-stock record the item was reserved from.

datasourceintegerOptional

Filter by the identifier of the seller / data source fulfilling the item.

shipping_option_groupintegerOptional

Filter by the identifier of the shipping option group assigned to the item.

imagestringOptional

Filter by the stored image path. Exact match.

attributes__{key}stringOptional

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.

Example: red
Responses
200

A paginated list of order items.

application/json

A page of order items.

countintegerOptional

The total number of order items matching the request.

nextstring · nullableOptional

Link to the next page, or null on the last page.

previousstring · nullableOptional

Link to the previous page, or null on the first page.

get/order_items/
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?