sales
PUT /companies/{companySlug}/sales/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
Path parameters
companySlugstring required
Slug of company to retrieve
draftIdinteger required
The draftId (primary key of the returned object) is returned in the GET all drafts call.
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
paidbecame required - info
the request optional property
payments/items/amountInNokbecame not read-only - info
the
invoiceNumberrequest property format was generalized fromint64to no format
- breaking