Skip to main content
Webhook subscriptions let you register HTTPS endpoints that TagPay calls whenever specific events occur in your account. Each subscription can listen to one or more event types, and you can manage them independently without changing your existing callback URL configuration.
Before subscriptions take effect, make sure your webhook mode is set to SUBSCRIPTIONS or BOTH. See Get webhook settings below.

Create a subscription

Register a new webhook endpoint.

Request body

string
required
The HTTPS URL TagPay will POST events to. Must be a publicly reachable endpoint. HTTP URLs are not accepted in production.
string[]
required
Array of event type strings to subscribe to. At least one event is required. Use ["*"] to subscribe to all events. See Event Types for the full list.
string
Optional human-readable label for the subscription, useful when managing multiple endpoints.

Response

boolean
true when the subscription was created.
string
"Webhook subscription created successfully".
object
The created subscription.

List subscriptions

Retrieve all webhook subscriptions for your merchant account.

Query parameters

number
default:"1"
Page number for pagination.
number
default:"10"
Number of records per page.
boolean
default:"false"
When true, only returns active subscriptions.

Response

boolean
true when the request succeeded.
object[]
Array of subscription objects.
object
Pagination metadata.
string[]
Complete list of available event types for reference.

Get a subscription

Retrieve a single subscription by its ID.

Path parameters

string
required
The UUID of the subscription.

Update a subscription

Modify an existing subscription’s URL, events, description, or active status.

Path parameters

string
required
The UUID of the subscription to update.

Request body

string
New HTTPS endpoint URL.
string[]
Updated list of event types to subscribe to.
string
Updated description.
boolean
Set to false to pause deliveries to this subscription without deleting it.

Delete a subscription

Permanently remove a webhook subscription. In-flight deliveries for this subscription will not be retried.

Path parameters

string
required
The UUID of the subscription to delete.

Get webhook settings

Retrieve your current webhook delivery mode and configured callback URLs.

Response

object

Update webhook settings

Change the webhook delivery mode for your merchant account.

Request body

string
required
The delivery mode to activate. Must be one of:
  • LEGACY — deliver only to your profile’s callback URL.
  • SUBSCRIPTIONS — deliver only to matching webhook subscriptions.
  • BOTH — deliver to both the callback URL and matching subscriptions. Use this during migration.
If you are migrating from the legacy callback URL to subscriptions, set the mode to BOTH first. Once you have verified your subscription endpoint is receiving events correctly, switch to SUBSCRIPTIONS.

Send a test event

Immediately deliver a test payload to a subscription endpoint to verify your integration without waiting for a real event.

Path parameters

string
required
The UUID of the subscription to test.

Request body

string
The event type to simulate, e.g. transaction.success. Defaults to test.webhook when omitted.

Response

boolean
true when your endpoint returned a 2xx HTTP status.
number
The HTTP status code your endpoint returned.
number
Round-trip response time in milliseconds.
string
Result description.

Replay a failed delivery

Create a new delivery attempt for a previously failed webhook delivery.

Path parameters

string
required
The UUID of the delivery record to replay. Retrieve delivery IDs from Delivery History.

Response

Returns the newly created delivery record. The new delivery has a reference prefixed with replay-.