Overview
Create a new webhook subscription to receive real-time notifications when specific events occur in your Ivy account. Webhooks allow you to stay informed about payment status changes, checkout completions, and other important events without polling the API.This endpoint requires authentication using your API key in the
X-Ivy-Api-Key
header.Request Parameters
The URL where webhook events will be sent. Must be a valid HTTPS URL.
Array of event types to subscribe to. Available event types include:
checkout_session.completed
- When a checkout session is successfully completedcheckout_session.expired
- When a checkout session expirespayout.paid
- When a payout is successfully processedpayout.failed
- When a payout failsrefund.succeeded
- When a refund is successfully processedrefund.failed
- When a refund fails
Optional description for the webhook subscription to help identify its purpose.
Example Request
Example Response
Webhook Security
Keep your webhook signing secret secure!
The response includes awebhook_signing_secret
that you’ll need to verify webhook signatures. Store this securely and never expose it in client-side code.X-Ivy-Signature
header that you can verify using the webhook signing secret to ensure the request is coming from Ivy.
Error Responses
Next Steps
After creating a webhook subscription:- Test the webhook: Use the trigger test webhook endpoint to verify your endpoint is working
- Implement signature verification: Use the webhook signing secret to verify incoming webhook requests
- Monitor webhook delivery: Check the list webhook subscriptions endpoint to monitor delivery status