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"
}
]
}
}Update an existing line item. Only line items from orders in draft status can be updated.
Required authorization scope: public.order:write
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"
}
]
}
}Bearer Token necessary to use API
The ID of the order
The ID of the line item
This endpoint supports expandable responses. For more, see the documentation page.
Was this page helpful?