Goto APIs

Articles API

General:

Basics:

Base-URL: https://capi.lagerkoll.com/v1/articles/
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
900201 Error when getting an article
900202 Error when creating an article
900203 Error when updating an article
900204 Error when deleting an article
900211 Error when getting batches on article
900221 Error when getting serial number on article
900212 Error when creating a batch on article
900222 Error when creating a serialnumber on article
900213 Error when updating batch on article
900223 Error when updating serialnumber on article
900214 Error when deleting batch on article
900224 Error when deleting serialnumber on article
900803 Error when updating customfield template
900232 Error when importing articles
900233 Error when getting import template
900234 Error when adding import template
900235 Error when updating import template
900236 Error when deleting import template
900241 Error when exporting articles
900251 Error when getting an article units
900252 Error when creating an article unit
900253 Error when updating an article unit
900254 Error when deleting an article unit
{
  "errorCode" : 900101,
  "errorMessage" : "Something went wrong on the server",
  "errorField" : null,
  "errorData" : null
}

Articles API:

Article units

Get article units

GETUrl: /{id : .+}/article_units
Headers:
Accept: application/json or application/xml
Get article units for a specific article
Body:
Successfull response:

{"units": [{ "unit": { "name": "name", "externalId": "externalId", "id": 623 }, "articleId": "articleId", "storegroupId": 6015, "convert": 5419.505787703176, "barcode": "barcode" }]}

Add article unit

POSTUrl: /{id : .+}/article_units
Headers:
Accept: application/json or application/xml
Add article unit for a specific article
Body:

{ "unit": { "name": "name", "id": 7549 }, "convert": 1856.5084722657755, "barcode": "barcode" }
Successfull response:

Set article units

POSTUrl: /{id : .+}/article_units/list
Headers:
Accept: application/json or application/xml
Replace list of article units for a specific article
Body:
Successfull response:

Remove article unit

DELETEUrl: /{id : .+}/article_units/{unit_id}
Headers:
Accept: application/json or application/xml
Remove article unit from a specific article
Body:
Successfull response:

Articles

Get article fifo

GETUrl: /{id : .+}/fifo
Headers:
Accept: application/json or application/xml
Get an article fifo based on article-id

Valid parameters:

Parameter Description Default value Allowed values
page 0
limit 25

Body:
Successfull response:

{ "pages": 2873, "pageSize": 4880, "fifos": [{ "date": 1711659580611, "supplierName": "supplierName", "amount": 2454.288153105162, "supplierOrderId": 6678, "supplierId": 4606, "poRef": "poRef", "description": "description", "purchasePrice": 248.90398490043043, "userName": "userName", "userId": 4238, "amountInStock": 6008.436904319075, "purchaseRate": 5291.47366416708, "id": 5650 }], "fifoCount": 5518, "page": 687, "since": 7963 }

Get article tags

GETUrl: /tags
Headers:
Accept: application/json or application/xml
Get article tags for store group

Valid parameters:

Parameter Description Default value Allowed values
query
page 0
limit 50

Body:
Successfull response:

{ "pages": 7524, "pageSize": 4972, "page": 2574, "projectsCount": 8480, "tags": [{ "name": "name", "externalId": "externalId", "id": 6407, "desc": "desc" }] }

Get other articles

GETUrl: /{article_id}/other_purchased
Headers:
Accept: application/json or application/xml
Based on an article a list of other interesting articles is returned

Valid parameters:

Parameter Description Default value Allowed values
amount 5

Body:
Successfull response:

{ "pages": 9448, "pageSize": 2815, "page": 4020, "articlesCount": 4491, "articles": [{ "supplierAutomaticOrder": false, "supplierBuyPriceMisc": 6692.192566754877, "supplierExternalId": "supplierExternalId", "type": "type", "price": 2384.108336944435, "supplier": 1549, "supplierArticleId": "supplierArticleId", "vatAccount": 6588, "links": [{ "name": "name", "type": "type", "url": "url" }], "stock": "true", "barcode": "barcode", "height": 4214.501844811685, "bundled": "false", "vat": 9798.883971138652, "nextDeliveryDate": 5556, "active": "true", "weight": 815.340106090352, "tags": [{ "name": "name", "externalId": "externalId", "id": 4210, "desc": "desc" }], "supplierBuyRate": 1550.2526514690096, "unit": "st", "reserved": 9422.828496983326, "name": "name", "parts": [{ "buyPrice": 9220.538309756483, "supplierName": "supplierName", "amount": 4113.649880738758, "articleName": "articleName", "supplierId": 891, "unitName": "unitName", "articleId": "articleId", "externalId": "externalId", "stockPlace": "stockPlace", "type": "type", "buyPriceCurrency": "buyPriceCurrency", "reserved": 3254.8810395716164, "buyPriceShipment": 4989.857782434771, "buyPriceMisc": 184.1634400024128, "supplierArticleId": "supplierArticleId", "stock": 2158.5786453375867, "isStock": false, "stockWarning": 9758.723962931377 }], "supplierBuyPriceShipment": 6420.334467939662, "manufacturerArticleId": "manufacturerArticleId", "imageLastUpdated": 8336, "orderedAmount": 5917.773225795917, "stockWarning": 5195.790406885422, "customFields": [{ "name": "name", "type": "type", "validValues": [{ "description": "description", "value": "value" }], "value": "value" }], "barcodeType": "EAN", "description": "description", "stockPlace": "stockPlace", "criticalLevel": 8879.940752593246, "manufacturer": "manufacturer", "batches": { "totalSerialNumbersReserved": 4008.473527644447, "batches": [{ "serialNr": "serialNr", "amount": "1", "articleName": "articleName", "reserved": 2808.450585490975, "bestBefore": 6246, "articleId": "articleId", "batchId": "batchId", "barcode": "barcode" }], "totalBatchesInStock": 2079.942092442395, "totalSerialNumbersInStock": 2436.1109937744864, "serialNumbers": [{ "serialNr": "serialNr", "amount": "1", "articleName": "articleName", "reserved": 594.2967332174587, "bestBefore": 4329, "articleId": "articleId", "batchId": "batchId", "barcode": "barcode" }], "totalBatchesReserved": 5038.233757611778, "totalBatches": 3100, "totalSerialNumbers": 7722 }, "webshopArticle": "false", "availableAmount": 8028.692825684546, "orderLevel": 212.6992315255183, "prices": [{ "listId": 279, "price": "0", "articleId": "articleId", "fromQuantity": "0", "listExternalId": "listExternalId" }], "supplierArticles": [{ "supplierName": "supplierName", "supplierAutomaticOrder": false, "supplierBuyPriceMisc": 5603.674793401738, "supplierBuyRate": "1.0", "supplierBuyPrice": 3570.0856239030068, "supplier": 8924, "supplierArticleId": "supplierArticleId", "supplierBuyCurrency": "Store currency", "supplierBuyPriceShipment": 3759.4191169896217 }], "automaticOrder": false, "supplierName": "supplierName", "deliveredAmount": 4044.8590392039287, "amount": 2589.983937611775, "articleId": "articleId", "externalId": "externalId", "depth": 2804.515160257429, "supplierBuyPrice": 2618.5864486160003, "supplierBuyCurrency": "supplierBuyCurrency", "width": 7141.583306861849, "category": "övrigt" }], "since": 3666 }

Get bundle products from part

GETUrl: /{id : .+}/bundle
Headers:
Accept: application/json or application/xml
Get all bundle products which includes a specific part

Valid parameters:

Parameter Description Default value Allowed values
page 0
limit 100

Body:
Successfull response:

{ "totalSerialNumbersReserved": 1505.7967764803805, "batches": [{ "serialNr": "serialNr", "amount": "1", "articleName": "articleName", "reserved": 3750.3101953643504, "bestBefore": 4799, "articleId": "articleId", "batchId": "batchId", "barcode": "barcode" }], "totalBatchesInStock": 5381.6512131912605, "totalSerialNumbersInStock": 3309.9920828390273, "serialNumbers": [{ "serialNr": "serialNr", "amount": "1", "articleName": "articleName", "reserved": 4060.0878103790783, "bestBefore": 269, "articleId": "articleId", "batchId": "batchId", "barcode": "barcode" }], "totalBatchesReserved": 4414.360351406878, "totalBatches": 3684, "totalSerialNumbers": 3801 }

Get articles

GETUrl:
Headers:
Accept: application/json or application/xml
Get a list of articles based on parameters

Valid parameters:

Parameter Description Default value Allowed values
query
since Default value is current time. To get all articles you must set the since-parameter
page 0
limit 25
order desc asc,desc
sort_column query query,art,name,bundled,cat,unit,stock_place,stock_place_article,desc,price,order,warning_order,stock,reserved,available,supplier,is_stock,type,status,active
details true
tags true
prices false
include_purchase_prices false
filter_outof_stock false
filter_stock_warning false
filter_non_stock false
filter_non_active false
filter_regardless_bundled true
include_image_last_updated false
include_bundle false
include_next_delivery false
include_batches false
supplier_id

Body:
Successfull response:

{ "pages": 1926, "pageSize": 6017, "page": 5604, "articlesCount": 9080, "articles": [{ "supplierAutomaticOrder": false, "supplierBuyPriceMisc": 3028.336441142967, "supplierExternalId": "supplierExternalId", "type": "type", "price": 5885.466102324323, "supplier": 3146, "supplierArticleId": "supplierArticleId", "vatAccount": 1428, "links": [{ "name": "name", "type": "type", "url": "url" }], "stock": "true", "barcode": "barcode", "height": 3232.4045503728603, "bundled": "false", "vat": 7202.629505096083, "nextDeliveryDate": 9466, "active": "true", "weight": 9787.545055723014, "tags": [{ "name": "name", "externalId": "externalId", "id": 516, "desc": "desc" }], "supplierBuyRate": 1373.8341260676557, "unit": "st", "reserved": 7360.694829939699, "name": "name", "parts": [{ "buyPrice": 539.8833881037657, "supplierName": "supplierName", "amount": 153.35503756641722, "articleName": "articleName", "supplierId": 2539, "unitName": "unitName", "articleId": "articleId", "externalId": "externalId", "stockPlace": "stockPlace", "type": "type", "buyPriceCurrency": "buyPriceCurrency", "reserved": 4811.525862521132, "buyPriceShipment": 837.8065207427754, "buyPriceMisc": 3951.216160477613, "supplierArticleId": "supplierArticleId", "stock": 9349.415228558566, "isStock": false, "stockWarning": 677.6763262535601 }], "supplierBuyPriceShipment": 3811.9038199752777, "manufacturerArticleId": "manufacturerArticleId", "imageLastUpdated": 916, "orderedAmount": 1200.1874593821437, "stockWarning": 9045.755990008858, "customFields": [{ "name": "name", "type": "type", "validValues": [{ "description": "description", "value": "value" }], "value": "value" }], "barcodeType": "EAN", "description": "description", "stockPlace": "stockPlace", "criticalLevel": 8739.92612441567, "manufacturer": "manufacturer", "batches": { "totalSerialNumbersReserved": 8742.624256042302, "batches": [{ "serialNr": "serialNr", "amount": "1", "articleName": "articleName", "reserved": 7726.271916056216, "bestBefore": 7108, "articleId": "articleId", "batchId": "batchId", "barcode": "barcode" }], "totalBatchesInStock": 3009.4240505735183, "totalSerialNumbersInStock": 328.9805463094086, "serialNumbers": [{ "serialNr": "serialNr", "amount": "1", "articleName": "articleName", "reserved": 9346.598689278628, "bestBefore": 5233, "articleId": "articleId", "batchId": "batchId", "barcode": "barcode" }], "totalBatchesReserved": 4483.390944178458, "totalBatches": 7564, "totalSerialNumbers": 2517 }, "webshopArticle": "false", "availableAmount": 6301.624068950747, "orderLevel": 3905.4175086073697, "prices": [{ "listId": 7206, "price": "0", "articleId": "articleId", "fromQuantity": "0", "listExternalId": "listExternalId" }], "supplierArticles": [{ "supplierName": "supplierName", "supplierAutomaticOrder": false, "supplierBuyPriceMisc": 2664.552965200088, "supplierBuyRate": "1.0", "supplierBuyPrice": 2075.421515827126, "supplier": 3951, "supplierArticleId": "supplierArticleId", "supplierBuyCurrency": "Store currency", "supplierBuyPriceShipment": 2415.5654972019893 }], "automaticOrder": false, "supplierName": "supplierName", "deliveredAmount": 5147.831534789738, "amount": 9254.224951377311, "articleId": "articleId", "externalId": "externalId", "depth": 3203.7935393784633, "supplierBuyPrice": 2582.70910219663, "supplierBuyCurrency": "supplierBuyCurrency", "width": 8561.756310132077, "category": "övrigt" }], "since": 3512 }

Add article tags

POSTUrl: /tag
Headers:
Accept: application/json or application/xml
Content-type: application/json or application/xml
Add article tags for store group
Body:

{ "name": "name", "externalId": "externalId", "id": 6667, "desc": "desc" }
Successfull response:

{ "name": "name", "externalId": "externalId", "id": 2259, "desc": "desc" }

Update articles

PUTUrl: /list
Headers:
Accept: application/json or application/xml
Content-type: application/json or application/xml
Update a list of existing articles (Max 100 articles per request)
Body:

{ "supplierAutomaticOrder": true, "supplierBuyPriceMisc": 500.08532930664984, "supplierExternalId": "supplierExternalId", "type": "type", "price": 883.764513341212, "supplier": 4857, "supplierArticleId": "supplierArticleId", "vatAccount": 5973, "links": [{ "name": "name", "type": "type", "url": "url" }], "stock": "true", "barcode": "barcode", "height": 6812.332931761091, "bundled": "false", "vat": 162.35763672074134, "nextDeliveryDate": 133, "active": "true", "weight": 9969.696682907255, "tags": [{ "name": "name", "externalId": "externalId", "id": 5522, "desc": "desc" }], "supplierBuyRate": 9793.730250910909, "unit": "st", "reserved": 3501.272482904998, "name": "name", "parts": [{ "buyPrice": 5177.308073712958, "supplierName": "supplierName", "amount": 3159.942553763786, "articleName": "articleName", "supplierId": 2444, "unitName": "unitName", "articleId": "articleId", "externalId": "externalId", "stockPlace": "stockPlace", "type": "type", "buyPriceCurrency": "buyPriceCurrency", "reserved": 2290.3973836520286, "buyPriceShipment": 6241.301669200676, "buyPriceMisc": 7621.365822905924, "supplierArticleId": "supplierArticleId", "stock": 1196.6312516609912, "isStock": false, "stockWarning": 1324.6221644928946 }], "supplierBuyPriceShipment": 3736.372346061352, "manufacturerArticleId": "manufacturerArticleId", "imageLastUpdated": 7767, "orderedAmount": 2592.3288541814172, "stockWarning": 6275.36459275806, "customFields": [{ "name": "name", "type": "type", "validValues": [{ "description": "description", "value": "value" }], "value": "value" }], "barcodeType": "EAN", "description": "description", "stockPlace": "stockPlace", "criticalLevel": 8787.793768371148, "manufacturer": "manufacturer", "batches": { "totalSerialNumbersReserved": 5089.3189360652095, "batches": [{ "serialNr": "serialNr", "amount": "1", "articleName": "articleName", "reserved": 3044.302946681493, "bestBefore": 2976, "articleId": "articleId", "batchId": "batchId", "barcode": "barcode" }], "totalBatchesInStock": 9345.080669149298, "totalSerialNumbersInStock": 565.690728989472, "serialNumbers": [{ "serialNr": "serialNr", "amount": "1", "articleName": "articleName", "reserved": 4487.482309345364, "bestBefore": 7918, "articleId": "articleId", "batchId": "batchId", "barcode": "barcode" }], "totalBatchesReserved": 9821.621074437971, "totalBatches": 297, "totalSerialNumbers": 9177 }, "webshopArticle": "false", "availableAmount": 6334.703196149688, "orderLevel": 9039.424591879806, "prices": [{ "listId": 111, "price": "0", "articleId": "articleId", "fromQuantity": "0", "listExternalId": "listExternalId" }], "supplierArticles": [{ "supplierName": "supplierName", "supplierAutomaticOrder": true, "supplierBuyPriceMisc": 154.43287683192696, "supplierBuyRate": "1.0", "supplierBuyPrice": 2704.042221822528, "supplier": 697, "supplierArticleId": "supplierArticleId", "supplierBuyCurrency": "Store currency", "supplierBuyPriceShipment": 1079.1293390462297 }], "automaticOrder": true, "supplierName": "supplierName", "deliveredAmount": 5452.824293210487, "amount": 4996.018601678896, "articleId": "articleId", "externalId": "externalId", "depth": 2114.0067308798193, "supplierBuyPrice": 833.2597611116843, "supplierBuyCurrency": "supplierBuyCurrency", "width": 8491.649740595989, "category": "övrigt" }
Successfull response:

