Invoice
An invoice.
The invoice's unique ID.
9ceef160-4388-4389-a658-96511c9b278dThe ID of the Lightyear company that owns this invoice.
93913d26-427e-4798-8e1f-06c83411113cThe original file name of the ingested document.
Invoice 12345.pdfThe type of invoice. Possible values are:
EXPENSE: An expense documentLINEITEMS: An invoice with the original line itemsLINEITEMSCRNOTE: A credit note with the original line itemsRECEIPT: A receiptSERVICE: An invoice with the original line items replaced with line items derived from the document totalsSERVICECRNOTE: A credit note with the original line items replaced with line items derived from the document totals
Possible values: [Expense, LineItems, LineItemsCrNote, Receipt, Service, ServiceCrNote]
ServiceThe invoice number.
INV-12345The ISO formatted invoice date in the companies timezone e.g. 2024-05-14T00:00:00+01:00
2024-05-14T00:00:00+01:00The sub-total.
123.45The tax.
24.69The 3 letter ISO currency code for the amounts in this invoice.
GBPAdditional information.
Some additional information about this invoiceThe purchase order number associated with the invoice.
PO-12345supplierCard object
A supplier card.
The unique identifier for this object in the source system.
SUP-001The object code identifier. Usually this will be a human readable value for the object being imported.
SUP-001The supplier name.
ACMEThe supplier's tax number.
GB123456789The supplier's 2 letter ISO country code.
GBThe supplier's 3 letter ISO currency code.
GBPbankAccount object
Bank account details.
Account name.
Account number.
Sort code.
Bank identification number.
International bank account number.
address object
An address
124 ACME RoadSouthgateLondonEnglandRR12 8QAsalesOrder object
A sales order.
address object
An address
124 ACME RoadSouthgateLondonEnglandRR12 8QASales order contact mobile number.
020 7371 9918Sales order contact phone number.
020 7371 9919Sales order county
CountyThe ISO formatted delivery date from in the companies timezone e.g. 2024-05-14T00:00:00+01:00
2024-05-14T00:00:00+01:00The ISO formatted delivery date to in the companies timezone e.g. 2024-05-14T00:00:00+01:00
2024-05-14T00:00:00+01:00Sales order delivery instructions.
Leave with neighbourSales order post code
RR12 8QASales order town
SouthgateglCode object
A general ledger code.
The Lightyear ID for this object. When importing the object this field should be null, omitted or the default value 00000000-0000-0000-0000-000000000000
79f53980-7f6b-4d18-ac38-48b60d399e1eThe object code identifier. Usually this will be a human readable value for the object being imported.
CODE-001The description of the object being imported.
The type of the GL code.
Indicates if this GL code is a arounding GL code. When importing the object this field can be omitted in which case the default is false.
Indicates if this GL code is a header GL code. When importing the object this field can be omitted in which case the default is false.
Indicates if this GL code is in-use/active in the source system.
The unique identifier for this object in the source system.
CODE-001categories object[]
Invoice categories.
The Lightyear ID for this object. When importing the object this field should be null, omitted or the default value 00000000-0000-0000-0000-000000000000
79f53980-7f6b-4d18-ac38-48b60d399e1eThe Lightyear ID for the parent category of this category.
2fc2db4c-5415-454b-ae0d-733e83e9de9aThe object code identifier. Usually this will be a human readable value for the object being imported.
CAT-001The description of the object being imported.
The unique identifier for this object in the source system.
CAT-001The unique identifier for the the parent of the object in the source system if one exists.
The sequence if the categories are ordered. This can be omitted on import in which case a default value of 0 will be assigned.
Indicates if the category is in-use in the source system. This can be omitted on import in which case a default vlaue of true will be assigned.
The category type.
Possible values: [BRANCH, CATEGORY, CLASSIFICATION, CUSTOMER, DEPARTMENT, FIXED_ASSET, INVENTORY, ITEM, JOB, LOCATION, PROJECT]
lineItems object[]
The invoice line items.
The line item's unique ID.
12443a52-9418-49a9-957c-67688e28c8a8The product code.
taxCode object
A tax code.
The Lightyear ID for this object. When importing the object this field should be null, omitted or the default value 00000000-0000-0000-0000-000000000000
79f53980-7f6b-4d18-ac38-48b60d399e1eThe object code identifier. Usually this will be a human readable value for the object being imported.
TAX-001The description of the object being imported.
The unique identifier for this object in the source system.
TAX-001The tax rate percent associated with the tax code.
20The quantity.
The line amount excluding tax.
123.34The tax on the line amount.
24.69The line amount including tax.
148.14The line item description.
Goods / Services (Taxable)glCode object
A general ledger code.
The Lightyear ID for this object. When importing the object this field should be null, omitted or the default value 00000000-0000-0000-0000-000000000000
79f53980-7f6b-4d18-ac38-48b60d399e1eThe object code identifier. Usually this will be a human readable value for the object being imported.
CODE-001The description of the object being imported.
The type of the GL code.
Indicates if this GL code is a arounding GL code. When importing the object this field can be omitted in which case the default is false.
Indicates if this GL code is a header GL code. When importing the object this field can be omitted in which case the default is false.
Indicates if this GL code is in-use/active in the source system.
The unique identifier for this object in the source system.
CODE-001categories object[]
Line item categories.
The Lightyear ID for this object. When importing the object this field should be null, omitted or the default value 00000000-0000-0000-0000-000000000000
79f53980-7f6b-4d18-ac38-48b60d399e1eThe Lightyear ID for the parent category of this category.
2fc2db4c-5415-454b-ae0d-733e83e9de9aThe object code identifier. Usually this will be a human readable value for the object being imported.
CAT-001The description of the object being imported.
The unique identifier for this object in the source system.
CAT-001The unique identifier for the the parent of the object in the source system if one exists.
The sequence if the categories are ordered. This can be omitted on import in which case a default value of 0 will be assigned.
Indicates if the category is in-use in the source system. This can be omitted on import in which case a default vlaue of true will be assigned.
The category type.
Possible values: [BRANCH, CATEGORY, CLASSIFICATION, CUSTOMER, DEPARTMENT, FIXED_ASSET, INVENTORY, ITEM, JOB, LOCATION, PROJECT]
Additional information associated with the line item.
{
"id": "9ceef160-4388-4389-a658-96511c9b278d",
"companyID": "93913d26-427e-4798-8e1f-06c83411113c",
"fileName": "Invoice 12345.pdf",
"invoiceType": "Service",
"invoiceNumber": "INV-12345",
"invoiceDate": "2024-05-14T00:00:00+01:00",
"subTotal": 123.45,
"calculatedTax": 24.69,
"currencyCode": "GBP",
"additionalInfo": "Some additional information about this invoice",
"purchaseOrderNumber": "PO-12345",
"supplierCard": {
"sourceID": "SUP-001",
"code": "SUP-001",
"fullName": "ACME",
"taxNumber": "GB123456789",
"countryCode": "GB",
"currency": "GBP",
"bankAccount": {
"accountName": "string",
"accountNumber": "string",
"sortCode": "string",
"bic": "string",
"iban": "string"
},
"address": {
"line1": "124 ACME Road",
"line2": "Southgate",
"line3": "London",
"line4": "England",
"line5": "RR12 8QA"
}
},
"salesOrder": {
"address": {
"line1": "124 ACME Road",
"line2": "Southgate",
"line3": "London",
"line4": "England",
"line5": "RR12 8QA"
},
"contactMobileNumber": "020 7371 9918",
"contactPhoneNumber": "020 7371 9919",
"county": "County",
"deliveryDateFrom": "2024-05-14T00:00:00+01:00",
"deliveryDateTo": "2024-05-14T00:00:00+01:00",
"deliveryInstructions": "Leave with neighbour",
"postcode": "RR12 8QA",
"town": "Southgate"
},
"glCode": {
"id": "79f53980-7f6b-4d18-ac38-48b60d399e1e",
"code": "CODE-001",
"description": "string",
"glType": "string",
"isRoundingCode": true,
"isHeaderGLCode": true,
"isSourceInUse": true,
"sourceID": "CODE-001"
},
"categories": [
{
"id": "79f53980-7f6b-4d18-ac38-48b60d399e1e",
"parentID": "2fc2db4c-5415-454b-ae0d-733e83e9de9a",
"code": "CAT-001",
"description": "string",
"sourceID": "CAT-001",
"parentSourceID": "string",
"sequence": 0,
"inUse": true,
"type": "BRANCH"
}
],
"lineItems": [
{
"id": "12443a52-9418-49a9-957c-67688e28c8a8",
"productCode": "string",
"taxCode": {
"id": "79f53980-7f6b-4d18-ac38-48b60d399e1e",
"code": "TAX-001",
"description": "string",
"sourceID": "TAX-001",
"ratePercent": 20
},
"quantity": 0,
"amountExclTax": 123.34,
"taxAmount": 24.69,
"amountInclTax": 148.14,
"description": "Goods / Services (Taxable)",
"glCode": {
"id": "79f53980-7f6b-4d18-ac38-48b60d399e1e",
"code": "CODE-001",
"description": "string",
"glType": "string",
"isRoundingCode": true,
"isHeaderGLCode": true,
"isSourceInUse": true,
"sourceID": "CODE-001"
},
"categories": [
{
"id": "79f53980-7f6b-4d18-ac38-48b60d399e1e",
"parentID": "2fc2db4c-5415-454b-ae0d-733e83e9de9a",
"code": "CAT-001",
"description": "string",
"sourceID": "CAT-001",
"parentSourceID": "string",
"sequence": 0,
"inUse": true,
"type": "BRANCH"
}
],
"additionalInfo": "string"
}
]
}