Declare discount usages

Request

POST https://api.nexway.store/discounts/usages

Request body

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

{
    "catalogId": "string",
    "customerId": "string",
    "discountCode": "string",
    "discountId": "string",
    "endUserEmail": "string",
    "orderId": "string",
    "storeId": "string"
}

Properties

Name Type Description Additional
catalogId string Optional
customerId string Optional
discountCode string Optional
discountId string Optional
endUserEmail string Optional
orderId string Optional
storeId string 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
200 OK

Success

401 Unauthorized

Unauthorized

403 Forbidden

Forbidden

404 Not Found

Not Found

500 Internal Server Error

Failure


Explore this API

requests

requests

Request Content-Type
Response Content-Type

Choose an authorisation method:

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