List settlements
const url = 'https://api.sulpayments.ch/v1/settlements';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://api.sulpayments.ch/v1/settlements \ --header 'Authorization: Bearer <token>'Returns the authenticated merchant's completed settlements, newest first. The payload is the same merchant-visible slice as the settlement-completed webhook: it never includes internal pricing, spread revenue or partner commission.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”Page size (1-200, default 50)
Rows to skip (0-10000, default 0)
Responses
Section titled “Responses”A page of the merchant's settlements
object
One completed settlement, as the owning merchant sees it. Mirrors the settlement-completed webhook payload exactly — no internal figures.
object
Example
{ "settlements": [ { "conversion_rate": "1.1232", "fee_fixed": "0.5", "fee_percentage": "0.01", "fee_percentage_amount": "0.961538", "incoming_amount": "108", "outgoing_amount": "94.692307692307692308" } ]}Missing or invalid API key
The error envelope every 4xx/5xx response uses. The error.code is
machine-stable across locales; error.message is localized via the
request's Accept-Language (en by default). error.fields is present only
for per-field validation failures.
object
The body of an [ErrorEnvelope].
object
Machine-stable error code (stable across locales).
Per-field validation errors, present only for validation_failed.
One field-level validation failure inside [ApiError::fields].
object
The machine-stable reason code for this field.
The request field the error applies to (e.g. webhook_url).
Human-readable message, localized by Accept-Language.
Example
{ "error": { "code": "invalid_credentials", "fields": [ { "code": "invalid_credentials" } ], "message": "One or more fields are invalid." }}