Description
This document describes the ISPnext API entry point for "Invoices".
General
Entry Point Reference
Methods
POST Invoices
Location
https://XXX.vendorlink.nl/API/Spend/Invoices
Header
- Key "Authorization", Value "Bearer <accessToken>"
Querystring parameters
- none
Body
{ version: 1, operation: "insert", data: [ { invoiceHeader: {
invoiceId: string, invoiceNumber: string, supplierInvoiceNumber: string,
creationDate: date/datetime, invoiceDate: date/datetime, bookingDate: date/datetime, amountExclVat: float, amountVat: float, amountInclVat: float, companyReference: string, companyName: string, supplierReference: string, supplierName: string, orderNumber: string, purchaserCode: string, purchaserDesc: string }, invoiceLines: [ {
invoiceId: string, invoiceNumber: string, invoiceLineNumber: string, invoiceLineDescription: string, supplierReference: string, supplierName: string, invoiceYear: int, invoiceMonth: int, costCentreReference: string, costCentreName: string, costTypeReference: string, costTypeName: string, amount: float, quantity: float, commodityReference: string, commodityName: string, projectReference: string, projectName: string, contractCode: string, contractDescription: string, invoiceOrderNumber: string, invoiceLineCount: int, productReference: string, productDescription: string, purchaserCode: string, purchaserDesc: string, currency: string } ] } ] }
Response
{ "hasErrors": bool, "messages": [string] }