POST
/
clients
curl --request POST \
  --url https://api.getjusto.com/api/v1/clients \
  --header 'Content-Type: application/json' \
  --data '{
  "filter": "<string>",
  "page": 123
}'
{
  "totalCount": 36,
  "totalPages": 2,
  "hasNextPage": false,
  "hasPreviousPage": false,
  "items": [
    {
      "_id": "Px7yRRfbojEv55KAf",
      "name": "Nicolás López",
      "email": "user_email@me.com",
      "phone": "+56912345678",
      "firstLogin": "2020-08-12T14:24:35.161Z",
      "lastLogin": "2020-08-31T14:08:04.474Z",
      "ordersCount": 10,
      "firstOrder": "2020-08-31T14:08:04.428Z",
      "lastOrder": "2020-08-31T14:08:04.428Z",
      "pointsBalance": 700,
      "marketingEmailEnabled": true
    }
  ]
}

Descripción

Este método permite generar un listado de todos los clientes, ordenados de forma descendente según la cantidad de pedidos realizados. Además, incorpora funciones de filtrado y paginación para gestionar eficientemente grandes volúmenes de datos.

Body

application/json

Response

200
application/json

Operación exitosa

The response is of type object.