Skip to content

missing_amount

Amount or line items required

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

Last updated

Code: missing_amount · HTTP status: usually 422

Collecting a partial payment needs an amount or the line items to collect for.

Send amount or line_item_ids.

{
"code": "missing_amount",
"type": "https://docs.stoqapp.com/v2/docs/api-v2/errors/missing-amount/",
"title": "Amount or line items required",
"status": 422,
"detail": "Pass amount or line_item_ids. Send `amount` or `line_item_ids`.",
"errors": [
"Pass amount or line_item_ids"
],
"details": [
{
"code": "missing_amount",
"message": "Pass amount or line_item_ids",
"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