Authorization

Gerar Token de autenticação

Changed on

Todas as requisições submetidas à nossa API devem contemplar um token de autenticação gerado através de um usuário e senha que devem ser fornecidos pela ClearSale. Neste processo, além do token retornamos seu tempo de expiração em segundos. Portanto, é necessário que contemple no seu desenvolvimento o gerenciamento da vida útil do token com base nesse tempo de expiração.

Para o recebimento desse dado é necessário que reserve um espaço de 2048 caracteres.

post/v1/authentication

Request

  • Base URL
    https://datatrustapihml.clearsale.com.br
  • URL
    https://datatrustapihml.clearsale.com.br/v1/authentication
  • Auth
    none declared

Request body

usernamestring required

Nome do usuário da API

passwordstring required

Senha do usuário da API

Response

Ok

tokenstring nullable
expiresInSecondsinteger

Changes

    • warning

      removed the optional property from the response with the status

    • warning

      removed the optional property from the response with the status

    • warning

      removed the optional property from the response with the status

    • warning

      removed the optional property from the response with the status

    • warning

      removed the optional property from the response with the status

    • warning

      removed the optional property from the response with the status

    • warning

      removed the optional property from the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status