API

Obtener estado de resultados comparativo

Changed on

Compara el estado de resultados de dos períodos con los mismos criterios de moneda y agrupación.

get/api/v1/accounting/income-statement/comparative

Request

  • Base URL
    https://api.lapyme.com.ar
  • URL
    https://api.lapyme.com.ar/api/v1/accounting/income-statement/comparative
  • 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.

compare_date_fromstring date

Fecha inicial del período de comparación. Obligatoria junto con compare_date_to si compare_enabled=true y no se envía compare_period_preset.

compare_date_tostring date

Fecha final inclusiva del período de comparación. Obligatoria junto con compare_date_from si compare_enabled=true y no se envía compare_period_preset.

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

Atajo para el período de comparación. No enviarlo junto con compare_date_from/compare_date_to.

compare_enabledboolean

Response

Comparativo 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