Public
Documentation Settings

Documentación API zofi 1.0

login

Contiene los métodos para logearse en el sistema Zofi.

GETLogin a traves de autenticación Basic

https://app.zofi.tax/ZofiRest2/api/login

Se utiliza para obtener un TOKEN de autenticación que se deberá enviar como parámetro de cabecera en todos los métodos del API.

AUTHORIZATIONBasic Auth
Username

<username>

Password

<password>

Example Request
curl
curl --location 'https://app.zofi.tax/ZofiRest2/api/login'
500 Internal Server Error
Example Response
json
{
  "estado": "ERROR",
  "mensaje": "Usuario no autenticado"
}
Content-Type

application/json

clientes

GETObtener lista de clientes registrados en Zofi.

https://app.zofi.tax/ZofiRest2/api/cliente
HEADERS
Authorization

aliquip in sint

(Required) Token de autenticación de usuario.

Example Request
curl
curl --location 'https://app.zofi.tax/ZofiRest2/api/cliente' \
--header 'Authorization: <string>'
200 OK
Example Response
json
[
  {
    "correo": "consumidor@gmail.com",
    "direccion": "SN",
    "id": 9,
    "identificacion": "9999999999",
    "lista": "Base",
    "local_id": 1,
    "movil": "0999999999",
    "razonSocial": "ZOFI TAX",
    "telefono": "222222222",
    "tipoCliente_id": 1,
    "tipoId": "VENTA A CONSUMIDOR FINAL",
    "tipoIdentificacion_id": 4
  },
  {
    "correo": "consumidor@gmail.com",
    "direccion": "SN",
    "id": 9,
    "identificacion": "9999999999",
    "lista": "Base",
    "local_id": 1,
    "movil": "0999999999",
    "razonSocial": "ZOFI TAX",
    "telefono": "222222222",
    "tipoCliente_id": 1,
    "tipoId": "VENTA A CONSUMIDOR FINAL",
    "tipoIdentificacion_id": 4
  }
]
Content-Type

application/json

PUTInsertar o actualizar un cliente registrado en Zofi.

https://app.zofi.tax/ZofiRest2/api/cliente
HEADERS
Authorization

aliquip in sint

(Required) Token de autenticación de usuario.

Content-Type

application/json

Bodyraw
{
    "correo": "consumidor@gmail.com",
    "direccion": "SN",
    "identificacion": "9999999999",
    "lista": "Base",
    "local_id": 1,
    "movil": "0999999999",
    "razonSocial": "ZOFI TAX",
    "telefono": "222222222",
    "tipoCliente_id": 1,
    "tipoId": "VENTA A CONSUMIDOR FINAL",
    "tipoIdentificacion_id": 4
}
Example Request
curl
curl --location --request PUT 'https://app.zofi.tax/ZofiRest2/api/cliente' \
--header 'Authorization: <string>' \
--data-raw '{
    "correo": "consumidor@gmail.com",
    "direccion": "SN",
    "identificacion": "9999999999",
    "lista": "Base",
    "local_id": 1,
    "movil": "0999999999",
    "razonSocial": "ZOFI TAX",
    "telefono": "222222222",
    "tipoCliente_id": 1,
    "tipoId": "VENTA A CONSUMIDOR FINAL",
    "tipoIdentificacion_id": 4
}'
500 Internal Server Error
Example Response
json
{
  "estado": "ERROR",
  "mensaje": "Usuario no autenticado"
}
Content-Type

application/json

GETObtener un cliente registrados en Zofi por su identificación.

https://app.zofi.tax/ZofiRest2/api/cliente/:id
HEADERS
Authorization

aliquip in sint

(Required) Token de autenticación de usuario.

PATH VARIABLES
id

aliquip in sint

(Required) ID ruc o cedula del cliente.

Example Request
curl
curl --location 'https://app.zofi.tax/ZofiRest2/api/cliente/:id' \
--header 'Authorization: <string>'
500 Internal Server Error
Example Response
json
{
  "estado": "ERROR",
  "mensaje": "Usuario no autenticado"
}
Content-Type

application/json