sales
POST /companies/{companySlug}/sales
Changed onCreates a new sale. This corresponds to "Annet salg" in Fiken and should be used when the invoice document and invoice number have been created outside Fiken. Otherwise the invoices-endpoints should be used.
Request
- Base URLhttps://api.fiken.no/api/v2
- URLhttps://api.fiken.no/api/v2/companies/{companySlug}/sales
- AuthOAuth 2Authorization code: https://fiken.no/oauth/authorizeToken URL: https://fiken.no/oauth/token
Request body
Example request
{
"saleNumber": "XK455L",
"date": "2018-04-03",
"kind": "external_invoice",
"totalPaid": 524500,
"totalPaidInCurrency": 634550,
"lines": [
{
"lineId": 2888156,
"netPrice": 4500,
"vat": 500,
"account": "3000",
"netPriceInCurrency": 4500,
"vatInCurrency": 500,
"projectId": 2815556
}
],
"currency": "NOK",
"dueDate": "2018-04-03",
"kid": "5855454756",
"paymentAccount": "1920:10001",
"paymentDate": "2018-04-03",
"paymentFee": 634550,
"projectId": 2888156
}Response
Created
Changes
- info
the request optional property
//became not write-only
- info
- breaking
the request property
//became required
- breaking