TYPE REFERENCE
InvoiceConnection
Referenced by 1 generated operations.
Documented fields
The rows on this page, in order.
Example:
[{"cursor":"WyIyMDI2LTEwLTA5IiwiMDE5MmYwYzEtMDAwMC03MDAwLTgwMDAtMDAwMDAwYjEwMDAxIl0","node":{"id":"0192f0c1-0000-7000-8000-000000b10001","number":"DPW/26-27/0012","customerName":"Alpha Auto Components 1","part":"Flange 120","status":"NEW","issuedAt":"2026-10-09","dueDate":"2026-11-08","totals":{"total":84960},"payment":null}},{"cursor":"WyIyMDI2LTEwLTA3IiwiMDE5MmYwYzEtMDAwMC03MDAwLTgwMDAtMDAwMDAwYjEwMDAyIl0","node":{"id":"0192f0c1-0000-7000-8000-000000b10002","number":"DPW/26-27/0011","customerName":"Bharat Hydraulics 2","part":"Bush 25x30","status":"NEW","issuedAt":"2026-10-07","dueDate":"2026-11-06","totals":{"total":153400},"payment":null}},{"cursor":"WyIyMDI2LTA5LTE3IiwiMDE5MmYwYzEtMDAwMC03MDAwLTgwMDAtMDAwMDAwYjEwMDAzIl0","node":{"id":"0192f0c1-0000-7000-8000-000000b10003","number":"DPW/26-27/0010","customerName":"Cauvery Pumps 3","part":"Pulley 90","status":"PAID","issuedAt":"2026-09-17","dueDate":"2026-10-17","totals":{"total":128620},"payment":{"paidOn":"2026-09-27"}}}]Show children
Opaque position of this row in the list.
Example:
"WyIyMDI2LTEwLTA5IiwiMDE5MmYwYzEtMDAwMC03MDAwLTgwMDAtMDAwMDAwYjEwMDAxIl0"The Invoice.
Example:
{"id":"0192f0c1-0000-7000-8000-000000b10001","number":"DPW/26-27/0012","customerName":"Alpha Auto Components 1","part":"Flange 120","status":"NEW","issuedAt":"2026-10-09","dueDate":"2026-11-08","totals":{"total":84960},"payment":null}Show children
UTC time the invoice was made.
The customer (see
customer).The customer’s name, so a list needs no second call.
Example:
"Alpha Auto Components 1"Paise discount asked for. The amount applied is
totals.discount.Payment due date, YYYY-MM-DD. Defaults to the issue date plus the customer’s payment terms.
Example:
"2026-11-08"The GST percentage asked for. The rate applied is
totals.gstRate.Stable id (UUIDv7).
Example:
"0192f0c1-0000-7000-8000-000000b10001"Invoice date, YYYY-MM-DD.
Example:
"2026-10-09"The job card this was raised from (see
jobCard); null for a manual invoice.The priced operations, in the order given.
Show children
Integer paise: (quantity × minutesPerPiece + setupMinutes) × ratePerMinute, rounded half up to a whole paisa. Computed by the server.
Free text for the customer; empty when none was given.
Stable id (UUIDv7).
Machine minutes for one piece.
The operation priced, such as Turning.
Paise per machine minute.
One-off machine minutes to set up, charged once per line.
Printed on the invoice.
The invoice number. Assigned by the server; gaps never happen.
Example:
"DPW/26-27/0012"The order this bills (see
order).Part name or number.
Example:
"Flange 120"Set once the invoice is paid; null before that.
Example:
nullShow children
The day the money arrived, YYYY-MM-DD.
Paise actually received: the invoice total less
tdsAmount.Paise the customer deducted as tax at source; 0 when none.
The income-tax section the deduction was made under, such as 194C.
Paise: the amount on the customer’s PO, to compare against
totals.total.Pieces billed.
The quote this was priced from, if any (see
quote).The route card number printed on the job card.
NEW, OVERDUE or PAID. Derived from
paymentanddueDate.Example:
"NEW"NEWIssued, not paid, and not yet past its due date.OVERDUENot paid and past its due date.PAIDA payment has been recorded.
Subtotal, GST and total, all in paise, worked out by the server.
Example:
{"total":84960}Show children
Central GST; 0 unless
supplyis INTRA.The discount applied. Never more than the subtotal.
Total GST: cgst + sgst + igst.
The GST percentage applied; 0 when
supplyis NONE.Integrated GST; 0 unless
supplyis INTER.State GST; 0 unless
supplyis INTRA.Sum of the line amounts.
Whether CGST + SGST or IGST applies.
INTERDifferent states: IGST.INTRAShop and customer are in the same state: CGST + SGST.NONEThe shop has no GSTIN, so no GST is charged.
Subtotal less discount.
Taxable plus GST.
Example:
84960
UTC time of the last change.
Whether more pages exist, and the cursors to reach them.
Example:
{"hasNextPage":true,"endCursor":"WyIyMDI2LTA5LTE3IiwiMDE5MmYwYzEtMDAwMC03MDAwLTgwMDAtMDAwMDAwYjEwMDAzIl0"}Show children
Cursor of the last row; pass it as
afterto get the next page. Null when the page is empty.Example:
"WyIyMDI2LTA5LTE3IiwiMDE5MmYwYzEtMDAwMC03MDAwLTgwMDAtMDAwMDAwYjEwMDAzIl0"Whether another page follows this one.
Example:
trueWhether another page comes before this one.
Cursor of the first row; pass it as
beforeto page backwards. Null when the page is empty.
All rows matching the filter and search, not just this page.
Example:
12
Used by
- invoicesMock