API

Obtener estado de resultados

Changed on

Calcula el estado de resultados para un período en la moneda de reporte solicitada.

get/api/v1/accounting/income-statement

Request

  • Base URL
    https://api.lapyme.com.ar
  • URL
    https://api.lapyme.com.ar/api/v1/accounting/income-statement
  • Auth
    HTTP bearer

Query parameters

date_fromstring date

Fecha inicial del período. Obligatoria junto con date_to si no se envía period_preset.

date_tostring date

Fecha final inclusiva del período. Obligatoria junto con date_from si no se envía period_preset.

period_preset'today' | 'yesterday' | 'last_7_days' | 'last_30_days' | 'last_90_days' | 'this_month' | 'previous_month' | 'this_year'

Atajo de período resuelto por la API a date_from/date_to en horario de Argentina. No enviarlo junto con date_from/date_to.

cost_center_1_idsstring[]
cost_center_2_idsstring[]
cost_center_3_idsstring[]
circuit_idstring

Circuito contable del reporte: general, el id de un circuito de la organización (ver accounting_circuits en GET /api/v1/organization), o all. Omitido es all, todos los circuitos. Un id que no es de la organización devuelve 400 circuit_not_found.

reporting_currency'ARS' | 'USD'

Moneda de presentación del estado de resultados. ARS devuelve importes en pesos argentinos; USD convierte los importes contables ARS a USD usando cotización BCRA por fecha de transacción.

Response

Estado de resultados obtenido

request_idstring required
dataobject required

Changes

    • breaking

      for the query request parameter reporting_currency, default value was changed from PES to ARS

    • breaking

      removed the enum value DOL from the query request parameter reporting_currency

    • breaking

      removed the enum value PES from the query request parameter reporting_currency

    • info

      added the new optional query request parameter circuit_id

    • info

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

    • info

      added the new enum value USD to the query request parameter reporting_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

      the response property became required for the status

    • info

      the response property became required for the status

    • info

      added the required property to the response with the status