purchases

GET /companies/{companySlug}/purchases/{purchaseId}/accruals/{accrualId}

Changed on

Returns the specified accrual on the purchase.

Request

  • Base URL
    https://api.fiken.no/api/v2
  • URL
    https://api.fiken.no/api/v2/companies/{companySlug}/purchases/{purchaseId}/accruals/{accrualId}
  • Auth
    OAuth 2
    Authorization code: https://fiken.no/oauth/authorize
    Token URL: https://fiken.no/oauth/token

Response

OK

accrualIdinteger

Id of the accrual.

lineIdinteger

The purchase/sale line (orderLine.lineId) that is accrued.

accountstring

Account the amount is accrued to.

startDatestring date

First period (month) of the accrual, format yyyy-mm-dd.

periodsinteger

Number of monthly periods the amount is spread over.

amountPerPeriodinteger

Amount posted per period, in cents.

endDatestring date

Date of the last period (month) of the accrual, format yyyy-mm-dd.

unpostedPeriodsinteger

Number of periods not yet posted because they fall in accounting years that have not been opened yet.

unpostedYearsstring[]

Accounting years that contain periods not yet posted.

Example response

{
  "accrualId": 2888156,
  "lineId": 2888156,
  "account": "1749",
  "startDate": "2018-04-01",
  "periods": 12,
  "amountPerPeriod": 4500,
  "endDate": "2019-03-01"
}

Changes