POST /companies/{companySlug}/invoices
Changed onCreates an invoice. This corresponds to "Ny faktura" in Fiken. There are two types of invoice lines that can be added to an invoice line: product line or free text line. Provide a product Id if you are invoicing a product. All information regarding the price and VAT for this product will be added to the invoice. It is however also possible to override the unit amount by sending information in both fields "productId" and "unitAmount". An invoice line can also be a free text line meaning that no existing product will be associated with the invoiced line. In this case all information regarding the price and VAT of the product or service to be invoiced must be provided.
Request
- Base URLhttps://api.fiken.no/api/v2
- URLhttps://api.fiken.no/api/v2/companies/{companySlug}/invoices
- AuthOAuth 2Authorization code: https://fiken.no/oauth/authorizeToken URL: https://fiken.no/oauth/token
Request body
Example request
{
"uuid": "123e4567-e89b-12d3-a456-426655440000",
"issueDate": "2018-04-03",
"dueDate": "2018-04-03",
"lines": [
{
"net": 4500,
"vat": 500,
"vatType": "HIGH",
"gross": 5000,
"vatInPercent": 25,
"unitPrice": 4550,
"quantity": 5,
"discount": 25,
"productName": "Gardening Gloves VI2",
"productId": 2888156,
"description": "Goatskin, with extra-long suede cuffs",
"comment": "One size fits all",
"incomeAccount": "3000"
}
],
"customerId": 2888156,
"contactPersonId": 8588156,
"bankAccountCode": "1920:10002",
"currency": "NOK",
"invoiceText": "Invoice for services rendered during the Oslo Knitting Festival.",
"paymentAccount": "1920:10001",
"projectId": 15124866,
"roundingType": "none"
}Response
Created
Changes
- info
added the new optional request property
- info
- info
the endpoint scheme security
fiken_api_oauthwas removed from the API
- info