Skip to content

Inbound provider webhook

POST
/webhooks/{provider}
curl --request POST \
--url https://api.sulpayments.ch/webhooks/example \
--header 'Content-Type: text/plain' \
--data example

The endpoint providers post settlement events to. It is provider-facing, not merchant-facing; merchants receive outbound settlement notifications instead (see the settlement notifications guide).

provider
required
string

The provider's registered name, assigned during provider onboarding

Provider payload, verified against the provider's signature scheme

Media typetext/plain
string

Accepted or duplicate delivery

Media typeapplication/json

Outcome of an inbound provider webhook. Providers should treat any 2xx as final; other statuses may be retried by the provider's own policy.

object
log_id

Raw-log id assigned to this delivery when one was recorded.

string | null format: uuid
status
required
string
Allowed values: accepted duplicate invalid_signature malformed provider_disabled unknown_provider error
Example
{
"status": "accepted"
}

Authentic but malformed payload

Media typeapplication/json

Outcome of an inbound provider webhook. Providers should treat any 2xx as final; other statuses may be retried by the provider's own policy.

object
log_id

Raw-log id assigned to this delivery when one was recorded.

string | null format: uuid
status
required
string
Allowed values: accepted duplicate invalid_signature malformed provider_disabled unknown_provider error
Example
{
"status": "accepted"
}

Signature verification failed

Media typeapplication/json

Outcome of an inbound provider webhook. Providers should treat any 2xx as final; other statuses may be retried by the provider's own policy.

object
log_id

Raw-log id assigned to this delivery when one was recorded.

string | null format: uuid
status
required
string
Allowed values: accepted duplicate invalid_signature malformed provider_disabled unknown_provider error
Example
{
"status": "accepted"
}

Unknown provider

Media typeapplication/json

Outcome of an inbound provider webhook. Providers should treat any 2xx as final; other statuses may be retried by the provider's own policy.

object
log_id

Raw-log id assigned to this delivery when one was recorded.

string | null format: uuid
status
required
string
Allowed values: accepted duplicate invalid_signature malformed provider_disabled unknown_provider error
Example
{
"status": "accepted"
}

Internal failure, safe to retry

Media typeapplication/json

Outcome of an inbound provider webhook. Providers should treat any 2xx as final; other statuses may be retried by the provider's own policy.

object
log_id

Raw-log id assigned to this delivery when one was recorded.

string | null format: uuid
status
required
string
Allowed values: accepted duplicate invalid_signature malformed provider_disabled unknown_provider error
Example
{
"status": "accepted"
}