Delete article fifo

DELETEUrl: /fifo/{id}
Headers:
Accept: application/json or application/xml
Delete a specific fifo row
Body:
Successfull response:

Batches

Get batches

GETUrl: /batch
Headers:
Accept: application/json or application/xml
Get batches based on query

Valid parameters:

Parameter Description Default value Allowed values
query
include_all_batches true
page 0
limit 100

Body:
Successfull response:

{ "totalSerialNumbersReserved": 2421.4275238708105, "batches": [{ "serialNr": "serialNr", "amount": "1", "articleName": "articleName", "reserved": 4437.20323593497, "bestBefore": 1929, "articleId": "articleId", "batchId": "batchId", "barcode": "barcode" }], "totalBatchesInStock": 1872.5914274119016, "totalSerialNumbersInStock": 8855.719838619145, "serialNumbers": [{ "serialNr": "serialNr", "amount": "1", "articleName": "articleName", "reserved": 1408.26959216515, "bestBefore": 349, "articleId": "articleId", "batchId": "batchId", "barcode": "barcode" }], "totalBatchesReserved": 3568.4272429157527, "totalBatches": 1703, "totalSerialNumbers": 8329 }

Get serial numbers

GETUrl: /serialnumber
Headers:
Accept: application/json or application/xml
Get serial numbers based on query

Valid parameters:

Parameter Description Default value Allowed values
query
page 0
limit 100

Body:
Successfull response:

{ "totalSerialNumbersReserved": 2091.170633689625, "batches": [{ "serialNr": "serialNr", "amount": "1", "articleName": "articleName", "reserved": 9310.115820768242, "bestBefore": 7805, "articleId": "articleId", "batchId": "batchId", "barcode": "barcode" }], "totalBatchesInStock": 5468.345150730558, "totalSerialNumbersInStock": 3779.529912913132, "serialNumbers": [{ "serialNr": "serialNr", "amount": "1", "articleName": "articleName", "reserved": 8365.388243977293, "bestBefore": 4796, "articleId": "articleId", "batchId": "batchId", "barcode": "barcode" }], "totalBatchesReserved": 3402.1795256091623, "totalBatches": 7233, "totalSerialNumbers": 2484 }

Add batch

POSTUrl: /{id : .+}/batch
Headers:
Accept: application/json or application/xml
Content-type: application/json or application/xml
Add batch to an existing article
Body:

{ "serialNr": "serialNr", "amount": "1", "bestBefore": 3006, "batchId": "batchId", "barcode": "barcode" }
Successfull response:

Update batch

PUTUrl: /{id : .+}/batch/{batch_id : .+}
Headers:
Accept: application/json or application/xml
Content-type: application/json or application/xml
Update batch for a specific article
Body:

{ "serialNr": "serialNr", "amount": "1", "articleName": "articleName", "reserved": 653.2598432999182, "bestBefore": 4105, "articleId": "articleId", "batchId": "batchId", "barcode": "barcode" }
Successfull response:

Update serial number

PUTUrl: /{id : .+}/serialnumber/{serialnumber : .+}
Headers:
Accept: application/json or application/xml
Content-type: application/json or application/xml
Update serial number for a specific article
Body:

{ "serialNr": "serialNr", "amount": "1", "articleName": "articleName", "reserved": 7168.952634455571, "bestBefore": 6551, "articleId": "articleId", "batchId": "batchId", "barcode": "barcode" }
Successfull response:

Delete batch

DELETEUrl: /{id : .+}/batch/{batch_id : .+}
Headers:
Accept: application/json or application/xml
Content-type: application/json or application/xml
Delete a batch for a specific article
Body:
Successfull response:

Delete serial number

DELETEUrl: /{id : .+}/serialnumber/{serialnumber : .+}
Headers:
Accept: application/json or application/xml
Content-type: application/json or application/xml
Delete serial number for a specific article
Body:
Successfull response:

Custom fields

Get custom fields template

GETUrl: /customfields_template
Headers:
Accept: application/json or application/xml
The template contains fields that will automatically be added to new articles

Valid parameters:

Parameter Description Default value Allowed values
query

Body:
Successfull response:

{"fields": [{ "name": "name", "type": "type", "validValues": [{ "description": "description", "value": "value" }], "value": "value" }]}

Get custom fields not in template

GETUrl: /customfields
Headers:
Accept: application/json or application/xml
Get custom fields which exists on articles but is not in the template

Valid parameters:

Parameter Description Default value Allowed values
query
page 0
limit 50

Body:
Successfull response:

{"fields": [{ "name": "name", "type": "type", "validValues": [{ "description": "description", "value": "value" }], "value": "value" }]}

Update custom fields template

PUTUrl: /customfields_template
Headers:
Accept: application/json or application/xml
The template contains fields that will automatically be added to new articles

Valid parameters:

Parameter Description Default value Allowed values
update_articles false

Body:

{"fields": [{ "name": "name", "type": "type", "validValues": [{ "description": "description", "value": "value" }], "value": "value" }]}
Successfull response:

{"fields": [{ "name": "name", "type": "type", "validValues": [{ "description": "description", "value": "value" }], "value": "value" }]}

Export

Create export for date

POSTUrl: /export/{template_id}/date/{date}
Headers:
Accept: application/json or application/xml
Create export file for specific date and template
Body:
Successfull response:

Stock

Get stock value

GETUrl: /stockvalue
Headers:
Accept: application/json or application/xml
Get stock value for selected store

Valid parameters:

Parameter Description Default value Allowed values
date

Body:
Successfull response:

{ "stockValue": 7227.687505999735, "stockValueFIFO": 3400.965161237047 }

Templates

Get import templates

GETUrl: /import/templates
Headers:
Accept: application/json or application/xml
Get article import templates

Valid parameters:

Parameter Description Default value Allowed values
query
page 0
limit 50

Body:
Successfull response:

{ "importTemplates": [{ "data": { "rowFirst": 9332, "customFields": {}, "barcodeType": { "defaultValue": "defaultValue", "column": 5273 }, "description": { "defaultValue": "defaultValue", "column": 3451 }, "stockPlace": { "defaultValue": "defaultValue", "column": 1211 }, "isActive": { "defaultValue": "defaultValue", "column": 8210 }, "type": { "defaultValue": "defaultValue", "column": 3133 }, "criticalLevel": { "defaultValue": "defaultValue", "column": 4817 }, "buyPriceCurrency": { "defaultValue": "defaultValue", "column": 8042 }, "manufacturer": { "defaultValue": "defaultValue", "column": 4695 }, "buyPriceShipment": { "defaultValue": "defaultValue", "column": 8401 }, "rate": { "defaultValue": "defaultValue", "column": 1335 }, "orderLevel": { "defaultValue": "defaultValue", "column": 1384 }, "buyPriceMisc": { "defaultValue": "defaultValue", "column": 6673 }, "supplier": { "defaultValue": "defaultValue", "column": 7325 }, "supplierArticleId": { "defaultValue": "defaultValue", "column": 461 }, "vatAccount": { "defaultValue": "defaultValue", "column": 6665 }, "isWebshopArticle": { "defaultValue": "defaultValue", "column": 2979 }, "barcode": { "defaultValue": "defaultValue", "column": 6997 }, "height": { "defaultValue": "defaultValue", "column": 2032 }, "isBundled": { "defaultValue": "defaultValue", "column": 683 }, "buyPrice": { "defaultValue": "defaultValue", "column": 836 }, "amount": { "defaultValue": "defaultValue", "column": 4652 }, "articleName": 9860, "rowTitle": 5498, "articleId": 1326, "vat": { "defaultValue": "defaultValue", "column": 924 }, "weight": { "defaultValue": "defaultValue", "column": 5938 }, "tags": { "defaultValue": "defaultValue", "column": 7784 }, "unit": { "defaultValue": "defaultValue", "column": 5584 }, "depth": { "defaultValue": "defaultValue", "column": 1271 }, "priceLists": {}, "width": { "defaultValue": "defaultValue", "column": 9867 }, "manufacturerArticleId": { "defaultValue": "defaultValue", "column": 8628 }, "category": { "defaultValue": "defaultValue", "column": 3838 }, "isStock": { "defaultValue": "defaultValue", "column": 5395 }, "stockWarning": { "defaultValue": "defaultValue", "column": 7987 } }, "name": "name", "storegroupId": 152, "id": 2121, "type": "type" }], "pages": 5778, "pageSize": 2974, "page": 9248, "importTemplateCount": 96 }

Delete import template

DELETEUrl: import/template/{id}
Headers:
Accept: application/json or application/xml
Content-type: application/json or application/xml
Delete import template for articles
Body:
Successfull response:

Delete custom field

DELETEUrl: customfields/{name}
Headers:
Accept: application/json or application/xml
Content-type: application/json or application/xml
Delete custom field and remove it from articles
Body:
Successfull response:

Articles

Get storegroup articles

GETUrl: /group
Headers:
Accept: application/json or application/xml
Search for articles across all stores in a storegroup

Valid parameters:

Parameter Description Default value Allowed values
query
page 0
limit 25
order asc asc,desc
sort_column art query,art,name,store

Body:
Successfull response:

{ "pages": 6460, "pageSize": 1739, "page": 3361, "articlesCount": 2417, "articles": [{ "availableAmount": 4837.522018544483, "articleId": "articleId", "name": "name", "storeName": "storeName", "storeId": 4062 }], "since": 910 }

Get articles for supplier

GETUrl: /supplier/{supplier_id}
Headers:
Accept: application/json or application/xml
Get a list of articles connected to a supplier

Valid parameters:

Parameter Description Default value Allowed values
page 0
limit 25
order asc asc,desc
sort_column name art,name,bundled,cat,unit,stock_place,stock_place_article,desc,price,order,warning_order,stock,reserved,supplier,is_stock,type,status,active

Body:
Successfull response:

{ "pages": 7328, "pageSize": 175, "page": 2681, "articlesCount": 394, "articles": [{ "supplierAutomaticOrder": false, "supplierBuyPriceMisc": 9160.852454249834, "supplierExternalId": "supplierExternalId", "type": "type", "price": 8947.5063541043, "supplier": 1408, "supplierArticleId": "supplierArticleId", "vatAccount": 6268, "links": [{ "name": "name", "type": "type", "url": "url" }], "stock": "true", "barcode": "barcode", "height": 9826.052950359357, "bundled": "false", "vat": 2531.3801097858436, "nextDeliveryDate": 2664, "active": "true", "weight": 4207.067726216675, "tags": [{ "name": "name", "externalId": "externalId", "id": 1525, "desc": "desc" }], "supplierBuyRate": 2780.3734444937977, "unit": "st", "reserved": 5811.09175863814, "name": "name", "parts": [{ "buyPrice": 2724.365936149418, "supplierName": "supplierName", "amount": 4837.713899314673, "articleName": "articleName", "supplierId": 6744, "unitName": "unitName", "articleId": "articleId", "externalId": "externalId", "stockPlace": "stockPlace", "type": "type", "buyPriceCurrency": "buyPriceCurrency", "reserved": 523.3052235205582, "buyPriceShipment": 9733.959061893953, "buyPriceMisc": 5130.147559884751, "supplierArticleId": "supplierArticleId", "stock": 8870.049087807967, "isStock": false, "stockWarning": 6749.419563359238 }], "supplierBuyPriceShipment": 7071.268477152716, "manufacturerArticleId": "manufacturerArticleId", "imageLastUpdated": 8169, "orderedAmount": 8683.089208484489, "stockWarning": 3862.889502563065, "customFields": [{ "name": "name", "type": "type", "validValues": [{ "description": "description", "value": "value" }], "value": "value" }], "barcodeType": "EAN", "description": "description", "stockPlace": "stockPlace", "criticalLevel": 2911.9682131339287, "manufacturer": "manufacturer", "batches": { "totalSerialNumbersReserved": 905.4775187251618, "batches": [{ "serialNr": "serialNr", "amount": "1", "articleName": "articleName", "reserved": 1525.8550639072876, "bestBefore": 6961, "articleId": "articleId", "batchId": "batchId", "barcode": "barcode" }], "totalBatchesInStock": 651.1386041092281, "totalSerialNumbersInStock": 6893.919409573949, "serialNumbers": [{ "serialNr": "serialNr", "amount": "1", "articleName": "articleName", "reserved": 6944.921814863221, "bestBefore": 5238, "articleId": "articleId", "batchId": "batchId", "barcode": "barcode" }], "totalBatchesReserved": 677.0788420259966, "totalBatches": 5599, "totalSerialNumbers": 131 }, "webshopArticle": "false", "availableAmount": 4954.625374521939, "orderLevel": 2471.2280865994408, "prices": [{ "listId": 3293, "price": "0", "articleId": "articleId", "fromQuantity": "0", "listExternalId": "listExternalId" }], "supplierArticles": [{ "supplierName": "supplierName", "supplierAutomaticOrder": true, "supplierBuyPriceMisc": 6535.415393334343, "supplierBuyRate": "1.0", "supplierBuyPrice": 2688.10498458108, "supplier": 6741, "supplierArticleId": "supplierArticleId", "supplierBuyCurrency": "Store currency", "supplierBuyPriceShipment": 248.1492840409949 }], "automaticOrder": true, "supplierName": "supplierName", "deliveredAmount": 5535.961921828248, "amount": 5781.742651740365, "articleId": "articleId", "externalId": "externalId", "depth": 7556.217951702501, "supplierBuyPrice": 9235.593513941425, "supplierBuyCurrency": "supplierBuyCurrency", "width": 1251.6170283707618, "category": "övrigt" }], "since": 5339 }

Get articles for category

GETUrl: /category/{category_id}
Headers:
Accept: application/json or application/xml
Get a list of articles connected to a category

Valid parameters:

