Endpoint
Request
Path parameters
| Parameter | Description |
|---|---|
tenantSlug | Your Gatlio tenant slug |
Query parameters
| Parameter | Required | Description |
|---|---|---|
stripe_customer_id | ✓ | The subscriber’s Stripe customer ID (cus_…) |
hmac | HMAC-SHA256(hmacSecret, stripe_customer_id). Strongly recommended in production — prevents a client from spoofing another subscriber’s customer ID |
Headers
| Header | Value |
|---|---|
Authorization | Bearer <publishableKey> |
Example
Response
Fields
| Field | Type | Description |
|---|---|---|
status | "active" | "warning" | "lockout" | Current billing enforcement status |
card_update_url | string | null | URL to the card update page. Present when status is "warning" and a card update URL is configured |
entitlements | object | Capability flags for the subscriber’s tenant tier |
Status values
| Status | Meaning |
|---|---|
active | Payment is current — no enforcement shown |
warning | Soft decline — show dismissable banner nudging card update |
lockout | Hard decline or exhausted retries — show full-screen gate |
Error responses
| Status | Meaning |
|---|---|
401 Unauthorized | Missing or invalid publishable key |
402 Payment Required | Tenant’s Gatlio subscription is suspended |
404 Not Found | Tenant slug not found |
Unknown subscribers
If Gatlio has not seen a givenstripe_customer_id before (no failed payment on record), the response is: