Inbound provider webhook
const url = 'https://api.sulpayments.ch/webhooks/example';const options = {method: 'POST', headers: {'Content-Type': 'text/plain'}, body: 'example'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.sulpayments.ch/webhooks/example \ --header 'Content-Type: text/plain' \ --data exampleThe endpoint providers post settlement events to. It is provider-facing, not merchant-facing; merchants receive outbound settlement notifications instead (see the settlement notifications guide).
Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”The provider's registered name, assigned during provider onboarding
Request Bodyrequired
Section titled “Request Bodyrequired”Provider payload, verified against the provider's signature scheme
Responses
Section titled “Responses”Accepted or duplicate delivery
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
Raw-log id assigned to this delivery when one was recorded.
Example
{ "status": "accepted"}Authentic but malformed payload
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
Raw-log id assigned to this delivery when one was recorded.
Example
{ "status": "accepted"}Signature verification failed
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
Raw-log id assigned to this delivery when one was recorded.
Example
{ "status": "accepted"}Unknown provider
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
Raw-log id assigned to this delivery when one was recorded.
Example
{ "status": "accepted"}Internal failure, safe to retry
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
Raw-log id assigned to this delivery when one was recorded.
Example
{ "status": "accepted"}