Skip to main content

Remove POS Invoice Item (v1)

Method & Path

DELETE /v1/workspace/:workspaceId/pos/invoices/:invoiceId/items/:itemIndex

Actual backend path: /v1/workspace/:workspaceId/pos/invoices/:invoiceId/items/:itemIndex

Description

Remove a line item from a draft POS invoice. itemIndex is the zero-based index of the item in the invoice's items array. Only draft invoices can be modified.

Authentication

Required: JWT in Authorization header.

Required permissions: store.orders.manage

Persona: Workspace Owner, Staff (store.orders.manage)

Headers

HeaderTypeRequiredDescription
AuthorizationstringYesBearer token: Bearer <token>

Path Parameters

ParameterTypeRequiredDescription
workspaceIdstringYesWorkspace identifier
invoiceIdstringYesPOS invoice ID
itemIndexnumberYesZero-based index of the item in items

Response 200 OK

Returns the updated invoice without the removed item and recalculated subtotal and total.

Common Errors

  • 400 Bad Request: Invoice not in draft
  • 401 Unauthorized: Missing or invalid authentication token
  • 403 Forbidden: Insufficient permissions (requires store.orders.manage)
  • 404 Not Found: Workspace, invoice, or item index not found
  • 500 Internal Server Error: Server error