Skip to main content
GET
/
captive
/
coupons
Retrieve coupons from a signed URL
curl --request GET \
  --url https://v1.api.altostrat.io/captive/coupons
[
  {
    "id": "b1c2d3e4-f5a6-b7c8-d9e0-f1a2b3c4d5e6",
    "code": "8B7W3D",
    "expires_at": "2025-11-01T12:00:00Z",
    "redeemed_at": null,
    "created_at": "2025-10-29T12:00:00Z"
  }
]

Query Parameters

sid
string<uuid>
required

Coupon schedule ID embedded in the signed URL.

expires
integer
required

Signature expiry timestamp from the generated URL.

signature
string
required

URL signature generated by SDX.

Response

Valid coupons for the schedule.

id
string<uuid>

The unique identifier for the coupon.

Example:

"b1c2d3e4-f5a6-b7c8-d9e0-f1a2b3c4d5e6"

code
string

The 6-character alphanumeric code for the coupon.

Example:

"8B7W3D"

expires_at
string<date-time>

The timestamp when the coupon will expire and become invalid.

Example:

"2025-11-01T12:00:00Z"

redeemed_at
string<date-time> | null

The timestamp when the coupon was redeemed. Null if not yet redeemed.

Example:

null

created_at
string<date-time>

The timestamp when the coupon was created.

Example:

"2025-10-29T12:00:00Z"