Skip to main content

Log in and get a token

POST

https://api-v2.test.eldowallet.fr/auth/login

Exchanges a username (username) and password for a JWT access token, returned in token. Then send this token in the Authorization: Bearer <token> header of every request.

Good to know
  • Errors: wrong password gives 401 UNAUTHORIZED, unknown username gives 404 MODEL_NOT_FOUND, a non-administrator account with no wallet gives 400 VALIDATION_ERROR. The JWT expires: for a server-to-server integration, use a wallet token created with POST /wallets/tokens instead of storing a password.

Request​

header parameters
  • x-lang string
    Language for responses
    enum: en, frdefault: "en"
Body application/json required
  • username string required
  • password string required

Responses​

Schema application/json
  • token string required
    The token for the user
    example: 1234567890

API news, once a month

New endpoints, upcoming changes, guides and use cases. No spam, one-click unsubscribe.

Report a technical problem

An API error, a pass that does not update, an email that does not arrive? Describe the problem: our technical team will answer.

For a fast answer, include:

  • The method and endpoint (e.g. POST /clients)
  • The error code returned (errorCode) and the body sent
  • The date and time of the call
  • The identifiers involved (customer, template, pass)

Never include an API token or a password.

AI assistant

Beta

Loading…

AI-generated answers (Claude): double-check important details.

Sign in to use the assistant