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

MethodReturn TypeDescription
GET paymentTermpaymentTermGets a payment term object.
DELETE paymentTermnoneDeletes a payment term object.
POST paymentTermpaymentTermCreates a payment term object.
PATCH paymentTermpaymentTermUpdates a payment term object.

Properties

PropertyTypeDescription
idGUIDThe unique ID of the payment term. Non-editable.
codestringThe code of the payment term.
displayNamestringSpecifies the payment term's name. This name will appear on all sales documents for the payment term.
dueDateCalculationstringSpecifies the formula that is used to calculate the date that a payment must be made.
discountDateCalculationstringSpecifies the formula that is used to calculate the date that a payment must be made in order to obtain a discount.
discountPercentdecimalThe line discount percent.
calculateDiscountOnCreditMemosbooleanSpecifies if the discount should be applied to payment term. True indicates a discount will be given, false indicates a discount will not be given.
lastModifiedDateTimedatetimeThe last datetime the payment term was modified. Read-Only.

JSON representation

Here's 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