POST
/
v1
/
auth
curl -X POST https://api-eu.sulpayments.ch/v1/auth \
  -H "Authorization: Basic eW91cl9jbGllbnRfaWQ6eW91cl9jbGllbnRfc2VjcmV0"
{
  "token": "eyJhbGciOiJIUzI1NiJ9...",
  "expire_minutes": 30,
  "type": "Bearer"
}
Returns a Bearer token used to authenticate every other API request.

Authorization

Use HTTP Basic authentication. Encode client_id:client_secret in Base64.
Authorization
string
required
Basic {base64(client_id:client_secret)}

Response

token
string
Bearer token for subsequent API calls.
expire_minutes
integer
Token lifetime in minutes. Currently 30.
type
string
Always Bearer.
curl -X POST https://api-eu.sulpayments.ch/v1/auth \
  -H "Authorization: Basic eW91cl9jbGllbnRfaWQ6eW91cl9jbGllbnRfc2VjcmV0"
{
  "token": "eyJhbGciOiJIUzI1NiJ9...",
  "expire_minutes": 30,
  "type": "Bearer"
}