Parameter Description Default value Allowed values
query
page 0
limit 25
order asc asc,desc
sort_column name art,name,bundled,cat,unit,stock_place,stock_place_article,desc,price,order,warning_order,stock,reserved,supplier,is_stock,type,status,active
details true
prices false
include_purchase_prices false
include_image_last_updated false
include_bundle false
include_next_delivery false
include_batches false

Body:
Successfull response:

{ "pages": 8214, "pageSize": 3973, "page": 4357, "articlesCount": 3470, "articles": [{ "supplierAutomaticOrder": true, "supplierBuyPriceMisc": 3946.7447407678555, "supplierExternalId": "supplierExternalId", "type": "type", "price": 1146.966151229034, "supplier": 3916, "supplierArticleId": "supplierArticleId", "vatAccount": 2682, "links": [{ "name": "name", "type": "type", "url": "url" }], "stock": "true", "barcode": "barcode", "height": 3118.8033451998454, "bundled": "false", "vat": 9434.294951167805, "nextDeliveryDate": 6498, "active": "true", "weight": 9898.786493927824, "tags": [{ "name": "name", "externalId": "externalId", "id": 35, "desc": "desc" }], "supplierBuyRate": 289.77655142244816, "unit": "st", "reserved": 471.8698712000702, "name": "name", "parts": [{ "buyPrice": 2114.2240771493302, "supplierName": "supplierName", "amount": 7318.407263912133, "articleName": "articleName", "supplierId": 7065, "unitName": "unitName", "articleId": "articleId", "externalId": "externalId", "stockPlace": "stockPlace", "type": "type", "buyPriceCurrency": "buyPriceCurrency", "reserved": 2958.7671900895693, "buyPriceShipment": 4114.186428648116, "buyPriceMisc": 464.00523469318, "supplierArticleId": "supplierArticleId", "stock": 3108.4546942645484, "isStock": false, "stockWarning": 6696.4668672795815 }], "supplierBuyPriceShipment": 3390.388056486858, "manufacturerArticleId": "manufacturerArticleId", "imageLastUpdated": 944, "orderedAmount": 3357.3398948411173, "stockWarning": 4590.726425878761, "customFields": [{ "name": "name", "type": "type", "validValues": [{ "description": "description", "value": "value" }], "value": "value" }], "barcodeType": "EAN", "description": "description", "stockPlace": "stockPlace", "criticalLevel": 8009.968872714651, "manufacturer": "manufacturer", "batches": { "totalSerialNumbersReserved": 4846.077187497172, "batches": [{ "serialNr": "serialNr", "amount": "1", "articleName": "articleName", "reserved": 2528.312721414936, "bestBefore": 577, "articleId": "articleId", "batchId": "batchId", "barcode": "barcode" }], "totalBatchesInStock": 560.1442671657186, "totalSerialNumbersInStock": 7224.13994928297, "serialNumbers": [{ "serialNr": "serialNr", "amount": "1", "articleName": "articleName", "reserved": 1764.6378708590616, "bestBefore": 7543, "articleId": "articleId", "batchId": "batchId", "barcode": "barcode" }], "totalBatchesReserved": 9155.351951195264, "totalBatches": 9241, "totalSerialNumbers": 2881 }, "webshopArticle": "false", "availableAmount": 2259.3412250398183, "orderLevel": 3264.4768428618363, "prices": [{ "listId": 7747, "price": "0", "articleId": "articleId", "fromQuantity": "0", "listExternalId": "listExternalId" }], "supplierArticles": [{ "supplierName": "supplierName", "supplierAutomaticOrder": false, "supplierBuyPriceMisc": 4255.5792151802725, "supplierBuyRate": "1.0", "supplierBuyPrice": 4840.852924177088, "supplier": 1929, "supplierArticleId": "supplierArticleId", "supplierBuyCurrency": "Store currency", "supplierBuyPriceShipment": 3789.18530154862 }], "automaticOrder": true, "supplierName": "supplierName", "deliveredAmount": 8689.553804908533, "amount": 3179.3423262113065, "articleId": "articleId", "externalId": "externalId", "depth": 2546.958521919748, "supplierBuyPrice": 9064.224591075525, "supplierBuyCurrency": "supplierBuyCurrency", "width": 2588.4594759128745, "category": "övrigt" }], "since": 4324 }

Get stockplaces

GETUrl: /stockplaces
Headers:
Accept: application/json or application/xml
Get list of stockplaces used in articles
Body:
Successfull response:

{"stockplaces": [{ "articles": 5216, "stockplace": "stockplace" }]}

Get history articles

GETUrl: /history
Headers:
Accept: application/json or application/xml
Get a list of articles for a specific date

Valid parameters:

Parameter Description Default value Allowed values
page 0
limit 25
date
category Include a category-id to only include articles for this category
include_paging_info true

Body:
Successfull response:

{ "pages": 8860, "pageSize": 4792, "page": 3256, "articlesCount": 7904, "articles": [{ "supplierAutomaticOrder": true, "supplierBuyPriceMisc": 9227.000439584706, "supplierExternalId": "supplierExternalId", "type": "type", "price": 4271.147663306209, "supplier": 1530, "supplierArticleId": "supplierArticleId", "vatAccount": 4264, "links": [{ "name": "name", "type": "type", "url": "url" }], "stock": "true", "barcode": "barcode", "height": 9988.636136321311, "bundled": "false", "vat": 4783.3620945712455, "nextDeliveryDate": 5716, "active": "true", "weight": 6521.821858742331, "tags": [{ "name": "name", "externalId": "externalId", "id": 6833, "desc": "desc" }], "supplierBuyRate": 5776.035567543345, "unit": "st", "reserved": 1856.4232972730722, "name": "name", "parts": [{ "buyPrice": 4301.477434015564, "supplierName": "supplierName", "amount": 457.4957423859827, "articleName": "articleName", "supplierId": 8853, "unitName": "unitName", "articleId": "articleId", "externalId": "externalId", "stockPlace": "stockPlace", "type": "type", "buyPriceCurrency": "buyPriceCurrency", "reserved": 589.2764060857736, "buyPriceShipment": 5573.5101881507235, "buyPriceMisc": 334.60170746369977, "supplierArticleId": "supplierArticleId", "stock": 1806.2790671852613, "isStock": true, "stockWarning": 5887.792070332265 }], "supplierBuyPriceShipment": 1958.0396004074785, "manufacturerArticleId": "manufacturerArticleId", "imageLastUpdated": 1424, "orderedAmount": 7301.22259637362, "stockWarning": 3674.483875001625, "customFields": [{ "name": "name", "type": "type", "validValues": [{ "description": "description", "value": "value" }], "value": "value" }], "barcodeType": "EAN", "description": "description", "stockPlace": "stockPlace", "criticalLevel": 4418.881281954042, "manufacturer": "manufacturer", "batches": { "totalSerialNumbersReserved": 1460.3706234491642, "batches": [{ "serialNr": "serialNr", "amount": "1", "articleName": "articleName", "reserved": 7928.578959950927, "bestBefore": 7101, "articleId": "articleId", "batchId": "batchId", "barcode": "barcode" }], "totalBatchesInStock": 5343.400325613191, "totalSerialNumbersInStock": 6471.639631291366, "serialNumbers": [{ "serialNr": "serialNr", "amount": "1", "articleName": "articleName", "reserved": 6068.799537129204, "bestBefore": 9977, "articleId": "articleId", "batchId": "batchId", "barcode": "barcode" }], "totalBatchesReserved": 7649.157755438189, "totalBatches": 7541, "totalSerialNumbers": 1072 }, "webshopArticle": "false", "availableAmount": 7951.440415802087, "orderLevel": 1908.832563974907, "prices": [{ "listId": 7315, "price": "0", "articleId": "articleId", "fromQuantity": "0", "listExternalId": "listExternalId" }], "supplierArticles": [{ "supplierName": "supplierName", "supplierAutomaticOrder": false, "supplierBuyPriceMisc": 9180.208560044104, "supplierBuyRate": "1.0", "supplierBuyPrice": 3598.393385491223, "supplier": 4224, "supplierArticleId": "supplierArticleId", "supplierBuyCurrency": "Store currency", "supplierBuyPriceShipment": 4472.3066352218775 }], "automaticOrder": false, "supplierName": "supplierName", "deliveredAmount": 8841.728667882617, "amount": 1461.6136289851745, "articleId": "articleId", "externalId": "externalId", "depth": 5477.090917899912, "supplierBuyPrice": 8365.650539479553, "supplierBuyCurrency": "supplierBuyCurrency", "width": 9620.893822655853, "category": "övrigt" }], "since": 6507 }

Get history articles info

GETUrl: /history/info
Headers:
Accept: application/json or application/xml
Get info on number of articles and pages exists in stock for given date

Valid parameters:

Parameter Description Default value Allowed values
limit 25
date
category Include a category-id to only include articles for this category

Body:
Successfull response:

{ "pages": 7863, "pageSize": 1040, "page": 1667, "articlesCount": 2688, "articles": [{ "supplierAutomaticOrder": false, "supplierBuyPriceMisc": 6619.641032851251, "supplierExternalId": "supplierExternalId", "type": "type", "price": 148.06803606391418, "supplier": 3149, "supplierArticleId": "supplierArticleId", "vatAccount": 6972, "links": [{ "name": "name", "type": "type", "url": "url" }], "stock": "true", "barcode": "barcode", "height": 1620.9009676180308, "bundled": "false", "vat": 7629.74185257876, "nextDeliveryDate": 7663, "active": "true", "weight": 2419.3832356144917, "tags": [{ "name": "name", "externalId": "externalId", "id": 8271, "desc": "desc" }], "supplierBuyRate": 4545.475294885495, "unit": "st", "reserved": 7093.4735274748255, "name": "name", "parts": [{ "buyPrice": 4513.331142486149, "supplierName": "supplierName", "amount": 6758.987650355574, "articleName": "articleName", "supplierId": 1138, "unitName": "unitName", "articleId": "articleId", "externalId": "externalId", "stockPlace": "stockPlace", "type": "type", "buyPriceCurrency": "buyPriceCurrency", "reserved": 8972.316682279676, "buyPriceShipment": 5885.745676633035, "buyPriceMisc": 7892.825638297446, "supplierArticleId": "supplierArticleId", "stock": 5427.670028605775, "isStock": true, "stockWarning": 9199.510137033116 }], "supplierBuyPriceShipment": 2617.8440731254873, "manufacturerArticleId": "manufacturerArticleId", "imageLastUpdated": 2071, "orderedAmount": 99.01070931575772, "stockWarning": 9649.545597649996, "customFields": [{ "name": "name", "type": "type", "validValues": [{ "description": "description", "value": "value" }], "value": "value" }], "barcodeType": "EAN", "description": "description", "stockPlace": "stockPlace", "criticalLevel": 9267.146001663654, "manufacturer": "manufacturer", "batches": { "totalSerialNumbersReserved": 3930.0470562584433, "batches": [{ "serialNr": "serialNr", "amount": "1", "articleName": "articleName", "reserved": 5851.459599363874, "bestBefore": 6463, "articleId": "articleId", "batchId": "batchId", "barcode": "barcode" }], "totalBatchesInStock": 7566.991623675911, "totalSerialNumbersInStock": 7752.740307185786, "serialNumbers": [{ "serialNr": "serialNr", "amount": "1", "articleName": "articleName", "reserved": 4598.5524541866225, "bestBefore": 7703, "articleId": "articleId", "batchId": "batchId", "barcode": "barcode" }], "totalBatchesReserved": 5676.593477522864, "totalBatches": 787, "totalSerialNumbers": 3711 }, "webshopArticle": "false", "availableAmount": 7232.732967097959, "orderLevel": 3231.4603973487733, "prices": [{ "listId": 437, "price": "0", "articleId": "articleId", "fromQuantity": "0", "listExternalId": "listExternalId" }], "supplierArticles": [{ "supplierName": "supplierName", "supplierAutomaticOrder": true, "supplierBuyPriceMisc": 5556.143633227273, "supplierBuyRate": "1.0", "supplierBuyPrice": 1698.0499421829377, "supplier": 6430, "supplierArticleId": "supplierArticleId", "supplierBuyCurrency": "Store currency", "supplierBuyPriceShipment": 461.6014286938086 }], "automaticOrder": false, "supplierName": "supplierName", "deliveredAmount": 2242.9816973480642, "amount": 5208.228221989721, "articleId": "articleId", "externalId": "externalId", "depth": 3773.0045949024816, "supplierBuyPrice": 9636.807273452077, "supplierBuyCurrency": "supplierBuyCurrency", "width": 7176.923888650645, "category": "övrigt" }], "since": 6592 }

Get articles for autocomplete

GETUrl: /autocomplete
Headers:
Accept: application/json or application/xml
Get a list of articles with bare minimum of fields to use for autocomplete fields

Valid parameters:

Parameter Description Default value Allowed values
light true
query
pricelist_id -1
supplier_id -1
page 0
limit 20

Body:
Successfull response:

{ "pages": 3040, "pageSize": 2159, "page": 6632, "articlesCount": 4744, "articles": [{ "supplierBuyPriceMisc": 6267.21564973163, "amount": 1604.192861977376, "bundled": true, "barcodeType": "EAN", "articleId": "articleId", "vat": 3188.3960131871704, "active": true, "type": "type", "supplierBuyRate": 2378.489821174713, "unit": "unit", "reserved": 8333.554916477387, "price": 6173.334283312306, "supplierBuyPrice": 8807.12440016509, "name": "name", "supplierBuyCurrency": "supplierBuyCurrency", "supplierBuyPriceShipment": 983.776352926441, "stock": true, "barcode": "barcode" }] }

Get articles low in stock

GETUrl: /stockwarning
Headers:
Accept: application/json or application/xml
Get a list of articles below stock warning

Valid parameters:

Parameter Description Default value Allowed values
filter_warning_flag false
set_articles_warned false

Body:
Successfull response:

