Accounts Payable (Beta)
Endpoints for Accounts Payable Automation such as Invoices, Purchase Orders, Purchase Receipts.
Content
Invoice
An invoice is a digitised representation of a vendor invoice, the invoice includes summary information of the individual invoice lines including taxes and charges, supplier details, billing information, and payment terms.
Endpoints
GET /beta/company/{companyId}/invoice
GET /beta/company/{companyId}/invoice/{invoiceId}
Invoice Object
{
"id": "1234567",
"createdOn": "1970-01-01T00:00:00Z",
"approvedOn": "1970-01-01T00:00:00Z",
"finalisedOn": "1970-01-01T00:00:00Z",
"reference": "IV1234",
"supplier": {
"id": "",
"name": ""
},
"summary": "",
"description": "",
"currency": "AUD",
"total": {
"grossAmount": 0,
"netAmount": 0,
"taxAmount: 0,
"currency": "AUD"
},
"approvers": [
{
"id": "",
"name": ""
}
],
"notes": "",
"status": "", // None | NotSubmitted | PendingApproval | Approved | Finalised | Rejected
"claimTypeId": 1,
"customFields": [
{
"type": "",
"name": "",
"value": ""
}
]
}
Parameters
finalisedDate (date)
A filter for the finalised date of the invoice, the results returned will be after or on the specified finalised date.
status (enum)
A filter on the status, if none provided all status will be included in the results.
supplierId (string)
A filter for the supplier id
Note: The supplier Id is the primary Id in the ProSpend platform.
InvoiceLine
Invoice Lines, also referred to as transactions, are the individual lines of a supplier invoice. The line includes the individual transaction details such as price, quantity, description, totals, as well as other data related to splits, allocations, and invoice line matching to Purchase Orders (PO) and Purchase Receipts (PR).
Endpoints
GET /beta/company/{companyId}/invoice/{invoiceId}/line
GET /beta/company/{companyId}/invoice/{invoiceId}/line/{lineId}
Invoice Line Object
{
"id": "1234567",
"createdOn": "1970-01-01T00:00:00Z",
"code": "PRD1",
"name": "Product 1",
"isSplit": true,
"splitChildren": ["1234567:456", "1234567:457"],
"splitParent": "",
"description": "",
"quantity": 2,
"amount": {
"grossUnitPrice": 0,
"netUnitPrice": 100,
"grossAmount": 0,
"netAmount": 0,
"taxAmount: 0,
"currency": "AUD"
},
"taxCode": "GST",
"entityId": "ENT1",
"projectId": "PRJ001",
"costCenterCode": "CC001",
"glCode": "GL001",
"externalCode": "",
"isOmitted": false,
"notes": "",
"claimTypeId": 1,
"customFields": [
{
"type": "",
"name": "",
"value": ""
}
]
}
Parameters
includeOmitted (boolean) - false
A filter for including omitted lines in the invoice, omitted lines are those that are excluded from the invoice totals and from approvals and workflows.