paymentTerm resource type

Represents a payment term in Business Central.

Note

For information about enabling APIs for Business Central see Enabling the APIs for Dynamics 365 Business Central.

Methods

Method Return Type Description
GET paymentTerm paymentTerm Gets a payment term object.
DELETE paymentTerm none Deletes a payment term object.
POST paymentTerm paymentTerm Creates a payment term object.
PATCH paymentTerm paymentTerm Updates a payment term object.

Properties

Property Type Description
id GUID The unique ID of the payment term. Non-editable.
code string The code of the payment term.
displayName string Specifies the payment term's name. This name will appear on all sales documents for the payment term.
dueDateCalculation string Specifies the formula that is used to calculate the date that a payment must be made.
discountDateCalculation string Specifies the formula that is used to calculate the date that a payment must be made in order to obtain a discount.
discountPercent decimal The line discount percent.
calculateDiscountOnCreditMemos boolean Specifies if the discount should be applied to payment term. True indicates a discount will be given, false indicates a discount will not be given.
lastModifiedDateTime datetime The last datetime the payment term was modified. Read-Only.

JSON representation

Here is a JSON representation of the paymentTerm resource.

{
    "id": "GUID",
    "code": "string",
    "displayName": "string",
    "dueDateCalculation": "string",
    "discountDateCalculation": "string",
    "discountPercent": "decimal",
    "calculateDiscountOnCreditMemos": "boolean",
    "lastModifiedDateTime": "datetime"
}

GET paymentTerm
DELETE paymentTerm
POST paymentTerm
PATCH paymentTerm