accounting
profitloss

Retrieve a profitloss

Changed on

Retrieves a single AccountingProfitloss by its id. Obtain id values from the corresponding list endpoint. Use fields to return only the fields you need.

get/accounting/{connection_id}/profitloss/{id}

Request

  • Base URL
    https://api.unified.to
  • URL
    https://api.unified.to/accounting/{connection_id}/profitloss/{id}
  • Auth
    API key in header authorization

Path parameters

connection_idstring required

ID of the connection

idstring required

ID of the Profitloss

Query parameters

fieldsstring[]

Fields to return

rawstring

Raw parameters to include in the 3rd-party request. Encoded as a URL component. eg. raw parameters: foo=bar&zoo=bar -> raw=foo%3Dbar%26zoo%3Dbar

Response

Successful

idstring
created_atstring date-time

(ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)

updated_atstring date-time

(ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)

category_idsstring[]
start_atstring date-time

(ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)

end_atstring date-time

(ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)

namestring
currencystring
income_total_amountnumber
net_income_amountnumber
expenses_total_amountnumber
cost_of_goods_sold_total_amountnumber
rawobject

Changes

    • info

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

    • info

      added the optional property to the response with the status

    • breaking

      removed the enum value cost_of_goods_sold from the property items/ of the query request parameter fields

    • breaking

      removed the enum value expenses from the property items/ of the query request parameter fields

    • breaking

      removed the enum value gross_profit_amount from the property items/ of the query request parameter fields

    • breaking

      removed the enum value income from the property items/ of the query request parameter fields

    • breaking

      removed the enum value net_profit_amount from the property items/ of the query request parameter fields

    • warning

      removed the optional property from the response with the status

    • warning

      removed the optional property from the response with the status

    • warning

      removed the optional property from the response with the status

    • warning

      removed the optional property from the response with the status

    • warning

      removed the optional property from the response with the status