...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
Excerpt |
---|
This method returns a list of auto-apply discounts that could be applied to a subscription or job having the specified characteristics. Multiple auto apply discounts are returned by each call |
Resource URL
Parameters
Name | Type | Description |
token | String | The token retrieved from the login method |
accounts_receivable (semi-optional) | Accounts Receivable Object |
Information related with the accounts receivable that will own the subscription or the job that could possibly be discounted
| |||
(semi-optional) | Subscriptions Object | Information related with the subscription that could possibly be discounted | |
(semi-optional) | Job Object | Information related with the job that could possibly be discounted | |
(optional) |
Buy in Advance Request Object | Information related with buy in advance request that might be applicable on the subscription that could possible be discounted. This information is applicable only if a subscription is specified.
| |||
(optional) | Products Object | The product the discount is for.
| ||
(optional) | Set of invoice physical goods | A list of physical goods that will be bought by the customer, used to validated against discounts' existing product conditions. This is only applicable for quick sales, as the existing products of jobs and subscriptions are taken through the defined entity.
| ||
date (optional) | Date | The date for which you want to see the available discounts for.
| ||
from_date (optional) | Date | The date from which the termed service discount will be applied from. Applicable only for termed services
| ||
to_date (optional) | Date | The date up to which the termed service discount will be applied to Applicable only for termed services
| ||
usage_amount (optional) | Float | The usage amount of the usage service. Applicable only for usage services
| ||
usage_zone (optional) | String | The usage zone the usage service belongs to. Applicable only for usage services
| ||
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 |
Referred Parameters Objects Data Anchor applicable discounts referred objects parameters applicable discounts referred objects parameters
...
Include Page | ||||
---|---|---|---|---|
|
Restrictions
- It is mandatory to specify one of the semi-optional parameters. Only one semi-optional parameter can be specified.
...
Expand | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||||
HTTP Method: POST Request: Body:
Response:
|