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

Documentation Index

Fetch the complete documentation index at: https://docs.onsleek.ai/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

API key for accessing the Sleek API.

Path Parameters

id
string
required

The ID of the coupon to fetch.

Response

200 - application/json

Coupon by id.

id
string
required

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

Example:

"ea0efd78-2c3c-4efd-9e92-1ab676ee304b"

code
string
required

The coupon code value.

Example:

"SAVE20"

startDate
string
required

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

Example:

"2024-01-01T00:00:00.000Z"

endDate
string
required

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

Example:

"2024-12-31T23:59:59.999Z"

description
string
required

The description of the coupon.

Example:

"Use SAVE20 coupon code to get 20% off."

retailerId
string
required

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

Example:

"4f9df53d-16dc-4630-8603-8d14ec40fcfe"

url
string
required

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

Example:

"https://www.bestbuy.com"

name
string
required

The name of the retailer associated with the coupon.

Example:

"BestBuy"

hostname
string
required

The hostname of the retailer's website.

Example:

"www.bestbuy.com"

updatedAt
string
required

The date and time when the coupon was last updated. Format: ISO 8601

Example:

"2024-01-01T12:00:00.000Z"

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

Example:

"https://www.bestbuy.com/logo.png"