Account API
Account API provides functionality for external systems to handle and register new account in Lagerkoll
General:
Basics:
Base-URL: https://capi.lagerkoll.com/v1/account/
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.
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.
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 |
| 901011 | Error when getting license-url |
| 901012 | Error when creating account |
| 901112 | Error when creating integration |
| 901212 | Error when creating status message |
| 901222 | Error when logging in |
| 901232 | Error when verifying account |
| 901242 | Error when updating account |
| 901251 | Error when getting invoice |
| 901261 | Error when getting api settings |
| 901262 | Error when updating api settings |
| 901272 | Error when updating email settings |
| 901273 | Error when verifying email settings |
| 901282 | Error when sending support |
| 901291 | Error when getting search settings |
| 901292 | Error when updating search settings |
{
"errorCode" : 900101,
"errorMessage" : "Something went wrong on the server",
"errorField" : null,
"errorData" : null
}
Account API:
Company Account
Get API component settings
GETUrl: /search/settings
Headers:
Accept: application/json or application/xml
Other headers: user_id, user_token
Other headers: user_id, user_token
Get API component settings for all of the company accounts
Body:
Successfull response:
{ "integrationSuccessfull": true, "integrationName": "integrationName", "stores": [{}], "apiKeys": [{ "name": "name", "requests": [{ "path": "path", "method": "method" }], "key": "key" }], "callbackUrl": "callbackUrl" }
Get invoice file
GETUrl: /invoices/{invoice_id}/print
Headers:
Accept: application/pdf or application/json
Get invoice binary file by id for account
Valid parameters:
| Parameter | Description | Default value | Allowed values |
|---|---|---|---|
| credit | |||
| store |
Get email settings
GETUrl: /email/settings
Headers:
Accept: application/json or application/xml
Other headers: user_id, user_token
Other headers: user_id, user_token
Get email settings
Body:
Successfull response:
{ "password": "password", "auth": "false", "verified": true, "outgoingAddress": "outgoingAddress", "tls": "false", "ssl": "false", "email": "email", "outgoingPort": 5106, "username": "username" }
Get license
GETUrl: /license
Headers:
Accept: application/json or application/xml
Other headers: Open request, no identification-headers needed
Other headers: Open request, no identification-headers needed
Get link to license. This must be displayed to user before he/she is allowed to register
Valid parameters:
| Parameter | Description | Default value | Allowed values |
|---|---|---|---|
| promotion_code |
Body:
Successfull response:
{ "models": [{ "maxUsers": 4088, "maxArticles": 9807, "reseller": true, "vismaAccess": 1209, "maxCustomers": 5228, "fortnoxAccess": 9061, "paymentType": 1510, "discountPercentage": 8907.243467115853, "premium": true, "batchAccess": 1933, "price": 7442.604105725065, "name": "name", "maxStocks": 5877, "id": 6455, "peAccess": 2380 }], "eula": "eula" }
Get invoices
GETUrl: /invoices
Headers:
Accept: application/json or application/xml
Get list of invoices for account
Body:
Successfull response:
{"invoices": [{ "invoiceExpireDate": 1772868855851, "invoiceDays": 4513, "invoicePaidDate": 1772868855851, "invoiceId": 518, "state": "state", "invoiceDate": 1772868855851, "paymentDate": 1772868855851, "rows": [{ "articleName": "articleName", "discountPercent": 3253.841839734749, "articleVat": 9373.54258767768, "articleId": "articleId", "articlePrice": 1978.602839926652 }], "serverId": 7981, "invoicePeriodInMonths": 6550 }]}
Get invoice by id
GETUrl: /invoices/{invoice_id}
Headers:
Accept: application/json or application/xml
Get single invoice by id for account
Body:
Successfull response:
{ "invoiceExpireDate": 1772868855852, "invoiceDays": 1661, "invoicePaidDate": 1772868855852, "invoiceId": 6343, "state": "state", "invoiceDate": 1772868855852, "paymentDate": 1772868855852, "rows": [{ "articleName": "articleName", "discountPercent": 5172.795718624939, "articleVat": 3380.3331897962485, "articleId": "articleId", "articlePrice": 6394.043222901564 }], "serverId": 5390, "invoicePeriodInMonths": 60 }
Get next invoice
GETUrl: /invoices/next
Headers:
Accept: application/json or application/xml
Get next invoice for account
Body:
Successfull response:
{ "invoiceExpireDate": 1772868855853, "invoiceDays": 5402, "invoicePaidDate": 1772868855853, "invoiceId": 4493, "state": "state", "invoiceDate": 1772868855853, "paymentDate": 1772868855853, "rows": [{ "articleName": "articleName", "discountPercent": 9615.049744524593, "articleVat": 9079.028745142814, "articleId": "articleId", "articlePrice": 6295.076281885374 }], "serverId": 107, "invoicePeriodInMonths": 9410 }
Get company account
GETUrl:
Headers:
Accept: application/json or application/xml
Content-type: application/json or application/xml
Content-type: application/json or application/xml
Get information about the company account and master stock. This is not to be confused with a user account.
Body:
Successfull response:
{ "invoiceZip": "invoiceZip", "country": "country", "visma": true, "fieldsSettings": {"fields": {}}, "city": "city", "rules": { "canCreateCostCenters": true, "canCreateSupplierDeliveryTerm": false, "maxUsers": 4086, "defaultCategory": { "name": "name", "id": 9270, "articles": 8043 }, "articleNameMaxLength": 7168, "showVATAccount": false, "canCreateCustomerOrderInvoice": false, "canChangeCustomerOnOrderStateStart": 2960, "canCancelCustomerOrder": true, "allowZeroSumCustomerOrders": true, "customerOrderReservedStateEnd": 1141, "canCreateCustomerDeliveryTerm": true, "canCreateVAT": false, "customerOrderReservedStateStart": 5089, "defaultUnitType": { "name": "name", "externalId": "externalId", "id": 4538 }, "defaultVAT": { "isDefault": true, "code": "code", "vat": 7065.749740561093, "description": "description", "id": 7395, "account": 2992 }, "supportsCustomerOrderFees": false, "doesVATControllArticleType": false, "canCreatePaymentTerm": false, "canSetCostCentersOnCustomerOrder": true, "maxArticles": 775, "allowNegativeOrderedSumInCustomerOrder": true, "canCreateWayOfDelivery": false, "maxCustomers": 9819, "maxIntegrationDecimals": 615, "canSetDefaultPricelist": true, "supportsBracketPricing": false, "allowRestCustomerOrder": true, "customerTypeSetsVAT": true, "batchAccess": true, "maxStocks": 9844, "supportsNoVAT": true, "canSetStock": true, "canCreateUnit": false, "increaseStockOnReceiveForPickNPack": true, "canChangeCustomerOnOrderStateEnd": 919, "supportsInvoiceTypes": false }, "invoiceAddress": "invoiceAddress", "invoiceEmail": "invoiceEmail", "fortnox": false, "paymentType": 7108, "masterStoreId": 1656, "features": [{ "image": "image", "server": true, "roles": [{}], "icon": "icon", "description": {}, "version": "version", "credits": "credits", "price": 3599.7495103987876, "name": {}, "annual": false, "publisher": "publisher", "files": [{ "filename": "filename", "menuTitle": {}, "index": 4884 }], "id": "id", "category": [{}], "dashboard": "dashboard" }], "deactivateDate": 9069, "storeGroupId": 3041, "countryCode": "countryCode", "barcodePrintingFieldsSettings": {}, "customerOrderSettings": {}, "currency": "currency", "storeName": "storeName", "orgNumber": "orgNumber", "email": "email", "zip": "zip", "settings": { "cashInvoicePaymentWay": "cashInvoicePaymentWay", "truncateArticleName": false, "automaticBundling": true, "weeklyStatus": true, "projectInvoicePaymentWay": "projectInvoicePaymentWay", "decimals": 4632, "automaticDailyExport": false, "customerOrderNotification": false, "defaultTemplate": 2937, "language": "language", "lowStockWarning": true }, "address": "address", "invoiceCountry": "invoiceCountry", "customerPortalSettings": { "showOtherPurchasedArticles": true, "showSerials": false, "showName": true, "welcomeTitle": {}, "welcomeText": {}, "showImage": false, "showArticleId": false, "orderArticlesNotInStock": true, "showWebshop": true, "showDescription": true, "showPrice": true, "showArticleStockStatus": true, "showBatches": false }, "purchaseOrderSettings": {}, "address2": "address2", "contactName": "contactName", "articleSuffix": "articleSuffix", "fortnoxV2": false, "salesPriceIncludesVAT": false, "invoiceAddress2": "invoiceAddress2", "storeId": 9894, "invoiceCity": "invoiceCity", "phone": "phone", "name": "name", "invoiceCountryCode": "invoiceCountryCode" }
Get API component settings
GETUrl: /api/settings
Headers:
Accept: application/json or application/xml
Other headers: user_id, user_token
Other headers: user_id, user_token
Get API component settings for all of the company accounts
Body:
Successfull response:
{ "integrationSuccessfull": true, "integrationName": "integrationName", "stores": [{}], "apiKeys": [{ "name": "name", "requests": [{ "path": "path", "method": "method" }], "key": "key" }], "callbackUrl": "callbackUrl" }
Get Events component settings
GETUrl: /events/settings
Headers:
Accept: application/json or application/xml
Other headers: user_id, user_token
Other headers: user_id, user_token
Get Scheduled Events component settings for all of the company accounts
Body:
Successfull response:
{ "bestBeforeTrigger": 4710, "purchaseOrdersReminder": true }
Get Report component settings
GETUrl: /reports/settings
Headers:
Accept: application/json or application/xml
Other headers: user_id, user_token
Other headers: user_id, user_token
Get Report component settings for all of the company accounts
Body:
Successfull response:
{ "tobaccoEUCustomerTagDto": { "name": "name", "externalId": "externalId", "id": 2123, "desc": "desc" }, "tobaccoSWCustomerTagDto": { "name": "name", "externalId": "externalId", "id": 4844, "desc": "desc" }, "tobaccoNoTaxCustomerTagDto": { "name": "name", "externalId": "externalId", "id": 3199, "desc": "desc" } }
Send email
POSTUrl: /email/send
Headers:
Accept: application/json or application/xml
Content-type: multipart/form-data
Other headers: user_id, user_token
Content-type: multipart/form-data
Other headers: user_id, user_token
Send email to an email address
Valid parameters:
| Parameter | Description | Default value | Allowed values |
|---|---|---|---|
| file | |||
| file | |||
| toAddress | Email to receiver | ||
| subject | Subject of email | ||
| message | Message of email |
Body:
Successfull response:
Invite new company to Lagerkoll
POSTUrl: /promotion/invite
Headers:
Accept: application/json or application/xml
Content-type: application/json or application/xml
Content-type: application/json or application/xml
Invite a new company to use Lagerkoll and get a discount on the next invoice
Send support
POSTUrl: /support
Headers:
Accept: application/json or application/xml
Content-type: application/json or application/xml
Content-type: application/json or application/xml
Send support mail to Lagerkoll
Register company account
POSTUrl: /register
Headers:
Accept: application/json or application/xml
Content-type: application/json or application/xml
Content-type: application/json or application/xml
Register a new company account. Before user is allowed to do this, he/she must first view and accept the license agreement.
Body:
{ "zip": "zip", "country": "country", "address": "address", "notes": "notes", "city": "city", "licenceAccepted": "false", "companyName": "companyName", "promotionCode": "promotionCode", "contactPerson": "contactPerson", "language": "en", "paymentType": 7584, "features": [{}], "password": "password", "phone": "phone", "currency": "currency", "orgNumber": "orgNumber", "email": "email", "bankIDOrderRef": "bankIDOrderRef" }
Successfull response:
{ "invoiceZip": "invoiceZip", "country": "country", "visma": false, "fieldsSettings": {"fields": {}}, "city": "city", "rules": { "canCreateCostCenters": true, "canCreateSupplierDeliveryTerm": true, "maxUsers": 9096, "defaultCategory": { "name": "name", "id": 2515, "articles": 4485 }, "articleNameMaxLength": 1003, "showVATAccount": false, "canCreateCustomerOrderInvoice": true, "canChangeCustomerOnOrderStateStart": 4310, "canCancelCustomerOrder": true, "allowZeroSumCustomerOrders": true, "customerOrderReservedStateEnd": 541, "canCreateCustomerDeliveryTerm": false, "canCreateVAT": true, "customerOrderReservedStateStart": 7532, "defaultUnitType": { "name": "name", "externalId": "externalId", "id": 9981 }, "defaultVAT": { "isDefault": false, "code": "code", "vat": 3492.543554802061, "description": "description", "id": 7686, "account": 859 }, "supportsCustomerOrderFees": false, "doesVATControllArticleType": false, "canCreatePaymentTerm": true, "canSetCostCentersOnCustomerOrder": false, "maxArticles": 2580, "allowNegativeOrderedSumInCustomerOrder": true, "canCreateWayOfDelivery": false, "maxCustomers": 3602, "maxIntegrationDecimals": 6074, "canSetDefaultPricelist": true, "supportsBracketPricing": false, "allowRestCustomerOrder": false, "customerTypeSetsVAT": true, "batchAccess": false, "maxStocks": 7940, "supportsNoVAT": true, "canSetStock": true, "canCreateUnit": true, "increaseStockOnReceiveForPickNPack": true, "canChangeCustomerOnOrderStateEnd": 7048, "supportsInvoiceTypes": false }, "invoiceAddress": "invoiceAddress", "invoiceEmail": "invoiceEmail", "fortnox": true, "paymentType": 4092, "masterStoreId": 6291, "features": [{ "image": "image", "server": false, "roles": [{}], "icon": "icon", "description": {}, "version": "version", "credits": "credits", "price": 625.8974828395935, "name": {}, "annual": false, "publisher": "publisher", "files": [{ "filename": "filename", "menuTitle": {}, "index": 5701 }], "id": "id", "category": [{}], "dashboard": "dashboard" }], "deactivateDate": 6001, "storeGroupId": 4275, "countryCode": "countryCode", "barcodePrintingFieldsSettings": {}, "customerOrderSettings": {}, "currency": "currency", "storeName": "storeName", "orgNumber": "orgNumber", "email": "email", "zip": "zip", "settings": { "cashInvoicePaymentWay": "cashInvoicePaymentWay", "truncateArticleName": true, "automaticBundling": false, "weeklyStatus": true, "projectInvoicePaymentWay": "projectInvoicePaymentWay", "decimals": 558, "automaticDailyExport": false, "customerOrderNotification": true, "defaultTemplate": 8273, "language": "language", "lowStockWarning": true }, "address": "address", "invoiceCountry": "invoiceCountry", "customerPortalSettings": { "showOtherPurchasedArticles": false, "showSerials": false, "showName": false, "welcomeTitle": {}, "welcomeText": {}, "showImage": false, "showArticleId": true, "orderArticlesNotInStock": true, "showWebshop": true, "showDescription": true, "showPrice": true, "showArticleStockStatus": false, "showBatches": false }, "purchaseOrderSettings": {}, "address2": "address2", "contactName": "contactName", "articleSuffix": "articleSuffix", "fortnoxV2": true, "salesPriceIncludesVAT": false, "invoiceAddress2": "invoiceAddress2", "storeId": 769, "invoiceCity": "invoiceCity", "phone": "phone", "name": "name", "invoiceCountryCode": "invoiceCountryCode" }
Update company account
PUTUrl:
Headers:
Accept: application/json or application/xml
Content-type: application/json or application/xml
Content-type: application/json or application/xml
Update information on the company account. This is not to be confused with a user account.
Body:
{ "invoiceZip": "invoiceZip", "country": "country", "visma": true, "fieldsSettings": {"fields": {}}, "city": "city", "rules": { "canCreateCostCenters": true, "canCreateSupplierDeliveryTerm": false, "maxUsers": 3447, "defaultCategory": { "name": "name", "id": 126, "articles": 9075 }, "articleNameMaxLength": 9156, "showVATAccount": true, "canCreateCustomerOrderInvoice": false, "canChangeCustomerOnOrderStateStart": 6118, "canCancelCustomerOrder": true, "allowZeroSumCustomerOrders": false, "customerOrderReservedStateEnd": 1964, "canCreateCustomerDeliveryTerm": false, "canCreateVAT": false, "customerOrderReservedStateStart": 6430, "defaultUnitType": { "name": "name", "externalId": "externalId", "id": 4349 }, "defaultVAT": { "isDefault": false, "code": "code", "vat": 3684.8427093113232, "description": "description", "id": 1804, "account": 1512 }, "supportsCustomerOrderFees": true, "doesVATControllArticleType": true, "canCreatePaymentTerm": true, "canSetCostCentersOnCustomerOrder": true, "maxArticles": 2922, "allowNegativeOrderedSumInCustomerOrder": false, "canCreateWayOfDelivery": true, "maxCustomers": 6565, "maxIntegrationDecimals": 4995, "canSetDefaultPricelist": true, "supportsBracketPricing": true, "allowRestCustomerOrder": true, "customerTypeSetsVAT": true, "batchAccess": true, "maxStocks": 3376, "supportsNoVAT": true, "canSetStock": true, "canCreateUnit": true, "increaseStockOnReceiveForPickNPack": true, "canChangeCustomerOnOrderStateEnd": 4142, "supportsInvoiceTypes": false }, "invoiceAddress": "invoiceAddress", "invoiceEmail": "invoiceEmail", "fortnox": true, "paymentType": 9895, "masterStoreId": 9228, "features": [{ "image": "image", "server": false, "roles": [{}], "icon": "icon", "description": {}, "version": "version", "credits": "credits", "price": 8481.992809492769, "name": {}, "annual": true, "publisher": "publisher", "files": [{ "filename": "filename", "menuTitle": {}, "index": 1160 }], "id": "id", "category": [{}], "dashboard": "dashboard" }], "deactivateDate": 4080, "storeGroupId": 5676, "countryCode": "countryCode", "barcodePrintingFieldsSettings": {}, "customerOrderSettings": {}, "currency": "currency", "storeName": "storeName", "orgNumber": "orgNumber", "email": "email", "zip": "zip", "settings": { "cashInvoicePaymentWay": "cashInvoicePaymentWay", "truncateArticleName": true, "automaticBundling": true, "weeklyStatus": false, "projectInvoicePaymentWay": "projectInvoicePaymentWay", "decimals": 9798, "automaticDailyExport": true, "customerOrderNotification": true, "defaultTemplate": 8484, "language": "language", "lowStockWarning": true }, "address": "address", "invoiceCountry": "invoiceCountry", "customerPortalSettings": { "showOtherPurchasedArticles": false, "showSerials": true, "showName": false, "welcomeTitle": {}, "welcomeText": {}, "showImage": false, "showArticleId": false, "orderArticlesNotInStock": false, "showWebshop": false, "showDescription": false, "showPrice": false, "showArticleStockStatus": false, "showBatches": true }, "purchaseOrderSettings": {}, "address2": "address2", "contactName": "contactName", "articleSuffix": "articleSuffix", "fortnoxV2": true, "salesPriceIncludesVAT": false, "invoiceAddress2": "invoiceAddress2", "storeId": 1095, "invoiceCity": "invoiceCity", "phone": "phone", "name": "name", "invoiceCountryCode": "invoiceCountryCode" }
Successfull response:
{ "invoiceZip": "invoiceZip", "country": "country", "visma": true, "fieldsSettings": {"fields": {}}, "city": "city", "rules": { "canCreateCostCenters": false, "canCreateSupplierDeliveryTerm": false, "maxUsers": 3065, "defaultCategory": { "name": "name", "id": 6314, "articles": 3039 }, "articleNameMaxLength": 2881, "showVATAccount": false, "canCreateCustomerOrderInvoice": false, "canChangeCustomerOnOrderStateStart": 6721, "canCancelCustomerOrder": false, "allowZeroSumCustomerOrders": false, "customerOrderReservedStateEnd": 9070, "canCreateCustomerDeliveryTerm": true, "canCreateVAT": true, "customerOrderReservedStateStart": 7849, "defaultUnitType": { "name": "name", "externalId": "externalId", "id": 8547 }, "defaultVAT": { "isDefault": false, "code": "code", "vat": 5028.558141769281, "description": "description", "id": 1598, "account": 4523 }, "supportsCustomerOrderFees": false, "doesVATControllArticleType": false, "canCreatePaymentTerm": false, "canSetCostCentersOnCustomerOrder": false, "maxArticles": 8106, "allowNegativeOrderedSumInCustomerOrder": true, "canCreateWayOfDelivery": false, "maxCustomers": 505, "maxIntegrationDecimals": 5358, "canSetDefaultPricelist": true, "supportsBracketPricing": false, "allowRestCustomerOrder": false, "customerTypeSetsVAT": false, "batchAccess": true, "maxStocks": 3264, "supportsNoVAT": true, "canSetStock": true, "canCreateUnit": false, "increaseStockOnReceiveForPickNPack": true, "canChangeCustomerOnOrderStateEnd": 6730, "supportsInvoiceTypes": false }, "invoiceAddress": "invoiceAddress", "invoiceEmail": "invoiceEmail", "fortnox": true, "paymentType": 4842, "masterStoreId": 3401, "features": [{ "image": "image", "server": true, "roles": [{}], "icon": "icon", "description": {}, "version": "version", "credits": "credits", "price": 7983.975525861163, "name": {}, "annual": false, "publisher": "publisher", "files": [{ "filename": "filename", "menuTitle": {}, "index": 6374 }], "id": "id", "category": [{}], "dashboard": "dashboard" }], "deactivateDate": 6149, "storeGroupId": 4148, "countryCode": "countryCode", "barcodePrintingFieldsSettings": {}, "customerOrderSettings": {}, "currency": "currency", "storeName": "storeName", "orgNumber": "orgNumber", "email": "email", "zip": "zip", "settings": { "cashInvoicePaymentWay": "cashInvoicePaymentWay", "truncateArticleName": false, "automaticBundling": false, "weeklyStatus": false, "projectInvoicePaymentWay": "projectInvoicePaymentWay", "decimals": 3178, "automaticDailyExport": true, "customerOrderNotification": false, "defaultTemplate": 3130, "language": "language", "lowStockWarning": false }, "address": "address", "invoiceCountry": "invoiceCountry", "customerPortalSettings": { "showOtherPurchasedArticles": false, "showSerials": false, "showName": false, "welcomeTitle": {}, "welcomeText": {}, "showImage": false, "showArticleId": false, "orderArticlesNotInStock": false, "showWebshop": false, "showDescription": false, "showPrice": true, "showArticleStockStatus": true, "showBatches": true }, "purchaseOrderSettings": {}, "address2": "address2", "contactName": "contactName", "articleSuffix": "articleSuffix", "fortnoxV2": false, "salesPriceIncludesVAT": false, "invoiceAddress2": "invoiceAddress2", "storeId": 4293, "invoiceCity": "invoiceCity", "phone": "phone", "name": "name", "invoiceCountryCode": "invoiceCountryCode" }
Upgrade premium
PUTUrl: /premium/{payment_type}
Headers:
Accept: application/json or application/xml
Content-type: application/json or application/xml
Content-type: application/json or application/xml
Upgrade to a premium account. This can only be done if the account is a free account. If you wish to upgrade or downgrade please contact us on support@lagerkoll.com
Body:
Successfull response:
{ "invoiceZip": "invoiceZip", "country": "country", "visma": false, "fieldsSettings": {"fields": {}}, "city": "city", "rules": { "canCreateCostCenters": false, "canCreateSupplierDeliveryTerm": false, "maxUsers": 6262, "defaultCategory": { "name": "name", "id": 6900, "articles": 4175 }, "articleNameMaxLength": 4281, "showVATAccount": true, "canCreateCustomerOrderInvoice": true, "canChangeCustomerOnOrderStateStart": 7660, "canCancelCustomerOrder": true, "allowZeroSumCustomerOrders": true, "customerOrderReservedStateEnd": 5517, "canCreateCustomerDeliveryTerm": false, "canCreateVAT": false, "customerOrderReservedStateStart": 6283, "defaultUnitType": { "name": "name", "externalId": "externalId", "id": 6739 }, "defaultVAT": { "isDefault": true, "code": "code", "vat": 2174.3282934216236, "description": "description", "id": 6881, "account": 2182 }, "supportsCustomerOrderFees": false, "doesVATControllArticleType": false, "canCreatePaymentTerm": false, "canSetCostCentersOnCustomerOrder": true, "maxArticles": 7067, "allowNegativeOrderedSumInCustomerOrder": true, "canCreateWayOfDelivery": false, "maxCustomers": 269, "maxIntegrationDecimals": 6403, "canSetDefaultPricelist": false, "supportsBracketPricing": true, "allowRestCustomerOrder": true, "customerTypeSetsVAT": true, "batchAccess": false, "maxStocks": 1857, "supportsNoVAT": false, "canSetStock": true, "canCreateUnit": true, "increaseStockOnReceiveForPickNPack": false, "canChangeCustomerOnOrderStateEnd": 1527, "supportsInvoiceTypes": false }, "invoiceAddress": "invoiceAddress", "invoiceEmail": "invoiceEmail", "fortnox": true, "paymentType": 3636, "masterStoreId": 5099, "features": [{ "image": "image", "server": true, "roles": [{}], "icon": "icon", "description": {}, "version": "version", "credits": "credits", "price": 7336.142400612108, "name": {}, "annual": false, "publisher": "publisher", "files": [{ "filename": "filename", "menuTitle": {}, "index": 5448 }], "id": "id", "category": [{}], "dashboard": "dashboard" }], "deactivateDate": 3924, "storeGroupId": 5869, "countryCode": "countryCode", "barcodePrintingFieldsSettings": {}, "customerOrderSettings": {}, "currency": "currency", "storeName": "storeName", "orgNumber": "orgNumber", "email": "email", "zip": "zip", "settings": { "cashInvoicePaymentWay": "cashInvoicePaymentWay", "truncateArticleName": false, "automaticBundling": false, "weeklyStatus": true, "projectInvoicePaymentWay": "projectInvoicePaymentWay", "decimals": 5578, "automaticDailyExport": false, "customerOrderNotification": false, "defaultTemplate": 8962, "language": "language", "lowStockWarning": true }, "address": "address", "invoiceCountry": "invoiceCountry", "customerPortalSettings": { "showOtherPurchasedArticles": true, "showSerials": false, "showName": false, "welcomeTitle": {}, "welcomeText": {}, "showImage": false, "showArticleId": true, "orderArticlesNotInStock": true, "showWebshop": true, "showDescription": true, "showPrice": false, "showArticleStockStatus": true, "showBatches": false }, "purchaseOrderSettings": {}, "address2": "address2", "contactName": "contactName", "articleSuffix": "articleSuffix", "fortnoxV2": true, "salesPriceIncludesVAT": false, "invoiceAddress2": "invoiceAddress2", "storeId": 1400, "invoiceCity": "invoiceCity", "phone": "phone", "name": "name", "invoiceCountryCode": "invoiceCountryCode" }
Update API component settings
PUTUrl: /api/settings
Headers:
Accept: application/json or application/xml
Other headers: user_id, user_token
Other headers: user_id, user_token
Update API component settings for all of the company accounts
Body:
{ "integrationSuccessfull": false, "integrationName": "integrationName", "stores": [{}], "apiKeys": [{ "name": "name", "requests": [{ "path": "path", "method": "method" }], "key": "key" }], "callbackUrl": "callbackUrl" }
Successfull response:
{ "integrationSuccessfull": false, "integrationName": "integrationName", "stores": [{}], "apiKeys": [{ "name": "name", "requests": [{ "path": "path", "method": "method" }], "key": "key" }], "callbackUrl": "callbackUrl" }
Update search settings
PUTUrl: /search/settings
Headers:
Accept: application/json or application/xml
Other headers: user_id, user_token
Other headers: user_id, user_token
Update Search settings for all of the stores
Update Events component settings
PUTUrl: /events/settings
Headers:
Accept: application/json or application/xml
Other headers: user_id, user_token
Other headers: user_id, user_token
Update Scheduled Events component settings for all of the company accounts
Body:
{ "bestBeforeTrigger": 2170, "purchaseOrdersReminder": false }
Successfull response:
{ "bestBeforeTrigger": 508, "purchaseOrdersReminder": true }
Update Report component settings
PUTUrl: /reports/settings
Headers:
Accept: application/json or application/xml
Other headers: user_id, user_token
Other headers: user_id, user_token
Update Report component settings for all of the company accounts
Body:
{ "tobaccoEUCustomerTagDto": { "name": "name", "externalId": "externalId", "id": 2277, "desc": "desc" }, "tobaccoSWCustomerTagDto": { "name": "name", "externalId": "externalId", "id": 1077, "desc": "desc" }, "tobaccoNoTaxCustomerTagDto": { "name": "name", "externalId": "externalId", "id": 1165, "desc": "desc" } }
Successfull response:
{ "tobaccoEUCustomerTagDto": { "name": "name", "externalId": "externalId", "id": 4999, "desc": "desc" }, "tobaccoSWCustomerTagDto": { "name": "name", "externalId": "externalId", "id": 8461, "desc": "desc" }, "tobaccoNoTaxCustomerTagDto": { "name": "name", "externalId": "externalId", "id": 7938, "desc": "desc" } }
Update barcode settings
PUTUrl: /barcode/settings
Headers:
Accept: application/json or application/xml
Other headers: user_id, user_token
Other headers: user_id, user_token
Update barcode settings for company account
Body:
{"barcodePrintingFieldsSettings": {}}
Successfull response:
{"barcodePrintingFieldsSettings": {}}
Update email settings
PUTUrl: /email/settings
Headers:
Accept: application/json or application/xml
Other headers: user_id, user_token
Other headers: user_id, user_token
Update email settings to start using another email service than Lagerkoll´s when sending emails
Body:
{ "password": "password", "auth": "false", "verified": false, "outgoingAddress": "outgoingAddress", "tls": "false", "ssl": "false", "email": "email", "outgoingPort": 9059, "username": "username" }
Successfull response:
{ "password": "password", "auth": "false", "verified": false, "outgoingAddress": "outgoingAddress", "tls": "false", "ssl": "false", "email": "email", "outgoingPort": 8102, "username": "username" }
Verify email settings
PUTUrl: /email/verify
Headers:
Accept: application/json or application/xml
Other headers: user_id, user_token
Other headers: user_id, user_token
Verify email settings and activates them on success
Remove email settings
DELETEUrl: /email/settings
Headers:
Accept: application/json or application/xml
Other headers: user_id, user_token
Other headers: user_id, user_token
Remove email settings and start using Lagerkoll´s email server again when sending emails
Body:
Successfull response:
Status
Get unread status messages count
GETUrl: /status/count
Headers:
Accept: application/json or application/xml
Other headers: user_id, user_token
Other headers: user_id, user_token
Get number of unread status messages.
Get status messages
GETUrl: /status
Headers:
Accept: application/json or application/xml
Content-type: application/json or application/xml
Content-type: application/json or application/xml
Get a list of the latest status messages saved for the store
Valid parameters:
| Parameter | Description | Default value | Allowed values |
|---|---|---|---|
| page | 0 | ||
| limit | 100 |
Body:
Successfull response:
{ "pages": 5426, "pageSize": 5843, "messages": [{ "integrationType": "integrationType", "created": 7749, "technicalMessage": "technicalMessage", "action": "action", "messageId": "messageId", "progress": 5366, "type": "type", "message": "message" }], "page": 1565, "messagesCount": 8754 }
Send status message
POSTUrl: /status
Headers:
Accept: application/json or application/xml
Content-type: application/json or application/xml
Content-type: application/json or application/xml
Send a status-message to Lagerkoll. INFO and ERRORs are stored and can be viewed when user loggs in, PROGRESS and PROGRESS_DONE are only showed for logged in users
Body:
{ "integrationType": "integrationType", "action": "action", "messageId": "messageId", "progress": 9538, "type": "type", "message": "message" }
Successfull response:
Remove all messages
DELETEUrl: /status
Headers:
Accept: application/json or application/xml
Content-type: application/json or application/xml
Content-type: application/json or application/xml
Remove all status messages for the store
Body:
Successfull response:
User Account
Get users
GETUrl: /users
Headers:
Accept: application/json or application/xml
Other headers: user_id, user_token
Other headers: user_id, user_token
Get list of users connected to company account
Valid parameters:
| Parameter | Description | Default value | Allowed values |
|---|---|---|---|
| query | |||
| since | 0 | ||
| page | 0 | ||
| limit | 100 | ||
| filter_customers | false |
Body:
Successfull response:
{ "pages": 7427, "pageSize": 9831, "usersCount": 1699, "page": 8938, "users": [{ "systemAdmin": true, "bankID": true, "notes": "notes", "role": { "loginServices": [{}], "storeGroupId": 3394, "paths": {}, "name": "name", "id": 6025, "nativeFeatures": [{}], "fields": {}, "portal": "portal", "users": 5089 }, "phone": "phone", "name": "name", "emailInvalid": false, "admin": false, "lastLoggedIn": 823, "id": 7722, "email": "email", "customer": false }], "since": 8159 }
Get user account settings
GETUrl: /settings
Headers:
Accept: application/json or application/xml
Other headers: user_id, user_token
Other headers: user_id, user_token
Get user account settings
Body:
Successfull response:
{ "productSortOrder": "productSortOrder", "storeArticleSortData": {}, "supplierArticleSettings": {}, "projectSortData": [{ "column": "column", "state": 5128, "order": "order" }], "showWelcome": false, "language": "language", "multiPickData": {}, "reportsSettings": {}, "customerSortData": {}, "articleSortData": {}, "pickingListSortData": {}, "projectArticleSortData": {}, "storeGroupId": 8487, "pickingListSortColumn": "pickingListSortColumn", "customerOrderSortData": [{ "column": "column", "state": 3152, "order": "order" }], "productSortColumn": "productSortColumn", "productionOrderSortData": [{ "column": "column", "state": 6440, "order": "order" }], "warnedArticlesSortData": {}, "systemAccountSortData": {}, "lastReadStatusMessages": 4591, "invoiceDraftSortData": {}, "stocktakeArticleSortData": {}, "pickingListSortOrder": "pickingListSortOrder", "orderedArticlesSortData": {}, "accountSortData": {}, "supplierSortData": {}, "productionOrderData": {}, "openPurchaseOrderSortData": {}, "priceListSortData": {}, "storeId": 1654, "purchaseOrderSortData": [{ "column": "column", "state": 4030, "order": "order" }], "systemUserSortData": {}, "helpSectionsCollapsed": {}, "viewedReleaseNotesVersion": "viewedReleaseNotesVersion", "invoiceSortData": {} }
Get logged in user
GETUrl: /login
Headers:
Accept: application/json or application/xml
Content-type: application/json or application/xml
Content-type: application/json or application/xml
Get logged in user, same response as in login
Body:
Successfull response:
{ "systemAdmin": true, "settings": { "productSortOrder": "productSortOrder", "storeArticleSortData": {}, "supplierArticleSettings": {}, "projectSortData": [{ "column": "column", "state": 9249, "order": "order" }], "showWelcome": false, "language": "language", "multiPickData": {}, "reportsSettings": {}, "customerSortData": {}, "articleSortData": {}, "pickingListSortData": {}, "projectArticleSortData": {}, "storeGroupId": 5605, "pickingListSortColumn": "pickingListSortColumn", "customerOrderSortData": [{ "column": "column", "state": 2285, "order": "order" }], "productSortColumn": "productSortColumn", "productionOrderSortData": [{ "column": "column", "state": 6617, "order": "order" }], "warnedArticlesSortData": {}, "systemAccountSortData": {}, "lastReadStatusMessages": 6683, "invoiceDraftSortData": {}, "stocktakeArticleSortData": {}, "pickingListSortOrder": "pickingListSortOrder", "orderedArticlesSortData": {}, "accountSortData": {}, "supplierSortData": {}, "productionOrderData": {}, "openPurchaseOrderSortData": {}, "priceListSortData": {}, "storeId": 7469, "purchaseOrderSortData": [{ "column": "column", "state": 6349, "order": "order" }], "systemUserSortData": {}, "helpSectionsCollapsed": {}, "viewedReleaseNotesVersion": "viewedReleaseNotesVersion", "invoiceSortData": {} }, "apiKey": "apiKey", "phone": "phone", "name": "name", "storeGroups": [{ "stores": 2474, "groupId": 6021, "name": "name", "integration": "integration", "storePermissions": [{ "role": { "loginServices": [{}], "storeGroupId": 3733, "paths": {}, "name": "name", "id": 46, "nativeFeatures": [{}], "fields": {}, "portal": "portal", "users": 5617 }, "capabilities": [{}], "storeGroupId": 3675, "isMaster": true, "name": "name", "currency": "currency", "language": "language", "storeId": 3446 }] }], "admin": true, "delayedInvoicesMessage": "delayedInvoicesMessage", "userId": 1863, "email": "email" }
Get unread web messages
GETUrl: /webmessages
Headers:
Accept: application/json or application/xml
Other headers: user_id, user_token
Other headers: user_id, user_token
Get list of unread web messages. This request will return a list of unread messages and then mark them as read. The messages will only be returned once
Valid parameters:
| Parameter | Description | Default value | Allowed values |
|---|---|---|---|
| statistics | false |
Body:
Successfull response:
{"messages": [{ "data": { "action": "action", "params": {} }, "action": "action", "responseCode": 6856 }]}
Get user
GETUrl: /users/{id}
Headers:
Accept: application/json or application/xml
Other headers: user_id, user_token
Other headers: user_id, user_token
Get a user by id
Body:
Successfull response:
{ "systemAdmin": false, "bankID": true, "notes": "notes", "role": { "loginServices": [{}], "storeGroupId": 2738, "paths": {}, "name": "name", "id": 7528, "nativeFeatures": [{}], "fields": {}, "portal": "portal", "users": 8755 }, "phone": "phone", "name": "name", "emailInvalid": false, "admin": false, "lastLoggedIn": 9053, "id": 42, "email": "email", "customer": true }
Log in
POSTUrl: /login
Headers:
Accept: application/json or application/xml
Content-type: application/json or application/xml
Content-type: application/json or application/xml
Login to your Lagerkoll user account to get a valid user token to be used for other requests
Body:
{ "password": "password", "username": "username" }
Successfull response:
{ "systemAdmin": false, "settings": { "productSortOrder": "productSortOrder", "storeArticleSortData": {}, "supplierArticleSettings": {}, "projectSortData": [{ "column": "column", "state": 7633, "order": "order" }], "showWelcome": false, "language": "language", "multiPickData": {}, "reportsSettings": {}, "customerSortData": {}, "articleSortData": {}, "pickingListSortData": {}, "projectArticleSortData": {}, "storeGroupId": 7355, "pickingListSortColumn": "pickingListSortColumn", "customerOrderSortData": [{ "column": "column", "state": 649, "order": "order" }], "productSortColumn": "productSortColumn", "productionOrderSortData": [{ "column": "column", "state": 5131, "order": "order" }], "warnedArticlesSortData": {}, "systemAccountSortData": {}, "lastReadStatusMessages": 3322, "invoiceDraftSortData": {}, "stocktakeArticleSortData": {}, "pickingListSortOrder": "pickingListSortOrder", "orderedArticlesSortData": {}, "accountSortData": {}, "supplierSortData": {}, "productionOrderData": {}, "openPurchaseOrderSortData": {}, "priceListSortData": {}, "storeId": 4185, "purchaseOrderSortData": [{ "column": "column", "state": 1505, "order": "order" }], "systemUserSortData": {}, "helpSectionsCollapsed": {}, "viewedReleaseNotesVersion": "viewedReleaseNotesVersion", "invoiceSortData": {} }, "apiKey": "apiKey", "phone": "phone", "name": "name", "storeGroups": [{ "stores": 4758, "groupId": 5335, "name": "name", "integration": "integration", "storePermissions": [{ "role": { "loginServices": [{}], "storeGroupId": 3970, "paths": {}, "name": "name", "id": 8696, "nativeFeatures": [{}], "fields": {}, "portal": "portal", "users": 7786 }, "capabilities": [{}], "storeGroupId": 4359, "isMaster": true, "name": "name", "currency": "currency", "language": "language", "storeId": 2541 }] }], "admin": false, "delayedInvoicesMessage": "delayedInvoicesMessage", "userId": 1204, "email": "email" }
Log in with SSO
POSTUrl: /login/sso
Headers:
Accept: application/json or application/xml
Content-type: application/json or application/xml
Content-type: application/json or application/xml
Login to your Lagerkoll user account and connect your SSO user with your Lagerkoll user
Body:
{ "password": "password", "externalId": "externalId", "type": "type", "username": "username" }
Successfull response:
{ "systemAdmin": false, "settings": { "productSortOrder": "productSortOrder", "storeArticleSortData": {}, "supplierArticleSettings": {}, "projectSortData": [{ "column": "column", "state": 2337, "order": "order" }], "showWelcome": true, "language": "language", "multiPickData": {}, "reportsSettings": {}, "customerSortData": {}, "articleSortData": {}, "pickingListSortData": {}, "projectArticleSortData": {}, "storeGroupId": 387, "pickingListSortColumn": "pickingListSortColumn", "customerOrderSortData": [{ "column": "column", "state": 2022, "order": "order" }], "productSortColumn": "productSortColumn", "productionOrderSortData": [{ "column": "column", "state": 7046, "order": "order" }], "warnedArticlesSortData": {}, "systemAccountSortData": {}, "lastReadStatusMessages": 166, "invoiceDraftSortData": {}, "stocktakeArticleSortData": {}, "pickingListSortOrder": "pickingListSortOrder", "orderedArticlesSortData": {}, "accountSortData": {}, "supplierSortData": {}, "productionOrderData": {}, "openPurchaseOrderSortData": {}, "priceListSortData": {}, "storeId": 5749, "purchaseOrderSortData": [{ "column": "column", "state": 3355, "order": "order" }], "systemUserSortData": {}, "helpSectionsCollapsed": {}, "viewedReleaseNotesVersion": "viewedReleaseNotesVersion", "invoiceSortData": {} }, "apiKey": "apiKey", "phone": "phone", "name": "name", "storeGroups": [{ "stores": 7928, "groupId": 1375, "name": "name", "integration": "integration", "storePermissions": [{ "role": { "loginServices": [{}], "storeGroupId": 8392, "paths": {}, "name": "name", "id": 1647, "nativeFeatures": [{}], "fields": {}, "portal": "portal", "users": 7976 }, "capabilities": [{}], "storeGroupId": 8873, "isMaster": false, "name": "name", "currency": "currency", "language": "language", "storeId": 9100 }] }], "admin": false, "delayedInvoicesMessage": "delayedInvoicesMessage", "userId": 7372, "email": "email" }
Log in with webtoken
POSTUrl: /login/webtoken/{web_token}
Headers:
Accept: application/json or application/xml
Login to your user account using a valid webtoken
Body:
Successfull response:
{ "systemAdmin": true, "settings": { "productSortOrder": "productSortOrder", "storeArticleSortData": {}, "supplierArticleSettings": {}, "projectSortData": [{ "column": "column", "state": 4908, "order": "order" }], "showWelcome": true, "language": "language", "multiPickData": {}, "reportsSettings": {}, "customerSortData": {}, "articleSortData": {}, "pickingListSortData": {}, "projectArticleSortData": {}, "storeGroupId": 436, "pickingListSortColumn": "pickingListSortColumn", "customerOrderSortData": [{ "column": "column", "state": 1032, "order": "order" }], "productSortColumn": "productSortColumn", "productionOrderSortData": [{ "column": "column", "state": 6541, "order": "order" }], "warnedArticlesSortData": {}, "systemAccountSortData": {}, "lastReadStatusMessages": 4924, "invoiceDraftSortData": {}, "stocktakeArticleSortData": {}, "pickingListSortOrder": "pickingListSortOrder", "orderedArticlesSortData": {}, "accountSortData": {}, "supplierSortData": {}, "productionOrderData": {}, "openPurchaseOrderSortData": {}, "priceListSortData": {}, "storeId": 9073, "purchaseOrderSortData": [{ "column": "column", "state": 6170, "order": "order" }], "systemUserSortData": {}, "helpSectionsCollapsed": {}, "viewedReleaseNotesVersion": "viewedReleaseNotesVersion", "invoiceSortData": {} }, "apiKey": "apiKey", "phone": "phone", "name": "name", "storeGroups": [{ "stores": 6965, "groupId": 670, "name": "name", "integration": "integration", "storePermissions": [{ "role": { "loginServices": [{}], "storeGroupId": 41, "paths": {}, "name": "name", "id": 8814, "nativeFeatures": [{}], "fields": {}, "portal": "portal", "users": 7718 }, "capabilities": [{}], "storeGroupId": 1121, "isMaster": true, "name": "name", "currency": "currency", "language": "language", "storeId": 1431 }] }], "admin": false, "delayedInvoicesMessage": "delayedInvoicesMessage", "userId": 788, "email": "email" }
Invite user
POSTUrl: /users/invite
Headers:
Accept: application/json or application/xml
Other headers: user_id, user_token
Other headers: user_id, user_token
Invite user to store
Body:
{ "notes": "notes", "role": { "loginServices": [{}], "paths": {}, "name": "name", "nativeFeatures": [{}], "fields": {}, "portal": "portal" }, "phone": "phone", "name": "name", "email": "email" }
Successfull response:
{ "systemAdmin": true, "bankID": false, "notes": "notes", "role": { "loginServices": [{}], "storeGroupId": 1801, "paths": {}, "name": "name", "id": 9880, "nativeFeatures": [{}], "fields": {}, "portal": "portal", "users": 1935 }, "phone": "phone", "name": "name", "emailInvalid": false, "admin": true, "lastLoggedIn": 240, "id": 3623, "email": "email", "customer": true }
Verify user account
POSTUrl: /verify
Headers:
Accept: application/json or application/xml
Content-type: application/json or application/xml
Content-type: application/json or application/xml
Verify the user account. If successful the account is activated and can be used to login with
Body:
{"verification": "verification"}
Successfull response:
{"username": "username"}
Update user settings
PUTUrl: /settings
Headers:
Accept: application/json or application/xml
Other headers: user_id, user_token
Other headers: user_id, user_token
Update user account settings for the fields provided
Body:
{ "productSortOrder": "productSortOrder", "storeArticleSortData": {}, "supplierArticleSettings": {}, "projectSortData": [{ "column": "column", "state": 3305, "order": "order" }], "showWelcome": false, "language": "language", "multiPickData": {}, "reportsSettings": {}, "customerSortData": {}, "articleSortData": {}, "pickingListSortData": {}, "projectArticleSortData": {}, "storeGroupId": 7936, "pickingListSortColumn": "pickingListSortColumn", "customerOrderSortData": [{ "column": "column", "state": 9584, "order": "order" }], "productSortColumn": "productSortColumn", "productionOrderSortData": [{ "column": "column", "state": 8663, "order": "order" }], "warnedArticlesSortData": {}, "systemAccountSortData": {}, "lastReadStatusMessages": 9724, "invoiceDraftSortData": {}, "stocktakeArticleSortData": {}, "pickingListSortOrder": "pickingListSortOrder", "orderedArticlesSortData": {}, "accountSortData": {}, "supplierSortData": {}, "productionOrderData": {}, "openPurchaseOrderSortData": {}, "priceListSortData": {}, "storeId": 6379, "purchaseOrderSortData": [{ "column": "column", "state": 2752, "order": "order" }], "systemUserSortData": {}, "helpSectionsCollapsed": {}, "viewedReleaseNotesVersion": "viewedReleaseNotesVersion", "invoiceSortData": {} }
Successfull response:
{ "productSortOrder": "productSortOrder", "storeArticleSortData": {}, "supplierArticleSettings": {}, "projectSortData": [{ "column": "column", "state": 1571, "order": "order" }], "showWelcome": false, "language": "language", "multiPickData": {}, "reportsSettings": {}, "customerSortData": {}, "articleSortData": {}, "pickingListSortData": {}, "projectArticleSortData": {}, "storeGroupId": 6883, "pickingListSortColumn": "pickingListSortColumn", "customerOrderSortData": [{ "column": "column", "state": 4648, "order": "order" }], "productSortColumn": "productSortColumn", "productionOrderSortData": [{ "column": "column", "state": 4924, "order": "order" }], "warnedArticlesSortData": {}, "systemAccountSortData": {}, "lastReadStatusMessages": 1146, "invoiceDraftSortData": {}, "stocktakeArticleSortData": {}, "pickingListSortOrder": "pickingListSortOrder", "orderedArticlesSortData": {}, "accountSortData": {}, "supplierSortData": {}, "productionOrderData": {}, "openPurchaseOrderSortData": {}, "priceListSortData": {}, "storeId": 2697, "purchaseOrderSortData": [{ "column": "column", "state": 3604, "order": "order" }], "systemUserSortData": {}, "helpSectionsCollapsed": {}, "viewedReleaseNotesVersion": "viewedReleaseNotesVersion", "invoiceSortData": {} }
Update user
PUTUrl: /users/{id}
Headers:
Accept: application/json or application/xml
Other headers: user_id, user_token
Other headers: user_id, user_token
Update user account for the fields provided
Body:
{ "systemAdmin": true, "bankID": false, "notes": "notes", "role": { "loginServices": [{}], "storeGroupId": 6459, "paths": {}, "name": "name", "id": 636, "nativeFeatures": [{}], "fields": {}, "portal": "portal", "users": 9076 }, "phone": "phone", "name": "name", "emailInvalid": false, "admin": false, "lastLoggedIn": 539, "id": 1869, "email": "email", "customer": false }
Successfull response:
{ "systemAdmin": false, "bankID": true, "notes": "notes", "role": { "loginServices": [{}], "storeGroupId": 9563, "paths": {}, "name": "name", "id": 7714, "nativeFeatures": [{}], "fields": {}, "portal": "portal", "users": 2347 }, "phone": "phone", "name": "name", "emailInvalid": true, "admin": false, "lastLoggedIn": 1727, "id": 1343, "email": "email", "customer": false }
Prepare change user password
PUTUrl: /users/password/reset
Headers:
Accept: application/json or application/xml
Other headers: user_id, user_token
Other headers: user_id, user_token
Sends out an email with a reset-url for the given user
Change user password
PUTUrl: /users/{id}/password
Headers:
Accept: application/json or application/xml
Other headers: user_id, user_token
Other headers: user_id, user_token
Update user password from a reset key
Body:
{ "password": "password", "confirmPassword": "confirmPassword", "resetKey": "resetKey" }
Successfull response:
Delete user
DELETEUrl: /users/{id}
Headers:
Accept: application/json or application/xml
Other headers: user_id, user_token
Other headers: user_id, user_token
Delete existing user account
Body:
Successfull response:
Remove SSO
DELETEUrl: /sso/{type}
Headers:
Accept: application/json or application/xml
Content-type: application/json or application/xml
Content-type: application/json or application/xml
Remove Single Sign On from user
Body:
Successfull response:
Classes:
AccountDto
| Field | Type | Description | Default | Mandatory | Accepted values | Example values | Access |
|---|---|---|---|---|---|---|---|
| companyName | String | true | R,W | ||||
| orgNumber | String | true | R,W | ||||
| address | String | R,W | |||||
| city | String | R,W | |||||
| zip | String | R,W | |||||
| country | String | true | Two letter codes for country, ISO alpha-2. SE for Sweden, DK for Denmark... For more codes, see http://www.nationsonline.org/oneworld/country_code_list.htm | R,W | |||
| language | String | en | en, sv | R,W | |||
| contactPerson | String | true | R,W | ||||
| String | true | R,W | |||||
| phone | String | R,W | |||||
| notes | String | R,W | |||||
| currency | String | Currency used for sales | true | 3 letter codes for currencies. SEK for Swedish krona, DKK for Danish krone... For more codes, see http://www.nationsonline.org/oneworld/currencies.htm | R,W | ||
| password | String | Either bankIDOrderRef or password | Length must be 8 or more characters | R,W | |||
| bankIDOrderRef | String | If user registers with BankID, this is the orderRef from a successfully authenticated user from BankID | Either bankIDOrderRef or password | R,W | |||
| paymentType | Integer | true | Free account = 0, Small account = 1, Medium account = 2, Large account = 3 | R,W | |||
| licenceAccepted | Boolean | The license agreement must be displayed to the user. It can be fetched by the /account/license request | false | true | true, false | R,W | |
| promotionCode | String | Promotion code to get discount on next invoice | R,W | ||||
| features | List | List of feature ids that should be pre installed and part of the invoice when registering a new account | R,W |
AccountModelDto
| Field | Type | Description | Default | Mandatory | Accepted values | Example values | Access |
|---|---|---|---|---|---|---|---|
| id | int | R | |||||
| paymentType | int | 0 = Free account, 1 = Small account, 2 = Medium account, 3 = Large account | R | ||||
| premium | boolean | Is this model premium or free | R | ||||
| reseller | boolean | Is this model for resellers | R | ||||
| name | String | R | |||||
| price | double | Invoice price annually | R | ||||
| discountPercentage | double | Discount invoice price annually | R | ||||
| maxUsers | int | Max number of active users that can log in to Lagerkoll | R | ||||
| maxCustomers | int | When customer portal is active, max number of invited customers | R | ||||
| maxStocks | int | Max number of stores | R | ||||
| maxArticles | int | Max number of articles per store | R | ||||
| fortnoxAccess | int | 0 = Not available, 1 = Available, 2 = Included | R | ||||
| vismaAccess | int | 0 = Not available, 1 = Available, 2 = Included | R | ||||
| peAccess | int | 0 = Not available, 1 = Available, 2 = Included | R | ||||
| batchAccess | int | 0 = Not available, 1 = Available, 2 = Included | R |
AccountResponseDto
| Field | Type | Description | Default | Mandatory | Accepted values | Example values | Access |
|---|---|---|---|---|---|---|---|
| storeId | Long | Id of the requested store | R | ||||
| masterStoreId | Long | Id of master-store in the store-group | R | ||||
| storeGroupId | Long | R | |||||
| name | String | R | |||||
| orgNumber | String | R | |||||
| paymentType | Integer | Free account = 0, Small account = 1, Medium account = 2, Large account = 3 | R | ||||
| deactivateDate | Long | If account is marked for deactivation, the date will tell when it will be deactivated | R | ||||
| fortnox | Boolean | Is Fortnox integration active? | R | ||||
| fortnoxV2 | Boolean | Is Fortnox V2 integration active? | R | ||||
| visma | Boolean | Is Visma integration active? | R | ||||
| settings | StoreSettingsDto | Settings for store | R,W | ||||
| customerPortalSettings | CustomerPortalSettingsDto | Settings for customer portal | R,W | ||||
| fieldsSettings | FieldsSettingsDto | Settings for different fields | R,W | ||||
| purchaseOrderSettings | HashMap | Settings for purchase orders | R,W | ||||
| customerOrderSettings | HashMap | Settings for customer orders | R,W | ||||
| barcodePrintingFieldsSettings | HashMap | Settings for barcode labels | R,W | ||||
| rules | RulesDto | Set of rules for this account | R | ||||
| currency | String | R | |||||
| salesPriceIncludesVAT | Boolean | Flag to indicate if salesprices include VAT | R,W | ||||
| contactName | String | R,W | |||||
| address | String | R,W | |||||
| address2 | String | R,W | |||||
| zip | String | R,W | |||||
| city | String | R,W | |||||
| countryCode | String | R,W | |||||
| country | String | R,W | |||||
| invoiceAddress | String | R,W | |||||
| invoiceAddress2 | String | R,W | |||||
| invoiceZip | String | R,W | |||||
| invoiceCity | String | R,W | |||||
| invoiceCountryCode | String | R,W | |||||
| invoiceCountry | String | R,W | |||||
| phone | String | R,W | |||||
| String | R,W | ||||||
| invoiceEmail | String | Email-address used to send invoices from Lagerkoll | R | ||||
| storeName | String | The name of the store | R | ||||
| articleSuffix | String | R | |||||
| features | List | List of uploaded features | R |
AccountSettingsDto
| Field | Type | Description | Default | Mandatory | Accepted values | Example values | Access |
|---|---|---|---|---|---|---|---|
| language | String | selected language | sv, en | R,W | |||
| storeGroupId | Long | selected storegroup id | R | ||||
| storeId | Long | selected store id | R,W | ||||
| showWelcome | Boolean | is it first time the user is logging in | R,W | ||||
| productSortColumn | String | sort column for articles | R,W | ||||
| productSortOrder | String | sort order for articles | R,W | ||||
| pickingListSortColumn | String | sort column for articles in customer order pickinglist | R,W | ||||
| pickingListSortOrder | String | sort order for articles in customer order pickinglist | R,W | ||||
| lastReadStatusMessages | long | timestamp of last read status message | R,W | ||||
| supplierArticleSettings | HashMap | last selected supplier in Supplier article | R,W | ||||
| supplierSortData | HashMap | sort column and order for suppliers | R,W | ||||
| openPurchaseOrderSortData | HashMap | sort column and order for open purchase order | R,W | ||||
| customerSortData | HashMap | sort column and order for customers | R,W | ||||
| articleSortData | HashMap | sort column and order for articles | R,W | ||||
| storeArticleSortData | HashMap | sort column and order for articles in all stores | R,W | ||||
| pickingListSortData | HashMap | sort column and order for picking list | R,W | ||||
| priceListSortData | HashMap | sort column and order for price list | R,W | ||||
| orderedArticlesSortData | HashMap | sort column and order for ordered articles | R,W | ||||
| warnedArticlesSortData | HashMap | sort column and order for warned articles | R,W | ||||
| accountSortData | HashMap | sort column and order for accounts | R,W | ||||
| stocktakeArticleSortData | HashMap | sort column and order for stocktake articles | R,W | ||||
| systemAccountSortData | HashMap | sort column and order for account | R,W | ||||
| systemUserSortData | HashMap | sort column and order for users | R,W | ||||
| helpSectionsCollapsed | HashMap | a map of what helpsections in Webapp that is collapsed | R,W | ||||
| reportsSettings | HashMap | settings for reports | R,W | ||||
| customerOrderSortData | List | sort column and order for customer orders based on order state | R,W | ||||
| purchaseOrderSortData | List | sort column and order for purchase orders based on order state | R,W | ||||
| productionOrderSortData | List | sort column and order for production orders based on order state | R,W | ||||
| productionOrderData | HashMap | settings for production order | R,W | ||||
| projectSortData | List | sort column and order for project based on order state | R,W | ||||
| projectArticleSortData | HashMap | sort column and order for project article based on order state | R,W | ||||
| invoiceDraftSortData | HashMap | sort column and order for invoice draft | R,W | ||||
| invoiceSortData | HashMap | sort column and order for invoice | R,W | ||||
| viewedReleaseNotesVersion | String | last viewed version of release notes | R,W | ||||
| multiPickData | HashMap | settings for multipick feature | R,W |
APIKeyDto
| Field | Type | Description | Default | Mandatory | Accepted values | Example values | Access |
|---|---|---|---|---|---|---|---|
| name | String | Name of api key | R,W | ||||
| key | String | API key used for external integrations | R,W | ||||
| requests | List | API requests supported for the api key | R,W |
APIRequestDto
| Field | Type | Description | Default | Mandatory | Accepted values | Example values | Access |
|---|---|---|---|---|---|---|---|
| method | String | Allowed methods for this request | GET, POST, PUT, DELETE, * | R,W | |||
| path | String | Path for the request | R,W |
APISettingsDto
| Field | Type | Description | Default | Mandatory | Accepted values | Example values | Access |
|---|---|---|---|---|---|---|---|
| apiKeys | List | API keys used for external integrations | R,W | ||||
| stores | List | List of store ids where the API key can be used. For all stores use * | R,W | ||||
| callbackUrl | String | Callback url used when there is an update made in Lagerkoll | R,W | ||||
| integrationName | String | Name of external integration | R | ||||
| integrationSuccessfull | boolean | Flag to indicate if integration to external system was successfull | R |
BarcodeSettingsDto
| Field | Type | Description | Default | Mandatory | Accepted values | Example values | Access |
|---|---|---|---|---|---|---|---|
| barcodePrintingFieldsSettings | HashMap | Settings for barcode labels | R,W |
CategoryDto
| Field | Type | Description | Default | Mandatory | Accepted values | Example values | Access |
|---|---|---|---|---|---|---|---|
| id | long | R | |||||
| name | String | Name of category | R,W | ||||
| articles | Integer | Number of articles that include this category | R |
CountDto
| Field | Type | Description | Default | Mandatory | Accepted values | Example values | Access |
|---|---|---|---|---|---|---|---|
| count | int | R |
CustomerPortalSettingsDto
| Field | Type | Description | Default | Mandatory | Accepted values | Example values | Access |
|---|---|---|---|---|---|---|---|
| showArticleStockStatus | Boolean | R | |||||
| orderArticlesNotInStock | Boolean | R | |||||
| showWebshop | Boolean | R | |||||
| showArticleId | Boolean | R | |||||
| showName | Boolean | R | |||||
| showDescription | Boolean | R | |||||
| showImage | Boolean | R | |||||
| showPrice | Boolean | R | |||||
| showBatches | Boolean | R | |||||
| showSerials | Boolean | R | |||||
| showOtherPurchasedArticles | Boolean | R | |||||
| welcomeTitle | HashMap | R,W | |||||
| welcomeText | HashMap | R,W |
CustomerTagDto
| 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 |
EmailSettingsDto
| Field | Type | Description | Default | Mandatory | Accepted values | Example values | Access |
|---|---|---|---|---|---|---|---|
| username | String | Username for email account. If missing email address will be used | W | ||||
| String | Email address | W | |||||
| password | String | Password for email account | W | ||||
| outgoingAddress | String | Outgoing address for email server, SMTP | W | ||||
| outgoingPort | Integer | Outgoing port for email server | W | ||||
| auth | Boolean | Should auth be used when connecting to email server | false | W | |||
| tls | Boolean | Should tls be used when connecting to email server | false | W | |||
| ssl | Boolean | Should ssl be used when connecting to email server | false | W | |||
| verified | Boolean | Flag to indicate if settings have been verified or not | R |
EmailVerificationDto
| Field | Type | Description | Default | Mandatory | Accepted values | Example values | Access |
|---|---|---|---|---|---|---|---|
| verification | String | Verification key for email settings | W | ||||
| storeId | Long | Store id to verify email settings | W |
EventsSettingsDto
| Field | Type | Description | Default | Mandatory | Accepted values | Example values | Access |
|---|---|---|---|---|---|---|---|
| bestBeforeTrigger | Integer | Number of week before the best before date expires | R,W | ||||
| purchaseOrdersReminder | Boolean | Activate delayed deliveries of purchase orders | R,W |
FeatureFileDto
| Field | Type | Description | Default | Mandatory | Accepted values | Example values | Access |
|---|---|---|---|---|---|---|---|
| index | int | If file should have its own link in the menu, this will be rendered according to ascending index | R,W | ||||
| filename | String | Filename | R | ||||
| menuTitle | HashMap | If file should have its own link in the menu, this will be the title | R,W |
FeatureResponseDto
| Field | Type | Description | Default | Mandatory | Accepted values | Example values | Access |
|---|---|---|---|---|---|---|---|
| id | String | Id of feature | R | ||||
| name | Map | Name of feature | R | ||||
| roles | List | List of roles needed to access the feature | R,W | ||||
| icon | String | Icon (Font Awesome v.5.15.4) to be rendered in the menu | R | ||||
| image | String | Name if image-file bundled in zip-file | R | ||||
| description | Map | Description of feature | R | ||||
| publisher | String | Name responsible person for this feature | R | ||||
| credits | String | Credits to people involved with this feature | R | ||||
| price | Double | Price for this feature | R | ||||
| annual | Boolean | Indicates if price is annual or onetime | R | ||||
| dashboard | String | Name of the function that renders data in the dashboard in Lagerkoll | R | ||||
| version | String | Version of feature | R | ||||
| files | List | List of files in the feature | R | ||||
| server | Boolean | Indicates if this feature has event callbacks | R | ||||
| category | List | List of categories for this feature | R |
FieldsSettingsDto
| Field | Type | Description | Default | Mandatory | Accepted values | Example values | Access |
|---|---|---|---|---|---|---|---|
| fields | HashMap | R |
InvoiceDto
| Field | Type | Description | Default | Mandatory | Accepted values | Example values | Access |
|---|---|---|---|---|---|---|---|
| invoiceId | Long | R | |||||
| serverId | long | R | |||||
| invoiceDate | Date | R | |||||
| invoiceDays | int | R | |||||
| paymentDate | Date | R | |||||
| invoicePeriodInMonths | int | R | |||||
| rows | List | R | |||||
| invoiceExpireDate | Date | R | |||||
| state | String | R | |||||
| invoicePaidDate | Date | R |
InvoiceRowDto
| Field | Type | Description | Default | Mandatory | Accepted values | Example values | Access |
|---|---|---|---|---|---|---|---|
| articleId | String | R | |||||
| articleName | String | R | |||||
| articlePrice | double | R | |||||
| articleVat | double | R | |||||
| discountPercent | double | R |
InvoicesResponseDto
| Field | Type | Description | Default | Mandatory | Accepted values | Example values | Access |
|---|---|---|---|---|---|---|---|
| invoices | List | R |
LicenseDto
| Field | Type | Description | Default | Mandatory | Accepted values | Example values | Access |
|---|---|---|---|---|---|---|---|
| eula | String | License agreement | R | ||||
| models | List | List of account models with information about price and limitations | R |
LoginDto
| Field | Type | Description | Default | Mandatory | Accepted values | Example values | Access |
|---|---|---|---|---|---|---|---|
| username | String | true | R,W | ||||
| password | String | true | R,W |
LoginResponseDto
| Field | Type | Description | Default | Mandatory | Accepted values | Example values | Access |
|---|---|---|---|---|---|---|---|
| userId | long | R | |||||
| apiKey | String | R | |||||
| name | String | R | |||||
| String | R | ||||||
| phone | String | R | |||||
| storeGroups | List | R | |||||
| systemAdmin | Boolean | R | |||||
| admin | Boolean | R | |||||
| settings | AccountSettingsDto | R | |||||
| delayedInvoicesMessage | String | If account is premium and has delayed invoices | R |
LoginSSODto
| Field | Type | Description | Default | Mandatory | Accepted values | Example values | Access |
|---|---|---|---|---|---|---|---|
| username | String | true | R,W | ||||
| password | String | true | R,W | ||||
| type | String | true | visma, bankid | R,W | |||
| externalId | String | true | R,W |
PasswordDto
| Field | Type | Description | Default | Mandatory | Accepted values | Example values | Access |
|---|---|---|---|---|---|---|---|
| resetKey | String | Reset key is sent out in an email when requesting to change password | W | ||||
| password | String | New password | W | ||||
| confirmPassword | String | Confirm password | W |
PrepareResetPasswordDto
| Field | Type | Description | Default | Mandatory | Accepted values | Example values | Access |
|---|---|---|---|---|---|---|---|
| username | String | Username to reset password for | true | W |
PromotionCodeInviteRequestDto
| Field | Type | Description | Default | Mandatory | Accepted values | Example values | Access |
|---|---|---|---|---|---|---|---|
| String | Email for the invited user | true | W |
RoleDto
| Field | Type | Description | Default | Mandatory | Accepted values | Example values | Access |
|---|---|---|---|---|---|---|---|
| id | Long | R | |||||
| storeGroupId | Long | R | |||||
| name | String | R,W | |||||
| paths | ArrayList | List of paths role has access to | R,W | ||||
| fields | HashMap | List of objects and fields that is filtered out when sending data to api and request data from api | R,W | ||||
| portal | String | What part of Lagerkoll is the role used | ADMIN, SHOP | R,W | |||
| users | int | Number of users connected to role | R | ||||
| loginServices | List | List of login services role has access to | R,W | ||||
| nativeFeatures | List | List of native features in mobile application role has access to | R,W |
RulesDto
| Field | Type | Description | Default | Mandatory | Accepted values | Example values | Access |
|---|---|---|---|---|---|---|---|
| articleNameMaxLength | int | R | |||||
| canCreateVAT | boolean | R | |||||
| supportsNoVAT | boolean | R | |||||
| canCreateWayOfDelivery | boolean | R | |||||
| canCreateSupplierDeliveryTerm | boolean | R | |||||
| canCreateCustomerDeliveryTerm | boolean | R | |||||
| canCreatePaymentTerm | boolean | R | |||||
| canCreateUnit | boolean | R | |||||
| canSetDefaultPricelist | boolean | R | |||||
| supportsBracketPricing | boolean | R | |||||
| showVATAccount | boolean | R | |||||
| canCreateCustomerOrderInvoice | boolean | R | |||||
| canCancelCustomerOrder | boolean | R | |||||
| customerTypeSetsVAT | boolean | R | |||||
| customerOrderReservedStateStart | int | R | |||||
| customerOrderReservedStateEnd | int | R | |||||
| defaultVAT | VATDto | R | |||||
| defaultUnitType | UnitDto | R | |||||
| defaultCategory | CategoryDto | R | |||||
| maxIntegrationDecimals | int | If account is connected to an integration (Fortnox or Visma), this field indicates the max number of decimals that system supports | R | ||||
| supportsCustomerOrderFees | boolean | R | |||||
| doesVATControllArticleType | boolean | R | |||||
| canCreateCostCenters | boolean | R | |||||
| canSetCostCentersOnCustomerOrder | boolean | R | |||||
| canSetStock | boolean | R | |||||
| increaseStockOnReceiveForPickNPack | boolean | R | |||||
| allowZeroSumCustomerOrders | boolean | R | |||||
| allowNegativeOrderedSumInCustomerOrder | boolean | R | |||||
| maxUsers | int | R | |||||
| maxCustomers | int | R | |||||
| maxStocks | int | R | |||||
| maxArticles | int | R | |||||
| batchAccess | boolean | R | |||||
| allowRestCustomerOrder | boolean | R | |||||
| supportsInvoiceTypes | boolean | R | |||||
| canChangeCustomerOnOrderStateStart | int | R | |||||
| canChangeCustomerOnOrderStateEnd | int | R |
SearchSettingsDto
| Field | Type | Description | Default | Mandatory | Accepted values | Example values | Access |
|---|---|---|---|---|---|---|---|
| storeIds | List | Store ids that are included in article search across stores | R,W |
SortDataDto
| Field | Type | Description | Default | Mandatory | Accepted values | Example values | Access |
|---|---|---|---|---|---|---|---|
| state | Integer | R | |||||
| column | String | R | |||||
| order | String | R |
StatusMessageDto
| Field | Type | Description | Default | Mandatory | Accepted values | Example values | Access |
|---|---|---|---|---|---|---|---|
| type | String | What kind of message is this | true | info, error, progress, progress_done | R,W | ||
| action | String | What action is this message connected to | true | get, add, update, delete | R,W | ||
| messageId | String | Message id | R,W | ||||
| message | String | Message | true | R,W | |||
| technicalMessage | String | Technical message | R | ||||
| progress | Integer | If type is progress this value reflects the progress | 1 - 100 | R,W | |||
| integrationType | String | What kind of integration is this for. Default is Webshop | fortnox, visma_v2, webshop, import, email | R,W | |||
| created | Long | Created date | R |
StatusMessagesResponseDto
| Field | Type | Description | Default | Mandatory | Accepted values | Example values | Access |
|---|---|---|---|---|---|---|---|
| pages | int | Total pages | R | ||||
| page | int | Current page | R | ||||
| pageSize | int | Message per page | R | ||||
| messagesCount | int | Total amount of messages | R | ||||
| messages | List | R |
StoreGroupDto
| Field | Type | Description | Default | Mandatory | Accepted values | Example values | Access |
|---|---|---|---|---|---|---|---|
| groupId | long | R | |||||
| name | String | R | |||||
| stores | int | R | |||||
| storePermissions | List | R | |||||
| integration | String | R |
StoreGroupReportsSettingsDto
| Field | Type | Description | Default | Mandatory | Accepted values | Example values | Access |
|---|---|---|---|---|---|---|---|
| tobaccoSWCustomerTagDto | CustomerTagDto | R,W | |||||
| tobaccoEUCustomerTagDto | CustomerTagDto | R,W | |||||
| tobaccoNoTaxCustomerTagDto | CustomerTagDto | R,W |
StorePermissionDto
| Field | Type | Description | Default | Mandatory | Accepted values | Example values | Access |
|---|---|---|---|---|---|---|---|
| storeId | long | R | |||||
| storeGroupId | long | R | |||||
| name | String | R | |||||
| currency | String | R | |||||
| language | String | R | |||||
| role | RoleDto | Role current user has access to | R | ||||
| capabilities | List | List of capabilities current user has access to | MAIN_INVENTORY(1), INVENTORY_CREATE_NEW(101), INVENTORY_FINISH_LIST(102), MAIN_PRODUCT(2), PRODUCT_CREATE_NEW(201), PRODUCT_EDIT_EXISTING(202), PRODUCT_VIEW_PRICES(203), PRODUCT_UNIT_CREATE_NEW(204), MAIN_ORDER(5), ORDER_CREATE_NEW(501), MAIN_DELIVERY(6), DELIVERY_CLOSE_ORDER(601), MAIN_PICKING_LISTS(7), PICKING_LISTS_PICK(701), PICKING_LISTS_FINISH(702), MAIN_CHECKOUT(8), CHECKOUT(801), CHECKIN(802), MAIN_CUSTOMER_ORDER(9), CUSTOMER_ORDER_CREATE_NEW(901), BATCHES(1001) | R | |||
| isMaster | Boolean | True if this is the master stock | R |
StoreSettingsDto
| Field | Type | Description | Default | Mandatory | Accepted values | Example values | Access |
|---|---|---|---|---|---|---|---|
| decimals | Integer | R | |||||
| weeklyStatus | Boolean | R | |||||
| lowStockWarning | Boolean | R | |||||
| customerOrderNotification | Boolean | R | |||||
| truncateArticleName | Boolean | R | |||||
| automaticBundling | Boolean | R | |||||
| defaultTemplate | Long | R | |||||
| automaticDailyExport | Boolean | R | |||||
| language | String | R | |||||
| cashInvoicePaymentWay | String | R | |||||
| projectInvoicePaymentWay | String | R |
SupportDto
| Field | Type | Description | Default | Mandatory | Accepted values | Example values | Access |
|---|---|---|---|---|---|---|---|
| subject | String | true | R,W | ||||
| message | String | true | R,W |
UnitDto
| Field | Type | Description | Default | Mandatory | Accepted values | Example values | Access |
|---|---|---|---|---|---|---|---|
| id | Long | R,W | |||||
| externalId | String | R | |||||
| name | String | Name of unit | R,W |
UserDto
| Field | Type | Description | Default | Mandatory | Accepted values | Example values | Access |
|---|---|---|---|---|---|---|---|
| id | Long | R | |||||
| customer | boolean | flag to indicate if user has customer privileges | R | ||||
| admin | boolean | flag to indicate if user has admin privileges | R | ||||
| systemAdmin | boolean | flag to indicate if user has system admin privileges | R | ||||
| name | String | R,W | |||||
| String | R,W | ||||||
| phone | String | R,W | |||||
| notes | String | R,W | |||||
| emailInvalid | boolean | If this flag is set to true, Lagerkoll has detected on multiple occassions that it cannot send emails to this address | R | ||||
| role | RoleDto | Role of the current user. Admins can update permissions on other users, but a user cannot update his own permissions | R,W | ||||
| lastLoggedIn | Long | Timestamp when this user was last logged in | R | ||||
| bankID | Boolean | If user has activated login with BankID | R |
UsersResponseDto
| Field | Type | Description | Default | Mandatory | Accepted values | Example values | Access |
|---|---|---|---|---|---|---|---|
| page | int | R | |||||
| pages | int | R | |||||
| pageSize | int | R | |||||
| usersCount | int | R | |||||
| since | long | R | |||||
| users | List | R |
VATDto
| Field | Type | Description | Default | Mandatory | Accepted values | Example values | Access |
|---|---|---|---|---|---|---|---|
| id | long | R | |||||
| vat | double | VAT value in percentage | R | ||||
| account | int | sales account | R | ||||
| code | String | vat code | R | ||||
| description | String | description of vat | R | ||||
| isDefault | Boolean | default vat | R |
VerificationDto
| Field | Type | Description | Default | Mandatory | Accepted values | Example values | Access |
|---|---|---|---|---|---|---|---|
| verification | String | code to verify account | true | R,W |
VerificationResponseDto
| Field | Type | Description | Default | Mandatory | Accepted values | Example values | Access |
|---|---|---|---|---|---|---|---|
| username | String | account username | R,W |
WebMessageDto
| Field | Type | Description | Default | Mandatory | Accepted values | Example values | Access |
|---|---|---|---|---|---|---|---|
| params | HashMap | R | |||||
| action | String | R |
WebMessagesResponseDto
| Field | Type | Description | Default | Mandatory | Accepted values | Example values | Access |
|---|---|---|---|---|---|---|---|
| messages | List | R |
WebMessageStatusDto
| Field | Type | Description | Default | Mandatory | Accepted values | Example values | Access |
|---|---|---|---|---|---|---|---|
| action | String | R | |||||
| responseCode | int | R | |||||
| data | WebMessageDto | R |