Delete Discount Code Detail By Code

This API is used to delete discount code detail by code associated with the specified event.
API is used as host side event admin and super admin can access this API. It will return a response like type and message.
To call this API, user will have to pass query param with API URL like recurringEventId, id and authentication key to authenticate user.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…

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.

AttributeDescription
TypeThis is the type of api response. i.e Success or Fail.
MessageThis contains a message for response that can be used to display to the end user.

Here are the possible error messages, which return if any condition gets failed or required data is missing for processing.

Error CodeError Description
200Coupon deleted successfully.
204No Content.
400The request could not be understood by the server due to malformed syntax.
401You are not authorized to view the resource.
403Accessing the resource you were trying to reach is forbidden.
404The resource you were trying to reach is not found.
4030201Not Event Host
4060412A discount code cannot be deleted once it has been used.
Path Params
int64
required

User pass the delete discount code details by id.

string
required

Event url is unique identifier for your event. E.g https://www.accelevents.com/events/demo. Here demo is the event url.

Query Params
int64
Defaults to 0

User pass the In-Person event id.

Headers
string
enum
Defaults to application/json

Generated from available response content types

Allowed:
Responses

Language
Credentials
Header
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json