Skip to main content
WEBHOOK
subscription.billing_month.ends_soon
{
  "type": "subscription.billing_month.ends_soon",
  "messageId": "a6ce...",
  "traceId": "549a...",
  "entityId": "subscription-uuid",
  "id": "subscription-id",
  "status": "ACTIVE",
  "paymentCollection": "NOT_REQUIRED",
  "startDate": "2023-06-10T11:22:33.001Z",
  "currentBillingMonthStart": "2024-10-10T11:22:33.001Z",
  "currentBillingMonthEnd": "2024-11-10T11:22:33.001Z",
  "currentBillingPeriodStart": "2024-06-10T11:22:33.001Z",
  "currentBillingPeriodEnd": "2025-06-10T11:22:33.001Z",
  "billingPeriod": "ANNUALLY",
  "billingCurrency": "ILS",
  "customer": {
    "entityId": "customer-uuid",
    "id": "customer-b7df1a",
    "name": "",
    "email": null,
    "billingId": "cus_UVYxCkbcw2IAVE",
    "crmId": null,
    "salesforceId": null,
    "metadata": null
  },
  "plan": {
    "id": "plan-pro",
    "name": "Pro",
    "description": null,
    "pricingType": "PAID",
    "status": "PUBLISHED"
  },
  "addons": [],
  "metadata": null,
  "entitlements": [
    {
      "feature": {
        "id": "feature-01-stores",
        "name": "Stores",
        "description": "",
        "unit": "Store",
        "units": "Stores"
      },
      "usageLimit": 5,
      "currentUsage": 3,
      "usagePeriodAnchor": null,
      "usagePeriodStart": null,
      "usagePeriodEnd": null,
      "resetPeriod": null
    }
  ]
}

Body

application/json

Minimal subscription object embedded in events.

type
string

Event type discriminator.

messageId
string

Unique webhook message ID.

traceId
string

Correlation ID for tracing.

timestamp
string<date-time> | null

Time the event occurred (may be omitted in some events).

entityId
string | null

Stigg UUID of the subscription entity.

id
string

Subscription identifier in Stigg.

billingId
string | null

Identifier for the subscription in the billing provider.

status
string

Current subscription status (e.g., ACTIVE, PAYMENT_PENDING).

startDate
string<date-time> | null

Subscription start timestamp (ISO 8601).

endDate
string<date-time> | null

Subscription end timestamp if scheduled/ended.

cancellationDate
string<date-time> | null

Effective cancellation timestamp, if canceled.

trialEndDate
string<date-time> | null

Trial end timestamp, if in trial or recently converted.

currentBillingPeriodStart
string<date-time> | null

Start timestamp of the current billing period.

currentBillingPeriodEnd
string<date-time> | null

End timestamp of the current billing period.

billingPeriod
string | null

Billing interval for the plan (e.g., MONTHLY, ANNUALLY).

billingCurrency
string | null

ISO currency code for this subscription’s charges.

isTrialSubscription
boolean | null

Whether the subscription is currently a trial.

paymentCollection
string | null

Whether payment collection is required (e.g., NOT_REQUIRED).

resource
any | null

Resource scoping for the subscription, if resource-based.

plan
object

Minimal plan object embedded in events.

addons
object[]

Add-ons currently attached to the subscription.

customer
object

Minimal customer object embedded in events.

metadata
object

Arbitrary key-value metadata attached to the subscription.

isUpgrade
boolean | null

Whether this change represents an upgrade (when present in subscription.* events).

isDowngrade
boolean | null

Whether this change represents a downgrade (when present in subscription.* events).

experimentInfo
object
currentBillingMonthStart
string<date-time>
currentBillingMonthEnd
string<date-time>
entitlements
object[]