Web service endpoint to attach a list of vouchers (identified by voucher codes) to an Atlas Eligibility record specified by the atlas_eligibility_code. Voucher Codes are pre-agreed discount codes between PSI and the customer (identified by account_code). Post this operation any previously attached vouchers to the eligibility record but not listed in the payload will be unlinked from the eligibility and the new ones will be linked.
PUT https:///accounts/{account_code}/candidates/{candidate_id}/tests/{test_code}/vouchers
Parameter name | Value | Description | Additional |
---|---|---|---|
account_code | string | Account code or the customer code. This is the unique, randomly generated alphanumeric identifier for the client Account. |
Required |
candidate_id | string | Candidate Id |
Required |
test_code | string | The test code is the code provided by the client for an exam. |
Required |
The request body takes an array of String Array resources, containing the following writable properties:
[
{}
]
Name | Type | Description | Additional |
---|
This request requires the use of one of following authorisation methods:
OAuth2
.
The following HTTP status codes may be returned, optionally with a response resource.
Status code | Description | Resource |
---|---|---|
204 | No Content Vouchers Codes successfully attached to the candidate eligibility record |
|
400 | Bad Request
|
Error Model |
401 | Unauthorized You are not authorized to access this resource. |
Error Model |
403 | Forbidden Forbidden operation. |
Error Model |
404 | Not Found The specified Eligibility or Registration Record could not be located in PSI ATLAS system |
Error Model |
500 | Internal Server Error Error in case of server errors. |
Error Model |