purchases
POST /companies/{companySlug}/purchases
Changed onCreates a new purchase.
Request
- Base URLhttps://api.fiken.no/api/v2
- URLhttps://api.fiken.no/api/v2/companies/{companySlug}/purchases
- AuthOAuth 2Authorization code: https://fiken.no/oauth/authorizeToken URL: https://fiken.no/oauth/token
Request body
Example request
{
"transactionId": 3458156,
"date": "2018-04-03",
"dueDate": "2018-04-03",
"kind": "cash_purchase",
"lines": [
{
"lineId": 2888156,
"netPrice": 4500,
"vat": 500,
"account": "3000",
"netPriceInCurrency": 4500,
"vatInCurrency": 500,
"projectId": 2815556
}
],
"supplierId": 2888156,
"currency": "NOK",
"paymentAccount": "1920:10001",
"paymentDate": "2018-04-03",
"paymentAmountInNok": 115000,
"kid": "5855454756",
"projectId": 2888156
}Response
Created
Changes
- info
the request optional property
//became not write-only
- info
- breaking
the request property
//became required - info
added the new optional request property
- breaking