Webhooks
Get a paginated list of webhook subscriptions with optional filtering
Number of items to return
Cursor for forward pagination
Cursor for backward pagination
Filter by webhook topic
Filter by active status
OK
GET /webhooks HTTP/1.1
Host: public-api.alternativepayments.io
Authorization: YOUR_API_KEY
Accept: */*
OK
{
"data": [
{
"created_at": "text",
"endpoint_url": "text",
"id": "text",
"is_active": true,
"partner_id": "text",
"secret_last_4_digits": "text",
"topic": "payout_paid",
"updated_at": "text"
}
],
"end_cursor": "gaFpxBACEaXBVABEYbHG+X9LyLnH",
"has_next_page": true,
"has_previous_page": false,
"start_cursor": "gaFpxBACEaXBVABEYbHG+X9LyLnH"
}
Subscribe to a webhook with the provided information
Subscribe to a webhook
Created
Bad Request
Unprocessable Entity
POST /webhooks HTTP/1.1
Host: public-api.alternativepayments.io
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 65
{
"endpoint_url": "text",
"secret_key": "text",
"topic": "payout_paid"
}
{
"created_at": "text",
"endpoint_url": "text",
"id": "text",
"is_active": true,
"partner_id": "text",
"secret_last_4_digits": "text",
"topic": "payout_paid",
"updated_at": "text"
}
Remove a webhook subscription by ID
Subscription ID
OK
Bad Request
Not Found
DELETE /webhooks/{subscription_id} HTTP/1.1
Host: public-api.alternativepayments.io
Authorization: YOUR_API_KEY
Accept: */*
{
"created_at": "text",
"endpoint_url": "text",
"id": "text",
"is_active": true,
"partner_id": "text",
"secret_last_4_digits": "text",
"topic": "payout_paid",
"updated_at": "text"
}
Get a paginated list of webhook events with optional filtering
Number of items to return
Cursor for forward pagination
Cursor for backward pagination
Filter by webhook topic
Filter by event status
Filter events created after this date (ISO 8601)
Filter events created before this date (ISO 8601)
OK
GET /webhooks/events HTTP/1.1
Host: public-api.alternativepayments.io
Authorization: YOUR_API_KEY
Accept: */*
OK
{
"data": [
{
"created_at": "text",
"id": "text",
"idempotency_key": "text",
"partner_id": "text",
"payload": null,
"sent_at": "text",
"sort_key": 1,
"status": "pending",
"topic": "payout_paid",
"updated_at": "text"
}
],
"end_cursor": "gaFpxBACEaXBVABEYbHG+X9LyLnH",
"has_next_page": true,
"has_previous_page": false,
"start_cursor": "gaFpxBACEaXBVABEYbHG+X9LyLnH"
}
Retry all failed webhook events for the partner
OK
Bad Request
Internal Server Error
POST /webhooks/retry HTTP/1.1
Host: public-api.alternativepayments.io
Authorization: YOUR_API_KEY
Accept: */*
{
"message": "text"
}
Was this helpful?