Get Single
GET/api/coupon/1
API Endpoint: Retrieve Coupon Details
HTTP Method: GET
URL: https://app.udyogx.in/api/coupon/1
Purpose
This endpoint is used to retrieve the details of a specific coupon identified by its unique ID. In this case, the coupon ID is 1
. This can be useful for checking the validity, discounts, and other attributes associated with the coupon.
Request Format
This is a simple GET request and does not require a request body. The coupon ID is specified directly in the URL.
Response Structure
The response will contain the details of the coupon in a structured format. The expected response will typically include keys such as:
id
: The unique identifier of the coupon.code
: The code associated with the coupon.discount
: The discount value provided by the coupon.expiry_date
: The date when the coupon expires.status
: The current status of the coupon (e.g., active, expired).
Make sure to handle the response appropriately based on the structure provided.
Responses
- 200