Crear venta
Changed onRegistra una venta y devuelve sus efectos fiscales, de stock, pagos y contabilidad. Enviá Lapyme-Version: 2026-08-20 para usar el contrato estricto: total es obligatorio, unit_price es neto para comprobantes A y final para comprobantes a consumidor final, y los importes derivados se calculan una sola vez. Omitir el header conserva los campos históricos, total opcional y la configuración de precios con IVA de la organización, de forma deprecada. Ambos contratos calculan el IVA una sola vez. Idempotency-Key solo protege reintentos; si necesitás guardar una referencia externa visible, enviá integration_source e integration_id en el cuerpo.
Request
- Base URLhttps://api.lapyme.com.ar
- URLhttps://api.lapyme.com.ar/api/v1/sales
- AuthHTTP bearer
Headers
Versión fechada del contrato de creación de ventas. Usá 2026-08-20 en integraciones nuevas. Omitirla conserva el contrato de entrada histórico deprecado; ambos contratos calculan el IVA una sola vez.
Clave única para evitar duplicados al reintentar la misma creación de venta.
ID opcional de la solicitud para trazabilidad. Si se omite, el servidor genera uno.
Request body
Response
Venta creada exitosamente
Changes
- breaking
for the
headerrequest parameterIdempotency-Key, the minLength was increased from0to1 - breaking
for the
headerrequest parameterX-Request-Id, the minLength was increased from0to1 - breaking
the request property
became required - breaking
removed the enum value
DOLof the request property - breaking
removed the enum value
PESof the request property - breaking
the
request property's minLength was increased from0to1 - breaking
the
request property's minLength was increased from0to1 - breaking
the
request property's minLength was increased from0to1 - breaking
the
//request property's minLength was increased from0to1 - warning
for the
headerrequest parameterIdempotency-Key, the maxLength was set to255 - warning
for the
headerrequest parameterX-Request-Id, the maxLength was set to255 - warning
the
request property's maxLength was set to120 - warning
the
request property's maxLength was set to255 - warning
the
request property's maxLength was set to120 - warning
the
//request property's maxLength was set to255 - warning
the
//request property's maxLength was set to1000 - warning
the
request property's maxLength was set to1000 - warning
the
//request property's maxLength was set to100 - warning
the
//request property's maxLength was set to100 - warning
the
//request property's maxLength was set to100 - warning
the
//request property's maxLength was set to100 - warning
the
//request property's maxLength was set to255 - warning
the
//request property's maxLength was set to255 - warning
removed the request property
- warning
removed the request property
- warning
removed the request property
- warning
removed the request property
- warning
removed the request property
- warning
removed the request property
- info
added the new optional
headerrequest parameterLapyme-Version - info
added the new optional request property
- info
added the new optional request property
- info
added the new optional request property
- info
added the new
ARSenum value to the request property - info
added the new
USDenum value to the request property - info
added the non-success response with the status
- info
added the non-success response with the status
- info
removed 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
- breaking