Create an order item
Creates a new order item on an existing order. One order item represents one unit of the product, so an add of three units is three separate requests.
Creation runs through the order service, which applies the following on top of the submitted payload:
extra_fieldis overwritten. Whatever is sent is discarded and replaced with{"price_extra_field": …, "stock_extra_field": …}— a snapshot of theextra_fieldvalues of the price and stock records the item is sold from (theextra_product_price/extra_product_stockrecords when given, otherwise the product's own price and stock records).The status may be forced. If the parent order is in status
300(payment_waiting), the new item is stored with status300regardless of the submittedstatus.The item's sold quantity is not reported at creation; that happens on the first status change away from
waiting/payment_waiting.
The product must already have a price record and a stock record, because both are read to build the extra_field snapshot. This is not validated, so make sure the records exist before posting. Supplying extra_product_price / extra_product_stock covers the corresponding record, exactly as it does when the snapshot is built.
The response is the OrderItemCreated shape, which differs from the shape returned by the list and retrieve endpoints: the identifier is id rather than pk, order, created_date, modified_date and the localized_attributes pair are present, and there are no nested detail objects, no product_sku and no discounted_price.
image can be uploaded by sending the request as multipart/form-data.
Token credential sent in the Authorization header, in the form: Token <your-token>. Requires a staff (admin) account.
The payload accepted by POST /order_items/.
extra_field is accepted but discarded — the service overwrites it with the price-list and stock-list snapshot. product_sku is not part of this shape and is ignored if sent.
The identifier of the order the item belongs to. Cannot be changed afterwards.
The identifier of the ordered product. The product must have a price record and a stock record, since both are read to build the extra_field snapshot; supplying extra_product_price / extra_product_stock covers the corresponding record instead. This is not validated, so make sure the records exist.
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: ISO 4217 currency code the order item's price is expressed in.
tryPossible values: The unit price charged for this item, tax included.
The VAT rate applied to price, as a percentage.
The recommended retail price.
The discount applied to this item. Must be between 0 and price, inclusive.
0The identifier of the order item this one is derived from.
The carrier shipping this item.
arasPossible values: The item's product image. Send the request as multipart/form-data to upload a file.
Free-form EAV attributes of the item.
Per-language attribute values, keyed by language code.
Accepted but ignored — the service replaces it with the price-list and stock-list snapshot.
The extra product-price record to sell the item at instead of the product's primary price.
The extra product-stock record to reserve the item from instead of the product's primary stock.
The seller / data source fulfilling the item.
The shipping option group the item is shipped under.
The created order item.
The order item as returned by POST /order_items/.
This shape identifies the record with id (not pk), includes order, created_date, modified_date and the localized_attributes pair, and has no nested detail objects, no product_sku and no discounted_price. Re-read the item through GET /order_items/{id}/ to get the full read shape.
The unique identifier of the created order item.
The identifier of the order the item belongs to.
The identifier of the ordered product.
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: ISO 4217 currency code the order item's price is expressed in.
tryPossible values: When the order item was created.
When the order item was last modified.
Per-language attribute values, keyed by language code.
Carrier company used to ship the order.
arasPossible values: The price-list and stock-list snapshot written by the service, in the form {"price_extra_field": …, "stock_extra_field": …}.
The request contains invalid or missing data.
Authentication credentials were not provided or are invalid.
The authenticated user does not have administrator privileges.
POST /api/v1/remote/1/order_items/ HTTP/1.1
Host: sandbox.akinon.com
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 124
{
"order": 77,
"product": 944,
"status": "400",
"price": "10.00",
"price_currency": "try",
"tax_rate": "18.00",
"shipping_company": "mng"
}{
"id": 38,
"order": 77,
"product": 944,
"parent": null,
"status": "400",
"price_currency": "try",
"price": "10.00",
"tax_rate": "18.00",
"retail_price": null,
"discount_amount": "0.00",
"created_date": "2026-09-09T07:51:24.743129Z",
"modified_date": "2026-09-09T07:51:24.743142Z",
"attributes": {},
"attributes_kwargs": {},
"localized_attributes": {},
"localized_attributes_kwargs": {},
"invoice_number": null,
"invoice_date": null,
"e_archive_url": null,
"tracking_number": null,
"defined_tracking_url": null,
"shipping_tracking_url": null,
"shipping_company": "mng",
"defined_shipping_company": null,
"image": null,
"extra_field": {
"price_extra_field": {},
"stock_extra_field": {}
},
"estimated_delivery_date": null,
"shipped_date": null,
"delivered_date": null,
"extra_product_price": null,
"extra_product_stock": null,
"datasource": null,
"shipping_option_group": null
}Last updated
Was this helpful?

