Skip to content

List partner webhook endpoints (incl. pause and disable state)

GET
/v1/partner/webhooks
curl --request GET \
--url https://api.emite.cr/v1/partner/webhooks

The endpoints this partner registered, oldest first (removed ones are left out); each receives the events it subscribed to, of its environment, for EVERY company the partner manages. Each one carries its url, environment, events, status — active; paused after 10 failed attempts in a row, its deliveries waiting (heldDeliveries) until a probe (nextProbeAt) gets through and resumes it; or disabled (auto_failures) after 7 days paused without a success — the failure count and the last success and failure. The signing secret is never returned again; rotate it to get a new one. A partner endpoint has no members to email: watch status here.

x-partner-key
string

Partner app credential (ecp_*)

Media typeapplication/json
Array<object>
object
id
required

Identifier of the endpoint — what unregistering it takes: DELETE /v1/webhooks/:id, or DELETE /v1/partner/webhooks/:webhookId for a partner's endpoint.

string format: uuid
environment
required

The environment whose events it receives — sandbox or production, never both — fixed at registration: every event it is sent carries this environment. To receive both, register one endpoint in each, each with its own secret.

string
Allowed values: sandbox production
url
required

The https:// URL each event is POSTed to, as registered.

string
events
required

The event types the endpoint receives, without repeats. They are fixed at registration: to change them, register a new endpoint. A type added to the catalog later never reaches an endpoint registered before it.

Array<string>
Allowed values: invoice.submitted invoice.accepted invoice.rejected invoice.error credentials.rejected credentials.restored
description
required

The free text given at registration to tell the endpoints apart; null when none was given.

string
nullable
status
required

active: it receives the events it subscribed to. paused: its last attempts all failed, so its deliveries wait (heldDeliveries) and one of them probes it now and then (nextProbeAt); the first success resumes it — a probe, a redelivery, or a test. disabled: it stayed paused for days without a success and receives nothing (see disabledReason) until a test of it succeeds, which reactivates it.

string
Allowed values: active paused disabled
consecutiveFailures
required

Delivery attempts that failed in a row since the last successful one, retries included and across all event types; back to 0 after a success. At 10 the endpoint is paused.

number
failingSince
required

When the current streak of failed attempts began; null while the last attempt succeeded. A paused endpoint whose streak is 7 days old is disabled.

string format: date-time
nullable
lastSuccessAt
required

When a delivery to it last succeeded; null when none has yet.

string format: date-time
nullable
lastFailureAt
required

When a delivery attempt to it last failed; null when none has.

string format: date-time
nullable
pausedAt
required

When the current pause began; null unless status is paused.

string format: date-time
nullable
nextProbeAt
required

When a paused endpoint is probed next, with the delivery that has waited longest: 5 minutes after the pause, then half of how long it has been paused, at most an hour apart (later if it answered with Retry-After). null unless status is paused.

string format: date-time
nullable
heldDeliveries
required

Deliveries waiting for this endpoint while it is paused. They go out, oldest first, as soon as it answers again; one whose window ends first (72 hours from its first attempt, 24 in sandbox) is recorded as expired.

number
disabledAt
required

When it was disabled; null unless status is disabled.

string format: date-time
nullable
disabledReason
required

Why it was disabled: auto_failures — it stayed paused for 7 days without a single successful delivery. null unless status is disabled.

string
nullable
Allowed values: auto_failures
previousSecretExpiresAt
required

After a secret rotation, until when the previous secret still signs each delivery next to the new one (a second v1 in X-Emitecr-Signature); null when only one secret signs. The secret cannot be rotated again until then.

string format: date-time
nullable
createdAt
required

When it was registered.

string format: date-time
Example
[
{
"environment": "sandbox",
"url": "https://example.com/webhooks/emitecr",
"events": [
"invoice.accepted",
"invoice.rejected"
],
"description": "Production ERP integration",
"status": "active",
"consecutiveFailures": 0,
"heldDeliveries": 0,
"disabledReason": "auto_failures"
}
]