POST additive_discounts/auto_apply_disounts/get_applicable_discounts
This method returns a list of discounts that will automatically be applied on a subscription or a 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 (mandatory) | 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.
| ||
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. Only one semi-optional parameter can be specified.
Response Data
...
Examples
Expand | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||||||
HTTP Method: POST
Request: Body:
Response:
|
POST additive_discounts/ad_hoc_disounts/get_available_discounts
This method returns a list of ad hoc discounts that are available for a subscription or a job having the specified characteristics. Ad hoc discounts are applied manually. Multiple ad hoc discounts are returned by each call
Resource URL
Parameters
Name | Type | Description | ||
token | String | The token retrieved from the login method | ||
accounts_receivable (mandatory) | 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.
| ||
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. Only one semi-optional parameter can be specified.
Response Data
...
Examples
...
title | Example 1 |
---|
HTTP Method: POST
Request:
Body:
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
{
"token":"C224050D1AD945009263D65CE98AFE35",
"accounts_receivable":
{
"classification_identifier":{"name":"Employee"},
"presentment_preferences_set":
[
{"presentment_preference_identifier":{"name":"By Email"}},
{"presentment_preference_identifier":{"name":"By Post"}}
],
"payment_preferences_set":
[
{"payment_preference_identifier":{"name":"PayPal"}}
]
},
"subscription":
{
"type_identifier":{"name":"London"},
"owned_by_group_identifier": {"name":"Main Group"},
"billing_terms":
{
"billing_term_scheme_identifier":{"code":"ABTS"},
"price_plan_identifier" : {"code":"BPP0614"},
"billing_cycle_day":5,
"agreement_date": "2015-05-05T15:49:59",
"billing_frequency":"DAILY",
"binding_information":
{
"binding_period":"WEEK",
"start_date": "2015-06-05T15:49:59"
}
},
"services_set":
[
{
"service_identifier":{"code":"Bronze"}
},
{
"service_identifier":{"code":"Movies 2"}
}
]
}
} |
Response:
...
theme | Confluence |
---|---|
language | javascript |
linenumbers | true |
...
POST additive_discounts/auto_apply_disounts/get_applicable_discounts
This method returns a list of discounts that will automatically be applied on a subscription or a 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 (mandatory) | 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.
| ||
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 | ||||
---|---|---|---|---|
|
Include Page | ||||
---|---|---|---|---|
|
Include Page | ||||
---|---|---|---|---|
|
Include Page | ||||
---|---|---|---|---|
|
Restrictions
- It is mandatory to specify one of the semi-optional parameters. Only one semi-optional parameter can be specified.
Response Data
Include Page | ||||
---|---|---|---|---|
|
Examples
Expand | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||||||
HTTP Method: POST
Request: Body:
Response:
|