API

Listar tipos de comprobante válidos

Changed on

Devuelve candidatos contextuales para una venta o compra. La selección usa la configuración fiscal canónica de la organización y vuelve a validarse al escribir. Para ventas con total_amount, currency es obligatorio; USD también requiere exchange_rate en ARS por USD.

get/api/v1/voucher-types

Request

  • Base URL
    https://api.lapyme.com.ar
  • URL
    https://api.lapyme.com.ar/api/v1/voucher-types
  • Auth
    HTTP bearer

Query parameters

operation'sale' | 'purchase' required
customer_idstring uuid

UUID obligatorio cuando operation=sale

point_of_sale_idstring uuid

UUID obligatorio cuando operation=sale

supplier_idstring uuid

UUID obligatorio cuando operation=purchase

total_amountinteger

Total opcional de la venta en unidades menores de currency. Habilita la evaluación de FCE.

currency'ARS' | 'USD'

Obligatorio cuando se envía total_amount

exchange_ratenumber

Pesos argentinos por dólar. Obligatorio solamente para currency=USD.

cursorstring

Valor de next_cursor recibido en la respuesta anterior

limitinteger

Cantidad máxima de resultados por respuesta

Response

Tipos de comprobante obtenidos exitosamente

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

List-envelope discriminator.

urlstring required

Requested list path.

Changes

    • breaking

      removed the enum value DOL from the query request parameter currency

    • breaking

      removed the enum value PES from the query request parameter currency

    • breaking

      the response property became nullable for the status

    • info

      added the new enum value ARS to the query request parameter currency

    • info

      added the new enum value USD to the query request parameter currency

    • 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

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