Skip to main content
GET
/
api
/
v1
/
sales
Obtener lista de ventas
curl --request GET \
  --url https://api.lapyme.com.ar/api/v1/sales \
  --header 'Authorization: Bearer <token>'
{
  "success": true,
  "data": [
    {
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "invoiceNumber": 123,
      "formattedInvoiceNumber": "<string>",
      "invoiceDate": "2023-12-25",
      "dueDate": "2023-12-25",
      "serviceFrom": "2023-12-25",
      "serviceTo": "2023-12-25",
      "currency": "<string>",
      "subtotal": 123,
      "taxAmount": 123,
      "total": 123,
      "balance": 123,
      "concept": 123,
      "notes": "<string>",
      "fiscalNotes": "<string>",
      "integrationSource": "<string>",
      "integrationId": "<string>",
      "customer": {
        "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
        "name": "<string>",
        "email": "[email protected]",
        "phone": "<string>",
        "taxId": "<string>",
        "address": "<string>",
        "apartment": "<string>",
        "city": "<string>",
        "province": "<string>"
      },
      "items": [
        {
          "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
          "quantity": 123,
          "unitPrice": 123,
          "unitCost": 123,
          "taxRateId": 123,
          "discountPercentage": "<string>",
          "product": {
            "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
            "name": "<string>",
            "sku": "<string>"
          },
          "warehouse": {
            "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
            "name": "<string>"
          }
        }
      ],
      "createdAt": "2023-11-07T05:31:56Z",
      "updatedAt": "2023-11-07T05:31:56Z"
    }
  ],
  "pagination": {
    "page": 2,
    "limit": 2,
    "total": 1,
    "totalPages": 2
  }
}

Authorizations

Authorization
string
header
required

Incluí tu API key en el header Authorization con el prefijo Bearer

Query Parameters

page
integer
default:1

Número de página

Required range: x >= 1
Example:

1

limit
integer
default:50

Cantidad de elementos por página

Required range: 1 <= x <= 100
Example:

50

Término de búsqueda por nombre de cliente o número de factura

Example:

"Juan Pérez"

dateFrom
string<date>

Fecha de inicio del filtro (YYYY-MM-DD)

Example:

"2025-01-01"

dateTo
string<date>

Fecha de fin del filtro (YYYY-MM-DD)

Example:

"2025-12-31"

Response

200 - application/json

Lista de ventas obtenida exitosamente

success
boolean
required
data
object[]
required
pagination
object
required