On this page6 sections
Submit Invoice
Validates and persists one POS invoice atomically with tracked inventory deduction (`INVOICE_SALE`). Recomputes item pricing, promotions, totals, outlet, and actor server-side, and guarantees idempotency via `IdempotencyKey` (`SO-<OUTLET>.<YY>.<MM>.<SEQUENCE>`).
Authentication: Requires Authorization: Bearer <ACCESS_TOKEN> (Supabase JWT, OAuth2 M2M token, or integration token).
Outlet Scope Enforcement: Results and mutations are automatically scoped to the actor's accessible outlets when the
invoicemodule restriction applies.
Request
Provide the following fields in the request payload.
Invoice parameter.
Idempotency Key parameter.
idempotency Key parameter.
ID parameter.
Invoice Number parameter.
Rawdate parameter.
Fulldate parameter.
Items parameter.
Outlet parameter.
Total parameter.
Payments parameter.
Totals parameter.
Change parameter.
Cashier parameter.
Note parameter.
Member parameter.
Created By ID parameter.
Created By Name parameter.
Responses
Select a status code to inspect schema.
Success (true).
Message.
Response payload or null.
curl -X POST "https://api.invoger.com/api/invoices/submit-invoice" \
-H "Authorization: Bearer <ACCESS_TOKEN>" \
-H "Content-Type: application/json" \
-d '{ "Invoice": { "IdempotencyKey": "a7c28e4b-5f3b-4c2d-9f41-8f8b2d5a0011", "InvoiceNumber": "SO-01.26.11.0042", "Fulldate": "26/11/2026 14:28:12", "Outlet": { "id": "o1a2b3c4-d5e6-7f8a-9b0c-1d2e3f4a5b6c", "code": "01", "name": "Outlet Senopati" }, "Items": [ { "productId": "9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d", "variantId": "var_1", "quantity": 2, "unitPrice": 25000 } ], "Payments": [ { "method": "CASH", "amount": 50000 } ] } }'Response
{
"success": true,
"message": "Invoice saved successfully",
"data": {
"ID": "inv_41029412",
"InvoiceNumber": "SO-01.26.11.0042",
"Total": 50000,
"Duplicate": false
}
}