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

Update an order item

Updates an order item. product, status, price_currency, price and tax_rate are required; every other writable field is optional.

Despite being a PUT, this does not reset the fields you leave out — the handler assigns only what the body contains, exactly as PATCH does. The two operations differ only in which fields are mandatory, so PATCH is the better choice for a targeted change.

The field semantics and the status side effects are the same as for PATCH: attributes is merged rather than replaced, product_sku and the other read-only fields are ignored, discount_amount is validated against price, and a change to status reports the sold quantity and runs the post-update actions. See the Order Items section.

put
/order_items/{id}/
Authorizations
AuthorizationstringRequired

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

Path parameters
idintegerRequired

The unique identifier of the order item.

Body

The payload accepted by PUT /order_items/{id}/.

Accepts the same fields as OrderItemPatchRequest, but product, status, price_currency, price and tax_rate are mandatory. Fields left out are not reset — see the operation description.

statusstring · enumRequired

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:
productintegerRequired

The identifier of the ordered product.

price_currencystring · enumRequired

ISO 4217 currency code the order item's price is expressed in.

Example: tryPossible values:
pricestring · decimalRequired

The unit price charged for this item, tax included.

tax_ratestring · decimalRequired

The VAT rate applied to price, as a percentage.

retail_pricestring · nullableOptional
discount_amountstring · nullableOptional

The discount applied to this item. Must be between 0 and the item's current price, inclusive.

invoice_numberstring · max: 32 · nullableOptional
invoice_datestring · nullableOptional
e_archive_urlstring · max: 1024 · nullableOptional
tracking_numberstring · max: 256 · nullableOptional
shipping_companystring · enum · nullableOptional

The carrier shipping this item.

Example: arasPossible values:
defined_shipping_companystring · max: 32 · nullableOptional
defined_tracking_urlstring · max: 512 · nullableOptional
shipping_tracking_urlstring · max: 500 · nullableOptional
estimated_delivery_datestring · nullableOptional
shipped_datestring · nullableOptional
delivered_datestring · nullableOptional
imagestring · nullableOptional

Send the request as multipart/form-data to replace the item's image.

attributesobject · nullableOptional

Merged key by key into the stored attributes. Keys that are not mentioned survive; a key cannot be removed through this endpoint.

attributes_kwargsobject · nullableOptional

Replaces the stored value outright.

extra_fieldobject · nullableOptional

Replaces the stored value outright, including the price-list and stock-list snapshot written at creation.

parentinteger · nullableOptional
extra_product_priceinteger · nullableOptional
extra_product_stockinteger · nullableOptional
datasourceinteger · nullableOptional
shipping_option_groupinteger · nullableOptional
Responses
200

The updated order item.

application/json

An order item — one unit of one product within an order.

This 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.

pkintegerRead-onlyOptional

The unique identifier of the order item.

productintegerOptional

The identifier of the ordered product.

product_skustringRead-onlyOptional

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.

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:
price_currencystring · enumOptional

ISO 4217 currency code the order item's price is expressed in.

Example: tryPossible values:
pricestring · decimalOptional

The unit price charged for this item, tax included. Up to 12 digits with 2 decimal places.

tax_ratestring · decimalOptional

The VAT rate applied to price, as a percentage (e.g. "18.00"). Up to 5 digits with 2 decimal places.

invoice_numberstring · max: 32 · nullableOptional

The number of the invoice issued for this item. An invoiced item can no longer be cancelled.

invoice_datestring · nullableOptional

When the invoice was issued.

e_archive_urlstring · max: 1024 · nullableOptional

Link to the e-archive invoice document.

tracking_numberstring · max: 256 · nullableOptional

The carrier's tracking number for this item. Required alongside status 500 for a partial shipping notification to be sent.

shipping_companystring · enum · nullableOptional

The carrier shipping this item.

Example: arasPossible values:
retail_pricestring · nullableOptional

The recommended retail price, used to show a strike-through price.

attributesobject · nullableOptional

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.

On PATCH the submitted object is merged into the stored one rather than replacing it.

attributes_kwargsobject · nullableOptional

Metadata describing how attributes were produced. Replaced outright on PATCH.

imagestring · nullableOptional

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.

parentinteger · nullableOptional

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_priceinteger · nullableOptional

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_stockinteger · nullableOptional

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_fieldobject · nullableOptional

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_datestring · nullableOptional

The delivery date promised to the customer. Informational only — nothing on this endpoint validates it against shipped_date or delivered_date.

shipping_tracking_urlstring · max: 500 · nullableOptional

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.

datasourceinteger · nullableOptional

The identifier of the seller / data source fulfilling this item.

shipping_option_groupinteger · nullableOptional

The identifier of the shipping option group the item is shipped under.

defined_shipping_companystring · max: 32 · nullableOptional

A free-text carrier name, used for carriers that are not in the shipping_company list.

defined_tracking_urlstring · max: 512 · nullableOptional

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_datestring · nullableOptional

When the item was dispatched to the carrier.

delivered_datestring · nullableOptional

When the item was delivered to the customer.

discount_amountstring · nullableOptional

The discount applied to this item. Must be between 0 and price, inclusive.

discounted_pricestring · decimalRead-onlyOptional

The price after discount — price minus discount_amount. Computed on read; never stored and never sortable.

put/order_items/{id}/
PUT /api/v1/remote/1/order_items/{id}/ HTTP/1.1
Host: sandbox.akinon.com
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 110

{
  "status": "500",
  "tracking_number": "1234567890",
  "shipping_company": "mng",
  "shipped_date": "2026-09-09T10:15:00Z"
}
{
  "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?