purchases
PUT /companies/{companySlug}/purchases/drafts/{draftId}
Changed onUpdates draft with provided id.
Request
- Base URLhttps://api.fiken.no/api/v2
- AuthOAuth 2Authorization codehttps://fiken.no/oauth/authorizeToken URLhttps://fiken.no/oauth/token
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body
Example request
{
"invoiceIssueDate": "2018-04-03",
"dueDate": "2018-04-03",
"invoiceNumber": "NOEE2888156",
"contactId": 2888156,
"projectId": 2888156,
"currency": "NOK",
"kid": "5855454756",
"payments": [
{
"paymentId": 2888156,
"date": "2018-04-03",
"account": "1920:10001",
"amount": 34000,
"amountInNok": 500000,
"currency": "NOK"
}
],
"lines": [
{
"incomeAccount": "3000",
"net": 25000,
"gross": 30000,
"projectId": 2888156
}
]
}Response
Created
Changes
- breaking
the request property
became required - info
the request optional property
//became not read-only - info
the
request property format was generalized fromint64to no format
- breaking
- info
the endpoint scheme security
fiken_api_oauthwas removed from the API
- info