sales
POST /companies/{companySlug}/sales/drafts
Changed onCreates a sale draft.
Request
- Base URLhttps://api.fiken.no/api/v2
- URLhttps://api.fiken.no/api/v2/companies/{companySlug}/sales/drafts
- AuthOAuth 2Authorization code: https://fiken.no/oauth/authorizeToken URL: https://fiken.no/oauth/token
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