Description
This document explains the ISPnext API entry point for Contracts.
General
Entry Point Reference
Methods
POSTObligations
Location
http://XXX.vendorlink.nl/API/contracts/obligations
Header
- Key "Authorization", Value "Bearer <accessToken>"
Querystring parameters
- none
Body
{
"version": 1,
"operation": "insert",
"data": [
{
"ContractId": int,
"Description": string,
"Year": int,
"Month": int,
"Amount": number,
"SupplierReference": string,
"CommodityId": int (optional),
"CostCentreId": int (optional),
"CostTypeId": int (optional)
}
]
}Response
{
"hasErrors": bool,
"messages": array
}Remarks
If there are any errors, the messages array will contain objects like this:
{
severity: string,
message: string,
Data: object
}
Please note that the data field will include the original object that caused the error.