Skip to content
Esc
↑↓navigate↵open⌘Jpreview

Update order line

Updates an existing order line’s product, variant, quantity, pricing, and tax information. Validates that the product and variant exist. Publishes an order updated event.

PATCH/api/v1/{team_slug}/{app_slug}/orders/{order_id}/lines/{line_id}
Authorization
AuthorizationBearer token · headerrequired

Management API token, sent as Authorization: Bearer <token>.

Path parameters
app_slugstringrequired

App slug

team_slugstringrequired

Team slug

order_idstringrequired

Order ID (UUID)

line_idstringrequired

Order line ID (UUID)

Request body
requiredapplication/json

Order line update data

base_price_amountnumberrequired
min 0
currency_codestringrequired
product_idstringrequired
quantityintegerrequired
min 1
tax_group_idstring
total_discount_amountnumber
min 0
total_price_amountnumberrequired
min 0
total_tax_amountnumber
min 0
variant_idstringrequired
Responses
200

Order line updated successfully

datainternal_pkg_webserver_v1.OrderLineResponserequired
Show properties
base_price_amountnumber | null
created_atstring
currency_codestring | null
first_image_pathstring
idstring
order_idstring
product_idstring | null
product_namestring
product_numberstring
quantityinteger | null
short_descriptionstring
tax_group_idstring | null
total_discount_amountnumber | null
total_price_amountnumber | null
total_sale_pricenumber | null
total_tax_amountnumber | null
updated_atstring | null
variant_idstring | null
variant_namestring
variant_numberstring
detailsstring[]

Additional contextual information about the response. Used to provide supplementary details beyond the main data payload, such as validation warnings or processing notes

successbooleanrequired
400

Invalid request (validation error, product/variant not found, line doesn't belong to order)

detailsstring[]
messagestring
successbooleanrequired
401

Unauthorized access

detailsstring[]
messagestring
successbooleanrequired
404

Order or order line not found

detailsstring[]
messagestring
successbooleanrequired
500

Internal server error

detailsstring[]
messagestring
successbooleanrequired
Try it
Server
Authorization
Parameters
Bodyapplication/json
Request
curl -X PATCH 'https://api.enad.io/api/v1/string/string/orders/string/lines/string' \
  -H 'Authorization: Bearer YOUR_TOKEN' \
  -H 'Accept: application/json' \
  -H 'Content-Type: application/json' \
  -d '{
  "base_price_amount": 0,
  "currency_code": "string",
  "product_id": "string",
  "quantity": 1,
  "tax_group_id": "string",
  "total_discount_amount": 0,
  "total_price_amount": 0,
  "total_tax_amount": 0,
  "variant_id": "string"
}'
Response
{
  "data": {
    "base_price_amount": 0,
    "created_at": "string",
    "currency_code": "string",
    "first_image_path": "string",
    "id": "string",
    "order_id": "string",
    "product_id": "string",
    "product_name": "string",
    "product_number": "string",
    "quantity": 0,
    "short_description": "string",
    "tax_group_id": "string",
    "total_discount_amount": 0,
    "total_price_amount": 0,
    "total_sale_price": 0,
    "total_tax_amount": 0,
    "updated_at": "string",
    "variant_id": "string",
    "variant_name": "string",
    "variant_number": "string"
  },
  "details": [
    "string"
  ],
  "success": true
}