Tip |
---|
Available from CRM.COM R4.0.0 |
Table of Contents | ||
---|---|---|
|
...
Tip |
---|
Available from CRM.COM R4.0.0 |
Table of Contents | ||
---|---|---|
|
GET vouchers/show
This method returns information related with a voucher. Single voucher is returned by each call
Resource URL
Parameters
...
Name
...
Type
...
Description
...
token
...
String
...
The token retrieved from the login method
...
(mandatory)
...
Voucher identifier
The identifier of the voucher that should be returned as a result. The allowed vouchers identifier fields are the following:
...
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 of those parameters is allowed to be specified.
Response Data
...
Examples
...
title | Example 1 |
---|
HTTP Method: GET
Request:
Response:
...
theme | Confluence |
---|---|
language | js |
linenumbers | true |
...
voucher is returned by each call
Resource URL
Parameters
Name | Type | Description | ||||||
token | String | The token retrieved from the login method | ||||||
voucher_identifier (mandatory) | Voucher identifier | The identifier of the voucher that should be returned as a result. The allowed vouchers identifier fields are the following:
| ||||||
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 of those parameters is allowed to be specified.
Response Data
Include Page | ||||
---|---|---|---|---|
|
Examples
Expand | |||||||||
---|---|---|---|---|---|---|---|---|---|
| |||||||||
HTTP Method: GET
Request: Response:
|
GET vouchers/list
This method returns information related with vouchers. Multiple vouchers are returned by each call.
Resource URL
Parameters
Name | Type | Description | ||||||
token | String | The token retrieved from the login method | ||||||
type_identifier | Voucher type identifier | The identifier of the voucher type related with the vouchers that should be returned as a result. The allowed voucher type identifier fields are the following:
| ||||||
lot_identifier (semi-optional) | Lot identifier | The identifier of the lot related with the vouchers that should be returned as a result. The allowed lot identifier fields are the following:
| ||||||
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 of those parameters is allowed to be specified.
Response Data
Include Page | ||||
---|---|---|---|---|
|
Examples
Expand | |||||||||
---|---|---|---|---|---|---|---|---|---|
| |||||||||
HTTP Method: GET
Request: Response:
|
GET vouchers/list
This method returns information related with vouchers. Multiple vouchers are returned by each call.
Resource URL
Parameters
...
Name
...
Type
...
Description
...
token
...
String
...
The token retrieved from the login method
...
type_identifier
(semi-optional)
...
The identifier of the job type related with the jobs that should be returned as a result. The allowed job type identifier fields are the following:
...
The identifier of the lot related with the vouchers that should be returned as a result. The allowed lot identifier fields are the following:
...
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 of those parameters is allowed to be specified.
Response Data
...
Examples
Expand | |||||||||
---|---|---|---|---|---|---|---|---|---|
| |||||||||
HTTP Method: GET
Request: Response:
|
GET vouchers/retrieve_secret_number
...
|
GET vouchers/retrieve_secret_number
This method returns a voucher's secret number. The secret number of a single voucher is returned by each call
Tip |
---|
Available from CRM.COM R5.0.0 |
Resource URL
Parameters
Name | Type | Description | ||||||
token | String | The token retrieved from the login method | ||||||
voucher_identifier (mandatory) | Voucher identifier | The identifier of the voucher that should be returned as a result. The allowed vouchers identifier fields are the following:
| ||||||
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 of those parameters is allowed to be specified.
Response Data
Name | Type | Description |
---|---|---|
id | String | The ID of the retrieved voucher |
secret_number | String | The secret_number of the retrieved voucher |
Examples
Expand | |||||||||
---|---|---|---|---|---|---|---|---|---|
| |||||||||
HTTP Method: GET
Request: Response:
|
GET vouchers/get_available
This method returns a random list of activated vouchers, that are available to be used. The random selection is done based on the reservoir sampling algorithm. A list of vouchers is retrieved by each call.
Tip |
---|
Available from CRM.COM R5.0.0 |
Resource URL
Parameters
Name | Type | Description | ||||||||
token | String | The token retrieved from the login method voucher | ||||||||
type_identifier | mandatorysemi-optional) | Voucher type identifier | The identifier of the voucher type related with the voucher that should be returned as a result. The allowed | vouchers job type identifier fields are the following:
| ||||||
lot_ | setidentifier (semi-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 of those parameters is allowed to be specified.
Response Data
Name | Type | Description |
---|---|---|
id | String | The ID of the retrieved voucher |
secret_number | String | The secret_number of the retrieved voucher |
Examples
Expand | |||||||||
---|---|---|---|---|---|---|---|---|---|
| |||||||||
HTTP Method: GET
Request: Response:
|
GET vouchers/get_available
This method returns a random list of vouchers, that are available to be used. The random selection is done based on the reservoir sampling algorithm. A list of vouchers is retrieved by each call.
Tip |
---|
Available from CRM.COM R5.0.0 |
Resource URL
Parameters
Name | Type | Description | ||||||||||||
token | String | The token retrieved from the login method | ||||||||||||
voucher_identifier (mandatory) | Voucher identifier | The identifier of the voucher that should be returned as a result. The allowed vouchers Lot identifier | The identifier of the lot related with the vouchers that should be returned as a result. The allowed lot identifier fields are the following:
| |||||||||||
accounts_receivable_identifier (optional) | Accounts Receivable Identifier | The identifier of the accounts receivable that the voucher will be submitted to. The group owning the accounts receivable is filtered against the available vouchers' allowed organisational units. The allowed accounts receivable identifier fields are the following:
| ||||||||||||
group_identifier (optional) | Group Identifier | The identifier of the group that will be using the voucher. The group is filtered against the available vouchers' allowed organisational units. The allowed group identifier fields are the following:
| ||||||||||||
unit_identifier (optional) | Unit Identifier | The identifier of the unit that will be using the voucher. The unit is filtered against the available vouchers' allowed organisational units. The allowed unit identifier fields are the following:
| voucher
| voucher
| ||||||||||
number (mandatory) | Number | The number of available vouchers that should be returned by this call | ||||||||||||
pool_size (mandatory) | Number | The number of vouchers that will be retrieved and used as a pool in order to generate the specified number of random vouchers. | ||||||||||||
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 |
...
- It is mandatory to specify one of the semi-optional parameters. Only one of those parameters is allowed to be specified.
Response Data
...
Name
...
Type
...
Description
...
id
...
String
...
The ID of the retrieved voucher
...
secret_number
...
String
...
Include Page | ||||
---|---|---|---|---|
|
Examples
Expand | |||||||||
---|---|---|---|---|---|---|---|---|---|
| |||||||||
HTTP Method: GET
Request: Response:
|
...
Name | Type | Description | ||||||
token | String | The token retrieved from the login method | ||||||
secret_number (mandatory) | String | The secret number of the voucher that will be used | ||||||
accounts_receivable_identifier | Accounts receivable identifier | The identifier of the account receivable that the payment should be allocated in. The allowed accounts receivable identifier fields are the following:
| ||||||
payment_category_identifier (optional) | Payment category identifier | The identifier of the payment category related with the payment that will be created. The allowed payment category identifier fields are the following:
| ||||||
notes | Notes Object | The notes for the payment to be created |
...