Docs

Update Line Item

PUT /orders/{orderId}/lineItems/{lineItemId}

PUT/orders/{orderId}/lineItems/{lineItemId}

Required Tokens

FieldTypeRequiredDescription
BearerAuthorization: Bearer <api-key>OptionalYour API key. Pass it as the Bearer token on every request.

Updates the quantity of an existing line item.

Path Parameters

FieldTypeRequiredDescription
orderIdGuidRequiredThe ID of the order. Replace `{{orderId}}` in the URL.
lineItemIdGuidRequiredThe ID of the line item to update. Replace `{{lineItemId}}` in the URL.

Request Body

FieldTypeRequiredDescription
quantityintRequiredUpdated quantity. Must be greater than zero.

Response

Returns 200 OK with an empty body on success.