purchases
POST /companies/{companySlug}/purchases/{purchaseId}/accruals
Changed onSets up accrual for a single line on the purchase, spreading the line amount evenly over a number of monthly periods. Mirrors the "Periodiser / fordel kostnader over tid" action in Fiken. Only lines on result accounts (3000–7999) can be accrued.
Request
- Base URLhttps://api.fiken.no/api/v2
- URLhttps://api.fiken.no/api/v2/companies/{companySlug}/purchases/{purchaseId}/accruals
- AuthOAuth 2Authorization code: https://fiken.no/oauth/authorizeToken URL: https://fiken.no/oauth/token
Request body
Example request
{
"lineId": 2888156,
"startDate": "2018-04-01",
"periods": 12,
"account": "1749"
}Response
Created
Changes
- info
endpoint added
- info