Skip to main content

Merchant Service ((dev))

Download OpenAPI specification:Download

Merchant-facing API. Endpoints for listing accessible merchants and reading/updating the merchant profile.

List merchants accessible to the current user

Returns merchants the authenticated user can access based on their Keycloak token.

Authorizations:
idp

Responses

Response samples

Content type
application/json
{
  • "merchants": [
    ]
}

Get merchant profile

Returns the full profile of the active merchant identified by the x-logitrail-merchant-id header.

Authorizations:
idp
header Parameters
x-logitrail-merchant-id
required
string non-empty

Logitrail's Merchant ID.

Responses

Response samples

Content type
application/json
{
  • "merchant_profile": {
    }
}

Update merchant profile

Updates editable fields of the active merchant profile. PATCH semantics — only supplied fields are updated. Read-only fields (id, status, invoicing.payment_term_days, logo_url) are not accepted.

Authorizations:
idp
header Parameters
x-logitrail-merchant-id
required
string non-empty

Logitrail's Merchant ID.

Responses

Response samples

Content type
application/json
{
  • "merchant_profile": {
    }
}