Skip to main content

Get List

GET 

/api/coupons

Get Coupons

This endpoint retrieves a list of available coupons from the UdyogX application. It is a simple HTTP GET request that does not require any input parameters.

Request

  • Method: GET
  • URL: https://app.udyogx.in/api/coupons

Response

Upon a successful request, the response will contain a JSON object with the following structure:

  • coupons: An array of coupon objects, each containing:
    • id: Unique identifier for the coupon.
    • code: The coupon code that can be applied.
    • discount: The discount value associated with the coupon.
    • expiry_date: The expiration date of the coupon.

Example Response

{
"coupons": [
{
"id": "1",
"code": "SAVE20",
"discount": "20%",
"expiry_date": "2023-12-31"
},
{
"id": "2",
"code": "WELCOME10",
"discount": "10%",
"expiry_date": "2023-11-30"
}
]
}

This endpoint is useful for clients looking to retrieve current promotional offers available for use within the application.

Responses