Webhook Endpoints
5 endpoints. Base URL https://api.paymentsonline.io, sandbox https://api.sandbox-paymentsonline.io.
Every request needs payments-api-key and payments-account.
/v1/webhook-endpointsList all Webhook Endpoints
Returns a list of Webhook Endpoints. The Webhook Endpoints are sorted with the most recently created appearing first.
Query parameters
include_connected_accountsbooleanoptionalWhen true, returns webhook endpoints across the caller account and all descendant merchant accounts. Without this, only endpoints owned by the caller account are returned. Mirrors the same flag on
EventListQueryParams.offsetnumberoptionalThe (zero-based) offset of the first item in the collection to return.
limitnumberoptionalThe maximum number of entries to return. If the value exceeds the maximum, then the maximum value will be used.
Header parameters
payments-accountstringrequiredThe id of the Paydude Account (usually starting with the prefix
acct_) that the request is performed on behalf of. Must be a merchant (connected) account id, not the partner account you signed up with; a partner account passes GET /v1/accounts and then fails with "not enabled for this account" on the first payment call.
Responses
200PaginatedDto | object
has_morebooleanrequiredWhether or not there are more elements available after this set. If
false, this set comprises the end of the list.limitnumberoptionalThe maximum number of entries to return. If the value exceeds the maximum, then the maximum value will be used.
offsetnumberoptionalThe (zero-based) offset of the first item in the collection to return.
totalnumberoptionalThe total items count.
itemsarray of WebhookEndpointrequired
/v1/webhook-endpointsCreate a Webhook Endpoint
Creates a Webhook Endpoint.
Header parameters
payments-accountstringrequiredThe id of the Paydude Account (usually starting with the prefix
acct_) that the request is performed on behalf of. Must be a merchant (connected) account id, not the partner account you signed up with; a partner account passes GET /v1/accounts and then fails with "not enabled for this account" on the first payment call.
Request body application/jsonrequired
descriptionstringoptionalAn optional description of what the webhook is used for.
enabled_eventsarray of string (* | account.updated | charge.captured | charge.expired | charge.failed | charge.succeeded | charge.pending | charge.refunded | …)requiredThe list of events to enable for this endpoint. You may specify
['*']to enable all events.urlstringrequiredThe URL of the webhook endpoint.
Responses
201WebhookEndpoint
account_idstringrequiredThe id of the associated account.
created_atstring date-timerequiredTime at which the object was created.
descriptionstringoptionalAn optional description of what the webhook is used for.
enabled_eventsarray of string (* | account.updated | charge.captured | charge.expired | charge.failed | charge.succeeded | charge.pending | charge.refunded | …)requiredThe list of events to enable for this endpoint. You may specify
['*']to enable all events.idstringrequiredUnique identifier for the object.
inactive_atstring date-timeoptionalTimestamp of the most recent transition into
inactive. Used as the reference date for promotinginactive → disabled: an endpoint must have been continuously inactive for the disabled threshold before it will be disabled. Cleared on any transition out ofinactive.reenabled_atstring date-timeoptionalTimestamp of the most recent re-enablement (partner or admin sets status → active/pending). Used as the reference date for health degradation when there is no prior successful delivery.
secretstringoptionalThe endpoint's secret, used to generate webhook signatures. Only returned at creation.
statusstring (active | pending | inactive | disabled)requiredThe health status of the endpoint: -
active— Normal operation. -pending— Re-enabled and awaiting a successful delivery. -inactive— No successful delivery in 3+ days. Events are queued but delivery is not attempted. -disabled— Has beeninactivefor 7+ days. Events are unrecoverable.updated_atstring date-timerequiredTime at which the object was last updated.
urlstringrequiredThe URL of the webhook endpoint.
/v1/webhook-endpoints/{id}Delete a Webhook Endpoint
Deletes a Webhook Endpoint. This cannot be undone.
Path parameters
idstringrequired
Header parameters
payments-accountstringrequiredThe id of the Paydude Account (usually starting with the prefix
acct_) that the request is performed on behalf of. Must be a merchant (connected) account id, not the partner account you signed up with; a partner account passes GET /v1/accounts and then fails with "not enabled for this account" on the first payment call.
Responses
204object
/v1/webhook-endpoints/{id}Get a Webhook Endpoint
Retrieves the details of an existing Webhook Endpoint.
Path parameters
idstringrequired
Header parameters
payments-accountstringrequiredThe id of the Paydude Account (usually starting with the prefix
acct_) that the request is performed on behalf of. Must be a merchant (connected) account id, not the partner account you signed up with; a partner account passes GET /v1/accounts and then fails with "not enabled for this account" on the first payment call.
Responses
200WebhookEndpoint
account_idstringrequiredThe id of the associated account.
created_atstring date-timerequiredTime at which the object was created.
descriptionstringoptionalAn optional description of what the webhook is used for.
enabled_eventsarray of string (* | account.updated | charge.captured | charge.expired | charge.failed | charge.succeeded | charge.pending | charge.refunded | …)requiredThe list of events to enable for this endpoint. You may specify
['*']to enable all events.idstringrequiredUnique identifier for the object.
inactive_atstring date-timeoptionalTimestamp of the most recent transition into
inactive. Used as the reference date for promotinginactive → disabled: an endpoint must have been continuously inactive for the disabled threshold before it will be disabled. Cleared on any transition out ofinactive.reenabled_atstring date-timeoptionalTimestamp of the most recent re-enablement (partner or admin sets status → active/pending). Used as the reference date for health degradation when there is no prior successful delivery.
secretstringoptionalThe endpoint's secret, used to generate webhook signatures. Only returned at creation.
statusstring (active | pending | inactive | disabled)requiredThe health status of the endpoint: -
active— Normal operation. -pending— Re-enabled and awaiting a successful delivery. -inactive— No successful delivery in 3+ days. Events are queued but delivery is not attempted. -disabled— Has beeninactivefor 7+ days. Events are unrecoverable.updated_atstring date-timerequiredTime at which the object was last updated.
urlstringrequiredThe URL of the webhook endpoint.
/v1/webhook-endpoints/{id}Update a Webhook Endpoint
Updates the Webhook Endpoint by setting the values of the provided parameters. Any parameters not provided will be left unchanged.
Path parameters
idstringrequired
Header parameters
payments-accountstringrequiredThe id of the Paydude Account (usually starting with the prefix
acct_) that the request is performed on behalf of. Must be a merchant (connected) account id, not the partner account you signed up with; a partner account passes GET /v1/accounts and then fails with "not enabled for this account" on the first payment call.
Request body application/jsonrequired
descriptionstringoptionalAn optional description of what the webhook is used for.
enabled_eventsarray of string (* | account.updated | charge.captured | charge.expired | charge.failed | charge.succeeded | charge.pending | charge.refunded | …)optionalThe list of events to enable for this endpoint. You may specify
['*']to enable all events.statusstring (active)optionalSet to
activeto re-enable aninactiveordisabledendpoint. The endpoint transitions topendingand is promoted toactiveautomatically after the first successful delivery.urlstringoptionalThe URL of the webhook endpoint.
Responses
200WebhookEndpoint
account_idstringrequiredThe id of the associated account.
created_atstring date-timerequiredTime at which the object was created.
descriptionstringoptionalAn optional description of what the webhook is used for.
enabled_eventsarray of string (* | account.updated | charge.captured | charge.expired | charge.failed | charge.succeeded | charge.pending | charge.refunded | …)requiredThe list of events to enable for this endpoint. You may specify
['*']to enable all events.idstringrequiredUnique identifier for the object.
inactive_atstring date-timeoptionalTimestamp of the most recent transition into
inactive. Used as the reference date for promotinginactive → disabled: an endpoint must have been continuously inactive for the disabled threshold before it will be disabled. Cleared on any transition out ofinactive.reenabled_atstring date-timeoptionalTimestamp of the most recent re-enablement (partner or admin sets status → active/pending). Used as the reference date for health degradation when there is no prior successful delivery.
secretstringoptionalThe endpoint's secret, used to generate webhook signatures. Only returned at creation.
statusstring (active | pending | inactive | disabled)requiredThe health status of the endpoint: -
active— Normal operation. -pending— Re-enabled and awaiting a successful delivery. -inactive— No successful delivery in 3+ days. Events are queued but delivery is not attempted. -disabled— Has beeninactivefor 7+ days. Events are unrecoverable.updated_atstring date-timerequiredTime at which the object was last updated.
urlstringrequiredThe URL of the webhook endpoint.
