API

Lista las ventas de la organización. Soporta filtros por cliente, fecha, estado, punto de venta, vendedor e integración.

get/api/v1/sales

Request

  • Base URL
    https://api.lapyme.com.ar
  • URL
    https://api.lapyme.com.ar/api/v1/sales
  • Auth
    HTTP bearer

Query parameters

fieldsstring[]

Comma-separated top-level sale sections to include. Omit for the list default: id, document, customer, amounts, reversesVoucher, integration, audit, tags, metafields.

cursorstring

Valor de next_cursor recibido en la respuesta anterior

limitinteger

Cantidad máxima de resultados por respuesta

querystring

Texto de búsqueda por cliente, CUIT, número de comprobante, ID de integración, producto, SKU, código de barras o variante

customer_idstring uuid

Filtra por cliente

date_fromstring date

Fecha inicial

date_tostring date

Fecha final

date_attribute'invoiceDate' | 'dueDate'

Campo de fecha a usar para el filtro

integration_sourcesstring[]

Fuentes de integración. Puede repetirse o enviarse separada por comas.

point_of_sale_idsstring[]

IDs de puntos de venta. Puede repetirse o enviarse separada por comas.

register_idsstring[]

IDs de cajas. Puede repetirse o enviarse separada por comas.

seller_idsstring[]

IDs de vendedores. Puede repetirse o enviarse separada por comas.

invoice_statusesApiSharedEnum9ac70a3316[]

Estados fiscales. Puede repetirse o enviarse separada por comas.

payment_statusesstring[]

Estados de cobranza. Puede repetirse o enviarse separada por comas.

voucher_typesstring[]

Tipos de comprobante. Puede repetirse o enviarse separada por comas.

amount_attribute'total' | 'balance'

Campo monetario a usar para min/max

min_amountinteger

Importe mínimo en centavos

max_amountinteger

Importe máximo en centavos

Response

Ventas obtenidas exitosamente

request_idstring required
has_moreboolean required
next_cursorstring nullable required
object'list' required

List-envelope discriminator.

urlstring required

Requested list path.

Changes

    • breaking

      the response property /// became nullable for the status

    • breaking

      the response property became nullable for the status

    • warning

      deleted the query request parameter search

    • info

      added the enum value invoicePdf to the property items/ of the query request parameter fields

    • info

      added the enum value metafields to the property items/ of the query request parameter fields

    • info

      added the enum value tags to the property items/ of the query request parameter fields

    • info

      added the non-success response with the status

    • info

      added the optional property // to the response with the status

    • info

      added the optional property // to the response with the status

    • info

      added the optional property // to the response with the status

    • info

      added the optional property /// to the response with the status

    • info

      added the optional property /// to the response with the status

    • info

      added the optional property /// to the response with the status

    • info

      added the optional property /// to the response with the status

    • info

      added the optional property /// to the response with the status

    • info

      response property data/items/accounting/journal_entries_url list-of-types was narrowed by removing types null from media type application/json of response 200

    • info

      response property next_cursor list-of-types was narrowed by removing types null from media type application/json of response 200

    • info

      added 'propertyNames' constraint to the // response property for the status

    • info

      added 'propertyNames' constraint to the // response property for the status

    • info

      added 'propertyNames' constraint to the // response property for the status

    • info

      added 'propertyNames' constraint to the /// response property for the status

    • info

      added 'propertyNames' constraint to the // response property for the status

    • info

      added 'propertyNames' constraint to the // response property for the status

    • info

      added 'propertyNames' constraint to the // response property for the status

    • info

      added 'propertyNames' constraint to the /// response property for the status

    • info

      added 'propertyNames' constraint to the // response property for the status

    • info

      added 'propertyNames' constraint to the /// response property for the status