Generate Token

POST /authorization/login

Body Required

  • appClientId string Required
  • appClientSecret string Required

Responses

  • 401
    Hide response attributes Show response attributes object
    • message object Required
    • data object Required
  • 200
    Hide response attributes Show response attributes object
    • access_token string Required
    • expires_in number Required
    • token_type string Required
  • 422
    Hide response attributes Show response attributes object
    • message object Required
    • data object Required
  • 400
    Hide response attributes Show response attributes object
    • message object Required
    • data object Required
POST /authorization/login
curl \
 -X POST https://open-api.hml.soupi.com.br/authorization/login \
 -H "Content-Type: application/json" \
 -d '{"appClientId":"string","appClientSecret":"string"}'
Request example
{
  "appClientId": "string",
  "appClientSecret": "string"
}
Request examples
{
  "appClientId": "string",
  "appClientSecret": "string"
}
Response examples (401)
{
  "message": {},
  "data": {}
}
Response examples (401)
{
  "message": {},
  "data": {}
}
Response examples (200)
{
  "access_token": "string",
  "expires_in": 42.0,
  "token_type": "string"
}
Response examples (200)
{
  "access_token": "string",
  "expires_in": 42.0,
  "token_type": "string"
}
Response examples (422)
{
  "message": {},
  "data": {}
}
Response examples (422)
{
  "message": {},
  "data": {}
}
Response examples (400)
{
  "message": {},
  "data": {}
}
Response examples (400)
{
  "message": {},
  "data": {}
}