{ "pages": 9497, "pageSize": 8707, "page": 6276, "articlesCount": 1186, "articles": [{ "supplierAutomaticOrder": true, "supplierBuyPriceMisc": 6803.841905859967, "supplierExternalId": "supplierExternalId", "type": "type", "price": 5341.823764841154, "supplier": 4297, "supplierArticleId": "supplierArticleId", "vatAccount": 4502, "links": [{ "name": "name", "type": "type", "url": "url" }], "stock": "true", "barcode": "barcode", "height": 8776.747658452414, "bundled": "false", "vat": 5443.225632681046, "nextDeliveryDate": 8972, "active": "true", "weight": 3704.7441804796445, "tags": [{ "name": "name", "externalId": "externalId", "id": 6247, "desc": "desc" }], "supplierBuyRate": 1917.4025617229395, "unit": "st", "reserved": 2377.9893152610766, "name": "name", "parts": [{ "buyPrice": 3881.627647702519, "supplierName": "supplierName", "amount": 1768.5958255484347, "articleName": "articleName", "supplierId": 148, "unitName": "unitName", "articleId": "articleId", "externalId": "externalId", "stockPlace": "stockPlace", "type": "type", "buyPriceCurrency": "buyPriceCurrency", "reserved": 5415.97892606506, "buyPriceShipment": 1619.6577564649174, "buyPriceMisc": 6467.278834545098, "supplierArticleId": "supplierArticleId", "stock": 1001.6191481069492, "isStock": false, "stockWarning": 4890.555506099289 }], "supplierBuyPriceShipment": 4144.748616536695, "manufacturerArticleId": "manufacturerArticleId", "imageLastUpdated": 8208, "orderedAmount": 6660.779273231536, "stockWarning": 938.1651656544387, "customFields": [{ "name": "name", "type": "type", "validValues": [{ "description": "description", "value": "value" }], "value": "value" }], "barcodeType": "EAN", "description": "description", "stockPlace": "stockPlace", "criticalLevel": 2312.3602734432593, "manufacturer": "manufacturer", "batches": { "totalSerialNumbersReserved": 6245.684169908494, "batches": [{ "serialNr": "serialNr", "amount": "1", "articleName": "articleName", "reserved": 6771.42240626146, "bestBefore": 2704, "articleId": "articleId", "batchId": "batchId", "barcode": "barcode" }], "totalBatchesInStock": 3324.4063878164575, "totalSerialNumbersInStock": 1535.595205854261, "serialNumbers": [{ "serialNr": "serialNr", "amount": "1", "articleName": "articleName", "reserved": 8641.721949805278, "bestBefore": 3892, "articleId": "articleId", "batchId": "batchId", "barcode": "barcode" }], "totalBatchesReserved": 4115.989689682179, "totalBatches": 7668, "totalSerialNumbers": 7234 }, "webshopArticle": "false", "availableAmount": 754.1597515192589, "orderLevel": 465.49655142523625, "prices": [{ "listId": 5181, "price": "0", "articleId": "articleId", "fromQuantity": "0", "listExternalId": "listExternalId" }], "supplierArticles": [{ "supplierName": "supplierName", "supplierAutomaticOrder": true, "supplierBuyPriceMisc": 3693.4585348859405, "supplierBuyRate": "1.0", "supplierBuyPrice": 5787.450646704737, "supplier": 8547, "supplierArticleId": "supplierArticleId", "supplierBuyCurrency": "Store currency", "supplierBuyPriceShipment": 993.5309187326469 }], "automaticOrder": false, "supplierName": "supplierName", "deliveredAmount": 9279.3017355901, "amount": 8262.298920431793, "articleId": "articleId", "externalId": "externalId", "depth": 975.0141418306313, "supplierBuyPrice": 9900.805308446514, "supplierBuyCurrency": "supplierBuyCurrency", "width": 2928.4952638282657, "category": "övrigt" }], "since": 709 }

Count articles low in stock

GETUrl: /stockwarning/count
Headers:
Accept: application/json or application/xml
Get the number of articles below stock warning

Valid parameters:

Parameter Description Default value Allowed values
include_ordered true

Body:
Successfull response:

{"count": 8670}

Get article (external)

GETUrl: /external/{id : .+}
Headers:
Accept: application/json or application/xml
Get an article based on external article-id

Valid parameters:

Parameter Description Default value Allowed values
prices false
include_bundle false
include_next_delivery false
include_purchase_prices false
include_batches false
sort_column batch_id batch_id,serie_nr,amount,best_before
order desc asc,desc

Body:
Successfull response:

{ "pages": 6184, "pageSize": 219, "page": 528, "articlesCount": 6367, "articles": [{ "supplierAutomaticOrder": false, "supplierBuyPriceMisc": 9837.11055106452, "supplierExternalId": "supplierExternalId", "type": "type", "price": 3804.7278226287494, "supplier": 1561, "supplierArticleId": "supplierArticleId", "vatAccount": 9511, "links": [{ "name": "name", "type": "type", "url": "url" }], "stock": "true", "barcode": "barcode", "height": 2804.1236753702483, "bundled": "false", "vat": 2076.177657343272, "nextDeliveryDate": 1539, "active": "true", "weight": 9121.873475236234, "tags": [{ "name": "name", "externalId": "externalId", "id": 2972, "desc": "desc" }], "supplierBuyRate": 4920.303204395949, "unit": "st", "reserved": 4315.653405230891, "name": "name", "parts": [{ "buyPrice": 1187.0215508117788, "supplierName": "supplierName", "amount": 2336.5224899918003, "articleName": "articleName", "supplierId": 8844, "unitName": "unitName", "articleId": "articleId", "externalId": "externalId", "stockPlace": "stockPlace", "type": "type", "buyPriceCurrency": "buyPriceCurrency", "reserved": 1827.656589584108, "buyPriceShipment": 9594.766695802393, "buyPriceMisc": 1660.2329171216845, "supplierArticleId": "supplierArticleId", "stock": 4503.225351053958, "isStock": true, "stockWarning": 6375.08123431312 }], "supplierBuyPriceShipment": 1381.5053022461332, "manufacturerArticleId": "manufacturerArticleId", "imageLastUpdated": 7670, "orderedAmount": 2233.878504744683, "stockWarning": 2257.3169643677847, "customFields": [{ "name": "name", "type": "type", "validValues": [{ "description": "description", "value": "value" }], "value": "value" }], "barcodeType": "EAN", "description": "description", "stockPlace": "stockPlace", "criticalLevel": 54.11611593378218, "manufacturer": "manufacturer", "batches": { "totalSerialNumbersReserved": 5865.6034709678615, "batches": [{ "serialNr": "serialNr", "amount": "1", "articleName": "articleName", "reserved": 8756.386812519737, "bestBefore": 5975, "articleId": "articleId", "batchId": "batchId", "barcode": "barcode" }], "totalBatchesInStock": 6766.33589447451, "totalSerialNumbersInStock": 326.6474737219771, "serialNumbers": [{ "serialNr": "serialNr", "amount": "1", "articleName": "articleName", "reserved": 2957.126860595484, "bestBefore": 8506, "articleId": "articleId", "batchId": "batchId", "barcode": "barcode" }], "totalBatchesReserved": 534.1198491181964, "totalBatches": 3756, "totalSerialNumbers": 4283 }, "webshopArticle": "false", "availableAmount": 6556.631383902808, "orderLevel": 7977.965440842503, "prices": [{ "listId": 4152, "price": "0", "articleId": "articleId", "fromQuantity": "0", "listExternalId": "listExternalId" }], "supplierArticles": [{ "supplierName": "supplierName", "supplierAutomaticOrder": true, "supplierBuyPriceMisc": 5346.798393750474, "supplierBuyRate": "1.0", "supplierBuyPrice": 1915.7291451006108, "supplier": 9257, "supplierArticleId": "supplierArticleId", "supplierBuyCurrency": "Store currency", "supplierBuyPriceShipment": 2336.342174943559 }], "automaticOrder": true, "supplierName": "supplierName", "deliveredAmount": 8493.511816494436, "amount": 8171.68319639855, "articleId": "articleId", "externalId": "externalId", "depth": 2943.0354518897807, "supplierBuyPrice": 8373.180942666046, "supplierBuyCurrency": "supplierBuyCurrency", "width": 7435.859053133481, "category": "övrigt" }], "since": 509 }

Get article

GETUrl: /{id : .+}
Headers:
Accept: application/json or application/xml
Get an article based on article-id

Valid parameters:

Parameter Description Default value Allowed values
prices false
include_bundle false
include_next_delivery false
include_purchase_prices false
include_batches false
sort_column batch_id batch_id,serie_nr,amount,best_before
order desc asc,desc

Body:
Successfull response:

{ "pages": 3493, "pageSize": 1979, "page": 9475, "articlesCount": 5535, "articles": [{ "supplierAutomaticOrder": true, "supplierBuyPriceMisc": 1454.7631465208367, "supplierExternalId": "supplierExternalId", "type": "type", "price": 1095.6668973704543, "supplier": 4092, "supplierArticleId": "supplierArticleId", "vatAccount": 178, "links": [{ "name": "name", "type": "type", "url": "url" }], "stock": "true", "barcode": "barcode", "height": 5813.037192364953, "bundled": "false", "vat": 5044.774536371168, "nextDeliveryDate": 4582, "active": "true", "weight": 5064.900616649965, "tags": [{ "name": "name", "externalId": "externalId", "id": 6452, "desc": "desc" }], "supplierBuyRate": 5128.535815047313, "unit": "st", "reserved": 1943.0449778274105, "name": "name", "parts": [{ "buyPrice": 8681.716252736302, "supplierName": "supplierName", "amount": 1822.2287941329296, "articleName": "articleName", "supplierId": 8037, "unitName": "unitName", "articleId": "articleId", "externalId": "externalId", "stockPlace": "stockPlace", "type": "type", "buyPriceCurrency": "buyPriceCurrency", "reserved": 9338.228182159737, "buyPriceShipment": 2343.7748896677813, "buyPriceMisc": 8426.31821065399, "supplierArticleId": "supplierArticleId", "stock": 287.520041428887, "isStock": false, "stockWarning": 9841.990919997468 }], "supplierBuyPriceShipment": 9033.021208200662, "manufacturerArticleId": "manufacturerArticleId", "imageLastUpdated": 6666, "orderedAmount": 5330.069596856044, "stockWarning": 4931.874466366515, "customFields": [{ "name": "name", "type": "type", "validValues": [{ "description": "description", "value": "value" }], "value": "value" }], "barcodeType": "EAN", "description": "description", "stockPlace": "stockPlace", "criticalLevel": 3350.9028840019873, "manufacturer": "manufacturer", "batches": { "totalSerialNumbersReserved": 7855.598169288651, "batches": [{ "serialNr": "serialNr", "amount": "1", "articleName": "articleName", "reserved": 5293.367501652134, "bestBefore": 7358, "articleId": "articleId", "batchId": "batchId", "barcode": "barcode" }], "totalBatchesInStock": 8721.196176129202, "totalSerialNumbersInStock": 4215.597227202992, "serialNumbers": [{ "serialNr": "serialNr", "amount": "1", "articleName": "articleName", "reserved": 2732.27304084431, "bestBefore": 4078, "articleId": "articleId", "batchId": "batchId", "barcode": "barcode" }], "totalBatchesReserved": 2756.1547598328475, "totalBatches": 9794, "totalSerialNumbers": 9530 }, "webshopArticle": "false", "availableAmount": 1913.4941364903934, "orderLevel": 1977.0415474738145, "prices": [{ "listId": 8937, "price": "0", "articleId": "articleId", "fromQuantity": "0", "listExternalId": "listExternalId" }], "supplierArticles": [{ "supplierName": "supplierName", "supplierAutomaticOrder": false, "supplierBuyPriceMisc": 5686.929889534492, "supplierBuyRate": "1.0", "supplierBuyPrice": 4982.162134195685, "supplier": 6343, "supplierArticleId": "supplierArticleId", "supplierBuyCurrency": "Store currency", "supplierBuyPriceShipment": 4554.774000301985 }], "automaticOrder": false, "supplierName": "supplierName", "deliveredAmount": 766.1625347334244, "amount": 1703.7150558390824, "articleId": "articleId", "externalId": "externalId", "depth": 2147.181886318265, "supplierBuyPrice": 992.2895828020872, "supplierBuyCurrency": "supplierBuyCurrency", "width": 8508.79888512876, "category": "övrigt" }], "since": 6425 }

Get article history

GETUrl: /{id : .+}/history
Headers:
Accept: application/json or application/xml
Get an article history based on article-id

Valid parameters:

Parameter Description Default value Allowed values
page 0
limit 25

Body:
Successfull response:

{ "pages": 7912, "pageSize": 8915, "page": 842, "historyCount": 4792, "history": [{ "supplierName": "supplierName", "reason": "reason", "supplierId": 6650, "newSalesPrice": 7398.061971370326, "oldCount": 5841.841581428067, "newCount": 338.7197430644129, "pricelistId": 1042, "pricelistName": "pricelistName", "created": 1711659580633, "oldSalesPrice": 684.8090373148863, "articleId": "articleId", "userName": "userName", "newReserved": 52.02052809875624, "userId": 9248, "newPurchasePrice": 2117.603477786816, "oldPurchasePrice": 9902.983050094539, "oldReserved": 5223.038642945006 }], "since": 8254 }

Get next article id

GETUrl: /next_id
Headers:
Accept: application/json or application/xml
Get next available unique article id
Body:
Successfull response:

{"id": "id"}

Batches

Get batches for article

GETUrl: /{id : .+}/batch
Headers:
Accept: application/json or application/xml
Get batches for a specific article based on article-id

Valid parameters:

Parameter Description Default value Allowed values
query
page 0
limit 100
sort_column batch_id batch_id,serie_nr,amount,best_before
order_by asc asc,desc

Body:
Successfull response:

{ "totalSerialNumbersReserved": 9801.750133082041, "batches": [{ "serialNr": "serialNr", "amount": "1", "articleName": "articleName", "reserved": 2703.5388694910644, "bestBefore": 890, "articleId": "articleId", "batchId": "batchId", "barcode": "barcode" }], "totalBatchesInStock": 3638.6979907644213, "totalSerialNumbersInStock": 2453.5773210542798, "serialNumbers": [{ "serialNr": "serialNr", "amount": "1", "articleName": "articleName", "reserved": 6656.341523993868, "bestBefore": 2299, "articleId": "articleId", "batchId": "batchId", "barcode": "barcode" }], "totalBatchesReserved": 2957.951451919335, "totalBatches": 2138, "totalSerialNumbers": 3753 }

Get serial numbers for article

GETUrl: /{id : .+}/serialnumber
Headers:
Accept: application/json or application/xml
Get serial numbers for a specific article based on article-id

Valid parameters:

Parameter Description Default value Allowed values
query
include_all_serial_numbers true
page 0
limit 100
sort_column batch_id batch_id,serie_nr,amount,best_before
order_by asc asc,desc

Body:
Successfull response:

{ "totalSerialNumbersReserved": 3960.8306292941343, "batches": [{ "serialNr": "serialNr", "amount": "1", "articleName": "articleName", "reserved": 6932.213222249051, "bestBefore": 6482, "articleId": "articleId", "batchId": "batchId", "barcode": "barcode" }], "totalBatchesInStock": 5096.766497271538, "totalSerialNumbersInStock": 4306.700072621149, "serialNumbers": [{ "serialNr": "serialNr", "amount": "1", "articleName": "articleName", "reserved": 8384.436273661084, "bestBefore": 5995, "articleId": "articleId", "batchId": "batchId", "barcode": "barcode" }], "totalBatchesReserved": 5986.913095604961, "totalBatches": 9095, "totalSerialNumbers": 3232 }

Get batches and serial numbers for article

GETUrl: /{id : .+}/batch/serialnumber
Headers:
Accept: application/json or application/xml
Get batches and serial numbers for a specific article based on article-id

Valid parameters:

Parameter Description Default value Allowed values
query
filter_all_batches true
page 0
limit 100
sort_column batch_id batch_id,serie_nr,amount,best_before
order desc asc,desc

Body:
Successfull response:

{ "totalSerialNumbersReserved": 2776.8327840861293, "batches": [{ "serialNr": "serialNr", "amount": "1", "articleName": "articleName", "reserved": 155.8489681520647, "bestBefore": 3545, "articleId": "articleId", "batchId": "batchId", "barcode": "barcode" }], "totalBatchesInStock": 4229.008403058772, "totalSerialNumbersInStock": 5843.748476008353, "serialNumbers": [{ "serialNr": "serialNr", "amount": "1", "articleName": "articleName", "reserved": 9135.690437268308, "bestBefore": 8042, "articleId": "articleId", "batchId": "batchId", "barcode": "barcode" }], "totalBatchesReserved": 2298.2728203800207, "totalBatches": 310, "totalSerialNumbers": 7207 }

