Core API
- Checkout
- Checkout Links
- Custom Checkout Fields
- Customers
- Subscriptions
- Orders
- Discounts
- Refunds
- Products
- Benefits
- License Keys
- Files
- Organizations
- Metrics
Customer Portal API
- GETGet Customer
- GETGet Organization
- Sessions
- Subscriptions
- Orders
- License Keys
- File Downloads
Webhook Events
- Customer Events
- Billing Events
- Checkout
- Subscriptions
- Orders
- Refunds
- Benefit Grants
- Organization Events
OAuth 2.0 API
- Connect
- Clients
benefit_grant.updated
Sent when a new benefit grant is updated.
Discord & Slack support: Basic
"benefit_grant.updated"
"benefit_grant.updated"
Creation timestamp of the object.
Last modification timestamp of the object.
The ID of the grant.
Whether the benefit is granted.
Whether the benefit is revoked.
The ID of the subscription that granted this benefit.
The ID of the order that granted this benefit.
The ID of the customer concerned by this grant.
The ID of the benefit concerned by this grant.
A customer in an organization.
The ID of the customer.
"992fae2a-2a17-4b7a-8d9e-e287cf90131b"
Creation timestamp of the object.
Last modification timestamp of the object.
The ID of the customer in your system. This must be unique within the organization. Once set, it can't be updated.
"usr_1337"
The email address of the customer. This must be unique within the organization.
"customer@example.com"
Whether the customer email address is verified. The address is automatically verified when the customer accesses the customer portal using their email address.
true
The name of the customer.
"John Doe"
"US"
["911144442", "us_ein"]
The ID of the organization owning the customer.
"1dbfc517-0bbf-4301-9ba8-555ca42b9737"
Timestamp for when the customer was soft deleted.
"https://www.gravatar.com/avatar/xxx?d=blank"
A benefit of type custom
.
Use it to grant any kind of benefit that doesn't fit in the other types.
Creation timestamp of the object.
Last modification timestamp of the object.
The ID of the benefit.
"custom"
The description of the benefit.
Whether the benefit is selectable when creating a product.
Whether the benefit is deletable.
The ID of the organization owning the benefit.
Properties for a benefit of type custom
.
Private note to be shared with customers who have this benefit granted.
The timestamp when the benefit was granted. If None
, the benefit is not granted.
The timestamp when the benefit was revoked. If None
, the benefit is not revoked.
Was this page helpful?
{
"type": "benefit_grant.updated",
"data": {
"created_at": "2023-11-07T05:31:56Z",
"modified_at": "2023-11-07T05:31:56Z",
"id": "<string>",
"granted_at": "2023-11-07T05:31:56Z",
"is_granted": true,
"revoked_at": "2023-11-07T05:31:56Z",
"is_revoked": true,
"subscription_id": "<string>",
"order_id": "<string>",
"customer_id": "<string>",
"user_id": "<string>",
"benefit_id": "<string>",
"customer": {
"id": "992fae2a-2a17-4b7a-8d9e-e287cf90131b",
"created_at": "2023-11-07T05:31:56Z",
"modified_at": "2023-11-07T05:31:56Z",
"metadata": {},
"external_id": "usr_1337",
"email": "customer@example.com",
"email_verified": true,
"name": "John Doe",
"billing_address": {
"line1": "<string>",
"line2": "<string>",
"postal_code": "<string>",
"city": "<string>",
"state": "<string>",
"country": "US"
},
"tax_id": [
"911144442",
"us_ein"
],
"organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737",
"deleted_at": "2023-11-07T05:31:56Z",
"avatar_url": "https://www.gravatar.com/avatar/xxx?d=blank"
},
"properties": {
"account_id": "<string>",
"guild_id": "<string>",
"role_id": "<string>"
},
"benefit": {
"created_at": "2023-11-07T05:31:56Z",
"modified_at": "2023-11-07T05:31:56Z",
"id": "<string>",
"type": "<string>",
"description": "<string>",
"selectable": true,
"deletable": true,
"organization_id": "<string>",
"properties": {
"note": "<string>"
},
"is_tax_applicable": true
},
"previous_properties": {
"account_id": "<string>",
"guild_id": "<string>",
"role_id": "<string>"
}
}
}