put https://api.accelevents.com/rest/host/ticketing//couponCode/
This API is used to update discount codes for ticketing associated with the specified event.
API is used as host side event admin and super admin can access this API.
To call this API, user will have to pass query param with API URL like recurringEventId, id, ticketing coupon details and authentication key to authenticate user.
Here is the description of response attributes, which returns to the form of JSON.
This will return a success message if API is executed successfully.
Attribute | Description |
---|---|
Type | This is the Type of api response. i.e Success or Fail. |
Message | This contains the message for response that can be use for display to end user. |
Here is the possible error messages, which return if any condition gets failed or required data is missing for processing.
Error Code | Error Description |
---|---|
200 | Discount Coupon Saved. |
201 | Created. |
400 | The request could not be understood by the server due to malformed syntax. |
401 | You are not authorized to view the resource. |
403 | Accessing the resource you were trying to reach is forbidden. |
404 | The resource you were trying to reach is not found. |
4030201 | Not Event Host. |
4060413 | More coupon is used then set. |