How to set Net D for subscriptions via API?

Modified on: Mon, 31 Oct, 2022 at 2:56 PM

This article covers 

Set Net D at subscription level via API

Set Payment terms at the subscription level via API


Solution

Subscription endpoints:

Create a subscription for items


Net_term_days: Defines Net D for the subscription. Net D is the number of days within which any invoice raised for the subscription must be paid.

  • If a value is provided: Net D is set explicitly for the subscription to the value provided. The value must be one among those defined in the site configuration.

  • If not provided: The attribute is not set and therefore not returned by the API. In this case, when an invoice is raised – whether now or later – the net_term_days defined at the customer level is considered.

Update subscription for items
Net_term_days: Updates Net D for the subscription. Net D is the number of days within which any invoice raised for the subscription must be paid.

  • If the value is 0 or a positive integer: Net D is set explicitly for the subscription to the value provided. The value must be one of those defined in the site configuration.

  • If the value is -1: The attribute is reset and therefore not returned by the API. In this case, when an invoice is raised – whether now or later – the net_term_days defined at the customer level is considered.

  • If the value is not provided: The attribute is left unaltered.]

Import subscription for items
Net_term_days: Same as “Create Subscription for items”

Related articles and Documentation

How do I set Net-D for a customer?




Did you find it helpful? Yes No

Send feedback
Sorry we couldn't be helpful. Help us improve this article with your feedback.
×