Generate coupons

Request

POST https://api.nexway.store/discounts/{id}/generate

Path parameters

Parameter name Value Description Additional
id string

id

Required

Request body

The request body takes a complete SingleUseCodeGenerationRequest resource, containing the following writable properties:

{
    "quantity": "int32"
}

Properties

Name Type Description Additional
quantity int32 Optional

Authorisation

This request requires the use of one of following authorisation methods: OAuth2.

Response

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


Explore this API

id

id

request

request

Request Content-Type
Response Content-Type

Choose an authorisation method:

Access Token Access token to be used for request
Try it out!