A3ERP API
English
English
  • Quick Start
    • Initial configuration
    • Installation
  • Versions
  • Documentation
    • API Reference
      • Api
      • Validation
      • Email
      • Master
        • Parameters
      • Document
        • Parameters
      • Various
      • Stock movements
      • Stock Reserves
      • Expeditions
      • Links
      • Stock
      • Portfolio
      • Prices
      • Stored Procedures
      • View
      • Listing
      • FastReport
      • Download Files
      • List Linked Folders
Con tecnología de GitBook
En esta página

¿Te fue útil?

  1. Documentation
  2. API Reference

Validation

Before making any request to the API, the validation token must be obtained for the user and password indicated.

AnteriorApiSiguienteEmail

Última actualización hace 1 año

¿Te fue útil?

Access Validation and Token

The /validation/user/{username}/password/{key} endpoint is deprecated and will be removed on October 1, 2023. It is recommended that you upgrade to the /login endpoint

Call for access validation and token acquisition

get

Example:

https://server:5555/api/login

Parámetros de encabezado
AuthorizationstringRequerido

Basic + (user:pass) en base64

Respuestas
200
Return of the token
application/json
get
GET /api/login HTTP/1.1
Host: server:<port>
Authorization: text
Accept: */*
200

Return of the token

{
  "token": "{JWT Token}"
}

Call for obtaining user code and type

get

Users must be registered in A3ERP: Customers, Representatives, Suppliers, Carriers, Persons or Operators.

Example:

https://servidor:5555/api/validacion/user/admin/password/adminpass

Parámetros de ruta
usuariostringRequerido

Not case sensitive

clavestringRequerido

Case sensitive

Parámetros de encabezado
AuthorizationstringRequerido

Bearer + JWT_token

Respuestas
200
Return Code and Type
application/json
get
GET /api/validacion/user/{usuario}/password/{clave} HTTP/1.1
Host: server:<port>
Authorization: text
Accept: */*
200

Return Code and Type

{
  "Codigo": "       1",
  "Tipo": "Transportistas"
}
  • Access Validation and Token
  • GETCall for access validation and token acquisition
  • GETCall for obtaining user code and type