invoices
POST /companies/{companySlug}/invoices/drafts
Changed onCreates an invoice draft.
Request
- Base URLhttps://api.fiken.no/api/v2
- URLhttps://api.fiken.no/api/v2/companies/{companySlug}/invoices/drafts
- AuthOAuth 2Authorization code: https://fiken.no/oauth/authorizeToken URL: https://fiken.no/oauth/token
Request body
Example request
{
"type": "invoice",
"uuid": "123e4567-e89b-12d3-a456-426655440000",
"issueDate": "2018-04-03",
"daysUntilDueDate": 15,
"lines": [
{
"invoiceishDraftLineId": 2888156,
"lastModifiedDate": "2018-04-03",
"description": "Goatskin, with extra-long suede cuffs",
"unitPrice": 4550,
"quantity": 5,
"discount": 25,
"comment": "One size fits all",
"incomeAccount": "3000"
}
],
"currency": "NOK",
"bankAccountNumber": "11112233334",
"paymentAccount": "1920:10001",
"customerId": 7340852,
"contactPersonId": 8588156,
"projectId": 75408386,
"roundingType": "none",
"startDate": "2018-04-03",
"endDate": "2019-04-03",
"frequency": {
"interval": 1,
"intervalUnit": "MONTH"
}
}Response
Created
Changes
- info
added the new optional request property
- info
added the new optional request property
- info
added the new optional request property
- info
added the new optional request property
- info
the request optional property
//became read-only - info
added the new
repeating_invoiceenum value to the request property
- info
- info
added the new optional request property
//
- info