v1

latestOpenAPI 3.0.02026-07-264636241.7 MB
Autenticação

Realizar login

Realizar o login e gera o token com validade de 1 hora

post/autenticacao

Request body

usuariostring required

CPF ou CNPJ do cliente

senhastring required

Senha do cliente

slugstring required

Domínio do portal

documento_internacionalboolean

Informa se o documento passado é internacional

Example request

{
  "usuario": "11111111111",
  "senha": "senha",
  "slug": "default",
  "documento_internacional": true
}

Response

Login válido

access_tokenstring required

JWT de para autenticação

token_typestring required

Tipo da autenticação

expires_ininteger required

Tempo em segundos que o token é válido

Example response

{
  "access_token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJpc3MiOiJodHRwczpcL1wvcmVsYWNpb25hci5jb25zdHJ1dG9yZGV2ZW5kYXMuY29tLmJyIiwic3ViIjoiOTU3OSIsImlhdCI6MTYwOTc4MDMwMSwibmJmIjoxNjA5NzgwMzAxLCJleHAiOjE2MDk3ODM5MDF9.Snlcld9eG-3tp5yeexNPNe2liQcKa789Btqf-RWwY7LmJyQVhO6WriNjZg-ryEkh2DzEzYHcrpsC4OfpYNWm7MY4nN6hPmFWdMKTsrZdes1g6T-IlYi65xHOfg24mD_KSdBzJ1ED_9MtjqocBBWYbOu3MvC4BGslpR2DI9FjA3c",
  "token_type": "Bearer",
  "expires_in": 3600
}