Goto APIs

Projects API

General:

Basics:

Base-URL: https://capi.lagerkoll.com/v1/projects/
Parameters in the url should all be encoded and all data sent should be UTF-8

MAX number of requests per minute is set to 200.
When the limit is hit an error with code 429 is returned, with the header "Retry-After" containing the number of seconds you have to wait for your next request.

Headers:

There are 2 ways to be authenticated when using this API. in both ways you add headers to the request.
1) Use an API-key together with store-id. This would be used when communicating machine to machine and no real person is involved. The API-key is available from where you activated the API. The store-id is also available in the same place.
2) Use a user_id and user_token together with a store-id. You get these values from the login-request. The values are connected to a person and are gained when an actual login to the system has been made.
store: <<STORE>>
user_id: <<USER_ID>>
user_token: <<USER_TOKEN>>
api_key: <<API_KEY>>
Accept: application/json
Content-Type: application/json

Errors:

Code Description
900001 Credentials don't match
900101 Common error
900429 Too many requests
906001 Error when getting project
906002 Error when getting customer
906003 Error when getting user
906004 Error when getting article
906005 Error when getting invoice draft
906011 Error when creating a project
906012 Error when creating a project article
906013 Error when creating invoice draft from articles
906014 Error when creating invoice from invoice drafts
906021 Error when updating a project
906022 Error when updating a project article
906023 Error when updating an invoice draft
906031 To large amount for the artcile
906032 Project still has articles with amount in them
{
  "errorCode" : 900101,
  "errorMessage" : "Something went wrong on the server",
  "errorField" : null,
  "errorData" : null
}

Projects API:

Export

Create export

POSTUrl: /export
Headers:
Accept: application/json or application/xml
Create export file for articles in open projects

Valid parameters:

Parameter Description Default value Allowed values
save_document If true, the document will be saved in the feature extension. If false, a mail will be sent to all admins of the store false

Body:
Successfull response:

Projects

Get projects

GETUrl:
Headers:
Accept: application/json or application/xml
Get a list of projects

Valid parameters:

Parameter Description Default value Allowed values
state -1 0,1
from 0
to 0
page 0
limit 50
query
cost false
sort_column start_date start_date,end_date
order desc asc,desc

Body:
Successfull response:

{ "pages": 9380, "projects": [{ "createdByName": "createdByName", "cost": 2674.422383024402, "created": 8075, "description": "description", "customerName": "customerName", "stockValue": 6061.691354053104, "name": "name", "customerId": 5287, "state": "0", "projectId": 4573, "responsibleUserId": 7443, "articles": [{ "articleName": "articleName", "snId": "snId", "invoicedAmount": 2855.9537412923974, "batchSnBestBefore": 8030, "accountName": "accountName", "articleId": "articleId", "priceListId": 4462, "purchasePrice": 4228.066371878695, "batchId": "batchId", "rental": true, "rentalCurrency": "rentalCurrency", "accountId": 2375, "checkoutDate": 6553, "price": 4296.622480588818, "comment": "comment", "id": 3339, "projectId": 9797, "checkoutAmount": 5966.883323184265, "events": [{ "date": 1732184125790, "amount": 3712.1449767599947, "type": "type" }], "checkinConsumeDate": 1732184125790, "checkinAmount": 2695.461079333481, "consumedAmount": 2819.448769692876 }], "createdById": 6201, "responsibleUserName": "responsibleUserName" }], "pageSize": 262, "page": 7287, "projectsCount": 2492 }

Get changed projects

GETUrl: /events
Headers:
Accept: application/json or application/xml
Get a list of open projects where articles have been checked out, checked in, consumed or invoiced between a start date and end date

Valid parameters:

Parameter Description Default value Allowed values
start_date Start date of when events can occur. Format is yyyy-MM-dd and defaults to previous month
end_date End date of when events can occur. Format is yyyy-MM-dd and defaults to end of start date's month
page 0
limit 50
sort_column created name, customer, created_by, created
order desc asc,desc

