GET
/
v1
/
coupons
/
{id}
curl --request GET \
  --url https://api.onsleek.io/v1/coupons/{id} \
  --header 'Authorization: Bearer <token>'
{
  "code": "SAVE20",
  "id": "ea0efd78-2c3c-4efd-9e92-1ab676ee304b",
  "description": "Use SAVE20 coupon code to get 20% off.",
  "startDate": "2024-01-01T00:00:00",
  "endDate": "2024-12-31T23:59:59",
  "retailerId": "4f9df53d-16dc-4630-8603-8d14ec40fcfe",
  "name": "BestBuy",
  "url": "https://www.bestbuy.com",
  "logo": "https://www.bestbuy.com/logo.png"
}

Authorizations

Authorization
string
header
required

Public Sleek API token.

Path Parameters

id
string
required

The ID of the coupon to fetch.

Response

200 - application/json
Default Response
code
string
required

The coupon code value.

id
string
required

The unique identifier for the coupon. Format: UUID RFC 4122

description
string
required

The description of the coupon.

startDate
string
required

The date and time when the coupon becomes active. Format: ISO 8601

endDate
string
required

The date and time when the coupon expires. Format: ISO 8601

retailerId
string
required

The ID of the retailer associated with the coupon offer. Format: UUID RFC 4122

name
string
required

The name of the retailer associated with the coupon.

url
string
required

The URL of the retailer's website where the coupon can be used.

The URL of the retailer's logo associated with the coupon.