CFL Payment Terms API
APIPublisher = 'christiaens';
APIGroup = 'bocountdynamics';
APIVersion = 'v2.0';
EntityName = 'paymentTerm';
EntitySetName = 'paymentTerms';
GET
method: GET
Url: https://server:port/serverinstance/api/Christiaens/BoCountDynamics/v2.0/companies(companyid)/paymentTerms
Entity:
{
"@odata.etag": "W/\"JzIwOzEwOTk5OTcwOTY1MDY5OTcwOTYwMTswMDsn\"",
"id": "a3951606-13e0-ec11-adf8-c90fab2a25c5",
"code": "10 DAGEN",
"description": "Netto 10 dagen",
"dueDateCalculation": "10D",
"discountDateCalculation": "",
"discountPercent": 0,
"creditLimitation": 0,
"calculateDiscountOnCreditMemos": false,
"systemModifiedAt": "2022-05-30T12:25:06.21Z"
}
CREATE
method: POST
Url: https://server:port/serverinstance/api/Christiaens/BoCountDynamics/v2.0/companies(companyid)/paymentTerms
Body:
{
"code": "TEST",
"description": "Test omschrijving",
"dueDateCalculation": "10D",
"discountDateCalculation": "",
"discountPercent": 0,
"creditLimitation": 2,
"calculateDiscountOnCreditMemos": false
}
DELETE
method: DELETE
Url: https://server:port/serverinstance/api/Christiaens/BoCountDynamics/v2.0/companies(companyid)/paymentTerms(a3951606-13e0-ec11-adf8-c90fab2a25c5)
UPDATE
method: PATCH
Url: https://server:port/serverinstance/api/Christiaens/BoCountDynamics/v2.0/companies(companyid)/paymentTerms(a3951606-13e0-ec11-adf8-c90fab2a25c5)
Headers:
"If-Match" : W/"JzIwOzEwOTk5OTcwOTY1MDY5OTcwOTYwMTswMDsn"
Body:
{
"description": "test aanpassing"
}