Skip to content

unknown_line_items

Line items are not on this order

BetaAPI v2 is in public beta: endpoints, fields and behaviour can change before general availability. See the changelog

Last updated

Code: unknown_line_items · HTTP status: usually 422

Some of the line item ids are not on the order.

Read the order to get its line item ids, then resend.

{
"code": "unknown_line_items",
"type": "https://docs.stoqapp.com/v2/docs/api-v2/errors/unknown-line-items/",
"title": "Line items are not on this order",
"status": 422,
"detail": "These line items are not on this order: 123. Read the order to get its line item ids, then resend.",
"errors": [
"These line items are not on this order: 123"
],
"details": [
{
"code": "unknown_line_items",
"message": "These line items are not on this order: 123",
"path": null,
"value": null,
"expected": null
}
]
}

Every API v2 and MCP failure carries code and a type link to its page here. See Errors & Responses for the full envelope.

Was this page helpful?

Still stuck? Ask Quinn or chat with support