Body:
Successfull response:

{ "pages": 7418, "projects": [{ "createdByName": "createdByName", "cost": 8691.38952703289, "created": 8948, "description": "description", "customerName": "customerName", "stockValue": 679.4293253458172, "name": "name", "customerId": 2426, "state": "0", "projectId": 2390, "responsibleUserId": 1343, "articles": [{ "articleName": "articleName", "snId": "snId", "invoicedAmount": 3657.406719432941, "batchSnBestBefore": 5053, "accountName": "accountName", "articleId": "articleId", "priceListId": 5815, "purchasePrice": 7662.100372342356, "batchId": "batchId", "rental": false, "rentalCurrency": "rentalCurrency", "accountId": 1467, "checkoutDate": 687, "price": 6143.64627270867, "comment": "comment", "id": 9104, "projectId": 7796, "checkoutAmount": 3805.0441625402577, "events": [{ "date": 1732184125791, "amount": 4530.795509044427, "type": "type" }], "checkinConsumeDate": 1732184125791, "checkinAmount": 6578.127402616643, "consumedAmount": 5845.295760612938 }], "createdById": 518, "responsibleUserName": "responsibleUserName" }], "pageSize": 4236, "page": 1512, "projectsCount": 2165 }

Get project for id

GETUrl: /{project_id}
Headers:
Accept: application/json or application/xml
Get project based on id
Body:
Successfull response:

{ "createdByName": "createdByName", "cost": 3397.21592512738, "created": 6075, "description": "description", "customerName": "customerName", "stockValue": 4358.111445727743, "name": "name", "customerId": 4773, "state": "0", "projectId": 7812, "responsibleUserId": 4593, "articles": [{ "articleName": "articleName", "snId": "snId", "invoicedAmount": 9106.746185162383, "batchSnBestBefore": 5219, "accountName": "accountName", "articleId": "articleId", "priceListId": 2842, "purchasePrice": 47.62801891913693, "batchId": "batchId", "rental": false, "rentalCurrency": "rentalCurrency", "accountId": 6830, "checkoutDate": 3396, "price": 4418.95234059837, "comment": "comment", "id": 6471, "projectId": 614, "checkoutAmount": 5422.275885359835, "events": [{ "date": 1732184125792, "amount": 4899.489535652118, "type": "type" }], "checkinConsumeDate": 1732184125792, "checkinAmount": 1136.7059627922692, "consumedAmount": 5458.123996857365 }], "createdById": 9747, "responsibleUserName": "responsibleUserName" }

Get project articles

GETUrl: /{project_id}/articles
Headers:
Accept: application/json or application/xml
Get a list of project articles

Valid parameters:

Parameter Description Default value Allowed values
query
state 0-all articles, 1-only checked out articles with available value, 2-checked out and rental articles with available value 0 0,1,2
page 0
limit 50
sort_column checkout_date article_id, article_name, user, checkout_date
sort_order desc asc,desc

Body:
Successfull response:

{ "pages": 8264, "pageSize": 3533, "page": 496, "projectsCount": 9298, "articles": [{ "articleName": "articleName", "snId": "snId", "invoicedAmount": 5076.234634994371, "batchSnBestBefore": 5886, "accountName": "accountName", "articleId": "articleId", "priceListId": 8415, "purchasePrice": 6014.270026073562, "batchId": "batchId", "rental": true, "rentalCurrency": "rentalCurrency", "accountId": 686, "checkoutDate": 9826, "price": 3167.098250772915, "comment": "comment", "id": 6367, "projectId": 3807, "checkoutAmount": 5304.8282419466905, "events": [{ "date": 1732184125792, "amount": 7671.67543873571, "type": "type" }], "checkinConsumeDate": 1732184125792, "checkinAmount": 4034.966862764964, "consumedAmount": 5237.9370925934545 }] }

Get invoice drafts

GETUrl: /{project_id}/articles/invoice
Headers:
Accept: application/json or application/xml
Get a list of invoice drafts for a project

Valid parameters:

