Access Coupon Information

This API endpoint retrieves a coupon by its unique code. You must provide the coupon code in the path parameter.

Authorization: Bearer YOUR_TOKEN


Expected Behavior:


  • On success, the system will return the details of the coupon associated with the provided code.
  • If the coupon does not exist or the user is not authorized, an appropriate error message will be returned.
Path Parameters
  • code string
    The unique coupon code to retrieve. Example: '25OFF'.
ResponseThis section is used to view the possible HTTP response codes returned by the API. These codes indicate the status of a request, such as 201 (Created), 401 (Unauthorized), 409 (Conflict), or 422 (Unprocessable Entity).