SETW API V3
    SETW API V3
    • LOGIN
      GET
    • GET_VOUCHER_INFO
      GET
    • GET_VOUCHERS
      GET

      LOGIN

      GET
      /login.php

      Login Endpoint#

      This endpoint is used to authenticate a user by verifying their credentials. It accepts a username and password as query parameters and returns a JSON response containing an authentication token upon successful login.
      Este endpoint se usa para autenticar a un usuario verificando sus credenciales. Toma el nombre de usuario y una contraseña como parámetros de consulta y devuelve una respuesta JSON con un token de autenticación tras iniciar sesión correctamente.

      Request Format#

      Method: GET
      Endpoint: {{endpoint_url}}login.php
      Query Parameters / Parámetros de consulta:
      username (string): The username of the user attempting to log in / Nombre de usuario del usuario que intenta iniciar sesión.
      password (string): The password associated with the provided username / Contraseña asociada con el nombre de usuario proporcionado.

      Example Request#

      GET {{endpoint_url}}login.php?username=example_user&password=example_password
      

      Response Format#

      Status Code: 200
      Content-Type: application/json
      {"type": "","message": "","data": { "token": ""}}
      The response will include:
      type: A string indicating the type of response.
      message: A string containing any messages related to the authentication process.
      data: An object that contains the token, which is required for subsequent authenticated requests.

      Notes#

      Ensure that the username and password are correctly provided to receive a valid token in the response. / Asegúrese de que el nombre de usuario y la contraseña sean los correctos para recibir un token válido en la respuesta.
      Este token debe ser incluído como parámetro en todas las solicitudes posteriores.

      Request

      Query Params

      Responses

      🟢200Login exitoso
      text/plain
      🟢200Login fallido
      Request Request Example
      Shell
      JavaScript
      Java
      Swift
      curl --location -g --request GET '/login.php?username={{username}}&password={{password}}'
      Modified at 2025-07-28 18:40:11
      Next
      GET_VOUCHER_INFO
      Built with