Tip |
---|
Available from CRM.COM R14.0.0 |
Excerpt |
---|
This method changes the credit period of accounts receivable in order to override the active Accounts Receivable Definition's default credit period settings. A single accounts receivable's credit period can be updated by each call. |
Resource URL
Parameters
...
Name
...
Type
...
Description
...
token
...
String
...
The token retrieved from the login method
...
(mandatory)
...
The identifier of the account receivable whose credit period will be updated. The allowed account receivable identifier fields are the following:
...
credit_period
(mandatory)
...
Number
...
The credit period of the accounts receivable in days which overrides the active accounts receivable definition's default credit period. The number of days must not exceed the active Accounts Receivable Definition's proximity range
Tip |
---|
From CRM.COM R14.2.0 the credit period can be specified either in Days or Months. |
...
credit_period_uom
(mandatory)
...
Defines whether the credit period of the account will be specified in Days or Months. Avialable values are DAYS and MONTHS and the default valud is DAYS
Tip |
---|
Available from CRM.COM R14.2.0 |
...
credit_period_operator
(mandatory)
...
String
...
fields_set
(optional)
...
Restrictions
- It is mandatory to specify one of the semi-optional parameters. Both those parameters is allowed to be specified.
Response Data
...
Examples
Expand | ||||||
---|---|---|---|---|---|---|
|
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
{
"token":"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c3IiOiJNUEFkbWluaXN0cmF0b3IiLCJvcmciOiJwc19kZXYiLCJvdW4iOiIxIiwiZXhwIjoiMTUwMjE5ODUzMCIsImlhdCI6IjE1MDIxOTEzMzAiLCJqdGkiOiI3NDRGN0JERUZFQ0Y0NzAzODA2RjNFREVEMzI4NTYxNSJ9.puPbMQBnXGaZn4vijM9IqFE7ktANYYBoQLPgh93UACs",
"accounts_receivable_identifier":{"number":"ACR0000012378"},
"credit_period":2,
"credit_period_operator":"PLUS"
} |
Response:
Available from CRM.COM R14.0.0
Excerpt |
---|
This method changes the credit period of accounts receivable in order to override the active Accounts Receivable Definition's default credit period settings. A single accounts receivable's credit period can be updated by each call. |
Resource URL
Parameters
Name | Type | Description | ||||||
token | String | The token retrieved from the login method | ||||||
accounts_receivable_identifier (mandatory) | Account Receivable Identifier | The identifier of the account receivable whose credit period will be updated. The allowed account receivable identifier fields are the following:
| ||||||
credit_period (mandatory on conditions) | Number | The credit period of the accounts receivable in days which overrides the active accounts receivable definition's default credit period. The number of days must not exceed the active Accounts Receivable Definition's proximity range. Available and mandatory only if the credit_period_operatoris set to PLUS or MINUS
| ||||||
credit_period_uot (mandatory on conditions) | String | Defines whether the credit period of the account will be specified in Days and Months. Available values are DAYS and MONTHS. The default value is DAYS
| ||||||
credit_period_operator (mandatory) | String | The credit period's operator which can either be set to PLUS, MINUS or SPECIFIC_PERIOD.
| ||||||
credit_period_setting (mandatory on conditions) | String | The credit period's setting if the credit period operator is set to "SPECIFIC_PERIOD". Available values are:
| ||||||
credit_period_days (mandatory on conditions) | Number | The credit period's number of days after the transaction's posted date. Available and mandatory only if the credit_period_setting is set to "X_DAYS_AFTER"
| ||||||
credit_period_nth_day (mandatory on conditions) | Number | The credit period's Nth day after X months after the transaction's posted date. Available and mandatory only if the credit_period_setting is set to "NTH_DAY_AFTER_X_MONTHS"
| ||||||
credit_period_x_month (mandatory on conditions) | Number | The credit period's Nth day after X months after the transaction's posted date. Available and mandatory only if the credit_period_setting is set to "NTH_DAY_AFTER_X_MONTHS"
| ||||||
fields_set (optional) | List of Strings, comma separated | A list of fields that should be included in the results. If not specified then all the available fields will be returned |
Restrictions
- It is mandatory to specify one of the semi-optional parameters. Both those parameters is allowed to be specified.
Response Data
Include Page | ||||
---|---|---|---|---|
|
Examples
Expand | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
| |||||||||||
HTTP Method: POST
Request: Body:
Response:
|
Expand | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
| |||||||||||
HTTP Method: POST
Request: Body:
Response:
|