Skip to main content
WEBHOOK
membership.activated
{
  "id": "msg_xxxxxxxxxxxxxxxxxxxxxxxx",
  "api_version": "v1",
  "timestamp": "2025-01-01T00:00:00.000Z",
  "type": "membership.activated",
  "data": {
    "id": "mem_xxxxxxxxxxxxxx",
    "status": "trialing",
    "created_at": "2023-12-01T05:00:00.401Z",
    "updated_at": "2023-12-01T05:00:00.401Z",
    "manage_url": "<string>",
    "member": {
      "id": "mber_xxxxxxxxxxxxx"
    },
    "user": {
      "id": "user_xxxxxxxxxxxxx",
      "username": "<string>",
      "name": "<string>"
    },
    "renewal_period_start": "2023-12-01T05:00:00.401Z",
    "renewal_period_end": "2023-12-01T05:00:00.401Z",
    "cancel_at_period_end": true,
    "cancellation_reason": "<string>",
    "canceled_at": "2023-12-01T05:00:00.401Z",
    "currency": "usd",
    "company": {
      "id": "biz_xxxxxxxxxxxxxx",
      "title": "<string>"
    },
    "plan": {
      "id": "plan_xxxxxxxxxxxxx"
    },
    "promo_code": {
      "id": "promo_xxxxxxxxxxxx"
    },
    "license_key": "<string>",
    "metadata": {},
    "payment_collection_paused": true
  }
}

Headers

webhook-signature
string
required

The signature of the webhook request with the webhook version prepended

Example:

"v1,BASE64ENCODEDSIGNATURE"

webhook-timestamp
string
required

The timestamp in seconds since the Unix epoch that the webhook was sent at on the server

Example:

"1727606400"

Body

application/json
id
string
required

A unique ID for every single webhook request

Example:

"msg_xxxxxxxxxxxxxxxxxxxxxxxx"

api_version
string
required

The API version for this webhook

Allowed value: "v1"
Example:

"v1"

timestamp
string<date-time>
required

The timestamp in ISO 8601 format that the webhook was sent at on the server

Example:

"2025-01-01T00:00:00.000Z"

type
string
required

The webhook event type

Allowed value: "membership.activated"
Example:

"membership.activated"

data
object
required

A membership represents a purchase between a User and a Company for a specific Product.

Response

200

Return a 200 status to indicate that the data was received successfully

I