Parameter Description Default value Allowed values
state 0-invoice drafts that are not invoiced or in processed, 1-invoice drafts that are in process but not yet invoiced 2-invoice drafts which are invoiced and processed 0 0, 1, 2
page 0
limit 50
sort_column created article_id, article_name, user, created
sort_order desc asc,desc

Body:
Successfull response:

{ "invoiceDrafts": [{ "createdByName": "createdByName", "amount": 7751.355075735239, "articleName": "articleName", "pricelistId": 2407, "endDate": 1732184125793, "rentalAmount": 1935.3210179859614, "created": 1732184125793, "dataType": "dataType", "articleId": "articleId", "isInvoiced": true, "rentalCurrency": "rentalCurrency", "dataId": 9735, "price": 9939.155175496799, "isProcessed": false, "dataArticleId": 4025, "currency": "currency", "comment": "comment", "invoiceId": "invoiceId", "id": 5652, "startDate": 1732184125793, "createdById": 1824 }], "pages": 1286, "pageSize": 7235, "draftsCount": 321, "page": 6773 }

Get cost for project

GETUrl: /{project_id}/cost
Headers:
Accept: application/json or application/xml
Get total cost for a project
Body:
Successfull response:

{ "invoiceDrafts": [{ "createdByName": "createdByName", "amount": 4370.238501685896, "articleName": "articleName", "pricelistId": 6665, "endDate": 1732184125793, "rentalAmount": 9019.907208516104, "created": 1732184125793, "dataType": "dataType", "articleId": "articleId", "isInvoiced": false, "rentalCurrency": "rentalCurrency", "dataId": 1892, "price": 9878.46460878345, "isProcessed": true, "dataArticleId": 2575, "currency": "currency", "comment": "comment", "invoiceId": "invoiceId", "id": 8867, "startDate": 1732184125793, "createdById": 7283 }], "pages": 281, "pageSize": 5397, "draftsCount": 921, "page": 5018 }

Add project

POSTUrl:
Headers:
Accept: application/json or application/xml
Content-type: application/json or application/xml
Add a new project
Body:

{ "createdByName": "createdByName", "cost": 1707.856698618606, "created": 820, "description": "description", "customerName": "customerName", "stockValue": 2866.131153949425, "name": "name", "customerId": 9241, "state": "0", "responsibleUserId": 6256, "articles": [{ "articleName": "articleName", "snId": "snId", "invoicedAmount": 5047.442903344106, "batchSnBestBefore": 5619, "accountName": "accountName", "articleId": "articleId", "priceListId": 897, "purchasePrice": 2312.9049999287054, "batchId": "batchId", "rental": false, "rentalCurrency": "rentalCurrency", "accountId": 8985, "checkoutDate": 4556, "price": 3877.5842770295044, "comment": "comment", "id": 6433, "projectId": 2421, "checkoutAmount": 5444.015410543046, "events": [{ "date": 1732184125794, "amount": 4849.88683081253, "type": "type" }], "checkinConsumeDate": 1732184125794, "checkinAmount": 2712.4689382587953, "consumedAmount": 3967.667793347177 }], "createdById": 6825, "responsibleUserName": "responsibleUserName" }
Successfull response:

{ "createdByName": "createdByName", "cost": 6537.727177513646, "created": 3644, "description": "description", "customerName": "customerName", "stockValue": 242.5307314705405, "name": "name", "customerId": 1969, "state": "0", "projectId": 488, "responsibleUserId": 3572, "articles": [{ "articleName": "articleName", "snId": "snId", "invoicedAmount": 9207.050334458436, "batchSnBestBefore": 1752, "accountName": "accountName", "articleId": "articleId", "priceListId": 1482, "purchasePrice": 6654.253938467234, "batchId": "batchId", "rental": true, "rentalCurrency": "rentalCurrency", "accountId": 2693, "checkoutDate": 1042, "price": 6193.614068847504, "comment": "comment", "id": 7922, "projectId": 5302, "checkoutAmount": 4451.571138289479, "events": [{ "date": 1732184125794, "amount": 8639.536313776132, "type": "type" }], "checkinConsumeDate": 1732184125794, "checkinAmount": 3950.8245614361736, "consumedAmount": 984.1081648040639 }], "createdById": 4492, "responsibleUserName": "responsibleUserName" }

