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.
This is the type of api response. i.e Success or Fail.
This 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.
Coupon deleted successfully.
The request could not be understood by the server due to malformed syntax.
You are not authorized to view the resource.
Accessing the resource you were trying to reach is forbidden.
The resource you were trying to reach is not found.
Not Event Host
A discount code cannot be deleted once it has been used.