POST https://api.nexway.store/discounts/{id}/generate
Parameter name | Value | Description | Additional |
---|---|---|---|
id | string | id |
Required |
The request body takes a complete SingleUseCodeGenerationRequest resource, containing the following writable properties:
{
"quantity": "int32"
}
Name | Type | Description | Additional |
---|---|---|---|
quantity | int32 | Optional |
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 |
---|---|---|
201 | Created Created |
SingleUseCodeGenerationResponse |
401 | Unauthorized Unauthorized |
|
403 | Forbidden Forbidden |
|
404 | Not Found Not Found |
|
500 | Internal Server Error Failure |