Add project article

POSTUrl: /{id}/article
Headers:
Accept: application/json or application/xml
Content-type: application/json or application/xml
Add a new article to a project
Body:

{ "articleName": "articleName", "snId": "snId", "invoicedAmount": 20.46844916812507, "batchSnBestBefore": 8173, "accountName": "accountName", "articleId": "articleId", "priceListId": 1168, "purchasePrice": 9396.581015592647, "batchId": "batchId", "rental": true, "rentalCurrency": "rentalCurrency", "accountId": 2339, "checkoutDate": 2100, "price": 3160.033114557791, "comment": "comment", "id": 2327, "projectId": 7643, "checkoutAmount": 509.2320325355326, "events": [{ "date": 1732184125794, "amount": 4207.7429693035865, "type": "type" }], "checkinConsumeDate": 1732184125794, "checkinAmount": 5898.780147421946, "consumedAmount": 7827.515818010401 }
Successfull response:

{ "articleName": "articleName", "snId": "snId", "invoicedAmount": 6896.692801873962, "batchSnBestBefore": 974, "accountName": "accountName", "articleId": "articleId", "priceListId": 1384, "purchasePrice": 2115.284839794489, "batchId": "batchId", "rental": true, "rentalCurrency": "rentalCurrency", "accountId": 8007, "checkoutDate": 4414, "price": 7104.881128934666, "comment": "comment", "id": 6268, "projectId": 1572, "checkoutAmount": 8480.203513408507, "events": [{ "date": 1732184125794, "amount": 9013.569539935308, "type": "type" }], "checkinConsumeDate": 1732184125794, "checkinAmount": 4056.907950065778, "consumedAmount": 9996.195639795924 }

Update project

PUTUrl: /{id}
Headers:
Accept: application/json or application/xml
Content-type: application/json or application/xml
Update an existing project
Body:

{ "createdByName": "createdByName", "cost": 4981.061438286161, "created": 308, "description": "description", "customerName": "customerName", "stockValue": 3321.700927850597, "name": "name", "customerId": 8095, "state": "0", "projectId": 8644, "responsibleUserId": 9590, "articles": [{ "articleName": "articleName", "snId": "snId", "invoicedAmount": 3461.63282507838, "batchSnBestBefore": 7629, "accountName": "accountName", "articleId": "articleId", "priceListId": 3783, "purchasePrice": 6920.161334910503, "batchId": "batchId", "rental": true, "rentalCurrency": "rentalCurrency", "accountId": 2186, "checkoutDate": 3473, "price": 1404.5350780944975, "comment": "comment", "id": 6060, "projectId": 2644, "checkoutAmount": 8742.732588296878, "events": [{ "date": 1732184125794, "amount": 7398.689068109607, "type": "type" }], "checkinConsumeDate": 1732184125794, "checkinAmount": 5303.578531124354, "consumedAmount": 7429.864263320136 }], "createdById": 3923, "responsibleUserName": "responsibleUserName" }
Successfull response:

{ "createdByName": "createdByName", "cost": 8210.715818546692, "created": 3749, "description": "description", "customerName": "customerName", "stockValue": 7324.681209185414, "name": "name", "customerId": 2980, "state": "0", "projectId": 2162, "responsibleUserId": 7730, "articles": [{ "articleName": "articleName", "snId": "snId", "invoicedAmount": 8210.472217299593, "batchSnBestBefore": 8758, "accountName": "accountName", "articleId": "articleId", "priceListId": 1883, "purchasePrice": 7394.888427861167, "batchId": "batchId", "rental": true, "rentalCurrency": "rentalCurrency", "accountId": 3439, "checkoutDate": 9960, "price": 4118.900495341232, "comment": "comment", "id": 866, "projectId": 3620, "checkoutAmount": 6032.9113821689625, "events": [{ "date": 1732184125795, "amount": 8048.456456377958, "type": "type" }], "checkinConsumeDate": 1732184125795, "checkinAmount": 7374.810727342089, "consumedAmount": 6249.823839331152 }], "createdById": 1646, "responsibleUserName": "responsibleUserName" }