Get batches and serial numbers

GETUrl: /batch/serialnumber
Headers:
Accept: application/json or application/xml
Get batches and serial numbers

Valid parameters:

Parameter Description Default value Allowed values
query
batch true
serial true
filter_all_batches true
page 0
limit 100

Body:
Successfull response:

{ "totalSerialNumbersReserved": 8687.103895429233, "batches": [{ "serialNr": "serialNr", "amount": "1", "articleName": "articleName", "reserved": 1328.471973116081, "bestBefore": 3890, "articleId": "articleId", "batchId": "batchId", "barcode": "barcode" }], "totalBatchesInStock": 8923.094971683768, "totalSerialNumbersInStock": 1426.1436631122792, "serialNumbers": [{ "serialNr": "serialNr", "amount": "1", "articleName": "articleName", "reserved": 655.3871953658785, "bestBefore": 6020, "articleId": "articleId", "batchId": "batchId", "barcode": "barcode" }], "totalBatchesReserved": 5607.304896463121, "totalBatches": 3048, "totalSerialNumbers": 6853 }

Export

Get export dates

GETUrl: export
Headers:
Accept: application/json or application/xml
Get a list of existing export dates. Each date corresponds to an article export file
Body:
Successfull response:

{ "pages": 1184, "datesCount": 619, "pageSize": 3830, "dates": [{ "date": 1711659580635, "stockValue": 969.6945817161185, "stockValueFIFO": 1406.205051083106, "id": "id", "type": "type" }], "page": 6811 }

Create export

POSTUrl: /export/{template_id}
Headers:
Accept: application/json or application/xml
Create export file for today´s date for specific template
Body:
Successfull response:

Field list

Get field list for settings

GETUrl: /fields/{articleFields}
Headers:
Accept: application/json or application/xml
Get field list for delivery note and order confirmation settings
Body:
Successfull response:

{"fields": [{}]}

Templates

Add article import template

POSTUrl: /import/template
Headers:
Accept: application/json or application/xml
Content-type: application/json or application/xml
Add an article import template
Body:

{ "data": { "rowFirst": 1348, "customFields": {}, "barcodeType": { "defaultValue": "defaultValue", "column": 532 }, "description": { "defaultValue": "defaultValue", "column": 4113 }, "stockPlace": { "defaultValue": "defaultValue", "column": 432 }, "isActive": { "defaultValue": "defaultValue", "column": 3463 }, "type": { "defaultValue": "defaultValue", "column": 9167 }, "criticalLevel": { "defaultValue": "defaultValue", "column": 6759 }, "buyPriceCurrency": { "defaultValue": "defaultValue", "column": 5181 }, "manufacturer": { "defaultValue": "defaultValue", "column": 7640 }, "buyPriceShipment": { "defaultValue": "defaultValue", "column": 5440 }, "rate": { "defaultValue": "defaultValue", "column": 3494 }, "orderLevel": { "defaultValue": "defaultValue", "column": 5301 }, "buyPriceMisc": { "defaultValue": "defaultValue", "column": 3913 }, "supplier": { "defaultValue": "defaultValue", "column": 6517 }, "supplierArticleId": { "defaultValue": "defaultValue", "column": 1936 }, "vatAccount": { "defaultValue": "defaultValue", "column": 1190 }, "isWebshopArticle": { "defaultValue": "defaultValue", "column": 8191 }, "barcode": { "defaultValue": "defaultValue", "column": 8970 }, "height": { "defaultValue": "defaultValue", "column": 9739 }, "isBundled": { "defaultValue": "defaultValue", "column": 556 }, "buyPrice": { "defaultValue": "defaultValue", "column": 1390 }, "amount": { "defaultValue": "defaultValue", "column": 5337 }, "articleName": 7047, "rowTitle": 6201, "articleId": 4006, "vat": { "defaultValue": "defaultValue", "column": 1344 }, "weight": { "defaultValue": "defaultValue", "column": 4134 }, "tags": { "defaultValue": "defaultValue", "column": 2459 }, "unit": { "defaultValue": "defaultValue", "column": 9534 }, "depth": { "defaultValue": "defaultValue", "column": 3622 }, "priceLists": {}, "width": { "defaultValue": "defaultValue", "column": 3250 }, "manufacturerArticleId": { "defaultValue": "defaultValue", "column": 8205 }, "category": { "defaultValue": "defaultValue", "column": 8966 }, "isStock": { "defaultValue": "defaultValue", "column": 2487 }, "stockWarning": { "defaultValue": "defaultValue", "column": 1315 } }, "name": "name", "storegroupId": 643, "type": "type" }
Successfull response:

{ "data": { "rowFirst": 5840, "customFields": {}, "barcodeType": { "defaultValue": "defaultValue", "column": 5196 }, "description": { "defaultValue": "defaultValue", "column": 651 }, "stockPlace": { "defaultValue": "defaultValue", "column": 2275 }, "isActive": { "defaultValue": "defaultValue", "column": 2558 }, "type": { "defaultValue": "defaultValue", "column": 4123 }, "criticalLevel": { "defaultValue": "defaultValue", "column": 505 }, "buyPriceCurrency": { "defaultValue": "defaultValue", "column": 1219 }, "manufacturer": { "defaultValue": "defaultValue", "column": 4382 }, "buyPriceShipment": { "defaultValue": "defaultValue", "column": 3055 }, "rate": { "defaultValue": "defaultValue", "column": 335 }, "orderLevel": { "defaultValue": "defaultValue", "column": 1213 }, "buyPriceMisc": { "defaultValue": "defaultValue", "column": 5327 }, "supplier": { "defaultValue": "defaultValue", "column": 412 }, "supplierArticleId": { "defaultValue": "defaultValue", "column": 7147 }, "vatAccount": { "defaultValue": "defaultValue", "column": 2808 }, "isWebshopArticle": { "defaultValue": "defaultValue", "column": 4774 }, "barcode": { "defaultValue": "defaultValue", "column": 7645 }, "height": { "defaultValue": "defaultValue", "column": 1338 }, "isBundled": { "defaultValue": "defaultValue", "column": 2915 }, "buyPrice": { "defaultValue": "defaultValue", "column": 1021 }, "amount": { "defaultValue": "defaultValue", "column": 6530 }, "articleName": 3211, "rowTitle": 1623, "articleId": 8726, "vat": { "defaultValue": "defaultValue", "column": 2202 }, "weight": { "defaultValue": "defaultValue", "column": 5580 }, "tags": { "defaultValue": "defaultValue", "column": 7665 }, "unit": { "defaultValue": "defaultValue", "column": 1487 }, "depth": { "defaultValue": "defaultValue", "column": 7157 }, "priceLists": {}, "width": { "defaultValue": "defaultValue", "column": 9132 }, "manufacturerArticleId": { "defaultValue": "defaultValue", "column": 559 }, "category": { "defaultValue": "defaultValue", "column": 2898 }, "isStock": { "defaultValue": "defaultValue", "column": 4385 }, "stockWarning": { "defaultValue": "defaultValue", "column": 9597 } }, "name": "name", "storegroupId": 769, "id": 5453, "type": "type" }

Update article import template

PUTUrl: /import/template/{id}
Headers:
Accept: application/json or application/xml
Content-type: application/json or application/xml
Update an article import template
Body:

{ "data": { "rowFirst": 649, "customFields": {}, "barcodeType": { "defaultValue": "defaultValue", "column": 9831 }, "description": { "defaultValue": "defaultValue", "column": 7407 }, "stockPlace": { "defaultValue": "defaultValue", "column": 4502 }, "isActive": { "defaultValue": "defaultValue", "column": 2065 }, "type": { "defaultValue": "defaultValue", "column": 8170 }, "criticalLevel": { "defaultValue": "defaultValue", "column": 2565 }, "buyPriceCurrency": { "defaultValue": "defaultValue", "column": 8703 }, "manufacturer": { "defaultValue": "defaultValue", "column": 2974 }, "buyPriceShipment": { "defaultValue": "defaultValue", "column": 7681 }, "rate": { "defaultValue": "defaultValue", "column": 1698 }, "orderLevel": { "defaultValue": "defaultValue", "column": 9504 }, "buyPriceMisc": { "defaultValue": "defaultValue", "column": 5953 }, "supplier": { "defaultValue": "defaultValue", "column": 6878 }, "supplierArticleId": { "defaultValue": "defaultValue", "column": 6873 }, "vatAccount": { "defaultValue": "defaultValue", "column": 9663 }, "isWebshopArticle": { "defaultValue": "defaultValue", "column": 6286 }, "barcode": { "defaultValue": "defaultValue", "column": 797 }, "height": { "defaultValue": "defaultValue", "column": 1077 }, "isBundled": { "defaultValue": "defaultValue", "column": 1659 }, "buyPrice": { "defaultValue": "defaultValue", "column": 1563 }, "amount": { "defaultValue": "defaultValue", "column": 9088 }, "articleName": 2634, "rowTitle": 1952, "articleId": 7778, "vat": { "defaultValue": "defaultValue", "column": 2570 }, "weight": { "defaultValue": "defaultValue", "column": 3932 }, "tags": { "defaultValue": "defaultValue", "column": 7300 }, "unit": { "defaultValue": "defaultValue", "column": 4701 }, "depth": { "defaultValue": "defaultValue", "column": 8569 }, "priceLists": {}, "width": { "defaultValue": "defaultValue", "column": 9272 }, "manufacturerArticleId": { "defaultValue": "defaultValue", "column": 3304 }, "category": { "defaultValue": "defaultValue", "column": 7028 }, "isStock": { "defaultValue": "defaultValue", "column": 2633 }, "stockWarning": { "defaultValue": "defaultValue", "column": 5887 } }, "name": "name", "storegroupId": 5397, "id": 1333, "type": "type" }
Successfull response:

{ "data": { "rowFirst": 8577, "customFields": {}, "barcodeType": { "defaultValue": "defaultValue", "column": 2663 }, "description": { "defaultValue": "defaultValue", "column": 6534 }, "stockPlace": { "defaultValue": "defaultValue", "column": 9383 }, "isActive": { "defaultValue": "defaultValue", "column": 1826 }, "type": { "defaultValue": "defaultValue", "column": 6987 }, "criticalLevel": { "defaultValue": "defaultValue", "column": 5506 }, "buyPriceCurrency": { "defaultValue": "defaultValue", "column": 4778 }, "manufacturer": { "defaultValue": "defaultValue", "column": 1008 }, "buyPriceShipment": { "defaultValue": "defaultValue", "column": 3114 }, "rate": { "defaultValue": "defaultValue", "column": 891 }, "orderLevel": { "defaultValue": "defaultValue", "column": 7602 }, "buyPriceMisc": { "defaultValue": "defaultValue", "column": 7849 }, "supplier": { "defaultValue": "defaultValue", "column": 3391 }, "supplierArticleId": { "defaultValue": "defaultValue", "column": 5972 }, "vatAccount": { "defaultValue": "defaultValue", "column": 6805 }, "isWebshopArticle": { "defaultValue": "defaultValue", "column": 9454 }, "barcode": { "defaultValue": "defaultValue", "column": 3354 }, "height": { "defaultValue": "defaultValue", "column": 9083 }, "isBundled": { "defaultValue": "defaultValue", "column": 528 }, "buyPrice": { "defaultValue": "defaultValue", "column": 881 }, "amount": { "defaultValue": "defaultValue", "column": 8325 }, "articleName": 9129, "rowTitle": 5623, "articleId": 3167, "vat": { "defaultValue": "defaultValue", "column": 911 }, "weight": { "defaultValue": "defaultValue", "column": 4000 }, "tags": { "defaultValue": "defaultValue", "column": 5711 }, "unit": { "defaultValue": "defaultValue", "column": 3864 }, "depth": { "defaultValue": "defaultValue", "column": 1925 }, "priceLists": {}, "width": { "defaultValue": "defaultValue", "column": 5654 }, "manufacturerArticleId": { "defaultValue": "defaultValue", "column": 6992 }, "category": { "defaultValue": "defaultValue", "column": 2929 }, "isStock": { "defaultValue": "defaultValue", "column": 2114 }, "stockWarning": { "defaultValue": "defaultValue", "column": 2497 } }, "name": "name", "storegroupId": 4980, "id": 2192, "type": "type" }

Export

Get export for date

GETUrl: /export/{date}
Headers:
Accept: application/json or application/xml
Get existing export file for specific date
Body:
Successfull response:

Get export by id

GETUrl: /export/file/{id}
Headers:
Accept: application/json or application/xml
Get existing export file based on id
Body:
Successfull response:

Print

Print labels

GETUrl: /{id : .+}/labels/print
Headers:
Accept: application/pdf or application/json
Print labels for article

Valid parameters:

Parameter Description Default value Allowed values
count 1
label_width 110
label_height 28
label_margin_width 2
label_margin_height 2
paper_width 210
paper_height 297
paper_margin_width 0
paper_margin_height 0

Body:
Successfull response:

Print labels

GETUrl: /labels/print
Headers:
Accept: application/pdf or application/json
Print labels for article

Valid parameters:

Parameter Description Default value Allowed values
articles
count 1
label_width 110
label_height 28
label_margin_width 2
label_margin_height 2
paper_width 210
paper_height 297
paper_margin_width 0
paper_margin_height 0

Body:
Successfull response:

Print bundled article

GETUrl: /{id : .+}/bundle/print
Headers:
Accept: application/pdf or application/json
Print bundle article as PDF

Valid parameters:

Parameter Description Default value Allowed values
amount 1

Body:
Successfull response:

Print supplier articles

GETUrl: /supplier/{supplier_id}/print
Headers:
Accept: application/pdf or application/json
Print articles connected to a supplier as PDF
Body:
Successfull response:

Traceability

Traceability for a bundled article

GETUrl: /{article_id}/batch/{batch_id}/traceability
Headers:
Accept: application/json or application/xml
Get bundled parts with batch and serial numbers for a batch
Body:
Successfull response:

{ "modifiedStructure": true, "traceability": [{ "amount": 5656.471745144686, "articleName": "articleName", "serial": [{ "serialNr": "serialNr", "amount": 8687.858395885705, "reserved": 8603.325120897423, "bestBefore": 1711659580638, "batchId": "batchId", "barcode": "barcode" }], "producedAmount": 615.4305567925222, "articleId": "articleId", "batch": { "serialNr": "serialNr", "amount": 2709.46876759535, "reserved": 2159.060076214471, "bestBefore": 1711659580638, "batchId": "batchId", "barcode": "barcode" } }] }

Traceability for a bundled article

GETUrl: /{article_id}/serial/{serial_nr}/traceability
Headers:
Accept: application/json or application/xml
Get bundled parts with batch and serial numbers for a serial number
Body:
Successfull response:

{ "modifiedStructure": true, "traceability": [{ "amount": 351.45876175328493, "articleName": "articleName", "serial": [{ "serialNr": "serialNr", "amount": 9227.29545339284, "reserved": 9440.732202236943, "bestBefore": 1711659580638, "batchId": "batchId", "barcode": "barcode" }], "producedAmount": 3413.374362420092, "articleId": "articleId", "batch": { "serialNr": "serialNr", "amount": 8100.976352177552, "reserved": 5766.810035903396, "bestBefore": 1711659580638, "batchId": "batchId", "barcode": "barcode" } }] }

