Create a webhook
Subscribe to real-time status updates for customers, virtual accounts, and payments. When you create a webhook, you'll receive JSON notifications at your specified endpoint whenever status changes occur.
**Webhook Payload Mapping:**
- If you subscribe to **CUSTOMER STATUS**, your webhook will receive the payload described in the [`customer_status_updated`](/api-reference/webhooks/webhook-customer-status-updated) event.
- If you subscribe to **VBAN STATUS**, your webhook will receive the payload described in the [`virtual_account_status_updated`](/api-reference/webhooks/webhook-virtual-account-status-updated) event.
- If you subscribe to **PAYMENT STATUS**, your webhook will receive the payload described in the [`payment_status_updated`](/api-reference/webhooks/webhook-payment-status-updated) event.
- If you subscribe to **THIRD PARTY CUSTOMER STATUS**, your webhook will receive the payload described in the [`third_party_customer_status_updated`](/api-reference/webhooks/webhook-third-party-customer-status-updated) event.
For details of the payload structure, refer to the respective webhook event definition linked above.
**Authentication:** [Bearer token required](/api-guide/getting-started/authentication#oauth-20-authentication)
Authentication
AuthorizationBearer
OAuth 2.0 Bearer token authentication. This API uses OAuth 2.0 Client Credentials flow. Please refer to the Authentication section for detailed information on how to obtain and use your OAuth credentials.
Request
This endpoint expects an object.
endpoint
The HTTPS URL where webhook notifications will be sent. Must be a publicly accessible endpoint that can receive POST requests.
event_type
The type of event to subscribe to.
Allowed values:
Response
Webhook created successfully
id
Unique subscription ID for this webhook subscription.