Update project article

PUTUrl: /{id}/article/{article_id}
Headers:
Accept: application/json or application/xml
Content-type: application/json or application/xml
Update an existing project article
Body:

{ "articleName": "articleName", "snId": "snId", "invoicedAmount": 2958.833748932034, "batchSnBestBefore": 7309, "accountName": "accountName", "articleId": "articleId", "priceListId": 4597, "purchasePrice": 1082.4170312008252, "batchId": "batchId", "rental": true, "rentalCurrency": "rentalCurrency", "accountId": 7331, "checkoutDate": 2448, "price": 3837.223702113074, "comment": "comment", "id": 2027, "projectId": 2917, "checkoutAmount": 6879.19129997939, "events": [{ "date": 1732184125795, "amount": 9663.170912927699, "type": "type" }], "checkinConsumeDate": 1732184125795, "checkinAmount": 9017.303785028695, "consumedAmount": 5094.984615528706 }
Successfull response:

{ "invoiceDrafts": [{ "createdByName": "createdByName", "amount": 3532.402560017911, "articleName": "articleName", "pricelistId": 6917, "endDate": 1732184125795, "rentalAmount": 9477.950894584552, "created": 1732184125795, "dataType": "dataType", "articleId": "articleId", "isInvoiced": true, "rentalCurrency": "rentalCurrency", "dataId": 7289, "price": 8308.358288981235, "isProcessed": false, "dataArticleId": 9979, "currency": "currency", "comment": "comment", "invoiceId": "invoiceId", "id": 5565, "startDate": 1732184125795, "createdById": 4949 }], "articles": [{ "articleName": "articleName", "snId": "snId", "invoicedAmount": 5751.300914433556, "batchSnBestBefore": 845, "accountName": "accountName", "articleId": "articleId", "priceListId": 5503, "purchasePrice": 3919.987856911461, "batchId": "batchId", "rental": false, "rentalCurrency": "rentalCurrency", "accountId": 4844, "checkoutDate": 7104, "price": 1195.3063679306154, "comment": "comment", "id": 2613, "projectId": 4496, "checkoutAmount": 5017.380151475845, "events": [{ "date": 1732184125795, "amount": 7325.008250190313, "type": "type" }], "checkinConsumeDate": 1732184125795, "checkinAmount": 7942.9873279983085, "consumedAmount": 2636.745696244941 }] }

Create invoice drafts

PUTUrl: /{id}/invoice/draft
Headers:
Accept: application/json or application/xml
Content-type: application/json or application/xml
Create invoice drafts for articles in a project
Body:

{ "projectId": 2746, "articles": [{ "articleName": "articleName", "snId": "snId", "invoicedAmount": 3434.34895854541, "batchSnBestBefore": 7158, "accountName": "accountName", "articleId": "articleId", "priceListId": 948, "purchasePrice": 7588.091077796592, "batchId": "batchId", "rental": true, "rentalCurrency": "rentalCurrency", "accountId": 5458, "checkoutDate": 1825, "price": 1871.098916106405, "comment": "comment", "id": 2564, "projectId": 1637, "checkoutAmount": 725.3260339313982, "events": [{ "date": 1732184125795, "amount": 4571.596592601779, "type": "type" }], "checkinConsumeDate": 1732184125795, "checkinAmount": 3343.0654817795157, "consumedAmount": 1393.458329204701 }] }
Successfull response:

{ "invoiceDrafts": [{ "createdByName": "createdByName", "amount": 8373.45106883058, "articleName": "articleName", "pricelistId": 3564, "endDate": 1732184125795, "rentalAmount": 3217.762944535251, "created": 1732184125795, "dataType": "dataType", "articleId": "articleId", "isInvoiced": true, "rentalCurrency": "rentalCurrency", "dataId": 4679, "price": 3701.8273074010567, "isProcessed": true, "dataArticleId": 8591, "currency": "currency", "comment": "comment", "invoiceId": "invoiceId", "id": 9090, "startDate": 1732184125795, "createdById": 3485 }], "articles": [{ "articleName": "articleName", "snId": "snId", "invoicedAmount": 7203.080570973205, "batchSnBestBefore": 4182, "accountName": "accountName", "articleId": "articleId", "priceListId": 2220, "purchasePrice": 4425.140636577791, "batchId": "batchId", "rental": false, "rentalCurrency": "rentalCurrency", "accountId": 5247, "checkoutDate": 9689, "price": 6444.9190628822835, "comment": "comment", "id": 2288, "projectId": 6743, "checkoutAmount": 2820.324611730436, "events": [{ "date": 1732184125795, "amount": 4191.262360402662, "type": "type" }], "checkinConsumeDate": 1732184125795, "checkinAmount": 130.92587958838385, "consumedAmount": 5971.981649783868 }] }

Send invoice drafts to external integrations

PUTUrl: /{id}/invoice
Headers:
Accept: application/json or application/xml
Content-type: application/json or application/xml
Send existing invoice drafts to external integrations and sets the draft to invoiced
Body:

{ "invoiceDrafts": [{ "createdByName": "createdByName", "amount": 6518.345732620386, "articleName": "articleName", "pricelistId": 3665, "endDate": 1732184125796, "rentalAmount": 7866.879355082284, "created": 1732184125796, "dataType": "dataType", "articleId": "articleId", "isInvoiced": false, "rentalCurrency": "rentalCurrency", "dataId": 183, "price": 1492.9701209190293, "isProcessed": true, "dataArticleId": 8260, "currency": "currency", "comment": "comment", "invoiceId": "invoiceId", "id": 6339, "startDate": 1732184125796, "createdById": 2932 }], "freeTexts": [{}], "customerId": 7632, "type": "type", "projectId": 8722 }
Successfull response:

{ "invoiceDrafts": [{ "createdByName": "createdByName", "amount": 4995.193983181411, "articleName": "articleName", "pricelistId": 7027, "endDate": 1732184125796, "rentalAmount": 1871.6818209123687, "created": 1732184125796, "dataType": "dataType", "articleId": "articleId", "isInvoiced": true, "rentalCurrency": "rentalCurrency", "dataId": 9363, "price": 2352.1806237741616, "isProcessed": false, "dataArticleId": 2249, "currency": "currency", "comment": "comment", "invoiceId": "invoiceId", "id": 4433, "startDate": 1732184125796, "createdById": 4698 }], "articles": [{ "articleName": "articleName", "snId": "snId", "invoicedAmount": 7656.941134392804, "batchSnBestBefore": 35, "accountName": "accountName", "articleId": "articleId", "priceListId": 7394, "purchasePrice": 8939.50190328723, "batchId": "batchId", "rental": false, "rentalCurrency": "rentalCurrency", "accountId": 2661, "checkoutDate": 1807, "price": 9831.019364030184, "comment": "comment", "id": 5671, "projectId": 8930, "checkoutAmount": 9611.04152690436, "events": [{ "date": 1732184125796, "amount": 4913.537623477964, "type": "type" }], "checkinConsumeDate": 1732184125796, "checkinAmount": 9392.150154085786, "consumedAmount": 6071.843327878049 }] }

Close project

PUTUrl: /{id}/close
Headers:
Accept: application/json or application/xml
Content-type: application/json or application/xml
Close an existing project
Body:

{"closeArticles": {}}
Successfull response:

{ "createdByName": "createdByName", "cost": 3502.7558555351, "created": 9543, "description": "description", "customerName": "customerName", "stockValue": 9475.129835897327, "name": "name", "customerId": 6787, "state": "0", "projectId": 5428, "responsibleUserId": 9704, "articles": [{ "articleName": "articleName", "snId": "snId", "invoicedAmount": 4263.664570728555, "batchSnBestBefore": 7904, "accountName": "accountName", "articleId": "articleId", "priceListId": 1098, "purchasePrice": 4313.436022952708, "batchId": "batchId", "rental": true, "rentalCurrency": "rentalCurrency", "accountId": 2689, "checkoutDate": 577, "price": 6836.324534162713, "comment": "comment", "id": 8600, "projectId": 2131, "checkoutAmount": 2581.2097182614934, "events": [{ "date": 1732184125796, "amount": 6070.254812929311, "type": "type" }], "checkinConsumeDate": 1732184125796, "checkinAmount": 1995.498661309123, "consumedAmount": 4744.469321763507 }], "createdById": 2911, "responsibleUserName": "responsibleUserName" }

Classes:

CloseProjectRequest

Field Type Description Default Mandatory Accepted values Example values Access
closeArticles HashMap Map containing articles that should be handled when closing a project. Key in map is project-article id and value is from enum set Value in map can be either checkin, consume, end_rent R,W

InvoiceDraft

Field Type Description Default Mandatory Accepted values Example values Access
id long R
dataType String R
dataId Long R
dataArticleId Long R
articleId String R
articleName String R
amount Double R
price Double R
pricelistId long R
currency String R
rentalCurrency String R
startDate Date R
endDate Date R
rentalAmount Double R
comment String R
isInvoiced boolean Indicates if row has been marked as invoiced R
isProcessed boolean Indicates if row has been completely processed as invoiced R
invoiceId String If row has been invoiced, this is id of the created invoice R
createdById Long R
createdByName String R
created Date R

InvoiceDraftProjectArticlesRequest

Field Type Description Default Mandatory Accepted values Example values Access
projectId long R
articles List R

InvoiceProjectArticlesRequest

Field Type Description Default Mandatory Accepted values Example values Access
projectId long R
customerId Long R
type String invoice, cash, card, ag R
invoiceDrafts List R
freeTexts List R,W

InvoiceProjectArticlesResponse

Field Type Description Default Mandatory Accepted values Example values Access
articles List R
invoiceDrafts List R

Project

Field Type Description Default Mandatory Accepted values Example values Access
projectId long R
name String R,W
customerId Long R,W
customerName String R,W
description String R,W
state Integer Write only with POST 0 NEW = 0,
DEVELOPING = 1,
FINISHED = 2,
CANCELLED = 3
R,W
responsibleUserId Long R,W
responsibleUserName String R,W
createdById Long R,W
createdByName String R,W
created long R,W
articles List R,W
cost Double R,W
stockValue Double R,W

ProjectArticle

Field Type Description Default Mandatory Accepted values Example values Access
id long R,W
projectId long R,W
articleId String R,W
articleName String R,W
batchId String R,W
snId String R,W
batchSnBestBefore Long R,W
checkoutAmount Double R,W
checkinAmount Double R,W
consumedAmount Double R,W
invoicedAmount Double R,W
priceListId long R,W
rental boolean R,W
price double R,W
rentalCurrency String R,W
comment String R,W
purchasePrice Double R,W
events List R,W
accountId long R,W
accountName String R,W
checkoutDate Long R,W
checkinConsumeDate Date R,W

ProjectArticleEvent

Field Type Description Default Mandatory Accepted values Example values Access
type String R,W
amount double R,W
date Date R,W

ProjectArticlesResponse

Field Type Description Default Mandatory Accepted values Example values Access
page int R
pages int R
pageSize int R
projectsCount int R
articles List R

ProjectInvoiceDraftsResponse

Field Type Description Default Mandatory Accepted values Example values Access
page int R
pages int R
pageSize int R
draftsCount int R
invoiceDrafts List R

ProjectsResponse

Field Type Description Default Mandatory Accepted values Example values Access
page int R
pages int R
pageSize int R
projectsCount int R
projects List R