const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
event_types: ['business.registration.updated', 'business.filing.due'],
metadata: {customer_tier: 'premium', monitoring_level: 'enhanced'}
})
};
fetch('https://api.getpalm.com/v1/business/{business_id}/subscription', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"id": "123e4567-e89b-12d3-a456-426614174000",
"object": "subscription",
"resource_type": "business",
"resource_id": "123e4567-e89b-12d3-a456-426614174000",
"event_types": [
"business.registration.updated",
"business.filing.due"
],
"status": "active",
"metadata": {
"customer_tier": "premium",
"monitoring_level": "enhanced"
},
"created_at": "2025-10-24T10:30:00Z",
"updated_at": "2025-10-24T15:45:00Z",
"expires_at": "2026-10-24T10:30:00Z"
}Subscribe to monitoring events for a business to receive real-time notifications about watchlist hits, registration updates, ownership changes, and other compliance events.
const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
event_types: ['business.registration.updated', 'business.filing.due'],
metadata: {customer_tier: 'premium', monitoring_level: 'enhanced'}
})
};
fetch('https://api.getpalm.com/v1/business/{business_id}/subscription', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"id": "123e4567-e89b-12d3-a456-426614174000",
"object": "subscription",
"resource_type": "business",
"resource_id": "123e4567-e89b-12d3-a456-426614174000",
"event_types": [
"business.registration.updated",
"business.filing.due"
],
"status": "active",
"metadata": {
"customer_tier": "premium",
"monitoring_level": "enhanced"
},
"created_at": "2025-10-24T10:30:00Z",
"updated_at": "2025-10-24T15:45:00Z",
"expires_at": "2026-10-24T10:30:00Z"
}Enter your API key in the format: sk_test_xxxxx or sk_live_xxxxx
Business ID
List of webhook event types to subscribe to for monitoring notifications
1business.registration.updated, business.filing.due, business.filing.overdue [
"business.registration.updated",
"business.filing.due"
]Custom metadata for the subscription
{
"customer_tier": "premium",
"monitoring_level": "enhanced"
}Subscription created successfully
Unique identifier for the subscription
"123e4567-e89b-12d3-a456-426614174000"
Object type identifier
subscription "subscription"
Type of resource being monitored
user, business "business"
ID of the user or business being monitored
"123e4567-e89b-12d3-a456-426614174000"
List of webhook event types subscribed to for monitoring notifications
business.registration.updated, business.filing.due, business.filing.overdue [
"business.registration.updated",
"business.filing.due"
]Current status of the subscription
active, paused, expired, cancelled "active"
Custom metadata for the subscription
{
"customer_tier": "premium",
"monitoring_level": "enhanced"
}ISO 8601 timestamp when the subscription was created
"2025-10-24T10:30:00Z"
ISO 8601 timestamp when the subscription was last updated
"2025-10-24T15:45:00Z"
ISO 8601 timestamp when the subscription expires (for paid subscriptions)
"2026-10-24T10:30:00Z"
Was this page helpful?