Live promo offer for the caller's organization
get
https://api.expiryedge.com/v1/getPromoStatusany 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.
200
Promo status.
eligiblebooleanerforderlichreasonstringErlaubtno_pending_promowindow_expiredcodestringdiscount_percentagenumberexpires_atstringUTC timestamp, ISO 8601. Every v1 response uses this form, never a raw Firestore Timestamp ({_seconds, _nanoseconds}).format: date-time
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. |
