Configure or update the tenant's settlement facilitator
const url = 'https://example.com/v1/settlement/config';const options = { method: 'PATCH', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"facilitator_url":"https://example.com","facilitator_credential_ref":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PATCH \ --url https://example.com/v1/settlement/config \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "facilitator_url": "https://example.com", "facilitator_credential_ref": "example" }'Both fields are optional on the wire; an absent field leaves its current value unchanged. The first configure call for a tenant must supply both (spec 0006 Decision 1). facilitator_credential_ref must resolve to a credential owned by the same tenant.
Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”Both fields optional; an absent field leaves the current value unchanged. The first configure call for a tenant must supply both.
object
Must be https with a host; loopback/private/link-local hosts and localhost are rejected.
Must resolve to a credential owned by the same tenant.
Examplegenerated
{ "facilitator_url": "https://example.com", "facilitator_credential_ref": "example"}Responses
Section titled “Responses”The updated settlement configuration.
object
Examplegenerated
{ "facilitator_url": "https://example.com", "facilitator_credential_ref": "example", "created_at": "2026-04-15T12:00:00Z", "updated_at": "2026-04-15T12:00:00Z"}Empty field value, an invalid facilitator_url, an unresolvable facilitator_credential_ref, or an incomplete first configure.
The uniform error body for all 4xx responses that carry one.
object
A coarse, caller-safe message. Never contains internal state (invariant
Examplegenerated
{ "error": "example"}Missing or invalid bearer token, or the token’s tenant/user claims are absent. No body.
An unexpected server-side error. No body (internal detail is never returned to callers, invariant