Templates

Get article import template

GETUrl: /import/template/{id}
Headers:
Accept: application/json or application/xml
Get article import template
Body:
Successfull response:

{ "data": { "rowFirst": 5433, "customFields": {}, "barcodeType": { "defaultValue": "defaultValue", "column": 7941 }, "description": { "defaultValue": "defaultValue", "column": 1377 }, "stockPlace": { "defaultValue": "defaultValue", "column": 9878 }, "isActive": { "defaultValue": "defaultValue", "column": 3314 }, "type": { "defaultValue": "defaultValue", "column": 8990 }, "criticalLevel": { "defaultValue": "defaultValue", "column": 8918 }, "buyPriceCurrency": { "defaultValue": "defaultValue", "column": 9629 }, "manufacturer": { "defaultValue": "defaultValue", "column": 9566 }, "buyPriceShipment": { "defaultValue": "defaultValue", "column": 4244 }, "rate": { "defaultValue": "defaultValue", "column": 302 }, "orderLevel": { "defaultValue": "defaultValue", "column": 8947 }, "buyPriceMisc": { "defaultValue": "defaultValue", "column": 2842 }, "supplier": { "defaultValue": "defaultValue", "column": 9690 }, "supplierArticleId": { "defaultValue": "defaultValue", "column": 3409 }, "vatAccount": { "defaultValue": "defaultValue", "column": 5183 }, "isWebshopArticle": { "defaultValue": "defaultValue", "column": 5845 }, "barcode": { "defaultValue": "defaultValue", "column": 215 }, "height": { "defaultValue": "defaultValue", "column": 7244 }, "isBundled": { "defaultValue": "defaultValue", "column": 7054 }, "buyPrice": { "defaultValue": "defaultValue", "column": 8823 }, "amount": { "defaultValue": "defaultValue", "column": 7136 }, "articleName": 8556, "rowTitle": 259, "articleId": 9393, "vat": { "defaultValue": "defaultValue", "column": 1865 }, "weight": { "defaultValue": "defaultValue", "column": 6048 }, "tags": { "defaultValue": "defaultValue", "column": 2650 }, "unit": { "defaultValue": "defaultValue", "column": 7788 }, "depth": { "defaultValue": "defaultValue", "column": 7445 }, "priceLists": {}, "width": { "defaultValue": "defaultValue", "column": 4916 }, "manufacturerArticleId": { "defaultValue": "defaultValue", "column": 4981 }, "category": { "defaultValue": "defaultValue", "column": 8204 }, "isStock": { "defaultValue": "defaultValue", "column": 6833 }, "stockWarning": { "defaultValue": "defaultValue", "column": 1947 } }, "name": "name", "storegroupId": 9426, "id": 2661, "type": "type" }

Article units

Update article unit

PUTUrl: /{id : .+}/article_units/{unit_id}
Headers:
Accept: application/json or application/xml
Update existing article unit for a specific article
Body:

{ "unit": { "name": "name", "externalId": "externalId", "id": 273 }, "articleId": "articleId", "storegroupId": 8692, "convert": 6334.997664921323, "barcode": "barcode" }
Successfull response:

Articles

Add new article

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

{ "supplierAutomaticOrder": false, "supplierBuyPriceMisc": 2211.0711762160427, "customFields": [{ "name": "name", "type": "type", "value": "value" }], "barcodeType": "EAN", "description": "description", "stockPlace": "stockPlace", "type": "type", "criticalLevel": 4882.485423977731, "manufacturer": "manufacturer", "webshopArticle": "false", "orderLevel": 6968.266795018635, "price": 1975.629720444656, "supplier": 9966, "supplierArticleId": "supplierArticleId", "vatAccount": 9232, "links": [{ "name": "name", "type": "type", "url": "url" }], "stock": "true", "barcode": "barcode", "supplierArticles": [{ "supplierName": "supplierName", "supplierBuyPriceMisc": 8848.223673664968, "supplierBuyRate": "1.0", "supplierBuyPrice": 2205.7615069483063, "supplier": 2957, "supplierArticleId": "supplierArticleId", "supplierBuyCurrency": "Store currency", "supplierBuyPriceShipment": 5406.388819141696 }], "height": 8281.069148311724, "automaticOrder": false, "supplierName": "supplierName", "amount": 2645.2117880891024, "bundled": "false", "articleId": "articleId", "vat": 7699.342987654662, "externalId": "externalId", "active": "true", "weight": 6708.679015764851, "tags": [{ "name": "name", "externalId": "externalId", "id": 1716, "desc": "desc" }], "unit": "st", "depth": 8199.466462606913, "supplierBuyPrice": 6250.471368433516, "name": "name", "parts": [{ "amount": 4676.93868268961, "articleId": "articleId", "type": "type" }], "width": 8183.519636576097, "supplierBuyPriceShipment": 2706.8865893810234, "manufacturerArticleId": "manufacturerArticleId", "category": "övrigt", "stockWarning": 5495.7504443367 }
Successfull response:

{ "supplierAutomaticOrder": true, "supplierBuyPriceMisc": 4614.462338412078, "supplierExternalId": "supplierExternalId", "type": "type", "price": 8795.499977659314, "supplier": 3833, "supplierArticleId": "supplierArticleId", "vatAccount": 1701, "links": [{ "name": "name", "type": "type", "url": "url" }], "stock": "true", "barcode": "barcode", "height": 2523.391439152388, "bundled": "false", "vat": 7236.146831598761, "nextDeliveryDate": 5496, "active": "true", "weight": 5622.355958430176, "tags": [{ "name": "name", "externalId": "externalId", "id": 31, "desc": "desc" }], "supplierBuyRate": 9631.594165187647, "unit": "st", "reserved": 7579.834954685025, "name": "name", "parts": [{ "buyPrice": 7031.463539989534, "supplierName": "supplierName", "amount": 6271.878878600234, "articleName": "articleName", "supplierId": 3952, "unitName": "unitName", "articleId": "articleId", "externalId": "externalId", "stockPlace": "stockPlace", "type": "type", "buyPriceCurrency": "buyPriceCurrency", "reserved": 4267.028810118506, "buyPriceShipment": 530.5699327482505, "buyPriceMisc": 4177.019922773719, "supplierArticleId": "supplierArticleId", "stock": 4101.869315522117, "isStock": false, "stockWarning": 8637.210851662414 }], "supplierBuyPriceShipment": 7618.418309881443, "manufacturerArticleId": "manufacturerArticleId", "imageLastUpdated": 212, "orderedAmount": 2418.8694829415535, "stockWarning": 1528.7317361871555, "customFields": [{ "name": "name", "type": "type", "validValues": [{ "description": "description", "value": "value" }], "value": "value" }], "barcodeType": "EAN", "description": "description", "stockPlace": "stockPlace", "criticalLevel": 5371.731905506787, "manufacturer": "manufacturer", "batches": { "totalSerialNumbersReserved": 8838.437371413493, "batches": [{ "serialNr": "serialNr", "amount": "1", "articleName": "articleName", "reserved": 2931.4554336199208, "bestBefore": 7023, "articleId": "articleId", "batchId": "batchId", "barcode": "barcode" }], "totalBatchesInStock": 6304.905715089444, "totalSerialNumbersInStock": 9201.901914652944, "serialNumbers": [{ "serialNr": "serialNr", "amount": "1", "articleName": "articleName", "reserved": 863.5492996870508, "bestBefore": 1229, "articleId": "articleId", "batchId": "batchId", "barcode": "barcode" }], "totalBatchesReserved": 5469.487808645104, "totalBatches": 5083, "totalSerialNumbers": 7641 }, "webshopArticle": "false", "availableAmount": 1273.921139807137, "orderLevel": 2433.6344457804894, "prices": [{ "listId": 2941, "price": "0", "articleId": "articleId", "fromQuantity": "0", "listExternalId": "listExternalId" }], "supplierArticles": [{ "supplierName": "supplierName", "supplierAutomaticOrder": true, "supplierBuyPriceMisc": 7577.018114054661, "supplierBuyRate": "1.0", "supplierBuyPrice": 5167.628635699245, "supplier": 9693, "supplierArticleId": "supplierArticleId", "supplierBuyCurrency": "Store currency", "supplierBuyPriceShipment": 9254.841446146109 }], "automaticOrder": true, "supplierName": "supplierName", "deliveredAmount": 8651.099063376605, "amount": 8243.561605014535, "articleId": "articleId", "externalId": "externalId", "depth": 2181.162825907933, "supplierBuyPrice": 277.4997513253241, "supplierBuyCurrency": "supplierBuyCurrency", "width": 8908.93279651815, "category": "övrigt" }

Add articles

POSTUrl: /list
Headers:
Accept: application/json or application/xml
Content-type: application/json or application/xml
Add a list of articles
Body:
Successfull response:

Import articles

POSTUrl: /import/{template_id}
Headers:
Accept: application/json or application/xml
Content-type: multipart/form-data
Import articles from excel or tsv

Valid parameters:

Parameter Description Default value Allowed values
update_only
register_delivery false
file
file

Body:
Successfull response:

Test import articles

POSTUrl: /import/test/{template_id}
Headers:
Accept: application/json or application/xml
Content-type: multipart/form-data
Test import articles from excel or tsv. This will read the first data-row from the uploaded file and return the result. Can be used to verify that the template being used is mapped correctly. No actual changed will be saved.

Valid parameters:

Parameter Description Default value Allowed values
file
file

Body:
Successfull response:

Import bundled articles

POSTUrl: /import/bundle
Headers:
Accept: application/json or application/xml
Content-type: multipart/form-data
Import structure for bundled articles from excel or tsv

Valid parameters:

Parameter Description Default value Allowed values
file_type tsv
file
file

Body:
Successfull response:

Test import bundled articles

POSTUrl: /import/bundle/test
Headers:
Accept: application/json or application/xml
Content-type: multipart/form-data
Test import structure for bundled articles from excel or tsv. No actual changed will be saved.

Valid parameters:

Parameter Description Default value Allowed values
file_type tsv
file
file

Body:
Successfull response:

Batches

Import batches and serial numbers

POSTUrl: /import/batch_serial
Headers:
Accept: application/json or application/xml
Content-type: multipart/form-data
Import batches and serial numbers for articles from excel or tsv

Valid parameters:

Parameter Description Default value Allowed values
file_type tsv
file
file

Body:
Successfull response:

Test import batches and serial numbers

POSTUrl: /import/batch_serial/test
Headers:
Accept: application/json or application/xml
Content-type: multipart/form-data
Test import batches and serial numbers for articles from excel or tsv. No actual changed will be saved.

Valid parameters:

Parameter Description Default value Allowed values
file_type tsv
file
file

Body:
Successfull response:

Export

Create export for stock changes

POSTUrl: /export/{template_id}/stock_changes
Headers:
Accept: application/json or application/xml
Create export file for specific period and template that lists stock changes

Valid parameters:

Parameter Description Default value Allowed values
start_date Start date of export period. Format is yyyy-MM-dd and defaults to 1 month prior end date
end_date End date of export period. Format is yyyy-MM-dd and defaults to today´s date

Body:
Successfull response:

Export bundled articles

POSTUrl: /export/bundle
Headers:
Accept: application/json or application/xml
Create export file for today´s date for bundled articles
Body:
Successfull response:

Batches

Add serial number

POSTUrl: /{id : .+}/serialnumber
Headers:
Accept: application/json or application/xml
Content-type: application/json or application/xml
Add serial number to an existing article
Body:

{ "serialNr": "serialNr", "amount": "1", "bestBefore": 2567, "batchId": "batchId", "barcode": "barcode" }
Successfull response:

Add serial numbers sequence

POSTUrl: /{id : .+}/serialnumber/list
Headers:
Accept: application/json or application/xml
Content-type: application/json or application/xml
Create a sequence of serial numbers to an existing article

Valid parameters:

Parameter Description Default value Allowed values
prefix
start 1
length 0
amount 1
suffix
set_barcode_from_serialnumber false

Body:
Successfull response:

Articles

Update article

PUTUrl: /{id : .+}
Headers:
Accept: application/json or application/xml
Content-type: application/json or application/xml
Update an existing article

Valid parameters:

Parameter Description Default value Allowed values
reason
sort_column batch_id batch_id,serie_nr,amount,best_before
order desc asc,desc

Body:

{ "supplierAutomaticOrder": false, "supplierBuyPriceMisc": 3490.9592016749034, "supplierExternalId": "supplierExternalId", "type": "type", "price": 4963.75654547666, "supplier": 2072, "supplierArticleId": "supplierArticleId", "vatAccount": 6974, "links": [{ "name": "name", "type": "type", "url": "url" }], "stock": "true", "barcode": "barcode", "height": 8434.839257095844, "bundled": "false", "vat": 2804.35746708517, "nextDeliveryDate": 5549, "active": "true", "weight": 8895.724536173762, "tags": [{ "name": "name", "externalId": "externalId", "id": 4531, "desc": "desc" }], "supplierBuyRate": 8176.858150093259, "unit": "st", "reserved": 3118.6085190987224, "name": "name", "parts": [{ "buyPrice": 989.0485150818362, "supplierName": "supplierName", "amount": 6891.065749032368, "articleName": "articleName", "supplierId": 5052, "unitName": "unitName", "articleId": "articleId", "externalId": "externalId", "stockPlace": "stockPlace", "type": "type", "buyPriceCurrency": "buyPriceCurrency", "reserved": 9117.95987599696, "buyPriceShipment": 8942.537841668009, "buyPriceMisc": 5940.281351232284, "supplierArticleId": "supplierArticleId", "stock": 9915.222285520967, "isStock": false, "stockWarning": 7493.934214273633 }], "supplierBuyPriceShipment": 3283.936642967836, "manufacturerArticleId": "manufacturerArticleId", "imageLastUpdated": 5483, "orderedAmount": 5707.547352037688, "stockWarning": 7069.357142512975, "customFields": [{ "name": "name", "type": "type", "validValues": [{ "description": "description", "value": "value" }], "value": "value" }], "barcodeType": "EAN", "description": "description", "stockPlace": "stockPlace", "criticalLevel": 2103.144412965666, "manufacturer": "manufacturer", "batches": { "totalSerialNumbersReserved": 5069.279322657652, "batches": [{ "serialNr": "serialNr", "amount": "1", "articleName": "articleName", "reserved": 4526.061294636764, "bestBefore": 6539, "articleId": "articleId", "batchId": "batchId", "barcode": "barcode" }], "totalBatchesInStock": 1181.054433035762, "totalSerialNumbersInStock": 7510.880635901217, "serialNumbers": [{ "serialNr": "serialNr", "amount": "1", "articleName": "articleName", "reserved": 2054.0699429317897, "bestBefore": 5183, "articleId": "articleId", "batchId": "batchId", "barcode": "barcode" }], "totalBatchesReserved": 5791.01913268597, "totalBatches": 1206, "totalSerialNumbers": 9232 }, "webshopArticle": "false", "availableAmount": 4786.564037070098, "orderLevel": 5334.586070214838, "prices": [{ "listId": 1483, "price": "0", "articleId": "articleId", "fromQuantity": "0", "listExternalId": "listExternalId" }], "supplierArticles": [{ "supplierName": "supplierName", "supplierAutomaticOrder": false, "supplierBuyPriceMisc": 4051.407739981997, "supplierBuyRate": "1.0", "supplierBuyPrice": 3767.691464580797, "supplier": 4668, "supplierArticleId": "supplierArticleId", "supplierBuyCurrency": "Store currency", "supplierBuyPriceShipment": 9019.012602650839 }], "automaticOrder": false, "supplierName": "supplierName", "deliveredAmount": 2719.3215393533596, "amount": 6587.658799675905, "articleId": "articleId", "externalId": "externalId", "depth": 199.32435371772917, "supplierBuyPrice": 7106.487553270486, "supplierBuyCurrency": "supplierBuyCurrency", "width": 8114.58195004702, "category": "övrigt" }
Successfull response:

{ "supplierAutomaticOrder": true, "supplierBuyPriceMisc": 4151.566239758819, "supplierExternalId": "supplierExternalId", "type": "type", "price": 2299.404719584227, "supplier": 3695, "supplierArticleId": "supplierArticleId", "vatAccount": 2939, "links": [{ "name": "name", "type": "type", "url": "url" }], "stock": "true", "barcode": "barcode", "height": 8071.734231261415, "bundled": "false", "vat": 3879.2186267965058, "nextDeliveryDate": 3841, "active": "true", "weight": 8840.244478995168, "tags": [{ "name": "name", "externalId": "externalId", "id": 1176, "desc": "desc" }], "supplierBuyRate": 4573.807702354369, "unit": "st", "reserved": 2454.5175990282887, "name": "name", "parts": [{ "buyPrice": 2583.3808403875046, "supplierName": "supplierName", "amount": 2529.3435459236957, "articleName": "articleName", "supplierId": 1644, "unitName": "unitName", "articleId": "articleId", "externalId": "externalId", "stockPlace": "stockPlace", "type": "type", "buyPriceCurrency": "buyPriceCurrency", "reserved": 5390.3020186224485, "buyPriceShipment": 6169.069575151069, "buyPriceMisc": 7684.3265258203, "supplierArticleId": "supplierArticleId", "stock": 977.2205529765321, "isStock": true, "stockWarning": 1680.3968081841858 }], "supplierBuyPriceShipment": 1394.6726796417274, "manufacturerArticleId": "manufacturerArticleId", "imageLastUpdated": 9802, "orderedAmount": 2452.53068589827, "stockWarning": 5816.031593124084, "customFields": [{ "name": "name", "type": "type", "validValues": [{ "description": "description", "value": "value" }], "value": "value" }], "barcodeType": "EAN", "description": "description", "stockPlace": "stockPlace", "criticalLevel": 3932.9642837512592, "manufacturer": "manufacturer", "batches": { "totalSerialNumbersReserved": 1963.1987605915767, "batches": [{ "serialNr": "serialNr", "amount": "1", "articleName": "articleName", "reserved": 8049.466606515314, "bestBefore": 3911, "articleId": "articleId", "batchId": "batchId", "barcode": "barcode" }], "totalBatchesInStock": 9150.893550734154, "totalSerialNumbersInStock": 4984.816432712768, "serialNumbers": [{ "serialNr": "serialNr", "amount": "1", "articleName": "articleName", "reserved": 75.52952858711714, "bestBefore": 4346, "articleId": "articleId", "batchId": "batchId", "barcode": "barcode" }], "totalBatchesReserved": 5085.091625960446, "totalBatches": 887, "totalSerialNumbers": 1510 }, "webshopArticle": "false", "availableAmount": 5506.394101547063, "orderLevel": 4120.929031394681, "prices": [{ "listId": 9407, "price": "0", "articleId": "articleId", "fromQuantity": "0", "listExternalId": "listExternalId" }], "supplierArticles": [{ "supplierName": "supplierName", "supplierAutomaticOrder": false, "supplierBuyPriceMisc": 9654.04005877192, "supplierBuyRate": "1.0", "supplierBuyPrice": 8235.115242747646, "supplier": 5078, "supplierArticleId": "supplierArticleId", "supplierBuyCurrency": "Store currency", "supplierBuyPriceShipment": 8863.882096209742 }], "automaticOrder": false, "supplierName": "supplierName", "deliveredAmount": 1677.834164955262, "amount": 8979.799763989491, "articleId": "articleId", "externalId": "externalId", "depth": 6648.557076569192, "supplierBuyPrice": 3452.1383310792285, "supplierBuyCurrency": "supplierBuyCurrency", "width": 6193.342341523783, "category": "övrigt" }

Update article reserved

PUTUrl: /{id : .+}/reserved
Headers:
Accept: application/json or application/xml
Content-type: application/json or application/xml
Update an article´s reserved value
Body:
Successfull response:

{"reserved": 1999.8897003113282}

Update article fifo rate

PUTUrl: /{id : .+}/fifo/rate
Headers:
Accept: application/json or application/xml
Content-type: application/json or application/xml
Update an existing article fifo purchase rate for a specific timestamp
Body:

{ "date": 1711659580643, "rate": 2093.4684413074656 }
Successfull response:

Update article fifo purchase price

PUTUrl: /{id : .+}/fifo/purchase_price
Headers:
Accept: application/json or application/xml
Content-type: application/json or application/xml
Update an existing article fifo purchase price for a specific timestamp
Body:

{ "date": 1711659580644, "price": 892.9824922065621 }
Successfull response:

Move article

PUTUrl: /{id : .+}/move
Headers:
Accept: application/json or application/xml
Content-type: application/json or application/xml
Move article to another store
Body:

{ "batches": { "totalSerialNumbersReserved": 9913.619889246194, "batches": [{ "serialNr": "serialNr", "amount": "1", "articleName": "articleName", "reserved": 156.2314313108848, "bestBefore": 9590, "articleId": "articleId", "batchId": "batchId", "barcode": "barcode" }], "totalBatchesInStock": 5955.014522394758, "totalSerialNumbersInStock": 5213.323812741975, "serialNumbers": [{ "serialNr": "serialNr", "amount": "1", "articleName": "articleName", "reserved": 5972.941235333416, "bestBefore": 8723, "articleId": "articleId", "batchId": "batchId", "barcode": "barcode" }], "totalBatchesReserved": 2360.596896156333, "totalBatches": 4714, "totalSerialNumbers": 7922 }, "amount": 3621.7086463043693, "articleId": "articleId", "toStoreId": 9917 }
Successfull response:

Bulk update articles

PUTUrl: /bulk
Headers:
Accept: application/json or application/xml
Content-type: application/json or application/xml
Update a field for a list of existing articles (Max 100 articles per request)
Body:

{ "field": "field", "pricelistId": 2790, "type": "SET", "articles": [{}], "value": "value" }
Successfull response:

{ "field": "field", "pricelistId": 9879, "articles": [{ "articleId": "articleId", "value": "value" }] }

Delete list of articles

PUTUrl: /bulk/delete
Headers:
Accept: application/json or application/xml
Content-type: application/json or application/xml
Delete list of existing articles (Max 100 articles per request)
Body:

{"articles": [{}]}
Successfull response:

Create bundles for article

PUTUrl: /{id : .+}/bundles
Headers:
Accept: application/json or application/xml
Content-type: application/json or application/xml
Create bundles for article
Body:

{ "amount": 9417.403399404215, "articleName": "articleName", "articleId": "articleId" }
Successfull response:

{ "pages": 4276, "pageSize": 6875, "page": 1609, "articlesCount": 7172, "articles": [{ "supplierAutomaticOrder": false, "supplierBuyPriceMisc": 5105.860914030321, "supplierExternalId": "supplierExternalId", "type": "type", "price": 7332.033148476708, "supplier": 7416, "supplierArticleId": "supplierArticleId", "vatAccount": 7111, "links": [{ "name": "name", "type": "type", "url": "url" }], "stock": "true", "barcode": "barcode", "height": 3391.604648658748, "bundled": "false", "vat": 8894.05051743791, "nextDeliveryDate": 5194, "active": "true", "weight": 5818.529990866869, "tags": [{ "name": "name", "externalId": "externalId", "id": 7068, "desc": "desc" }], "supplierBuyRate": 837.2284161125176, "unit": "st", "reserved": 5918.1589155310385, "name": "name", "parts": [{ "buyPrice": 7421.535778794372, "supplierName": "supplierName", "amount": 4292.114268114665, "articleName": "articleName", "supplierId": 9946, "unitName": "unitName", "articleId": "articleId", "externalId": "externalId", "stockPlace": "stockPlace", "type": "type", "buyPriceCurrency": "buyPriceCurrency", "reserved": 50.12089632163041, "buyPriceShipment": 8390.970889063996, "buyPriceMisc": 5042.423345454668, "supplierArticleId": "supplierArticleId", "stock": 8842.680454949043, "isStock": false, "stockWarning": 2873.0105541195685 }], "supplierBuyPriceShipment": 9130.625740253947, "manufacturerArticleId": "manufacturerArticleId", "imageLastUpdated": 3749, "orderedAmount": 455.15033561134953, "stockWarning": 9357.391341651657, "customFields": [{ "name": "name", "type": "type", "validValues": [{ "description": "description", "value": "value" }], "value": "value" }], "barcodeType": "EAN", "description": "description", "stockPlace": "stockPlace", "criticalLevel": 5320.409384956074, "manufacturer": "manufacturer", "batches": { "totalSerialNumbersReserved": 1445.8144794885864, "batches": [{ "serialNr": "serialNr", "amount": "1", "articleName": "articleName", "reserved": 9321.349395927075, "bestBefore": 2577, "articleId": "articleId", "batchId": "batchId", "barcode": "barcode" }], "totalBatchesInStock": 7201.651834687189, "totalSerialNumbersInStock": 1841.3992151218906, "serialNumbers": [{ "serialNr": "serialNr", "amount": "1", "articleName": "articleName", "reserved": 542.3154776719297, "bestBefore": 5557, "articleId": "articleId", "batchId": "batchId", "barcode": "barcode" }], "totalBatchesReserved": 797.8511609534534, "totalBatches": 9239, "totalSerialNumbers": 6842 }, "webshopArticle": "false", "availableAmount": 408.64238039755804, "orderLevel": 6719.8960311185065, "prices": [{ "listId": 9043, "price": "0", "articleId": "articleId", "fromQuantity": "0", "listExternalId": "listExternalId" }], "supplierArticles": [{ "supplierName": "supplierName", "supplierAutomaticOrder": true, "supplierBuyPriceMisc": 5574.244612968458, "supplierBuyRate": "1.0", "supplierBuyPrice": 9320.281661282921, "supplier": 9328, "supplierArticleId": "supplierArticleId", "supplierBuyCurrency": "Store currency", "supplierBuyPriceShipment": 8509.86407876324 }], "automaticOrder": false, "supplierName": "supplierName", "deliveredAmount": 902.376839646637, "amount": 6224.136559057476, "articleId": "articleId", "externalId": "externalId", "depth": 1209.5386515554362, "supplierBuyPrice": 1379.5818422869122, "supplierBuyCurrency": "supplierBuyCurrency", "width": 2189.39467658277, "category": "övrigt" }], "since": 5922 }

Split bundles for article

PUTUrl: /{id : .+}/split
Headers:
Accept: application/json or application/xml
Content-type: application/json or application/xml
Split bundles for article
Body:

{ "amount": 9351.304066948589, "articleName": "articleName", "articleId": "articleId" }
Successfull response:

{ "pages": 7623, "pageSize": 615, "page": 3565, "articlesCount": 4698, "articles": [{ "supplierAutomaticOrder": false, "supplierBuyPriceMisc": 1832.0619177957033, "supplierExternalId": "supplierExternalId", "type": "type", "price": 4352.4093330156775, "supplier": 2365, "supplierArticleId": "supplierArticleId", "vatAccount": 5399, "links": [{ "name": "name", "type": "type", "url": "url" }], "stock": "true", "barcode": "barcode", "height": 435.2791960648805, "bundled": "false", "vat": 7257.863379799397, "nextDeliveryDate": 7793, "active": "true", "weight": 6105.503110480416, "tags": [{ "name": "name", "externalId": "externalId", "id": 2081, "desc": "desc" }], "supplierBuyRate": 5096.7046241512335, "unit": "st", "reserved": 2789.3527841487908, "name": "name", "parts": [{ "buyPrice": 1294.208259613171, "supplierName": "supplierName", "amount": 9537.773758060825, "articleName": "articleName", "supplierId": 4769, "unitName": "unitName", "articleId": "articleId", "externalId": "externalId", "stockPlace": "stockPlace", "type": "type", "buyPriceCurrency": "buyPriceCurrency", "reserved": 8024.574587555205, "buyPriceShipment": 2343.452728361547, "buyPriceMisc": 7709.130929584958, "supplierArticleId": "supplierArticleId", "stock": 2803.4684858169057, "isStock": false, "stockWarning": 7761.006940983533 }], "supplierBuyPriceShipment": 8750.076135504572, "manufacturerArticleId": "manufacturerArticleId", "imageLastUpdated": 1985, "orderedAmount": 7967.852903149162, "stockWarning": 7527.570978444377, "customFields": [{ "name": "name", "type": "type", "validValues": [{ "description": "description", "value": "value" }], "value": "value" }], "barcodeType": "EAN", "description": "description", "stockPlace": "stockPlace", "criticalLevel": 1685.6071810943863, "manufacturer": "manufacturer", "batches": { "totalSerialNumbersReserved": 2197.4618988936577, "batches": [{ "serialNr": "serialNr", "amount": "1", "articleName": "articleName", "reserved": 6711.9431813883, "bestBefore": 5129, "articleId": "articleId", "batchId": "batchId", "barcode": "barcode" }], "totalBatchesInStock": 3825.795904216782, "totalSerialNumbersInStock": 3160.2597232704934, "serialNumbers": [{ "serialNr": "serialNr", "amount": "1", "articleName": "articleName", "reserved": 9282.716284772527, "bestBefore": 6729, "articleId": "articleId", "batchId": "batchId", "barcode": "barcode" }], "totalBatchesReserved": 7845.771559033035, "totalBatches": 6707, "totalSerialNumbers": 6662 }, "webshopArticle": "false", "availableAmount": 5260.782651357164, "orderLevel": 7279.49106301678, "prices": [{ "listId": 1330, "price": "0", "articleId": "articleId", "fromQuantity": "0", "listExternalId": "listExternalId" }], "supplierArticles": [{ "supplierName": "supplierName", "supplierAutomaticOrder": true, "supplierBuyPriceMisc": 9969.44100452501, "supplierBuyRate": "1.0", "supplierBuyPrice": 993.7906074174585, "supplier": 5858, "supplierArticleId": "supplierArticleId", "supplierBuyCurrency": "Store currency", "supplierBuyPriceShipment": 5698.139357446384 }], "automaticOrder": true, "supplierName": "supplierName", "deliveredAmount": 703.6305578615587, "amount": 6544.799987327611, "articleId": "articleId", "externalId": "externalId", "depth": 8422.485162290859, "supplierBuyPrice": 7626.81326914632, "supplierBuyCurrency": "supplierBuyCurrency", "width": 290.6238465276767, "category": "övrigt" }], "since": 3767 }

Templates

Update article to bundle or simple

PUTUrl: /{id : .+}/bundle
Headers:
Accept: application/json or application/xml
Content-type: application/json or application/xml
Update an article to bundle or simple

Valid parameters:

Parameter Description Default value Allowed values
bundle

Body:
Successfull response:

{ "name": "name", "externalId": "externalId", "id": 9695, "desc": "desc" }

Articles

Delete article

DELETEUrl: /{id : .+}
Headers:
Accept: application/json or application/xml
Delete article based on article-id
Body:
Successfull response:

Delete fifo

DELETEUrl: /{id : .+}/fifo
Headers:
Accept: application/json or application/xml
Delete all article fifos based on article-id
Body:
Successfull response:

Classes:

Article

Field Type Description Default Mandatory Accepted values Example values Access
articleId String Write only with POST Post R,W
externalId String External article id R,W
active Boolean true R,W
name String Post R,W
bundled Boolean Write only with POST false R,W
parts List If article is bundled this is the parts contained in the article. When updating an existing bundled article this list will replace old list. If list is null, no replacement will be made. If list is empty, all parts will be removed R,W
batches ArticleBatches Returns the first 20 batches and the first 20 serial numbers connected to this article R
description String R,W
category String övrigt R,W
amount Double Available amount. This means stock amount reduced by reserved amount R,W
reserved Double Reserved amount R
barcode String R,W
barcodeType String EAN EAN, CODE128, QR, UPC R,W
price Double R,W
prices List R
supplier Long If article is bundled, supplier information will be ignored if not null, must point to an existing supplier R,W
supplierExternalId String external id of Supplier R
supplierName String If article is bundled, supplier information will be ignored if not null, must point to an existing supplier R,W
supplierArticleId String If article is bundled, supplier information will be ignored R,W
supplierAutomaticOrder Boolean If article is bundled, supplier information will be ignored R,W
supplierBuyPrice Double Total buy price including shipment and misc costs. If article is bundled, supplier information will be ignored R,W
supplierBuyPriceShipment Double If article is bundled, supplier information will be ignored R,W
supplierArticles List If article is bundled, supplier information will be ignored R,W
supplierBuyPriceMisc Double If article is bundled, supplier information will be ignored R,W
supplierBuyCurrency String R
supplierBuyRate Double R
unit String st R,W
vat Double Vat in percentage. If both vat-account and vat is submitted, vat-account takes precedence Post R,W
vatAccount Integer If both vat-account and vat is submitted, vat-account takes precedence R,W
imageLastUpdated Long R
type String Stock means it's a physical product and service means it's work and lacks stock-amount Post Stock, Service R,W
stock Boolean True means it's a physical article in stock and false means it's an article that needs to be ordered from supplier true R,W
webshopArticle Boolean false R,W
manufacturer String R,W
manufacturerArticleId String R,W
customFields List if you have need for other type of fields then what lagerkoll offers you can use this key-value list. When creating / updating an article the content of this list will replace the list of fields in the existing article R,W
links List R,W
tags List Make sure you provide tagId for existing tags, otherwise new ones will be created R,W
width Double R,W
height Double R,W
depth Double R,W
weight Double R,W
stockPlace String R,W
stockWarning Double R,W
criticalLevel Double When amount reaches the critical level it is automatically added to a purchase order, with amount set to order level R,W
orderLevel Double When amount reaches the critical level it is automatically added to a purchase order, with amount set to order level R,W
automaticOrder Boolean Set flag to true if the article should be automatically added to a purchase order when stock level reaches the critical level R,W
nextDeliveryDate Long If there is a purchase order for this article, this would be the delivery date for that order R
orderedAmount Double If there is a purchase order for this article, this would be the ordered amount for that order R
deliveredAmount Double If there is a purchase order for this article, this would be the delivered amount for that order R
availableAmount Double Amount available for given deliveryDate R

ArticleAutoComplete

Field Type Description Default Mandatory Accepted values Example values Access
articleId String R
active Boolean R
name String R
bundled Boolean R
amount Double R
reserved Double R
barcode String R,W
barcodeType String EAN EAN, CODE128, QR, UPC R,W
price Double R
supplierBuyPrice Double R
supplierBuyPriceShipment Double R
supplierBuyPriceMisc Double R
supplierBuyCurrency String R
supplierBuyRate Double R
unit String R
type String Stock means it's a physical product and service means it's work and lacks stock-amount Stock, Service R
stock Boolean True means it's a physical article in stock and false means it's an article that needs to be ordered from supplier R
vat Double VAT for article R

ArticleBatch

Field Type Description Default Mandatory Accepted values Example values Access
articleId String Id of article the batch/serialnumber is connected to R
articleName String Name of article R
batchId String batch-id or serial-nr must be set, Write only with POST Post R,W
serialNr String batch-id or serial-nr must be set, Write only with POST Post R,W
amount double 1 R,W
reserved double Reserved is set automatically when part of a customer order that has not yet been invoiced R
barcode String Write only with POST R,W
bestBefore Long ms since 1970, Write only with POST R,W

ArticleBatches

Field Type Description Default Mandatory Accepted values Example values Access
totalBatches Integer Total number of batches for an article R
batches List Current page of batches for an article R
totalSerialNumbers Integer Total number of serial numbers for an article R
serialNumbers List Current page of serial numbers for an article R
totalBatchesInStock Double Total batches in stock R
totalBatchesReserved Double Total batches reserved R
totalSerialNumbersInStock Double Total serial numbers in stock R
totalSerialNumbersReserved Double Total serial numbers reserved R

ArticleField

Field Type Description Default Mandatory Accepted values Example values Access
articleId String R,W
value String R,W

ArticleFIFOsResponse

Field Type Description Default Mandatory Accepted values Example values Access
page int R
pages int R
pageSize int R
fifoCount int R
since long R
fifos List R

ArticleHistory

Field Type Description Default Mandatory Accepted values Example values Access
articleId String R
supplierId Long R
supplierName String R
oldCount Double R
newCount Double R
oldReserved Double R
newReserved Double R
pricelistId Long R
pricelistName String R
oldSalesPrice Double R
newSalesPrice Double R
oldPurchasePrice Double R
newPurchasePrice Double R
userId Long R
userName String R
reason String R
created Date R

ArticleHistoryResponse

Field Type Description Default Mandatory Accepted values Example values Access
page int R
pages int R
pageSize int R
historyCount int R
since long R
history List R

ArticleId

Field Type Description Default Mandatory Accepted values Example values Access
id String R,W

ArticleIds

Field Type Description Default Mandatory Accepted values Example values Access
articles List List of article ids R,W

ArticleImportTemplate

Field Type Description Default Mandatory Accepted values Example values Access
id long R
storegroupId long R,W
name String R,W
type String R,W
data ImportTemplate R,W

ArticleImportTemplateResponse

Field Type Description Default Mandatory Accepted values Example values Access
page int R
pages int R
pageSize int R
importTemplateCount int R
importTemplates List R

ArticleLink

Field Type Description Default Mandatory Accepted values Example values Access
name String Post R,W
url String Post R,W
type String Post unknown, webpage, image, document, lagerkoll_document R,W

ArticleMove

Field Type Description Default Mandatory Accepted values Example values Access
articleId String PUT R,W
amount Double PUT R,W
toStoreId Long Id of stock that article is moved to PUT R,W
batches ArticleBatches PUT R,W

ArticleReserved

Field Type Description Default Mandatory Accepted values Example values Access
reserved double R

ArticlesAutoCompleteResponse

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

ArticlesResponse

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

ArticleStockplace

Field Type Description Default Mandatory Accepted values Example values Access
stockplace String R
articles Integer Number of articles in this stockplace R

ArticleStockplacesResponse

Field Type Description Default Mandatory Accepted values Example values Access
stockplaces List R

ArticleTag

Field Type Description Default Mandatory Accepted values Example values Access
id long Write only with POST Post R,W
externalId String R,W
name String Post R,W
desc String Post R,W

ArticleTraceabilityBatch

Field Type Description Default Mandatory Accepted values Example values Access
batchId String R,W
serialNr String R,W
amount double R,W
reserved double R,W
barcode String R,W
bestBefore Date R,W

ArticleUnit

Field Type Description Default Mandatory Accepted values Example values Access
storegroupId long R
articleId String Article id R
unit Unit Unit id true R,W
convert Double Conversion coefficient between unit and the article base unit true R,W
barcode String Barcode conected to unit R,W

ArticleUnitsResponse

Field Type Description Default Mandatory Accepted values Example values Access
units List R

BulkArticle

Field Type Description Default Mandatory Accepted values Example values Access
articles List List of article ids R,W
field String Field to update R,W
pricelistId Long When updating sales price the pricelist should be given R,W
type BulkArticle$BulkType Describe how the updated value should be applied. SET will set the value, PERCENTAGE will add to existing value, PROFIT will calculate sales price taking purchase price into account. PERCENTAGE and PROFIT is only valid for sales prices SET SET, PERCENTAGE, PROFIT R,W
value String Value for field that will be applied to all articles in the list R,W

BulkArticleResponse

Field Type Description Default Mandatory Accepted values Example values Access
articles List List of articles with the updated field value R,W
field String Updated field R,W
pricelistId Long Pricelist when sales price has been updated R,W

BundleArticleForPart

Field Type Description Default Mandatory Accepted values Example values Access
articleId String R,W
articleName String R
amount double R,W

BundledArticle

Field Type Description Default Mandatory Accepted values Example values Access
articleId String R,W
articleName String R
externalId String External article id R
amount Double Amount of this article for a single bundled article Post/Put R,W
isStock Boolean Is article is of type stock R
stockWarning Double Warning for low stock level R
stock Double Number of articles in stock R
reserved Double Number of articles reserved. Number of available = stock - reserved R
type String Stock means it's a physical product and service means it's work and lacks stock-amount Post Stock, Service R,W
unitName String R
stockPlace String R
buyPrice Double R
buyPriceShipment Double R
buyPriceMisc Double R
buyPriceCurrency String R
supplierId Long R
supplierName String R
supplierArticleId String R

Count

Field Type Description Default Mandatory Accepted values Example values Access
count int R

CustomerTag

Field Type Description Default Mandatory Accepted values Example values Access
id Long Write only with POST Post R,W
externalId String R,W
name String Post R,W
desc String Post R,W

CustomerTagResponse

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

CustomField

Field Type Description Default Mandatory Accepted values Example values Access
name String Post R,W
type String Post String, Number, Int, Long, Float, Double Boolean, Date, Json, JsonArray, Email R,W
value String Post R,W
validValues List R

CustomFieldsTemplate

Field Type Description Default Mandatory Accepted values Example values Access
fields List R

CustomFieldValidValue

Field Type Description Default Mandatory Accepted values Example values Access
value String R
description String R

ExportDate

Field Type Description Default Mandatory Accepted values Example values Access
id String Id of export file R
type String Type of export daily, weekly, monthly, inventory, other R
date Date Date of export R
stockValue Double Stockvalue for specified date R
stockValueFIFO Double Stockvalue FIFO for specified date R

ExportDatesResponse

Field Type Description Default Mandatory Accepted values Example values Access
page int R
pages int R
pageSize int R
datesCount int R
dates List List of export dates R

FieldsResponse

Field Type Description Default Mandatory Accepted values Example values Access
fields List Returns list of field names R

FIFO

Field Type Description Default Mandatory Accepted values Example values Access
id long R
date Date R
amount double R
amountInStock double R
supplierId long R
supplierName String R
purchasePrice double R
purchaseRate double R
supplierOrderId long R
poRef String R
description String R
userId long R
userName String R

FIFOPrice

Field Type Description Default Mandatory Accepted values Example values Access
date Date R
price Double R

FIFORate

Field Type Description Default Mandatory Accepted values Example values Access
date Date R
rate Double R

ImportTemplate

Field Type Description Default Mandatory Accepted values Example values Access
rowTitle Integer R,W
rowFirst Integer R,W
articleName Integer R,W
articleId Integer R,W
description ImportTemplateColumn R,W
isActive ImportTemplateColumn R,W
isBundled ImportTemplateColumn R,W
category ImportTemplateColumn R,W
amount ImportTemplateColumn R,W
unit ImportTemplateColumn R,W
barcode ImportTemplateColumn R,W
barcodeType ImportTemplateColumn R,W
buyPrice ImportTemplateColumn R,W
buyPriceShipment ImportTemplateColumn R,W
buyPriceMisc ImportTemplateColumn R,W
rate ImportTemplateColumn R,W
buyPriceCurrency ImportTemplateColumn R,W
supplier ImportTemplateColumn R,W
supplierArticleId ImportTemplateColumn R,W
vat ImportTemplateColumn R,W
vatAccount ImportTemplateColumn R,W
isStock ImportTemplateColumn R,W
type ImportTemplateColumn R,W
stockPlace ImportTemplateColumn R,W
stockWarning ImportTemplateColumn R,W
criticalLevel ImportTemplateColumn R,W
orderLevel ImportTemplateColumn R,W
isWebshopArticle ImportTemplateColumn R,W
manufacturer ImportTemplateColumn R,W
manufacturerArticleId ImportTemplateColumn R,W
width ImportTemplateColumn R,W
height ImportTemplateColumn R,W
depth ImportTemplateColumn R,W
weight ImportTemplateColumn R,W
tags ImportTemplateColumn R,W
priceLists HashMap R,W
customFields HashMap R,W

ImportTemplateColumn

Field Type Description Default Mandatory Accepted values Example values Access
column Integer R,W
defaultValue String R,W

PartTraceabilityExtended

Field Type Description Default Mandatory Accepted values Example values Access
articleId String R,W
articleName String R,W
amount double Amount of parts to create one bundled R,W
producedAmount double Total amount that has been produced (with regards to overproduction and waste) multiplied with amount needed to create a bundled R,W
batch ArticleTraceabilityBatch R,W
serial List R,W

PartTraceabilityResponse

Field Type Description Default Mandatory Accepted values Example values Access
traceability List R,W
modifiedStructure boolean Check if the bundle article structure have changed e.g. articles have been added/removed R,W

Price

Field Type Description Default Mandatory Accepted values Example values Access
listId Long Write only with POST Post R,W
listExternalId String External id of pricelist R
articleId String Write only with POST Post R,W
fromQuantity double Write only with POST 0 R,W
price Double To remove a price, send null to server 0 R,W

StockValue

Field Type Description Default Mandatory Accepted values Example values Access
stockValue double R
stockValueFIFO double R

StoreArticle

Field Type Description Default Mandatory Accepted values Example values Access
articleId String Article id R
name String Article name R
storeId long Store where article belongs R
storeName String Name of store R
availableAmount Double Available stock amount of article R

StoreArticlesResponse

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

SupplierArticle

Field Type Description Default Mandatory Accepted values Example values Access
supplier Long if not null, must point to an existing supplier R,W
supplierName String if not null, must point to an existing supplier R,W
supplierArticleId String R,W
supplierAutomaticOrder boolean R
supplierBuyPrice Double Total buy price including shipment and misc costs R,W
supplierBuyPriceShipment Double R,W
supplierBuyPriceMisc Double R,W
supplierBuyCurrency String If omitted, supplier's currency is used. If supplier is missing, it defaults to store's currency Store currency R,W
supplierBuyRate Double If supplier's currency differ from store's currency, provide an exchange rate. If rate is omitted, the supplier's rate is used. If supplier is missing, it defaults to 1.0 1.0 R,W

Unit

Field Type Description Default Mandatory Accepted values Example values Access
id Long R,W
externalId String R
name String Name of unit R,W