Update a Coupon
The id of the coupon.
The brand URL of the request. This is used to identify the brand.
YOUR_BRAND_URLAuth-Key is required to authenticate the request. If missing, the server will return 401 Unauthorized.
YOUR_AUTH_KEYThis class is used to provide a data transfer object for the coupon which is used for command requests.
The type of the coupon.
The name of the coupon.
The code of the coupon.
The percentage of the coupon.
A positive integer specifying the number of times the coupon can be redeemed before it’s no longer valid. For example, you might have a 50% off coupon that the first 20 readers of your blog can use.
The start date and end date of the coupon.
The end date of the coupon.
Is the coupon auto apply to price. If true, the coupon will be applied to the price automatically. By default, the value is false.
The description of the coupon.
The tags of the coupon.
Provides the status of the coupon.
The test mode of the coupon. By default, the value is false.
The request was successful.
This provides interfaces for API responses with data.
This is the flag to indicate whether the API call is successful or not.
This is the HTTP status code. This is used to determine the status code to be returned to the client.
This is the message to be displayed to the user.
The user is not authorized to access the requested resource. The request is missing the required Auth-Key header.
The user's access was denied.
API call exceeded rate limit due to too many requests.
Last updated