paymentTerm resource type

Important: Currently all requests to API v2.0 must append $schemaversion=2.0 to the request URL to work properly. This is to uptake the new improved $metadata model avaliable from Business Central 17. An update will be applied shortly to apply the schemaversion automatically to API v2.0. For all other APIs $schemaversion=1.0 will be the default, unless specified in the request URL with $schemaversion=2.0. A solution is being worked on, where the schemaversion will be defined in the extension.

Represents a payment term in Dynamics 365 Business Central.

Note

For information about enabling APIs for Dynamics NAV 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"
}

See Also

GET paymentTerm DELETE paymentTerm POST paymentTerm PATCH paymentTerm