products
POST /companies/{companySlug}/products/salesReport
Changed onCreates a report based on provided specifications.
Request
- Base URLhttps://api.fiken.no/api/v2
- URLhttps://api.fiken.no/api/v2/companies/{companySlug}/products/salesReport
- AuthOAuth 2Authorization code: https://fiken.no/oauth/authorizeToken URL: https://fiken.no/oauth/token
Request body
Example request
{
"from": "2018-04-03",
"to": "2018-04-03"
}Response
OK
Example response
[
{
"product": {
"productId": 2888156,
"createdDate": "2018-04-03",
"lastModifiedDate": "2018-04-03",
"name": "Spade",
"unitPrice": 300000,
"costPrice": 150000,
"incomeAccount": "3000",
"vatType": "HIGH",
"active": true,
"productNumber": "125-1",
"stock": 5
},
"sold": {
"count": 250,
"sales": 45,
"netAmount": 5000,
"vatAmount": 500,
"grossAmount": 5500
},
"credited": {
"count": 250,
"sales": 45,
"netAmount": 5000,
"vatAmount": 500,
"grossAmount": 5500
},
"sum": {
"count": 250,
"sales": 45,
"netAmount": 5000,
"vatAmount": 500,
"grossAmount": 5500
}
}
]Changes
- info
added the optional property
//to the response with the status
- info
- info
the response property
//became required for the status
- info