Skip to main content
PATCH
/
2025-09
/
orders
/
{order_id}
/
line_items
/
{line_item_id}
Update a Line Item
curl --request PATCH \
  --url https://public-api.stora.co/2025-09/orders/{order_id}/line_items/{line_item_id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "quantity": 2,
  "price": {
    "amount": 1499
  }
}
'
{
  "line_item": {
    "id": "olitm_1001cbd3d5fec937",
    "created_at": "2025-02-22T14:41:00Z",
    "discount_total": {
      "amount": 1499,
      "currency": "GBP",
      "formatted": "£14.99"
    },
    "item": {
      "id": "utype_3b3aed5cca33b11d"
    },
    "price": {
      "amount": 1499,
      "currency": "GBP",
      "formatted": "£14.99"
    },
    "quantity": 2,
    "tax": {
      "amount": 0,
      "currency": "GBP",
      "formatted": "£0.00"
    },
    "total": {
      "amount": 2998,
      "currency": "GBP",
      "formatted": "£29.98"
    },
    "total_excluding_tax": {
      "amount": 2998,
      "currency": "GBP",
      "formatted": "£29.98"
    },
    "type": "unit_type",
    "updated_at": "2025-02-22T14:41:00Z"
  },
  "meta": {
    "request_id": "01563646-58c1-4607-8fe0-cae3e92c4477",
    "curies": [
      {
        "name": "bo",
        "href": "https://app.stora.test{rel}",
        "templated": true,
        "title": "Backoffice"
      },
      {
        "name": "sf",
        "href": "https://acme.stora.test{rel}",
        "templated": true,
        "title": "Storefront"
      }
    ]
  }
}

Authorizations

Authorization
string
header
required

Bearer Token necessary to use API

Path Parameters

order_id
string
required

The ID of the order

line_item_id
string
required

The ID of the line item

Query Parameters

expand
string[]

This endpoint supports expandable responses. For more, see the documentation page.

Body

application/json

Update a line item

quantity
integer
price
object

Response

line item successfully updated

Single Order Line Item

line_item
object

Order Line Item

meta
object