Webhooks
Get a paginated list of webhook subscriptions with optional filtering
- : Read webhook subscriptions and events
Number of items to return
100Cursor for forward pagination
Cursor for backward pagination
Filter by webhook topic
Filter by active status
OK
gaFpxBACEaXBVABEYbHG+X9LyLnHtruegaFpxBACEaXBVABEYbHG+X9LyLnHGET /webhooks HTTP/1.1
Host: public-api.alternativepayments.io
Authorization: Bearer YOUR_OAUTH2_TOKEN
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
- : Manage webhook subscriptions
Subscribe to a webhook
Created
Webhook subscription information
Bad Request
Unprocessable Entity
POST /webhooks HTTP/1.1
Host: public-api.alternativepayments.io
Authorization: Bearer YOUR_OAUTH2_TOKEN
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
- : Manage webhook subscriptions
Subscription ID
OK
Webhook subscription information
Bad Request
Not Found
DELETE /webhooks/{subscription_id} HTTP/1.1
Host: public-api.alternativepayments.io
Authorization: Bearer YOUR_OAUTH2_TOKEN
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
- : Read webhook subscriptions and events
Number of items to return
100Cursor 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
gaFpxBACEaXBVABEYbHG+X9LyLnHtruegaFpxBACEaXBVABEYbHG+X9LyLnHGET /webhooks/events HTTP/1.1
Host: public-api.alternativepayments.io
Authorization: Bearer YOUR_OAUTH2_TOKEN
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
- : Manage webhook subscriptions
OK
Response from retrying webhooks
Bad Request
Internal Server Error
POST /webhooks/retry HTTP/1.1
Host: public-api.alternativepayments.io
Authorization: Bearer YOUR_OAUTH2_TOKEN
Accept: */*
{
"message": "text"
}Last updated
Was this helpful?
