Customers API
General:
Basics:
Base-URL: https://capi.lagerkoll.com/v1/customers/
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 |
900501 | Error when getting a single customer |
900502 | Error when creating a customer |
900503 | Error when updating a customer |
900504 | Error when deleting a customer |
900512 | Error when importing customers |
900513 | Error when updating import customer template |
900514 | Error when adding import customer template |
900515 | Error when deleting import customer template |
900521 | Error when exporting customers |
{ "errorCode" : 900101, "errorMessage" : "Something went wrong on the server", "errorField" : null, "errorData" : null }
Customers API:
Customers
Get customer
GETUrl: /{customer_id}
Headers:
Accept: application/json or application/xml
Get a single customer based on customer id
Body:
Successfull response:
{ "pages": 129, "customersCount": 7571, "pageSize": 3223, "page": 488, "customers": [{ "zipCode": "zipCode", "country": "country", "externalCustomerId": "externalCustomerId", "invoiceDiscount": "0", "visitingCountryName": "visitingCountryName", "phone2": "phone2", "language": "store´s language", "visitingZipCode": "visitingZipCode", "invoiceRemark": "invoiceRemark", "phone1": "phone1", "emailOffer": "emailOffer", "customerType": "PRIVATE", "discounts": [{ "articleTag": { "name": "name", "externalId": "externalId", "id": 2074, "desc": "desc" }, "discount": 9960.11673406473 }], "deliveryZipCode": "deliveryZipCode", "wayOfDelivery": "wayOfDelivery", "emailInvoice": "emailInvoice", "orgNumber": "orgNumber", "yourReference": "yourReference", "emailOrder": "emailOrder", "deliveryTerm": "deliveryTerm", "tags": [{ "name": "name", "externalId": "externalId", "id": 7752, "desc": "desc" }], "emailStatus": {}, "webUrl": "webUrl", "name": "name", "countryName": "countryName", "visitingCountry": "visitingCountry", "deliveryName": "deliveryName", "paymentTerm": "If null, the first payment term is set", "vatNumber": "vatNumber", "city": "city", "pricelistName": "pricelistName", "ourReference": "ourReference", "showVAT": true, "customerId": 3085, "visitingAddress": "visitingAddress", "priceIncludeVAT": "false", "currency": "Sek", "deliveryCountryName": "deliveryCountryName", "email": "email", "deliveryCity": "deliveryCity", "deliveryPhone1": "deliveryPhone1", "comments": "comments", "pricelistId": "-1", "address2": "address2", "address1": "address1", "deliveryAddress2": "deliveryAddress2", "externalId": "externalId", "deliveryAddress1": "deliveryAddress1", "deliveryPhone2": "deliveryPhone2", "visitingCity": "visitingCity", "deliveryCountry": "deliveryCountry" }], "since": 3426 }
Get customer (ext-id)
GETUrl: /external/{customer_id}
Headers:
Accept: application/json or application/xml
Get a single customer based on customer external id
Body:
Successfull response:
{ "pages": 7236, "customersCount": 1663, "pageSize": 7252, "page": 6155, "customers": [{ "zipCode": "zipCode", "country": "country", "externalCustomerId": "externalCustomerId", "invoiceDiscount": "0", "visitingCountryName": "visitingCountryName", "phone2": "phone2", "language": "store´s language", "visitingZipCode": "visitingZipCode", "invoiceRemark": "invoiceRemark", "phone1": "phone1", "emailOffer": "emailOffer", "customerType": "PRIVATE", "discounts": [{ "articleTag": { "name": "name", "externalId": "externalId", "id": 7523, "desc": "desc" }, "discount": 4696.718843569954 }], "deliveryZipCode": "deliveryZipCode", "wayOfDelivery": "wayOfDelivery", "emailInvoice": "emailInvoice", "orgNumber": "orgNumber", "yourReference": "yourReference", "emailOrder": "emailOrder", "deliveryTerm": "deliveryTerm", "tags": [{ "name": "name", "externalId": "externalId", "id": 8911, "desc": "desc" }], "emailStatus": {}, "webUrl": "webUrl", "name": "name", "countryName": "countryName", "visitingCountry": "visitingCountry", "deliveryName": "deliveryName", "paymentTerm": "If null, the first payment term is set", "vatNumber": "vatNumber", "city": "city", "pricelistName": "pricelistName", "ourReference": "ourReference", "showVAT": true, "customerId": 4912, "visitingAddress": "visitingAddress", "priceIncludeVAT": "false", "currency": "Sek", "deliveryCountryName": "deliveryCountryName", "email": "email", "deliveryCity": "deliveryCity", "deliveryPhone1": "deliveryPhone1", "comments": "comments", "pricelistId": "-1", "address2": "address2", "address1": "address1", "deliveryAddress2": "deliveryAddress2", "externalId": "externalId", "deliveryAddress1": "deliveryAddress1", "deliveryPhone2": "deliveryPhone2", "visitingCity": "visitingCity", "deliveryCountry": "deliveryCountry" }], "since": 2854 }
Get customer for user
GETUrl: /user
Headers:
Accept: application/json or application/xml
Get customer for currently logged in user
Body:
Successfull response:
{ "pages": 316, "customersCount": 1014, "pageSize": 9679, "page": 7464, "customers": [{ "zipCode": "zipCode", "country": "country", "externalCustomerId": "externalCustomerId", "invoiceDiscount": "0", "visitingCountryName": "visitingCountryName", "phone2": "phone2", "language": "store´s language", "visitingZipCode": "visitingZipCode", "invoiceRemark": "invoiceRemark", "phone1": "phone1", "emailOffer": "emailOffer", "customerType": "PRIVATE", "discounts": [{ "articleTag": { "name": "name", "externalId": "externalId", "id": 6813, "desc": "desc" }, "discount": 9719.404138877027 }], "deliveryZipCode": "deliveryZipCode", "wayOfDelivery": "wayOfDelivery", "emailInvoice": "emailInvoice", "orgNumber": "orgNumber", "yourReference": "yourReference", "emailOrder": "emailOrder", "deliveryTerm": "deliveryTerm", "tags": [{ "name": "name", "externalId": "externalId", "id": 9162, "desc": "desc" }], "emailStatus": {}, "webUrl": "webUrl", "name": "name", "countryName": "countryName", "visitingCountry": "visitingCountry", "deliveryName": "deliveryName", "paymentTerm": "If null, the first payment term is set", "vatNumber": "vatNumber", "city": "city", "pricelistName": "pricelistName", "ourReference": "ourReference", "showVAT": false, "customerId": 8370, "visitingAddress": "visitingAddress", "priceIncludeVAT": "false", "currency": "Sek", "deliveryCountryName": "deliveryCountryName", "email": "email", "deliveryCity": "deliveryCity", "deliveryPhone1": "deliveryPhone1", "comments": "comments", "pricelistId": "-1", "address2": "address2", "address1": "address1", "deliveryAddress2": "deliveryAddress2", "externalId": "externalId", "deliveryAddress1": "deliveryAddress1", "deliveryPhone2": "deliveryPhone2", "visitingCity": "visitingCity", "deliveryCountry": "deliveryCountry" }], "since": 9216 }
Get customer tags
GETUrl: /tags
Headers:
Accept: application/json or application/xml
Get customer tags for store group
Valid parameters:
Parameter | Description | Default value | Allowed values |
---|---|---|---|
query | |||
page | 0 | ||
limit | 50 |
Body:
Successfull response:
{ "pages": 2596, "pageSize": 4945, "page": 6856, "projectsCount": 4120, "tags": [{ "name": "name", "externalId": "externalId", "id": 3998, "desc": "desc" }] }
Get customers
GETUrl:
Headers:
Accept: application/json or application/xml
Get a list of customers based on query
Valid parameters:
Parameter | Description | Default value | Allowed values |
---|---|---|---|
query | |||
type | UNDEFINED | ||
since | 0 | ||
page | 0 | ||
limit | 100 | ||
order | asc | ||
sort_column | name |
Body:
Successfull response:
{ "pages": 7422, "customersCount": 3781, "pageSize": 8152, "page": 528, "customers": [{ "zipCode": "zipCode", "country": "country", "externalCustomerId": "externalCustomerId", "invoiceDiscount": "0", "visitingCountryName": "visitingCountryName", "phone2": "phone2", "language": "store´s language", "visitingZipCode": "visitingZipCode", "invoiceRemark": "invoiceRemark", "phone1": "phone1", "emailOffer": "emailOffer", "customerType": "PRIVATE", "discounts": [{ "articleTag": { "name": "name", "externalId": "externalId", "id": 813, "desc": "desc" }, "discount": 7446.912214880214 }], "deliveryZipCode": "deliveryZipCode", "wayOfDelivery": "wayOfDelivery", "emailInvoice": "emailInvoice", "orgNumber": "orgNumber", "yourReference": "yourReference", "emailOrder": "emailOrder", "deliveryTerm": "deliveryTerm", "tags": [{ "name": "name", "externalId": "externalId", "id": 1158, "desc": "desc" }], "emailStatus": {}, "webUrl": "webUrl", "name": "name", "countryName": "countryName", "visitingCountry": "visitingCountry", "deliveryName": "deliveryName", "paymentTerm": "If null, the first payment term is set", "vatNumber": "vatNumber", "city": "city", "pricelistName": "pricelistName", "ourReference": "ourReference", "showVAT": false, "customerId": 7776, "visitingAddress": "visitingAddress", "priceIncludeVAT": "false", "currency": "Sek", "deliveryCountryName": "deliveryCountryName", "email": "email", "deliveryCity": "deliveryCity", "deliveryPhone1": "deliveryPhone1", "comments": "comments", "pricelistId": "-1", "address2": "address2", "address1": "address1", "deliveryAddress2": "deliveryAddress2", "externalId": "externalId", "deliveryAddress1": "deliveryAddress1", "deliveryPhone2": "deliveryPhone2", "visitingCity": "visitingCity", "deliveryCountry": "deliveryCountry" }], "since": 7731 }
Add customer
POSTUrl:
Headers:
Accept: application/json or application/xml
Content-type: application/json or application/xml
Content-type: application/json or application/xml
Add a new customer
Body:
{ "zipCode": "zipCode", "country": "country", "externalCustomerId": "externalCustomerId", "invoiceDiscount": "0", "city": "city", "phone2": "phone2", "language": "store´s language", "visitingZipCode": "visitingZipCode", "invoiceRemark": "invoiceRemark", "phone1": "phone1", "ourReference": "ourReference", "emailOffer": "emailOffer", "customerType": "PRIVATE", "showVAT": true, "discounts": [{ "articleTag": { "name": "name", "externalId": "externalId", "id": 9057, "desc": "desc" }, "discount": 9708.950720179519 }], "deliveryZipCode": "deliveryZipCode", "wayOfDelivery": "wayOfDelivery", "emailInvoice": "emailInvoice", "visitingAddress": "visitingAddress", "priceIncludeVAT": "false", "currency": "Sek", "orgNumber": "orgNumber", "email": "email", "deliveryCity": "deliveryCity", "deliveryPhone1": "deliveryPhone1", "comments": "comments", "yourReference": "yourReference", "pricelistId": "-1", "address2": "address2", "emailOrder": "emailOrder", "deliveryTerm": "deliveryTerm", "address1": "address1", "deliveryAddress2": "deliveryAddress2", "externalId": "externalId", "deliveryAddress1": "deliveryAddress1", "deliveryPhone2": "deliveryPhone2", "tags": [{ "name": "name", "externalId": "externalId", "id": 4607, "desc": "desc" }], "visitingCity": "visitingCity", "webUrl": "webUrl", "deliveryCountry": "deliveryCountry", "name": "name", "visitingCountry": "visitingCountry", "deliveryName": "deliveryName", "paymentTerm": "If null, the first payment term is set", "vatNumber": "vatNumber" }
Successfull response:
{ "zipCode": "zipCode", "country": "country", "externalCustomerId": "externalCustomerId", "invoiceDiscount": "0", "visitingCountryName": "visitingCountryName", "phone2": "phone2", "language": "store´s language", "visitingZipCode": "visitingZipCode", "invoiceRemark": "invoiceRemark", "phone1": "phone1", "emailOffer": "emailOffer", "customerType": "PRIVATE", "discounts": [{ "articleTag": { "name": "name", "externalId": "externalId", "id": 3639, "desc": "desc" }, "discount": 1212.8468958592898 }], "deliveryZipCode": "deliveryZipCode", "wayOfDelivery": "wayOfDelivery", "emailInvoice": "emailInvoice", "orgNumber": "orgNumber", "yourReference": "yourReference", "emailOrder": "emailOrder", "deliveryTerm": "deliveryTerm", "tags": [{ "name": "name", "externalId": "externalId", "id": 3376, "desc": "desc" }], "emailStatus": {}, "webUrl": "webUrl", "name": "name", "countryName": "countryName", "visitingCountry": "visitingCountry", "deliveryName": "deliveryName", "paymentTerm": "If null, the first payment term is set", "vatNumber": "vatNumber", "city": "city", "pricelistName": "pricelistName", "ourReference": "ourReference", "showVAT": true, "customerId": 1128, "visitingAddress": "visitingAddress", "priceIncludeVAT": "false", "currency": "Sek", "deliveryCountryName": "deliveryCountryName", "email": "email", "deliveryCity": "deliveryCity", "deliveryPhone1": "deliveryPhone1", "comments": "comments", "pricelistId": "-1", "address2": "address2", "address1": "address1", "deliveryAddress2": "deliveryAddress2", "externalId": "externalId", "deliveryAddress1": "deliveryAddress1", "deliveryPhone2": "deliveryPhone2", "visitingCity": "visitingCity", "deliveryCountry": "deliveryCountry" }
Add customer tags
POSTUrl: /tag
Headers:
Accept: application/json or application/xml
Content-type: application/json or application/xml
Content-type: application/json or application/xml
Add customer tags for store group
Body:
{ "name": "name", "externalId": "externalId", "id": 6058, "desc": "desc" }
Successfull response:
{ "name": "name", "externalId": "externalId", "id": 3947, "desc": "desc" }
Import customers
POSTUrl: /import/{template_id}
Headers:
Accept: application/json or application/xml
Content-type: multipart/form-data
Content-type: multipart/form-data
Import customers from excel
Valid parameters:
Parameter | Description | Default value | Allowed values |
---|---|---|---|
update_only | |||
file | |||
file |
Body:
Successfull response:
Test import customers
POSTUrl: /import/test/{template_id}
Headers:
Accept: application/json or application/xml
Content-type: multipart/form-data
Content-type: multipart/form-data
Test import customers from excel. 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
Valid parameters:
Parameter | Description | Default value | Allowed values |
---|---|---|---|
file | |||
file |
Body:
Successfull response:
Invite customer
POSTUrl: /{customer_id}/invite
Headers:
Accept: application/json or application/xml
Other headers: user_id, user_token
Other headers: user_id, user_token
Invite customer to customer portal. Customer can then login to the customer and place orders
Body:
{ "notes": "notes", "role": { "loginServices": [{}], "paths": {}, "name": "name", "nativeFeatures": [{}], "fields": {}, "portal": "portal" }, "phone": "phone", "name": "name", "email": "email" }
Successfull response:
{ "systemAdmin": true, "bankID": true, "notes": "notes", "role": { "loginServices": [{}], "storeGroupId": 2046, "paths": {}, "name": "name", "id": 6935, "nativeFeatures": [{}], "fields": {}, "portal": "portal", "users": 444 }, "phone": "phone", "name": "name", "emailInvalid": true, "admin": true, "lastLoggedIn": 1995, "id": 2618, "email": "email", "customer": false }
Update customer
PUTUrl: /{id}
Headers:
Accept: application/json or application/xml
Content-type: application/json or application/xml
Content-type: application/json or application/xml
Update an existing customer
Body:
{ "zipCode": "zipCode", "country": "country", "externalCustomerId": "externalCustomerId", "invoiceDiscount": "0", "visitingCountryName": "visitingCountryName", "phone2": "phone2", "language": "store´s language", "visitingZipCode": "visitingZipCode", "invoiceRemark": "invoiceRemark", "phone1": "phone1", "emailOffer": "emailOffer", "customerType": "PRIVATE", "discounts": [{ "articleTag": { "name": "name", "externalId": "externalId", "id": 1770, "desc": "desc" }, "discount": 6197.920662858906 }], "deliveryZipCode": "deliveryZipCode", "wayOfDelivery": "wayOfDelivery", "emailInvoice": "emailInvoice", "orgNumber": "orgNumber", "yourReference": "yourReference", "emailOrder": "emailOrder", "deliveryTerm": "deliveryTerm", "tags": [{ "name": "name", "externalId": "externalId", "id": 8439, "desc": "desc" }], "emailStatus": {}, "webUrl": "webUrl", "name": "name", "countryName": "countryName", "visitingCountry": "visitingCountry", "deliveryName": "deliveryName", "paymentTerm": "If null, the first payment term is set", "vatNumber": "vatNumber", "city": "city", "pricelistName": "pricelistName", "ourReference": "ourReference", "showVAT": true, "customerId": 8510, "visitingAddress": "visitingAddress", "priceIncludeVAT": "false", "currency": "Sek", "deliveryCountryName": "deliveryCountryName", "email": "email", "deliveryCity": "deliveryCity", "deliveryPhone1": "deliveryPhone1", "comments": "comments", "pricelistId": "-1", "address2": "address2", "address1": "address1", "deliveryAddress2": "deliveryAddress2", "externalId": "externalId", "deliveryAddress1": "deliveryAddress1", "deliveryPhone2": "deliveryPhone2", "visitingCity": "visitingCity", "deliveryCountry": "deliveryCountry" }
Successfull response:
{ "zipCode": "zipCode", "country": "country", "externalCustomerId": "externalCustomerId", "invoiceDiscount": "0", "visitingCountryName": "visitingCountryName", "phone2": "phone2", "language": "store´s language", "visitingZipCode": "visitingZipCode", "invoiceRemark": "invoiceRemark", "phone1": "phone1", "emailOffer": "emailOffer", "customerType": "PRIVATE", "discounts": [{ "articleTag": { "name": "name", "externalId": "externalId", "id": 2676, "desc": "desc" }, "discount": 3991.036755264088 }], "deliveryZipCode": "deliveryZipCode", "wayOfDelivery": "wayOfDelivery", "emailInvoice": "emailInvoice", "orgNumber": "orgNumber", "yourReference": "yourReference", "emailOrder": "emailOrder", "deliveryTerm": "deliveryTerm", "tags": [{ "name": "name", "externalId": "externalId", "id": 21, "desc": "desc" }], "emailStatus": {}, "webUrl": "webUrl", "name": "name", "countryName": "countryName", "visitingCountry": "visitingCountry", "deliveryName": "deliveryName", "paymentTerm": "If null, the first payment term is set", "vatNumber": "vatNumber", "city": "city", "pricelistName": "pricelistName", "ourReference": "ourReference", "showVAT": false, "customerId": 7930, "visitingAddress": "visitingAddress", "priceIncludeVAT": "false", "currency": "Sek", "deliveryCountryName": "deliveryCountryName", "email": "email", "deliveryCity": "deliveryCity", "deliveryPhone1": "deliveryPhone1", "comments": "comments", "pricelistId": "-1", "address2": "address2", "address1": "address1", "deliveryAddress2": "deliveryAddress2", "externalId": "externalId", "deliveryAddress1": "deliveryAddress1", "deliveryPhone2": "deliveryPhone2", "visitingCity": "visitingCity", "deliveryCountry": "deliveryCountry" }
Delete customer
DELETEUrl: /{id}
Headers:
Accept: application/json or application/xml
Delete an existing customer
Body:
Successfull response:
Export
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:
Templates
Get customer import templates
GETUrl: /import/templates
Headers:
Accept: application/json or application/xml
Get customer import templates
Valid parameters:
Parameter | Description | Default value | Allowed values |
---|---|---|---|
query | |||
page | 0 | ||
limit | 50 |
Body:
Successfull response:
{ "importTemplates": [{ "data": { "rowFirst": 9965, "zipCode": { "defaultValue": "defaultValue", "column": 1775 }, "country": { "defaultValue": "defaultValue", "column": 5653 }, "externalCustomerId": { "defaultValue": "defaultValue", "column": 1220 }, "deliveryPhoneTwo": { "defaultValue": "defaultValue", "column": 894 }, "invoiceDiscount": { "defaultValue": "defaultValue", "column": 486 }, "city": { "defaultValue": "defaultValue", "column": 3678 }, "language": { "defaultValue": "defaultValue", "column": 9052 }, "visitingZipCode": { "defaultValue": "defaultValue", "column": 9453 }, "type": { "defaultValue": "defaultValue", "column": 2352 }, "phoneTwo": { "defaultValue": "defaultValue", "column": 1025 }, "deliveryAddressOne": { "defaultValue": "defaultValue", "column": 2355 }, "invoiceRemark": { "defaultValue": "defaultValue", "column": 3620 }, "ourReference": { "defaultValue": "defaultValue", "column": 3396 }, "emailOffer": { "defaultValue": "defaultValue", "column": 5034 }, "showVat": { "defaultValue": "defaultValue", "column": 4336 }, "addressTwo": { "defaultValue": "defaultValue", "column": 4492 }, "www": { "defaultValue": "defaultValue", "column": 1681 }, "deliveryZipCode": { "defaultValue": "defaultValue", "column": 2877 }, "wayOfDelivery": { "defaultValue": "defaultValue", "column": 2087 }, "customerId": 3789, "emailInvoice": { "defaultValue": "defaultValue", "column": 9689 }, "visitingAddress": { "defaultValue": "defaultValue", "column": 7811 }, "priceIncludeVat": { "defaultValue": "defaultValue", "column": 8868 }, "currency": { "defaultValue": "defaultValue", "column": 2909 }, "orgNumber": { "defaultValue": "defaultValue", "column": 1920 }, "email": { "defaultValue": "defaultValue", "column": 3312 }, "deliveryCity": { "defaultValue": "defaultValue", "column": 3142 }, "yourReference": { "defaultValue": "defaultValue", "column": 6755 }, "rowTitle": 4329, "emailOrder": { "defaultValue": "defaultValue", "column": 3486 }, "deliveryTerm": { "defaultValue": "defaultValue", "column": 5391 }, "deliveryAddressTwo": { "defaultValue": "defaultValue", "column": 244 }, "vat": { "defaultValue": "defaultValue", "column": 2178 }, "externalId": { "defaultValue": "defaultValue", "column": 4308 }, "priceListId": { "defaultValue": "defaultValue", "column": 8176 }, "phoneOne": { "defaultValue": "defaultValue", "column": 7984 }, "customerName": 6462, "tags": { "defaultValue": "defaultValue", "column": 7215 }, "visitingCity": { "defaultValue": "defaultValue", "column": 278 }, "deliveryCountry": { "defaultValue": "defaultValue", "column": 9863 }, "comment": { "defaultValue": "defaultValue", "column": 8532 }, "visitingCountry": { "defaultValue": "defaultValue", "column": 9398 }, "addressOne": { "defaultValue": "defaultValue", "column": 3426 }, "deliveryName": { "defaultValue": "defaultValue", "column": 1669 }, "deliveryPhoneOne": { "defaultValue": "defaultValue", "column": 2933 }, "paymentTerm": { "defaultValue": "defaultValue", "column": 1709 } }, "name": "name", "storegroupId": 1255, "id": 4168, "type": "type" }], "pages": 6344, "pageSize": 5946, "page": 8161, "importTemplateCount": 3962 }
Get customer import template
GETUrl: /import/template/{id}
Headers:
Accept: application/json or application/xml
Get customer import template
Body:
Successfull response:
{ "data": { "rowFirst": 6859, "customFields": {}, "barcodeType": { "defaultValue": "defaultValue", "column": 6907 }, "description": { "defaultValue": "defaultValue", "column": 3867 }, "stockPlace": { "defaultValue": "defaultValue", "column": 8154 }, "isActive": { "defaultValue": "defaultValue", "column": 4549 }, "type": { "defaultValue": "defaultValue", "column": 2404 }, "criticalLevel": { "defaultValue": "defaultValue", "column": 453 }, "buyPriceCurrency": { "defaultValue": "defaultValue", "column": 9958 }, "manufacturer": { "defaultValue": "defaultValue", "column": 7732 }, "buyPriceShipment": { "defaultValue": "defaultValue", "column": 2578 }, "rate": { "defaultValue": "defaultValue", "column": 6840 }, "orderLevel": { "defaultValue": "defaultValue", "column": 9002 }, "buyPriceMisc": { "defaultValue": "defaultValue", "column": 65 }, "supplier": { "defaultValue": "defaultValue", "column": 383 }, "supplierArticleId": { "defaultValue": "defaultValue", "column": 7155 }, "vatAccount": { "defaultValue": "defaultValue", "column": 8227 }, "isWebshopArticle": { "defaultValue": "defaultValue", "column": 5051 }, "barcode": { "defaultValue": "defaultValue", "column": 9042 }, "height": { "defaultValue": "defaultValue", "column": 4914 }, "isBundled": { "defaultValue": "defaultValue", "column": 700 }, "buyPrice": { "defaultValue": "defaultValue", "column": 3971 }, "amount": { "defaultValue": "defaultValue", "column": 6583 }, "articleName": 9551, "rowTitle": 2921, "articleId": 2620, "vat": { "defaultValue": "defaultValue", "column": 2678 }, "weight": { "defaultValue": "defaultValue", "column": 5177 }, "tags": { "defaultValue": "defaultValue", "column": 2288 }, "unit": { "defaultValue": "defaultValue", "column": 6211 }, "depth": { "defaultValue": "defaultValue", "column": 7476 }, "priceLists": {}, "width": { "defaultValue": "defaultValue", "column": 3796 }, "manufacturerArticleId": { "defaultValue": "defaultValue", "column": 4615 }, "category": { "defaultValue": "defaultValue", "column": 2792 }, "isStock": { "defaultValue": "defaultValue", "column": 140 }, "stockWarning": { "defaultValue": "defaultValue", "column": 9404 } }, "name": "name", "storegroupId": 4550, "id": 7398, "type": "type" }
Add customer import template
POSTUrl: /import/template
Headers:
Accept: application/json or application/xml
Content-type: application/json or application/xml
Content-type: application/json or application/xml
Add a customer import template
Body:
{ "data": { "rowFirst": 6082, "zipCode": { "defaultValue": "defaultValue", "column": 9640 }, "country": { "defaultValue": "defaultValue", "column": 1836 }, "externalCustomerId": { "defaultValue": "defaultValue", "column": 28 }, "deliveryPhoneTwo": { "defaultValue": "defaultValue", "column": 7749 }, "invoiceDiscount": { "defaultValue": "defaultValue", "column": 7896 }, "city": { "defaultValue": "defaultValue", "column": 7867 }, "language": { "defaultValue": "defaultValue", "column": 5312 }, "visitingZipCode": { "defaultValue": "defaultValue", "column": 1582 }, "type": { "defaultValue": "defaultValue", "column": 237 }, "phoneTwo": { "defaultValue": "defaultValue", "column": 6068 }, "deliveryAddressOne": { "defaultValue": "defaultValue", "column": 9146 }, "invoiceRemark": { "defaultValue": "defaultValue", "column": 5201 }, "ourReference": { "defaultValue": "defaultValue", "column": 744 }, "emailOffer": { "defaultValue": "defaultValue", "column": 9731 }, "showVat": { "defaultValue": "defaultValue", "column": 5691 }, "addressTwo": { "defaultValue": "defaultValue", "column": 182 }, "www": { "defaultValue": "defaultValue", "column": 5200 }, "deliveryZipCode": { "defaultValue": "defaultValue", "column": 5551 }, "wayOfDelivery": { "defaultValue": "defaultValue", "column": 1299 }, "customerId": 6821, "emailInvoice": { "defaultValue": "defaultValue", "column": 1722 }, "visitingAddress": { "defaultValue": "defaultValue", "column": 2450 }, "priceIncludeVat": { "defaultValue": "defaultValue", "column": 7987 }, "currency": { "defaultValue": "defaultValue", "column": 2027 }, "orgNumber": { "defaultValue": "defaultValue", "column": 934 }, "email": { "defaultValue": "defaultValue", "column": 4718 }, "deliveryCity": { "defaultValue": "defaultValue", "column": 7221 }, "yourReference": { "defaultValue": "defaultValue", "column": 9163 }, "rowTitle": 36, "emailOrder": { "defaultValue": "defaultValue", "column": 9182 }, "deliveryTerm": { "defaultValue": "defaultValue", "column": 2680 }, "deliveryAddressTwo": { "defaultValue": "defaultValue", "column": 9249 }, "vat": { "defaultValue": "defaultValue", "column": 2755 }, "externalId": { "defaultValue": "defaultValue", "column": 5062 }, "priceListId": { "defaultValue": "defaultValue", "column": 4388 }, "phoneOne": { "defaultValue": "defaultValue", "column": 9953 }, "customerName": 8664, "tags": { "defaultValue": "defaultValue", "column": 1153 }, "visitingCity": { "defaultValue": "defaultValue", "column": 8610 }, "deliveryCountry": { "defaultValue": "defaultValue", "column": 6998 }, "comment": { "defaultValue": "defaultValue", "column": 1563 }, "visitingCountry": { "defaultValue": "defaultValue", "column": 9286 }, "addressOne": { "defaultValue": "defaultValue", "column": 4198 }, "deliveryName": { "defaultValue": "defaultValue", "column": 1111 }, "deliveryPhoneOne": { "defaultValue": "defaultValue", "column": 2138 }, "paymentTerm": { "defaultValue": "defaultValue", "column": 4601 } }, "name": "name", "storegroupId": 2091, "type": "type" }
Successfull response:
{ "data": { "rowFirst": 3339, "customFields": {}, "barcodeType": { "defaultValue": "defaultValue", "column": 7342 }, "description": { "defaultValue": "defaultValue", "column": 3438 }, "stockPlace": { "defaultValue": "defaultValue", "column": 2291 }, "isActive": { "defaultValue": "defaultValue", "column": 8598 }, "type": { "defaultValue": "defaultValue", "column": 2201 }, "criticalLevel": { "defaultValue": "defaultValue", "column": 8560 }, "buyPriceCurrency": { "defaultValue": "defaultValue", "column": 1583 }, "manufacturer": { "defaultValue": "defaultValue", "column": 5266 }, "buyPriceShipment": { "defaultValue": "defaultValue", "column": 7552 }, "rate": { "defaultValue": "defaultValue", "column": 9531 }, "orderLevel": { "defaultValue": "defaultValue", "column": 9229 }, "buyPriceMisc": { "defaultValue": "defaultValue", "column": 2791 }, "supplier": { "defaultValue": "defaultValue", "column": 7707 }, "supplierArticleId": { "defaultValue": "defaultValue", "column": 6162 }, "vatAccount": { "defaultValue": "defaultValue", "column": 157 }, "isWebshopArticle": { "defaultValue": "defaultValue", "column": 273 }, "barcode": { "defaultValue": "defaultValue", "column": 3070 }, "height": { "defaultValue": "defaultValue", "column": 4712 }, "isBundled": { "defaultValue": "defaultValue", "column": 9353 }, "buyPrice": { "defaultValue": "defaultValue", "column": 5162 }, "amount": { "defaultValue": "defaultValue", "column": 5200 }, "articleName": 6041, "rowTitle": 1210, "articleId": 5106, "vat": { "defaultValue": "defaultValue", "column": 8493 }, "weight": { "defaultValue": "defaultValue", "column": 635 }, "tags": { "defaultValue": "defaultValue", "column": 4887 }, "unit": { "defaultValue": "defaultValue", "column": 763 }, "depth": { "defaultValue": "defaultValue", "column": 1757 }, "priceLists": {}, "width": { "defaultValue": "defaultValue", "column": 2040 }, "manufacturerArticleId": { "defaultValue": "defaultValue", "column": 5568 }, "category": { "defaultValue": "defaultValue", "column": 8026 }, "isStock": { "defaultValue": "defaultValue", "column": 9227 }, "stockWarning": { "defaultValue": "defaultValue", "column": 117 } }, "name": "name", "storegroupId": 1031, "id": 5204, "type": "type" }
Update customer import template
PUTUrl: /import/template/{id}
Headers:
Accept: application/json or application/xml
Content-type: application/json or application/xml
Content-type: application/json or application/xml
Update a customer import template
Body:
{ "data": { "rowFirst": 1949, "zipCode": { "defaultValue": "defaultValue", "column": 202 }, "country": { "defaultValue": "defaultValue", "column": 9316 }, "externalCustomerId": { "defaultValue": "defaultValue", "column": 1007 }, "deliveryPhoneTwo": { "defaultValue": "defaultValue", "column": 8160 }, "invoiceDiscount": { "defaultValue": "defaultValue", "column": 7072 }, "city": { "defaultValue": "defaultValue", "column": 402 }, "language": { "defaultValue": "defaultValue", "column": 6705 }, "visitingZipCode": { "defaultValue": "defaultValue", "column": 3050 }, "type": { "defaultValue": "defaultValue", "column": 137 }, "phoneTwo": { "defaultValue": "defaultValue", "column": 2625 }, "deliveryAddressOne": { "defaultValue": "defaultValue", "column": 9111 }, "invoiceRemark": { "defaultValue": "defaultValue", "column": 9875 }, "ourReference": { "defaultValue": "defaultValue", "column": 9288 }, "emailOffer": { "defaultValue": "defaultValue", "column": 3307 }, "showVat": { "defaultValue": "defaultValue", "column": 7559 }, "addressTwo": { "defaultValue": "defaultValue", "column": 4254 }, "www": { "defaultValue": "defaultValue", "column": 9557 }, "deliveryZipCode": { "defaultValue": "defaultValue", "column": 1659 }, "wayOfDelivery": { "defaultValue": "defaultValue", "column": 3113 }, "customerId": 1369, "emailInvoice": { "defaultValue": "defaultValue", "column": 5797 }, "visitingAddress": { "defaultValue": "defaultValue", "column": 8955 }, "priceIncludeVat": { "defaultValue": "defaultValue", "column": 8970 }, "currency": { "defaultValue": "defaultValue", "column": 2598 }, "orgNumber": { "defaultValue": "defaultValue", "column": 2841 }, "email": { "defaultValue": "defaultValue", "column": 4672 }, "deliveryCity": { "defaultValue": "defaultValue", "column": 5563 }, "yourReference": { "defaultValue": "defaultValue", "column": 9325 }, "rowTitle": 8359, "emailOrder": { "defaultValue": "defaultValue", "column": 7991 }, "deliveryTerm": { "defaultValue": "defaultValue", "column": 9463 }, "deliveryAddressTwo": { "defaultValue": "defaultValue", "column": 5755 }, "vat": { "defaultValue": "defaultValue", "column": 3702 }, "externalId": { "defaultValue": "defaultValue", "column": 6957 }, "priceListId": { "defaultValue": "defaultValue", "column": 2007 }, "phoneOne": { "defaultValue": "defaultValue", "column": 4521 }, "customerName": 5102, "tags": { "defaultValue": "defaultValue", "column": 2987 }, "visitingCity": { "defaultValue": "defaultValue", "column": 2531 }, "deliveryCountry": { "defaultValue": "defaultValue", "column": 6773 }, "comment": { "defaultValue": "defaultValue", "column": 4032 }, "visitingCountry": { "defaultValue": "defaultValue", "column": 7617 }, "addressOne": { "defaultValue": "defaultValue", "column": 3424 }, "deliveryName": { "defaultValue": "defaultValue", "column": 6388 }, "deliveryPhoneOne": { "defaultValue": "defaultValue", "column": 9495 }, "paymentTerm": { "defaultValue": "defaultValue", "column": 1500 } }, "name": "name", "storegroupId": 3748, "id": 4699, "type": "type" }
Successfull response:
Delete import template
DELETEUrl: import/template/{id}
Headers:
Accept: application/json or application/xml
Content-type: application/json or application/xml
Content-type: application/json or application/xml
Delete a customer import template
Body:
Successfull response:
Classes:
ArticleImportTemplateDto
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 | ImportTemplateDto | R,W |
ArticleTagDto
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 |
CustomerDiscountDto
Field | Type | Description | Default | Mandatory | Accepted values | Example values | Access |
---|---|---|---|---|---|---|---|
articleTag | ArticleTagDto | Write only with POST | Post | R,W | |||
discount | double | Discount in percent | Post | 0 - 100 | R,W |
CustomerDto
Field | Type | Description | Default | Mandatory | Accepted values | Example values | Access |
---|---|---|---|---|---|---|---|
customerId | Long | Internal id created by Lagerkoll | R | ||||
externalCustomerId | String | Already existing customer id | R,W | ||||
externalId | String | This id belongs to any external system; Fortnox, Visma or other | R,W | ||||
name | String | Post | R,W | ||||
orgNumber | String | R,W | |||||
ourReference | String | R,W | |||||
phone1 | String | R,W | |||||
phone2 | String | R,W | |||||
address1 | String | R,W | |||||
address2 | String | R,W | |||||
zipCode | String | Post | R,W | ||||
city | String | Post | R,W | ||||
country | String | Post | must point to an existing country | R,W | |||
countryName | String | R | |||||
language | String | store´s language | sv, en | R,W | |||
comments | String | R,W | |||||
currency | String | Sek | if not null, must point to an existing currency | R,W | |||
deliveryAddress1 | String | R,W | |||||
deliveryAddress2 | String | R,W | |||||
deliveryCity | String | R,W | |||||
deliveryZipCode | String | R,W | |||||
deliveryCountry | String | if not null, must point to an existing country | R,W | ||||
deliveryCountryName | String | R | |||||
deliveryName | String | R,W | |||||
deliveryPhone1 | String | R,W | |||||
deliveryPhone2 | String | R,W | |||||
visitingAddress | String | R,W | |||||
visitingCity | String | R,W | |||||
visitingZipCode | String | R,W | |||||
visitingCountry | String | if not null, must point to an existing country | R,W | ||||
visitingCountryName | String | R | |||||
String | R,W | ||||||
emailInvoice | String | R,W | |||||
emailOffer | String | R,W | |||||
emailOrder | String | R,W | |||||
emailStatus | HashMap | R | |||||
invoiceDiscount | Float | 0 | R,W | ||||
invoiceRemark | String | R,W | |||||
priceIncludeVAT | Boolean | false | R,W | ||||
showVAT | Boolean | If VAT should be shown in customer order confirmation and preview | R,W | ||||
deliveryTerm | String | If not null, must point to an existing delivery term | R,W | ||||
paymentTerm | String | If null, the first payment term is set | If not null, must point to an existing payment term | R,W | |||
customerType | String | PRIVATE | PRIVATE, COMPANY, UNDEFINED | R,W | |||
vatNumber | String | R,W | |||||
webUrl | String | R,W | |||||
wayOfDelivery | String | If not null, must point to an existing way of delivery term | R,W | ||||
yourReference | String | R,W | |||||
pricelistId | Long | -1 | If not -1, must point to an existing pricelist | R,W | |||
pricelistName | String | R | |||||
tags | List | Make sure you provide tagId for existing tags, otherwise new ones will be created | R,W | ||||
discounts | List | R,W |
CustomerImportTemplateDto
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 | ImportTemplateCustomerDto | R,W |
CustomerImportTemplateResponseDto
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 |
CustomersResponseDto
Field | Type | Description | Default | Mandatory | Accepted values | Example values | Access |
---|---|---|---|---|---|---|---|
page | int | R | |||||
pages | int | R | |||||
pageSize | int | R | |||||
customersCount | int | R | |||||
since | long | R | |||||
customers | List | R |
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 |
CustomerTagResponseDto
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 |
ImportTemplateColumnDto
Field | Type | Description | Default | Mandatory | Accepted values | Example values | Access |
---|---|---|---|---|---|---|---|
column | Integer | R,W | |||||
defaultValue | String | R,W |
ImportTemplateCustomerDto
Field | Type | Description | Default | Mandatory | Accepted values | Example values | Access |
---|---|---|---|---|---|---|---|
rowTitle | Integer | R,W | |||||
rowFirst | Integer | R,W | |||||
customerName | Integer | R,W | |||||
customerId | Integer | R,W | |||||
externalId | ImportTemplateColumnDto | R,W | |||||
externalCustomerId | ImportTemplateColumnDto | R,W | |||||
type | ImportTemplateColumnDto | R,W | |||||
orgNumber | ImportTemplateColumnDto | R,W | |||||
vat | ImportTemplateColumnDto | R,W | |||||
ourReference | ImportTemplateColumnDto | R,W | |||||
yourReference | ImportTemplateColumnDto | R,W | |||||
comment | ImportTemplateColumnDto | R,W | |||||
phoneOne | ImportTemplateColumnDto | R,W | |||||
phoneTwo | ImportTemplateColumnDto | R,W | |||||
addressOne | ImportTemplateColumnDto | R,W | |||||
addressTwo | ImportTemplateColumnDto | R,W | |||||
zipCode | ImportTemplateColumnDto | R,W | |||||
city | ImportTemplateColumnDto | R,W | |||||
country | ImportTemplateColumnDto | R,W | |||||
language | ImportTemplateColumnDto | R,W | |||||
currency | ImportTemplateColumnDto | R,W | |||||
deliveryAddressOne | ImportTemplateColumnDto | R,W | |||||
deliveryAddressTwo | ImportTemplateColumnDto | R,W | |||||
deliveryCity | ImportTemplateColumnDto | R,W | |||||
deliveryZipCode | ImportTemplateColumnDto | R,W | |||||
deliveryCountry | ImportTemplateColumnDto | R,W | |||||
deliveryName | ImportTemplateColumnDto | R,W | |||||
deliveryPhoneOne | ImportTemplateColumnDto | R,W | |||||
deliveryPhoneTwo | ImportTemplateColumnDto | R,W | |||||
visitingAddress | ImportTemplateColumnDto | R,W | |||||
visitingCity | ImportTemplateColumnDto | R,W | |||||
visitingZipCode | ImportTemplateColumnDto | R,W | |||||
visitingCountry | ImportTemplateColumnDto | R,W | |||||
ImportTemplateColumnDto | R,W | ||||||
emailInvoice | ImportTemplateColumnDto | R,W | |||||
emailOffer | ImportTemplateColumnDto | R,W | |||||
emailOrder | ImportTemplateColumnDto | R,W | |||||
invoiceDiscount | ImportTemplateColumnDto | R,W | |||||
invoiceRemark | ImportTemplateColumnDto | R,W | |||||
priceIncludeVat | ImportTemplateColumnDto | R,W | |||||
showVat | ImportTemplateColumnDto | R,W | |||||
deliveryTerm | ImportTemplateColumnDto | R,W | |||||
paymentTerm | ImportTemplateColumnDto | R,W | |||||
wayOfDelivery | ImportTemplateColumnDto | R,W | |||||
www | ImportTemplateColumnDto | R,W | |||||
priceListId | ImportTemplateColumnDto | R,W | |||||
tags | ImportTemplateColumnDto | R,W |
ImportTemplateDto
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 | ImportTemplateColumnDto | R,W | |||||
isActive | ImportTemplateColumnDto | R,W | |||||
isBundled | ImportTemplateColumnDto | R,W | |||||
category | ImportTemplateColumnDto | R,W | |||||
amount | ImportTemplateColumnDto | R,W | |||||
unit | ImportTemplateColumnDto | R,W | |||||
barcode | ImportTemplateColumnDto | R,W | |||||
barcodeType | ImportTemplateColumnDto | R,W | |||||
buyPrice | ImportTemplateColumnDto | R,W | |||||
buyPriceShipment | ImportTemplateColumnDto | R,W | |||||
buyPriceMisc | ImportTemplateColumnDto | R,W | |||||
rate | ImportTemplateColumnDto | R,W | |||||
buyPriceCurrency | ImportTemplateColumnDto | R,W | |||||
supplier | ImportTemplateColumnDto | R,W | |||||
supplierArticleId | ImportTemplateColumnDto | R,W | |||||
vat | ImportTemplateColumnDto | R,W | |||||
vatAccount | ImportTemplateColumnDto | R,W | |||||
isStock | ImportTemplateColumnDto | R,W | |||||
type | ImportTemplateColumnDto | R,W | |||||
stockPlace | ImportTemplateColumnDto | R,W | |||||
stockWarning | ImportTemplateColumnDto | R,W | |||||
criticalLevel | ImportTemplateColumnDto | R,W | |||||
orderLevel | ImportTemplateColumnDto | R,W | |||||
isWebshopArticle | ImportTemplateColumnDto | R,W | |||||
manufacturer | ImportTemplateColumnDto | R,W | |||||
manufacturerArticleId | ImportTemplateColumnDto | R,W | |||||
width | ImportTemplateColumnDto | R,W | |||||
height | ImportTemplateColumnDto | R,W | |||||
depth | ImportTemplateColumnDto | R,W | |||||
weight | ImportTemplateColumnDto | R,W | |||||
tags | ImportTemplateColumnDto | R,W | |||||
priceLists | HashMap | R,W | |||||
customFields | HashMap | R,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 |
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 |