Live promo offer for the caller's organization

gethttps://api.expiryedge.com/v1/getPromoStatus
any role60/min
Anfrage
curl 'https://api.expiryedge.com/v1/getPromoStatus' \
  -H "Authorization: Bearer $EXPIRYEDGE_API_KEY"
Antwort
{
  "eligible": true,
  "code": "LAUNCH80",
  "discount_percentage": 80,
  "expires_at": "2026-09-30T14:05:00.000Z"
}

Returns the organization's pending (unexpired, unpaid) promo code from signup, if any. An org_id query parameter is ignored.

Rückgabe

200
Promo status.
  • eligiblebooleanerforderlich
  • reasonstring
    Erlaubtno_pending_promowindow_expired
  • codestring
  • discount_percentagenumber
  • expires_atstring
    UTC timestamp, ISO 8601. Every v1 response uses this form, never a raw Firestore Timestamp ({_seconds, _nanoseconds}).
    format: date-time

Fehler

400
The request is missing required fields or contains invalid values.
401
Missing, expired or invalid bearer token.
404
The record does not exist or is not in your organization.
429
Too many requests for this endpoint from your IP. Wait Retry-After seconds.
500
Unexpected server error. Retry later; quote requestId to support.