{"openapi":"3.1.0","info":{"title":"OpenAPI definition","version":"v0"},"servers":[{"url":"http://capi.lagerkoll.com","description":"Generated server url"}],"tags":[{"name":"Way of deliveries"},{"name":"VATs"},{"name":"Units"},{"name":"Suppliers"},{"name":"Supplier delivery terms"},{"name":"Stores"},{"name":"Stocktake"},{"name":"Stocktake articles"},{"name":"Role"},{"name":"Purchase orders"},{"name":"Delivery"},{"name":"Projects"},{"name":"Production orders"},{"name":"Pricelists"},{"name":"Prices"},{"name":"Payment terms"},{"name":"Login"},{"name":"Invoice drafts"},{"name":"Invoice"},{"name":"DeliveryNote"},{"name":"Integration"},{"name":"External Integration"},{"name":"Feature"},{"name":"Feature API"},{"name":"Feature draft"},{"name":"Customers"},{"name":"Templates"},{"name":"Customer orders"},{"name":"Picking lists"},{"name":"Offers"},{"name":"Delivery terms"},{"name":"Cost centers"},{"name":"Categories"},{"name":"Articles"},{"name":"Batches"},{"name":"Article units"},{"name":"Custom fields"},{"name":"Company Account"},{"name":"User Account"},{"name":"Webhooks"},{"name":"Url"},{"name":"Export"},{"name":"PDF"},{"name":"MCP"},{"name":"Visma"},{"name":"Fortnox"},{"name":"BankID"},{"name":"Article images"},{"name":"Store images"},{"name":"Feature Data"},{"name":"Feature Server Function"},{"name":"Feature Email"},{"name":"Store feature"},{"name":"Scheduled Events"},{"name":"Document"},{"name":"Assistant"},{"name":"Print"},{"name":"Status"},{"name":"System"},{"name":"Reports"},{"name":"Traceability"},{"name":"languages"},{"name":"Feature images"},{"name":"health-controller"},{"name":"System Document"},{"name":"Rest articles"},{"name":"Currencies"},{"name":"Countries"},{"name":"OAuth2"},{"name":"Stock"},{"name":"Field list"},{"name":"Account"}],"paths":{"/v1/wod/{way_of_delivery}":{"get":{"tags":["Way of deliveries"],"summary":"Get way of delivery","description":"Get a single list of way of delivery based on way of delivery code","operationId":"getWayOfDelivery","parameters":[{"name":"way_of_delivery","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WayOfDeliveriesResponseDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/WayOfDeliveriesResponseDto"}}}}}},"put":{"tags":["Way of deliveries"],"summary":"Update way of delivery","description":"Update an existing new way of delivery","operationId":"updateWayOfDelivery","parameters":[{"name":"way_of_delivery","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WayOfDeliveryDto"}}}},"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WayOfDeliveryDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/WayOfDeliveryDto"}}}}}},"delete":{"tags":["Way of deliveries"],"summary":"Delete way of delivery","description":"Delete an existing way of delivery","operationId":"deleteWayOfDelivery","parameters":[{"name":"way_of_delivery","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}},"application/xml":{"schema":{"type":"object"}}}}}}},"/v1/vats/{id}":{"put":{"tags":["VATs"],"summary":"Update VAT","description":"Update an existing VAT","operationId":"updateVAT","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VATDto"}}}},"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VATDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/VATDto"}}}}}},"delete":{"tags":["VATs"],"summary":"Delete VAT","description":"Delete existing VAT","operationId":"deleteVAT","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}},"application/xml":{"schema":{"type":"object"}}}}}}},"/v1/units/{id}":{"put":{"tags":["Units"],"summary":"Update unit","description":"Update an existing unit","operationId":"updateUnit","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnitDto"}}}},"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnitDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/UnitDto"}}}}}},"delete":{"tags":["Units"],"summary":"Delete unit","description":"Delete existing unit","operationId":"deleteUnit","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"replace_id","in":"query","required":false,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}},"application/xml":{"schema":{"type":"object"}}}}}}},"/v1/suppliers/{id}":{"get":{"tags":["Suppliers"],"summary":"Get supplier","description":"Get a single supplier based on supplier id","operationId":"getSupplier","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"open_orders","in":"query","required":false,"schema":{"type":"boolean","default":false}},{"name":"article","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SuppliersResponseDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/SuppliersResponseDto"}}}}}},"put":{"tags":["Suppliers"],"summary":"Update supplier","description":"Update an existing supplier","operationId":"updateSupplier","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SupplierDto"}}},"required":true},"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SupplierDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/SupplierDto"}}}}}},"delete":{"tags":["Suppliers"],"summary":"Delete supplier","description":"Delete an existing supplier","operationId":"deleteSupplier","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}},"application/xml":{"schema":{"type":"object"}}}}}}},"/v1/supplier_delivery_terms/{term_id}":{"get":{"tags":["Supplier delivery terms"],"summary":"Get supplier delivery term","description":"Get a single supplier delivery term based on term code","operationId":"getDeliveryTerm","parameters":[{"name":"term_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SupplierDeliveryTermsResponseDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/SupplierDeliveryTermsResponseDto"}}}}}},"put":{"tags":["Supplier delivery terms"],"summary":"Update supplier delivery term","description":"Update an existing supplier delivery term","operationId":"updateDeliveryTerm","parameters":[{"name":"term_id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SupplierDeliveryTermDto"}}}},"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SupplierDeliveryTermDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/SupplierDeliveryTermDto"}}}}}},"delete":{"tags":["Supplier delivery terms"],"summary":"Delete supplier delivery term","description":"Delete an existing supplier delivery term","operationId":"deleteDeliveryTerm","parameters":[{"name":"term_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}},"application/xml":{"schema":{"type":"object"}}}}}}},"/v1/stores/reactivate":{"put":{"tags":["Stores"],"summary":"Reactivate a store","description":"Reactivating a store will remove the deactivate date and the store is no longer marked for deletion","operationId":"reactivateStore","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}},"application/xml":{"schema":{"type":"object"}}}}}}},"/v1/stores/deactivate":{"put":{"tags":["Stores"],"summary":"Deactivate a store","description":"Deactivating a store will set a deactivation date into the future. Once that deactivation date has been reached the store can no longer be accessed and is marked for deletion after a period of time","operationId":"deactivateStore","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}},"application/xml":{"schema":{"type":"object"}}}}}}},"/v1/stores/clear":{"put":{"tags":["Stores"],"summary":"Clear a store","description":"Clearing a store will delete all data connected to that store; articles, customers, orders, suppliers...","operationId":"clearStore","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}},"application/xml":{"schema":{"type":"object"}}}}}}},"/v1/stocktake/{id}":{"get":{"tags":["Stocktake"],"summary":"Get stocktake","description":"Get a single stocktake","operationId":"getStocktake","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StocktakesResponseDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/StocktakesResponseDto"}}}}}},"put":{"tags":["Stocktake"],"summary":"Update stocktake","description":"Update an existing inventory list","operationId":"updateStocktake","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StocktakeDto"}}},"required":true},"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StocktakesResponseDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/StocktakesResponseDto"}}}}}},"delete":{"tags":["Stocktake"],"summary":"Remove stocktake","description":"Remove a single stocktake","operationId":"removeStocktake","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}},"application/xml":{"schema":{"type":"object"}}}}}}},"/v1/stocktake/{id}/start":{"put":{"tags":["Stocktake"],"summary":"Start stocktake","description":"Start a specific inventory list","operationId":"startStocktake","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}},"application/xml":{"schema":{"type":"object"}}}}}}},"/v1/stocktake/{id}/finish":{"put":{"tags":["Stocktake"],"summary":"Finish stocktake","description":"Finish a specific inventory list","operationId":"finishStocktake","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"zero_unhandled_articles","in":"query","required":false,"schema":{"type":"boolean","default":false}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}},"application/xml":{"schema":{"type":"object"}}}}}}},"/v1/stocktake/{id}/articles":{"get":{"tags":["Stocktake articles"],"summary":"Get stocktake articles","description":"Get articles for a specific stocktake","operationId":"getStocktakeArticles","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"query","in":"query","required":false,"schema":{"type":"string"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":0}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":25}},{"name":"order","in":"query","required":false,"schema":{"type":"string","default":"asc"}},{"name":"sort_column","in":"query","required":false,"schema":{"type":"string","default":"art"}}],"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StocktakeArticlesResponseDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/StocktakeArticlesResponseDto"}}}}}},"put":{"tags":["Stocktake articles"],"summary":"Inventory an article","description":"Report inventory of an article for a specific stocktake","operationId":"inventoryArticle","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StocktakeArticleRequestDto"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}},"application/xml":{"schema":{"type":"object"}}}}}},"post":{"tags":["Stocktake articles"],"summary":"Add articles","description":"Add new articles to an existing stocktake. The stocktake must be in state NEW","operationId":"addStocktakeArticles","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ArticleIdsDto"}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}},"application/xml":{"schema":{"type":"object"}}}}}}},"/v1/stocktake/finished/{finished_list_id}/reopen":{"put":{"tags":["Stocktake"],"summary":"Reopen stocktake","description":"Reopen a finished inventory list","operationId":"reopenStocktake","parameters":[{"name":"finished_list_id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StocktakesResponseDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/StocktakesResponseDto"}}}}}}},"/v1/roles/{role_id}":{"get":{"tags":["Role"],"summary":"Get role","description":"Get role by id","operationId":"getRole","parameters":[{"name":"role_id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RolesResponseDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/RolesResponseDto"}}}}}},"put":{"tags":["Role"],"summary":"Update role","description":"Update existing role","operationId":"updateRole","parameters":[{"name":"role_id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RoleDto"}}},"required":true},"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RolesResponseDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/RolesResponseDto"}}}}}},"delete":{"tags":["Role"],"summary":"Delete role","description":"Delete existing role","operationId":"deleteRole","parameters":[{"name":"role_id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}},"application/xml":{"schema":{"type":"object"}}}}}}},"/v1/purchase_orders/{id}":{"get":{"tags":["Purchase orders"],"summary":"Get purchase order","description":"Get a single purchase orders based on order id","operationId":"getPurchaseOrder","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PurchaseOrdersResponseDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/PurchaseOrdersResponseDto"}}}}}},"put":{"tags":["Purchase orders"],"summary":"Update purchase order","description":"Update an existing purchase order","operationId":"updatePurchaseOrder","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PurchaseOrderDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/PurchaseOrderDto"}}},"required":true},"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PurchaseOrderDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/PurchaseOrderDto"}}}}}}},"/v1/purchase_orders/{id}/verify":{"put":{"tags":["Purchase orders"],"summary":"Verify purchase order","description":"Update purchase order state to verified","operationId":"verifyPurchaseOrder","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VerifyProductsDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/VerifyProductsDto"}}},"required":true},"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PurchaseOrderDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/PurchaseOrderDto"}}}}}}},"/v1/purchase_orders/{id}/state":{"put":{"tags":["Purchase orders"],"summary":"Change purchase order state","description":"Move a purchase order back to an earlier state without touching received amounts, stock or FIFO","operationId":"changePurchaseOrderState","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PurchaseOrderStateDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/PurchaseOrderStateDto"}}},"required":true},"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PurchaseOrderDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/PurchaseOrderDto"}}}}}}},"/v1/purchase_orders/{id}/send":{"put":{"tags":["Purchase orders"],"summary":"Send purchase order","description":"Update purchase order state to sent","operationId":"sendPurchaseOrder","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"sendemail","in":"query","required":false,"schema":{"type":"boolean","default":false}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReceiversDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/ReceiversDto"}}}},"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PurchaseOrderDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/PurchaseOrderDto"}}}}}}},"/v1/purchase_orders/{id}/rate":{"put":{"tags":["Purchase orders"],"summary":"Update rate","description":"Update rate for an existing purchase order","operationId":"updateRate","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PurchaseOrderRateDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/PurchaseOrderRateDto"}}},"required":true},"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PurchaseOrderDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/PurchaseOrderDto"}}}}}}},"/v1/purchase_orders/{id}/product":{"put":{"tags":["Purchase orders"],"summary":"Update purchase order product","description":"Update an existing purchase order product","operationId":"updatePurchaseOrderProduct","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PurchaseOrderArticleDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/PurchaseOrderArticleDto"}}},"required":true},"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PurchaseOrderDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/PurchaseOrderDto"}}}}}},"post":{"tags":["Purchase orders"],"summary":"Add row to purchase order","description":"Add article or textrow to an existing purchase order","operationId":"addPurchaseOrderProduct","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PurchaseOrderArticleDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/PurchaseOrderArticleDto"}}},"required":true},"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PurchaseOrderDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/PurchaseOrderDto"}}}}}}},"/v1/purchase_orders/{id}/product/remove":{"put":{"tags":["Purchase orders"],"summary":"Remove purchase order product","description":"Remove product from an existing purchase order","operationId":"deletePurchaseOrderProduct","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PurchaseOrderArticleDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/PurchaseOrderArticleDto"}}},"required":true},"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PurchaseOrderDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/PurchaseOrderDto"}}}}}}},"/v1/purchase_orders/{id}/deliver":{"put":{"tags":["Delivery"],"summary":"Deliver purchase order","description":"Update purchase order state to delivered. If the order is Pick-n-pack the connected customer order is marked as delivered","operationId":"deliverPurchaseOrder","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"delivered_date","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PurchaseOrderDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/PurchaseOrderDto"}}}}}}},"/v1/purchase_orders/{id}/cancel":{"put":{"tags":["Purchase orders"],"summary":"Cancel purchase order","description":"Update purchase order state to cancelled","operationId":"cancelPurchaseOrder","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PurchaseOrderDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/PurchaseOrderDto"}}}}}}},"/v1/purchase_orders/open/products":{"get":{"tags":["Purchase orders"],"summary":"Get open purchase order articles","description":"Get articles for open purchase order. The open purchase order is not connected to a specific supplier and cannot be closed. It´s just a container for articles that should later be ordered","operationId":"getOpenPurchaseOrderProducts","parameters":[{"name":"order","in":"query","required":false,"schema":{"type":"string","default":"asc"}},{"name":"sort_column","in":"query","required":false,"schema":{"type":"string","default":"art"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":0}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":20}}],"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OpenPurchaseOrderArticlesResponseDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/OpenPurchaseOrderArticlesResponseDto"}}}}}},"put":{"tags":["Purchase orders"],"summary":"Move article from open order","description":"Move article from open purchase order to either a new purchase order or an existing one","operationId":"moveProductFromOpenOrder","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MoveOpenPurchaseOrderArticleDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/MoveOpenPurchaseOrderArticleDto"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}},"application/xml":{"schema":{"type":"object"}}}}}},"post":{"tags":["Purchase orders"],"summary":"Add article to open order","description":"Add article to open purchase order","operationId":"addProductToOpenOrder","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OpenPurchaseOrderArticleRequestDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/OpenPurchaseOrderArticleRequestDto"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}},"application/xml":{"schema":{"type":"object"}}}}}}},"/v1/projects/{id}":{"put":{"tags":["Projects"],"summary":"Update project","description":"Update an existing project","operationId":"updateProject","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectDto"}}},"required":true},"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/ProjectDto"}}}}}}},"/v1/projects/{id}/invoice":{"put":{"tags":["Projects"],"summary":"Send invoice drafts to external integrations","description":"Send existing invoice drafts to external integrations and sets the draft to invoiced","operationId":"invoiceProjectArticle","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvoiceProjectArticlesRequestDto"}}},"required":true},"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvoiceProjectArticlesResponseDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/InvoiceProjectArticlesResponseDto"}}}}}}},"/v1/projects/{id}/invoice/draft":{"put":{"tags":["Projects"],"summary":"Create invoice drafts","description":"Create invoice drafts for articles in a project","operationId":"invoiceDraftProjectArticle","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvoiceDraftProjectArticlesRequestDto"}}},"required":true},"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvoiceProjectArticlesResponseDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/InvoiceProjectArticlesResponseDto"}}}}}}},"/v1/projects/{id}/close":{"put":{"tags":["Projects"],"summary":"Close project","description":"Close an existing project","operationId":"closeProject","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CloseProjectRequestDto"}}},"required":true},"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/ProjectDto"}}}}}}},"/v1/projects/{id}/article/{article_id}":{"put":{"tags":["Projects"],"summary":"Update project article","description":"Update an existing project article","operationId":"updateProjectArticle","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"article_id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectArticleDto"}}},"required":true},"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvoiceProjectArticlesResponseDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/InvoiceProjectArticlesResponseDto"}}}}}}},"/v1/production_orders/{id}":{"put":{"tags":["Production orders"],"summary":"Update production order","description":"Update an existing production order","operationId":"updateProductionOrder","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"startProduction","in":"query","required":false,"schema":{"type":"boolean","default":false}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProductionOrderDto"}}},"required":true},"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProductionOrderDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/ProductionOrderDto"}}}}}}},"/v1/production_orders/{id}/finish":{"put":{"tags":["Production orders"],"summary":"Finish production order","description":"Update production order state to finished","operationId":"finishProductionOrder","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProductionOrderDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/ProductionOrderDto"}}}}}}},"/v1/production_orders/{id}/cancel":{"put":{"tags":["Production orders"],"summary":"Cancel production order","description":"Update production order state to cancelled","operationId":"cancelProductionOrder","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProductionOrderDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/ProductionOrderDto"}}}}}}},"/v1/production_orders/{id}/article":{"put":{"tags":["Production orders"],"summary":"Update article for production order","description":"Update an article for production order","operationId":"updateProductionOrderArticle","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProductionOrderArticleDto"}}},"required":true},"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProductionOrderDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/ProductionOrderDto"}}}}}}},"/v1/production_orders/{id}/article/{article_id}":{"put":{"tags":["Production orders"],"summary":"Update article with traceability for production order","description":"Update an article for production order with traceability","operationId":"updateProductionOrderArticleWithTraceability","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"article_id","in":"path","required":true,"schema":{"type":"string"}},{"name":"waste","in":"query","required":false,"schema":{"type":"boolean","default":false}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProductionOrderArticleTraceabilityDto"}}},"required":true},"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProductionOrderDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/ProductionOrderDto"}}}}}}},"/v1/prices/lists/{id}":{"get":{"tags":["Pricelists"],"summary":"Get pricelist","description":"Get a single pricelist based in pricelist id","operationId":"getPricelist","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"default_if_missing","in":"query","required":false,"schema":{"type":"boolean","default":true}}],"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PricelistsResponseDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/PricelistsResponseDto"}}}}}},"put":{"tags":["Pricelists"],"summary":"Update pricelist","description":"Update an existing pricelist","operationId":"updatePricelist","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PricelistRequestDto"}}}},"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PricelistDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/PricelistDto"}}}}}},"delete":{"tags":["Pricelists"],"summary":"Delete pricelist","description":"Delete an existing pricelist","operationId":"deletePricelist","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}},"application/xml":{"schema":{"type":"object"}}}}}}},"/v1/prices/lists/{id}/article/{article_id}/prices/{from}":{"put":{"tags":["Prices"],"summary":"Update price for article in list","description":"Update a price for a specific pricelist and article","operationId":"updatePrice","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"article_id","in":"path","required":true,"schema":{"type":"string"}},{"name":"from","in":"path","required":true,"schema":{"type":"number","format":"double"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PriceDto"}}}},"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PriceDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/PriceDto"}}}}}},"delete":{"tags":["Prices"],"summary":"Delete price","description":"Delete a price on an article in a pricelist","operationId":"deletePrice","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"article_id","in":"path","required":true,"schema":{"type":"string"}},{"name":"from","in":"path","required":true,"schema":{"type":"number","format":"double"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}},"application/xml":{"schema":{"type":"object"}}}}}}},"/v1/prices/list":{"put":{"tags":["Prices"],"summary":"Update prices","description":"Update a list of prices. Input is a list of ArticlePrices","operationId":"updatePrices","requestBody":{"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ArticlePricesDto"}}},"application/xml":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ArticlePricesDto"}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}},"application/xml":{"schema":{"type":"object"}}}}}}},"/v1/prices/article/{article_id}":{"put":{"tags":["Prices"],"summary":"Update prices for article","description":"Update a list of prices for a specific article. Input is a list of Prices","operationId":"updatePricesForArticleEndpoint","parameters":[{"name":"article_id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/PriceDto"}}}}},"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"type":"string"}},"application/xml":{"schema":{"type":"string"}}}}}}},"/v1/payment_terms/{term_id}":{"get":{"tags":["Payment terms"],"summary":"Get payment term","description":"Get a single payment term based on term id","operationId":"getPaymentTerm","parameters":[{"name":"term_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaymentTermsResponseDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/PaymentTermsResponseDto"}}}}}},"put":{"tags":["Payment terms"],"summary":"Update payment term","description":"Update an existing payment term","operationId":"updatePaymentTerm","parameters":[{"name":"term_id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaymentTermDto"}}}},"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaymentTermDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/PaymentTermDto"}}}}}},"delete":{"tags":["Payment terms"],"summary":"Delete payment term","description":"Delete an existing payment term","operationId":"deletePaymentTerm","parameters":[{"name":"term_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}},"application/xml":{"schema":{"type":"object"}}}}}}},"/v1/mobile/push":{"put":{"tags":["Login"],"summary":"Update push-id","description":"Update mobile device's push-id","operationId":"updatePushToken","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MobilePushDataDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/MobilePushDataDto"}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}},"application/xml":{"schema":{"type":"object"}}}}}}},"/v1/invoices/drafts/invoice":{"put":{"tags":["Invoice drafts"],"summary":"Invoice drafts","description":"Send existing invoice drafts to external integrations and sets the draft to invoiced","operationId":"invoiceDraft","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvoiceDraftIdsRequestDto"}}}},"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvoiceProjectArticlesResponseDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/InvoiceProjectArticlesResponseDto"}}}}}}},"/v1/interpreter/invoice":{"put":{"tags":["Invoice"],"summary":"Update purchase prices","description":"Update purchase prices from invoice","operationId":"interpretInvoice","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvoiceInterpreterResponseDto"}}},"required":true},"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PurchaseOrderDto"}}}}}},"post":{"tags":["Invoice"],"summary":"Interpret invoice","description":"Interpret invoice PDF","operationId":"interpretInvoiceFile","requestBody":{"content":{"multipart/form-data":{"schema":{"type":"object","properties":{"file":{"type":"string","format":"binary"}},"required":["file"]}}}},"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvoiceInterpreterResponseDto"}}}}}}},"/v1/interpreter/deliverynote":{"put":{"tags":["DeliveryNote"],"summary":"Receive delivery","description":"Receive delivery from delivery note. If no purchase order is given a new order will be created and set to sent","operationId":"receivedPurchaseOrderFromDeliveryNote","parameters":[{"name":"order_id","in":"query","required":false,"schema":{"type":"integer","format":"int64"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeliveryNoteInterpreterResponseDto"}}},"required":true},"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PurchaseOrderDto"}}}}}},"post":{"tags":["DeliveryNote"],"summary":"Interpret delivery note","description":"Interpret delivery note PDF","operationId":"interpretDeliveryNote","requestBody":{"content":{"multipart/form-data":{"schema":{"type":"object","properties":{"file":{"type":"string","format":"binary"}},"required":["file"]}}}},"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeliveryNoteInterpreterResponseDto"}}}}}}},"/v1/integration/sync":{"put":{"tags":["Integration"],"summary":"Sync integration","description":"Start a sync of integration where changed data from external system will be synced to Lagerkoll. Returns 409 if a sync is already in progress for the store; that is not an error, retry later.","operationId":"syncIntegration","parameters":[{"name":"sync_from_lagerkoll","in":"query","required":false,"schema":{"type":"boolean","default":false}}],"responses":{"409":{"description":"A sync is already in progress for the store","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/v1/integration/status/start":{"put":{"tags":["Integration"],"summary":"Start integration","description":"Resume a paused integration: resets the invalid-access state and triggers a sync message. The receiver is looked up on the store group's master server's store, not the caller's own store. Only has an effect if that store currently has an integration receiver; otherwise returns 200 OK with no effect","operationId":"startIntegration","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/v1/integration/external/{integration}":{"put":{"tags":["External Integration"],"summary":"Update credentials","description":"Update existing external integration credentials","operationId":"updateExternalIntegrationCredentials","parameters":[{"name":"integration","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExternalCredentialsRequestDto"}}},"required":true},"responses":{"default":{"description":"default response","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExternalCredentialsDto"}}}}}},"delete":{"tags":["External Integration"],"summary":"Remove credentials","description":"Remove existing external integration credentials","operationId":"removeExternalIntegrationCredentials","parameters":[{"name":"integration","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"object"}}}}}}},"/v1/feature/{id}":{"get":{"tags":["Feature"],"summary":"Get feature","description":"Get list of files for feature","operationId":"getFeature","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FeatureResponseDto"}}}}}},"put":{"tags":["Feature"],"summary":"Update feature","description":"Update role on installed feature","operationId":"updateFeature","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FeatureResponseDto"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}},"application/xml":{"schema":{"type":"object"}}}}}},"delete":{"tags":["Feature"],"summary":"Delete feature","description":"Delete feature","operationId":"deleteFeature","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"delete_data","in":"query","required":false,"schema":{"type":"boolean","default":false}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}},"application/xml":{"schema":{"type":"object"}}}}}}},"/v1/feature/{feature_id}/mcp/tools":{"get":{"tags":["Feature API"],"summary":"Get feature MCP tools policy","description":"Whether this installed feature's server API is exposed as MCP tools","operationId":"getMcpFeatureToolsPolicy","parameters":[{"name":"feature_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/McpFeatureToolsPolicyDto"}}}}}},"put":{"tags":["Feature API"],"summary":"Set feature MCP tools policy","description":"Turn this installed feature's server API on or off as MCP tools","operationId":"updateMcpFeatureToolsPolicy","parameters":[{"name":"feature_id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/McpFeatureToolsPolicyDto"}}},"required":true},"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/McpFeatureToolsPolicyDto"}}}}}}},"/v1/feature/{feature_id}/api/{path}":{"get":{"tags":["Feature API"],"summary":"Execute API request","description":"Execute GET request for the feature API","operationId":"executeGETFeatureAPI","parameters":[{"name":"feature_id","in":"path","required":true,"schema":{"type":"string"}},{"name":"path","in":"path","required":true,"schema":{"type":"string"}},{"name":"force_reload","in":"query","required":false,"schema":{"type":"boolean","default":false}}],"responses":{"default":{"description":"default response","content":{"*/*":{"schema":{"type":"object"}}}}}},"put":{"tags":["Feature API"],"summary":"Execute API request","description":"Execute PUT request for the feature API","operationId":"executePUTFeatureAPI","parameters":[{"name":"feature_id","in":"path","required":true,"schema":{"type":"string"}},{"name":"path","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"force_reload":{"type":"boolean","default":false},"arg3":{"type":"object"}}}},"application/xml":{"schema":{"type":"object","properties":{"force_reload":{"type":"boolean","default":false},"arg3":{"type":"object"}}}},"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{"force_reload":{"type":"boolean","default":false},"arg3":{"type":"object"}}}}}},"responses":{"default":{"description":"default response","content":{"*/*":{"schema":{"type":"object"}}}}}},"post":{"tags":["Feature API"],"summary":"Execute API request","description":"Execute POST request for the feature API","operationId":"executePOSTFeatureAPI","parameters":[{"name":"feature_id","in":"path","required":true,"schema":{"type":"string"}},{"name":"path","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"force_reload":{"type":"boolean","default":false},"arg3":{"type":"object"}}}},"application/xml":{"schema":{"type":"object","properties":{"force_reload":{"type":"boolean","default":false},"arg3":{"type":"object"}}}},"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{"force_reload":{"type":"boolean","default":false},"arg3":{"type":"object"}}}}}},"responses":{"default":{"description":"default response","content":{"*/*":{"schema":{"type":"object"}}}}}},"delete":{"tags":["Feature API"],"summary":"Execute API request","description":"Execute DELETE request for the feature API","operationId":"executeDELETEFeatureAPI","parameters":[{"name":"feature_id","in":"path","required":true,"schema":{"type":"string"}},{"name":"force_reload","in":"query","required":false,"schema":{"type":"boolean","default":false}},{"name":"path","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"default":{"description":"default response","content":{"*/*":{"schema":{"type":"object"}}}}}}},"/v1/feature/draft/{draft_id}/file":{"get":{"tags":["Feature draft"],"summary":"Read draft file","description":"Read a text file's content, paginated by character offset/limit -- a binary file is refused","operationId":"readDraftFile","parameters":[{"name":"draft_id","in":"path","required":true,"schema":{"type":"string"}},{"name":"path","in":"query","required":true,"schema":{"type":"string"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","format":"int64","default":0}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","format":"int64"}}],"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FeatureDraftFileContentDto"}}}}}},"put":{"tags":["Feature draft"],"summary":"Write draft file","description":"Write a whole text file, creating a new revision. expected_sha256 is mandatory to overwrite an existing path","operationId":"writeDraftFile","parameters":[{"name":"draft_id","in":"path","required":true,"schema":{"type":"string"}},{"name":"path","in":"query","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FeatureDraftFileWriteRequestDto"}}},"required":true},"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FeatureDraftWriteResultDto"}}}}}},"delete":{"tags":["Feature draft"],"summary":"Delete draft file","description":"Remove one file from the draft's manifest, creating a new revision without it. expected_sha256 is mandatory, the same optimistic-locking guard writeDraftFile uses. The S3 blob is left in place (content-addressed, reused if the same content reappears)","operationId":"deleteDraftFile","parameters":[{"name":"draft_id","in":"path","required":true,"schema":{"type":"string"}},{"name":"path","in":"query","required":true,"schema":{"type":"string"}},{"name":"expected_sha256","in":"query","required":false,"schema":{"type":"string"}},{"name":"message","in":"query","required":false,"schema":{"type":"string"}},{"name":"author_agent","in":"query","required":false,"schema":{"type":"string"}},{"name":"prompt_summary","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FeatureDraftDeleteFileResultDto"}}}}}}},"/v1/customers/{id}":{"put":{"tags":["Customers"],"summary":"Update customer","description":"Update an existing customer","operationId":"updateCustomer","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomerDto"}}},"required":true},"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomerDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/CustomerDto"}}}}}},"delete":{"tags":["Customers"],"summary":"Delete customer","description":"Delete an existing customer","operationId":"deleteCustomer","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}},"application/xml":{"schema":{"type":"object"}}}}}}},"/v1/customers/import/template/{id}":{"get":{"tags":["Templates"],"summary":"Get customer import template","description":"Get customer import template","operationId":"getCustomerImportTemplate","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomerImportTemplateDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/CustomerImportTemplateDto"}}}}}},"put":{"tags":["Templates"],"summary":"Update customer import template","description":"Update a customer import template","operationId":"updateImportTemplate","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomerImportTemplateDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/CustomerImportTemplateDto"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}},"application/xml":{"schema":{"type":"object"}}}}}},"delete":{"tags":["Templates"],"summary":"Delete import template","description":"Delete a customer import template","operationId":"deleteImportTemplate","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}},"application/xml":{"schema":{"type":"object"}}}}}}},"/v1/customer_orders/{order_id}/send":{"put":{"tags":["Customer orders"],"summary":"Send order","description":"Update state of customer order to sent","operationId":"send","parameters":[{"name":"finish_pickinglists","in":"query","required":false,"schema":{"type":"boolean","default":false}},{"name":"create_rest_order","in":"query","required":false,"schema":{"type":"boolean","default":false}},{"name":"order_id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomerOrderDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/CustomerOrderDto"}}}}}}},"/v1/customer_orders/{order_id}/ready_for_packing":{"put":{"tags":["Customer orders"],"summary":"Ready for packing","description":"Update state of customer order to ready for packing. Picking lists will be created for the order","operationId":"readyToPack","parameters":[{"name":"order_id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomerOrderDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/CustomerOrderDto"}}}}}}},"/v1/customer_orders/{order_id}/picking_lists/{list_id}/pick":{"put":{"tags":["Picking lists"],"summary":"Pick multiple articles","description":"Update articles for a specific picking list","operationId":"pickMultipleArticles","parameters":[{"name":"order_id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"list_id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PickingListProductsDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/PickingListProductsDto"}}},"required":true},"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PickingListProductsDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/PickingListProductsDto"}}}}}}},"/v1/customer_orders/{order_id}/picking_lists/{list_id}/pick/{article_id}":{"put":{"tags":["Picking lists"],"summary":"Pick article","description":"Pick an article from a specific picking list. This request requires that device_id or user_id header is present in the request","operationId":"pickProductFromPickingList","parameters":[{"name":"order_id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"list_id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"article_id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PickingListProductDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/PickingListProductDto"}}},"required":true},"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PickingListProductDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/PickingListProductDto"}}}}}}},"/v1/customer_orders/{order_id}/picking_lists/{list_id}/packing":{"put":{"tags":["Picking lists"],"summary":"Change picking list state","description":"Change picking list state to packing","operationId":"changePickingListToPacking","parameters":[{"name":"order_id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"list_id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}},"application/xml":{"schema":{"type":"object"}}}}}}},"/v1/customer_orders/{order_id}/picking_lists/{list_id}/finish":{"put":{"tags":["Picking lists"],"summary":"Finish picking list","description":"Update pickinglist and set state to finished","operationId":"finishPickingList","parameters":[{"name":"order_id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"list_id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PickingListDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/PickingListDto"}}}}}}},"/v1/customer_orders/{order_id}/picking_lists/{list_id}/assign":{"put":{"tags":["Picking lists"],"summary":"Assign picking list","description":"Assign a pickinglist to current user. This request requires that device_id or user_id header is present in the request","operationId":"assignPickingList","parameters":[{"name":"order_id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"list_id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PickingListDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/PickingListDto"}}}}}}},"/v1/customer_orders/{order_id}/picking_lists/{list_id}/assign/{assigned_user_id}":{"put":{"tags":["Picking lists"],"summary":"Assign picking list to user","description":"Assign a pickinglist to a user","operationId":"assignPickingListToUser","parameters":[{"name":"order_id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"list_id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"assigned_user_id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PickingListDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/PickingListDto"}}}}}}},"/v1/customer_orders/{order_id}/packed":{"put":{"tags":["Customer orders"],"summary":"Packed order","description":"Update state of customer order to packed","operationId":"packed","parameters":[{"name":"finish_pickinglists","in":"query","required":false,"schema":{"type":"boolean","default":false}},{"name":"create_rest_order","in":"query","required":false,"schema":{"type":"boolean","default":false}},{"name":"order_id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomerOrderDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/CustomerOrderDto"}}}}}}},"/v1/customer_orders/{order_id}/invoice":{"put":{"tags":["Customer orders"],"summary":"Invoice order","description":"Update state of customer order to invoiced. If store is connected to an integration with support for invoicing an invoice will be created thru that integration (For example Fortnox)","operationId":"invoice","parameters":[{"name":"type","in":"query","required":false,"schema":{"type":"string","default":"invoice"}},{"name":"order_id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"type":"string"}},"application/xml":{"schema":{"type":"string"}}}}}}},"/v1/customer_orders/{order_id}/freight_booked":{"put":{"tags":["Customer orders"],"summary":"Order freight booked","description":"Update state of customer order to freight booked","operationId":"freightBooked","parameters":[{"name":"order_id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomerOrderDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/CustomerOrderDto"}}}}}}},"/v1/customer_orders/{order_id}/dropshipment/cancel":{"put":{"tags":["Customer orders"],"summary":"Cancel drop shipment","description":"Cancel drop shipment purchase orders for this customer order and reset customer order state to ready for packing","operationId":"cancelDropShipment","parameters":[{"name":"order_id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomerOrderDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/CustomerOrderDto"}}}}}}},"/v1/customer_orders/{order_id}/delivered":{"put":{"tags":["Customer orders"],"summary":"Order delivered","description":"Update state of customer order to delivered. This can only be done for sent or freight booked orders","operationId":"delivered","parameters":[{"name":"order_id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomerOrderDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/CustomerOrderDto"}}}}}}},"/v1/customer_orders/{order_id}/confirmation/send":{"put":{"tags":["Customer orders"],"summary":"Send confirmation","description":"Send confirmation of customer order with a confirmation pdf","operationId":"sendConfirmation","parameters":[{"name":"order_id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmailDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/EmailDto"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}},"application/xml":{"schema":{"type":"object"}}}}}}},"/v1/customer_orders/{order_id}/cancel":{"put":{"tags":["Customer orders"],"summary":"Cancel order","description":"Update state of customer order to cancelled. After this the order is closed and cannot be updated again","operationId":"cancelOrder","parameters":[{"name":"order_id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomerOrderDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/CustomerOrderDto"}}}}}}},"/v1/customer_orders/{id}":{"get":{"tags":["Customer orders"],"summary":"Get customer order","description":"Get a single customer orders based on order id","operationId":"getCustomerOrder","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomerOrdersResponseDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/CustomerOrdersResponseDto"}}}}}},"put":{"tags":["Customer orders"],"summary":"Update customer order","description":"Update an existing customer order. Be aware that state cannot be updated thru this request. Use one of the Invoice, Cancel, Ready for packing-methods to update state. Also be aware if the order has been invoiced that the only fields that can be updated are externalInvoiceReference1 and externalInvoiceReference2, all other fields are ignored","operationId":"updateCustomerOrder","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomerOrderDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/CustomerOrderDto"}}},"required":true},"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomerOrderDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/CustomerOrderDto"}}}}}}},"/v1/customer_orders/{id}/product":{"put":{"tags":["Customer orders"],"summary":"Update row in customer order","description":"Update existing article or textrow in an existing customer order based on row index","operationId":"updateCustomerOrderProduct","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomerOrderProductDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/CustomerOrderProductDto"}}},"required":true},"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomerOrderDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/CustomerOrderDto"}}}}}},"post":{"tags":["Customer orders"],"summary":"Add row to customer order","description":"Add article or textrow to an existing customer order","operationId":"addCustomerOrderProduct","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomerOrderProductDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/CustomerOrderProductDto"}}},"required":true},"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomerOrderDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/CustomerOrderDto"}}}}}}},"/v1/customer_orders/{id}/product/remove":{"put":{"tags":["Customer orders"],"summary":"Remove row in customer order","description":"Remove existing article or textrow in an existing customer order based on row index","operationId":"removeCustomerOrderProduct","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomerOrderProductDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/CustomerOrderProductDto"}}},"required":true},"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomerOrderDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/CustomerOrderDto"}}}}}}},"/v1/customer_orders/send":{"put":{"tags":["Customer orders"],"summary":"Send multiple order","description":"Update state of multiple customer order to sent","operationId":"sendMultipleOrders","parameters":[{"name":"finish_pickinglists","in":"query","required":false,"schema":{"type":"boolean","default":false}},{"name":"create_rest_order","in":"query","required":false,"schema":{"type":"boolean","default":false}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomerOrderRequestDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/CustomerOrderRequestDto"}}},"required":true},"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomerOrderDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/CustomerOrderDto"}}}}}}},"/v1/customer_orders/ready_for_packing":{"put":{"tags":["Customer orders"],"summary":"Ready for packing multiple orders","description":"Update state of multiple customer orders to ready for packing. Picking lists will be created for the orders","operationId":"readyToPackMultipleOrders","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomerOrderRequestDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/CustomerOrderRequestDto"}}},"required":true},"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomerOrderDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/CustomerOrderDto"}}}}}}},"/v1/customer_orders/offers/{offer_id}":{"get":{"tags":["Offers"],"summary":"Get offer","description":"Get offer by id","operationId":"getOffer","parameters":[{"name":"offer_id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OffersResponseDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/OffersResponseDto"}}}}}},"put":{"tags":["Offers"],"summary":"Update offer","description":"Update an existing new offer","operationId":"updateOffer","parameters":[{"name":"offer_id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OfferDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/OfferDto"}}},"required":true},"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OfferDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/OfferDto"}}}}}}},"/v1/customer_orders/offers/{offer_id}/send":{"put":{"tags":["Offers"],"summary":"Send offer","description":"Send offer pdf by email to customer","operationId":"sendOffer","parameters":[{"name":"offer_id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmailDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/EmailDto"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}},"application/xml":{"schema":{"type":"object"}}}}}}},"/v1/customer_orders/offers/{offer_id}/cancel":{"put":{"tags":["Offers"],"summary":"Cancel offer","description":"Update state of offer to cancelled. After this the order is closed and cannot be updated again","operationId":"cancelOffer","parameters":[{"name":"offer_id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OfferDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/OfferDto"}}}}}}},"/v1/customer_orders/offers/{offer_id}/approve":{"put":{"tags":["Offers"],"summary":"Approve offer","description":"Update state of offer to approved. After this the order is closed and cannot be updated again","operationId":"approveOffer","parameters":[{"name":"offer_id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OfferDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/OfferDto"}}}}}}},"/v1/customer_orders/invoice":{"put":{"tags":["Customer orders"],"summary":"Invoice multiple order","description":"Update state of multiple customer orders to invoiced. If store is connected to an integration with support for invoicing an invoice will be created thru that integration (For example Fortnox)","operationId":"invoiceMultipleOrders","parameters":[{"name":"type","in":"query","required":false,"schema":{"type":"string","default":"invoice"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomerOrderRequestDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/CustomerOrderRequestDto"}}},"required":true},"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomerOrdersResponseDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/CustomerOrdersResponseDto"}}}}}}},"/v1/customer_orders/cancel":{"put":{"tags":["Customer orders"],"summary":"Cancel multiple orders","description":"Update state of multiple customer orders to cancelled.","operationId":"cancelMultipleOrders","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomerOrderRequestDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/CustomerOrderRequestDto"}}},"required":true},"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomerOrderDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/CustomerOrderDto"}}}}}}},"/v1/customer_delivery_terms/{term_id}":{"get":{"tags":["Delivery terms"],"summary":"Get delivery term","description":"Get a single delivery term based of term id","operationId":"getCustomerDeliveryTerm","parameters":[{"name":"term_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomerDeliveryTermsResponseDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/CustomerDeliveryTermsResponseDto"}}}}}},"put":{"tags":["Delivery terms"],"summary":"Update delivery term","description":"Update an existing delivery term for customer orders","operationId":"updateCustomerDeliveryTerm","parameters":[{"name":"term_id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomerDeliveryTermDto"}}}},"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomerDeliveryTermDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/CustomerDeliveryTermDto"}}}}}},"delete":{"tags":["Delivery terms"],"summary":"Delete delivery term","description":"Delete an existing delivery term","operationId":"deleteCustomerDeliveryTerm","parameters":[{"name":"term_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomerDeliveryTermDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/CustomerDeliveryTermDto"}}}}}}},"/v1/costcenters/{cost_center}":{"get":{"tags":["Cost centers"],"summary":"Get cost center","description":"Get a cost centers based on cost center id","operationId":"getCostCenter","parameters":[{"name":"cost_center","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CostCentersResponseDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/CostCentersResponseDto"}}}}}},"put":{"tags":["Cost centers"],"summary":"Update cost centers","description":"Update an existing cost center","operationId":"updateCostCenter","parameters":[{"name":"cost_center","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CostCenterDto"}}}},"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CostCenterDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/CostCenterDto"}}}}}},"delete":{"tags":["Cost centers"],"summary":"Delete cost center","description":"Delete an existing costcenter","operationId":"deleteCostCenter","parameters":[{"name":"cost_center","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}},"application/xml":{"schema":{"type":"object"}}}}}}},"/v1/categories/{id}":{"put":{"tags":["Categories"],"summary":"Update category","description":"Update an existing category","operationId":"updateCategory","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CategoryDto"}}}},"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CategoryDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/CategoryDto"}}}}}},"delete":{"tags":["Categories"],"summary":"Delete category","description":"Delete existing category","operationId":"deleteCategory","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"replace_id","in":"query","required":false,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}},"application/xml":{"schema":{"type":"object"}}}}}}},"/v1/articles/{id}":{"get":{"tags":["Articles"],"summary":"Get article","description":"Get an article based on article-id","operationId":"getArticle","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"prices","in":"query","required":false,"schema":{"type":"boolean","default":false}},{"name":"include_bundle","in":"query","required":false,"schema":{"type":"boolean","default":false}},{"name":"include_next_delivery","in":"query","required":false,"schema":{"type":"boolean","default":false}},{"name":"include_purchase_prices","in":"query","required":false,"schema":{"type":"boolean","default":false}},{"name":"include_batches","in":"query","required":false,"schema":{"type":"boolean","default":false}},{"name":"sort_column","in":"query","required":false,"schema":{"type":"string","default":"batch_id"}},{"name":"order","in":"query","required":false,"schema":{"type":"string","default":"desc"}}],"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ArticlesResponseDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/ArticlesResponseDto"}}}}}},"put":{"tags":["Articles"],"summary":"Update article","description":"Update an existing article","operationId":"updateArticle","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"reason","in":"query","required":false,"schema":{"type":"string"}},{"name":"sort_column","in":"query","required":false,"schema":{"type":"string","default":"batch_id"}},{"name":"order","in":"query","required":false,"schema":{"type":"string","default":"desc"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ArticleDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/ArticleDto"}}},"required":true},"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ArticleDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/ArticleDto"}}}}}},"delete":{"tags":["Articles"],"summary":"Delete article","description":"Delete article based on article-id","operationId":"deleteArticle","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}},"application/xml":{"schema":{"type":"object"}}}}}}},"/v1/articles/{id}/split":{"put":{"tags":["Articles"],"summary":"Split bundles for article","description":"Split bundles for article","operationId":"splitBundlesForArticle","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BundleArticleForPartDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/BundleArticleForPartDto"}}},"required":true},"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ArticlesResponseDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/ArticlesResponseDto"}}}}}}},"/v1/articles/{id}/serialnumber/{serialnumber}":{"put":{"tags":["Batches"],"summary":"Update serial number","description":"Update serial number for a specific article","operationId":"updateSerialNumber","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"serialnumber","in":"path","required":true,"schema":{"type":"string"}},{"name":"update_article_amount","in":"query","required":false,"schema":{"type":"boolean","default":false}},{"name":"reason","in":"query","required":false,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ArticleBatchDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/ArticleBatchDto"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}},"application/xml":{"schema":{"type":"object"}}}}}},"delete":{"tags":["Batches"],"summary":"Delete serial number","description":"Delete serial number for a specific article","operationId":"deleteSerialNumber","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"serialnumber","in":"path","required":true,"schema":{"type":"string"}},{"name":"update_article_amount","in":"query","required":false,"schema":{"type":"boolean","default":false}},{"name":"reason","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}},"application/xml":{"schema":{"type":"object"}}}}}}},"/v1/articles/{id}/serialnumber/{serialnumber}/active":{"put":{"tags":["Batches"],"summary":"Activate or inactivate serial number","description":"Flip the active flag for a specific serial number. Inactive serial numbers are hidden from default listings, FIFO and new inventories. Existing orders/picked rows are not affected. When update_article_amount=true the article's total stock follows the flip (subtracted on inactivate, added back on reactivate) — mirrors the edit-quantity flow.","operationId":"setSerialNumberActive","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"serialnumber","in":"path","required":true,"schema":{"type":"string"}},{"name":"update_article_amount","in":"query","required":false,"schema":{"type":"boolean","default":false}},{"name":"reason","in":"query","required":false,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ArticleBatchActiveDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/ArticleBatchActiveDto"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}},"application/xml":{"schema":{"type":"object"}}}}}}},"/v1/articles/{id}/reserved":{"put":{"tags":["Articles"],"summary":"Update article reserved","description":"Update an article´s reserved value","operationId":"updateArticleReserved","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ArticleReservedDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/ArticleReservedDto"}}}}}}},"/v1/articles/{id}/move":{"put":{"tags":["Articles"],"summary":"Move article","description":"Move article to another store","operationId":"moveArticle","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ArticleMoveDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/ArticleMoveDto"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}},"application/xml":{"schema":{"type":"object"}}}}}}},"/v1/articles/{id}/fifo/rate":{"put":{"tags":["Articles"],"summary":"Update article fifo rate","description":"Update an existing article fifo purchase rate for a specific timestamp","operationId":"updateArticleFIFORate","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FIFORateDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/FIFORateDto"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}},"application/xml":{"schema":{"type":"object"}}}}}}},"/v1/articles/{id}/fifo/purchase_price":{"put":{"tags":["Articles"],"summary":"Update article fifo purchase price","description":"Update an existing article fifo purchase price for a specific timestamp","operationId":"updateArticleFIFOPurchasePrice","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FIFOPriceDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/FIFOPriceDto"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}},"application/xml":{"schema":{"type":"object"}}}}}}},"/v1/articles/{id}/bundles":{"put":{"tags":["Articles"],"summary":"Create bundles for article","description":"Create bundles for article","operationId":"createBundlesForArticle","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BundleArticleForPartDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/BundleArticleForPartDto"}}},"required":true},"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ArticlesResponseDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/ArticlesResponseDto"}}}}}}},"/v1/articles/{id}/bundle":{"get":{"tags":["Articles"],"summary":"Get bundle products from part","description":"Get all bundle products which includes a specific part","operationId":"getBundledProductsWithPart","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":0}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":100}}],"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ArticleBatchesDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/ArticleBatchesDto"}}}}}},"put":{"tags":["Templates"],"summary":"Update article to bundle or simple","description":"Update an article to bundle or simple","operationId":"updateBundleForArticle","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"bundle","in":"query","required":false,"schema":{"type":"boolean","default":false}}],"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ArticleTagDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/ArticleTagDto"}}}}}}},"/v1/articles/{id}/batch/{batch_id}":{"put":{"tags":["Batches"],"summary":"Update batch","description":"Update batch for a specific article","operationId":"updateBatch","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"batch_id","in":"path","required":true,"schema":{"type":"string"}},{"name":"update_article_amount","in":"query","required":false,"schema":{"type":"boolean","default":false}},{"name":"reason","in":"query","required":false,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ArticleBatchDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/ArticleBatchDto"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}},"application/xml":{"schema":{"type":"object"}}}}}},"delete":{"tags":["Batches"],"summary":"Delete batch","description":"Delete a batch for a specific article","operationId":"deleteBatch","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"batch_id","in":"path","required":true,"schema":{"type":"string"}},{"name":"update_article_amount","in":"query","required":false,"schema":{"type":"boolean","default":false}},{"name":"reason","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}},"application/xml":{"schema":{"type":"object"}}}}}}},"/v1/articles/{id}/batch/{batch_id}/active":{"put":{"tags":["Batches"],"summary":"Activate or inactivate batch","description":"Flip the active flag for a specific batch. Inactive batches are hidden from default listings, FIFO and new inventories. Existing orders/picked rows are not affected. When update_article_amount=true the article's total stock follows the flip (subtracted on inactivate, added back on reactivate) — mirrors the edit-quantity flow.","operationId":"setBatchActive","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"batch_id","in":"path","required":true,"schema":{"type":"string"}},{"name":"update_article_amount","in":"query","required":false,"schema":{"type":"boolean","default":false}},{"name":"reason","in":"query","required":false,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ArticleBatchActiveDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/ArticleBatchActiveDto"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}},"application/xml":{"schema":{"type":"object"}}}}}}},"/v1/articles/{id}/article_units/{unit_id}":{"put":{"tags":["Article units"],"summary":"Update article unit","description":"Update existing article unit for a specific article","operationId":"updateArticleUnit","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"unit_id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ArticleUnitDto"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}},"application/xml":{"schema":{"type":"object"}}}}}},"delete":{"tags":["Article units"],"summary":"Remove article unit","description":"Remove article unit from a specific article","operationId":"removeArticleUnit","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"unit_id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}},"application/xml":{"schema":{"type":"object"}}}}}}},"/v1/articles/list":{"put":{"tags":["Articles"],"summary":"Update articles","description":"Update a list of existing articles (Max 100 articles per request)","operationId":"updateArticles","requestBody":{"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ArticleDto"}}},"application/xml":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ArticleDto"}}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}},"application/xml":{"schema":{"type":"object"}}}}}},"post":{"tags":["Articles"],"summary":"Add articles","description":"Add a list of articles","operationId":"addArticles","requestBody":{"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ArticleDto"}}},"application/xml":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ArticleDto"}}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}},"application/xml":{"schema":{"type":"object"}}}}}}},"/v1/articles/import/template/{id}":{"get":{"tags":["Templates"],"summary":"Get article import template","description":"Get article import template","operationId":"getArticleImportTemplate","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ArticleImportTemplateDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/ArticleImportTemplateDto"}}}}}},"put":{"tags":["Templates"],"summary":"Update article import template","description":"Update an article import template","operationId":"updateImportTemplate_1","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ArticleImportTemplateDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/ArticleImportTemplateDto"}}},"required":true},"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ArticleImportTemplateDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/ArticleImportTemplateDto"}}}}}},"delete":{"tags":["Templates"],"summary":"Delete import template","description":"Delete import template for articles","operationId":"deleteImportTemplate_1","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}},"application/xml":{"schema":{"type":"object"}}}}}}},"/v1/articles/customfields_template":{"get":{"tags":["Custom fields"],"summary":"Get custom fields template","description":"The template contains fields that will automatically be added to new articles","operationId":"getCustomFieldsTemplate","parameters":[{"name":"query","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomFieldsTemplateDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/CustomFieldsTemplateDto"}}}}}},"put":{"tags":["Custom fields"],"summary":"Update custom fields template","description":"The template contains fields that will automatically be added to new articles","operationId":"updateCustomFieldsTemplate","parameters":[{"name":"update_articles","in":"query","required":false,"schema":{"type":"boolean","default":false}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomFieldsTemplateDto"}}},"required":true},"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomFieldsTemplateDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/CustomFieldsTemplateDto"}}}}}}},"/v1/articles/bulk":{"put":{"tags":["Articles"],"summary":"Bulk update articles","description":"Update a field for a list of existing articles (Max 100 articles per request)","operationId":"bulkUpdateArticles","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkArticleDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/BulkArticleDto"}}},"required":true},"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkArticleResponseDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/BulkArticleResponseDto"}}}}}}},"/v1/articles/bulk/delete":{"put":{"tags":["Articles"],"summary":"Delete list of articles","description":"Delete list of existing articles (Max 100 articles per request)","operationId":"bulkDeleteArticles","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ArticleIdsDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/ArticleIdsDto"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}},"application/xml":{"schema":{"type":"object"}}}}}}},"/v1/account":{"get":{"tags":["Company Account"],"summary":"Get company account","description":"Get information about the company account and master stock. This is not to be confused with a user account","operationId":"getCompanyAccount","responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountResponseDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/AccountResponseDto"}}}}}},"put":{"tags":["Company Account"],"summary":"Update company account","description":"Update information on the company account. This is not to be confused with a user account","operationId":"updateCompanyAccount","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountResponseDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/AccountResponseDto"}}}},"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountResponseDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/AccountResponseDto"}}}}}}},"/v1/account/users/{id}":{"get":{"tags":["User Account"],"summary":"Get user","description":"Get a user by id","operationId":"getUserById","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/UserDto"}}}}}},"put":{"tags":["User Account"],"summary":"Update user","description":"Update user account for the fields provided","operationId":"updateUser","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/UserDto"}}}},"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/UserDto"}}}}}},"delete":{"tags":["User Account"],"summary":"Delete user","description":"Delete existing user account","operationId":"deleteUser","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}},"application/xml":{"schema":{"type":"object"}}}}}}},"/v1/account/users/{id}/password":{"put":{"tags":["User Account"],"summary":"Change user password","description":"Update user password from a reset key","operationId":"changePassword","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PasswordDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/PasswordDto"}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}},"application/xml":{"schema":{"type":"object"}}}}}}},"/v1/account/users/password/reset":{"put":{"tags":["User Account"],"summary":"Prepare change user password","description":"Sends out an email with a reset-url for the given user","operationId":"prepareChangePassword","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PrepareResetPasswordDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/PrepareResetPasswordDto"}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}},"application/xml":{"schema":{"type":"object"}}}}}}},"/v1/account/settings":{"get":{"tags":["User Account"],"summary":"Get user account settings","description":"Get user account settings","operationId":"getUserAccountSettings","responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountSettingsDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/AccountSettingsDto"}}}}}},"put":{"tags":["User Account"],"summary":"Update user settings","description":"Update user account settings for the fields provided","operationId":"updateAccountSettings","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountSettingsDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/AccountSettingsDto"}}}},"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountSettingsDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/AccountSettingsDto"}}}}}}},"/v1/account/search/settings":{"get":{"tags":["Company Account"],"summary":"Get search settings","description":"Get the store ids included in cross-store article search for the multi-store search feature","operationId":"getSearchSettings","responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SearchSettingsDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/SearchSettingsDto"}}}}}},"put":{"tags":["Company Account"],"summary":"Update search settings","description":"Update Search settings for all of the stores","operationId":"updateSearchSettings","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SearchSettingsDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/SearchSettingsDto"}}}},"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SearchSettingsDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/SearchSettingsDto"}}}}}}},"/v1/account/reports/settings":{"get":{"tags":["Company Account"],"summary":"Get Report component settings","description":"Get Report component settings for all of the company accounts","operationId":"getReportComponentSettings","responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StoreGroupReportsSettingsDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/StoreGroupReportsSettingsDto"}}}}}},"put":{"tags":["Company Account"],"summary":"Update Report component settings","description":"Update Report component settings for all of the company accounts","operationId":"updateReportComponentSettings","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StoreGroupReportsSettingsDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/StoreGroupReportsSettingsDto"}}}},"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StoreGroupReportsSettingsDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/StoreGroupReportsSettingsDto"}}}}}}},"/v1/account/premium/{payment_type}":{"put":{"tags":["Company Account"],"summary":"Upgrade premium","description":"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","operationId":"upgradePremium","parameters":[{"name":"payment_type","in":"path","required":true,"schema":{"type":"integer","format":"int32"}}],"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountResponseDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/AccountResponseDto"}}}}}}},"/v1/account/events/settings":{"get":{"tags":["Company Account"],"summary":"Get Events component settings","description":"Get Scheduled Events component settings for all of the company accounts","operationId":"getEventComponentSettings","responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EventsSettingsDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/EventsSettingsDto"}}}}}},"put":{"tags":["Company Account"],"summary":"Update Events component settings","description":"Update Scheduled Events component settings for all of the company accounts","operationId":"updateEventsComponentSettings","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EventsSettingsDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/EventsSettingsDto"}}}},"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EventsSettingsDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/EventsSettingsDto"}}}}}}},"/v1/account/email/verify":{"put":{"tags":["Company Account"],"summary":"Verify email settings","description":"Verify email settings and activates them on success","operationId":"verifyEmailSettings","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmailVerificationDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/EmailVerificationDto"}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}},"application/xml":{"schema":{"type":"object"}}}}}}},"/v1/account/email/settings":{"get":{"tags":["Company Account"],"summary":"Get email settings","description":"Get email settings","operationId":"getEmailSettings","responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmailSettingsDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/EmailSettingsDto"}}}}}},"put":{"tags":["Company Account"],"summary":"Update email settings","description":"Update email settings to start using another email service than Lagerkoll´s when sending emails","operationId":"updateEmailSettings","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmailSettingsDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/EmailSettingsDto"}}}},"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmailSettingsDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/EmailSettingsDto"}}}}}},"delete":{"tags":["Company Account"],"summary":"Remove email settings","description":"Remove email settings and start using Lagerkoll´s email server again when sending emails","operationId":"removeEmailSettings","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}},"application/xml":{"schema":{"type":"object"}}}}}}},"/v1/account/barcode/settings":{"put":{"tags":["Company Account"],"summary":"Update barcode settings","description":"Update barcode settings for company account","operationId":"updateBarcodeSettings","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BarcodeSettingsDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/BarcodeSettingsDto"}}}},"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BarcodeSettingsDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/BarcodeSettingsDto"}}}}}}},"/v1/account/articles/settings":{"get":{"tags":["Company Account"],"summary":"Get Article component settings","description":"Get Article component settings for the company, including the shared article registry flag","operationId":"getArticleSettings","responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ArticleSettingsDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/ArticleSettingsDto"}}}}}},"put":{"tags":["Company Account"],"summary":"Update Article component settings","description":"Update Article component settings for the company, including the shared article registry flag","operationId":"updateArticleSettings","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ArticleSettingsDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/ArticleSettingsDto"}}}},"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ArticleSettingsDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/ArticleSettingsDto"}}}}}}},"/v1/account/api/settings":{"get":{"tags":["Company Account"],"summary":"Get API component settings","description":"Get API component settings for all of the company accounts","operationId":"getAPIComponentSettings","responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APISettingsDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/APISettingsDto"}}}}}},"put":{"tags":["Company Account"],"summary":"Update API component settings","description":"Update API component settings for all of the company accounts","operationId":"updateAPIComponentSettings","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/APISettingsDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/APISettingsDto"}}}},"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APISettingsDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/APISettingsDto"}}}}}}},"/v1/wod":{"get":{"tags":["Way of deliveries"],"summary":"Get way of deliveries","description":"Get a list of way of deliveries","operationId":"getWayOfDeliveries","parameters":[{"name":"since","in":"query","required":false,"schema":{"type":"integer","format":"int64","default":0}}],"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WayOfDeliveriesResponseDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/WayOfDeliveriesResponseDto"}}}}}},"post":{"tags":["Way of deliveries"],"summary":"Add way of delivery","description":"Add a new way of delivery","operationId":"addWayOfDelivery","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WayOfDeliveryDto"}}}},"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WayOfDeliveryDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/WayOfDeliveryDto"}}}}}}},"/v1/webhooks":{"post":{"tags":["Webhooks"],"summary":"Create webhook","description":"Create a webhook for a feature and method","operationId":"createWebhook","parameters":[{"name":"enable_for_group","in":"query","required":false,"schema":{"type":"boolean","default":false}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/WebhookDto"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}},"application/xml":{"schema":{"type":"object"}}}}}}},"/v1/webhooks/{guid}":{"post":{"tags":["Webhooks"],"summary":"Execute webhook","description":"Execute a webhook based on a guid","operationId":"executeWebhook","parameters":[{"name":"guid","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","additionalProperties":{"type":"object"}}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/v1/vats":{"get":{"tags":["VATs"],"summary":"Get VATs","description":"Get a list of VATs","operationId":"getVATs","parameters":[{"name":"query","in":"query","required":false,"schema":{"type":"string"}},{"name":"since","in":"query","required":false,"schema":{"type":"integer","format":"int64","default":0}}],"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VATsResponseDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/VATsResponseDto"}}}}}},"post":{"tags":["VATs"],"summary":"Add VAT","description":"Add a new VAT","operationId":"addVAT","parameters":[{"name":"filter","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":0}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VATDto"}}}},"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VATsResponseDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/VATsResponseDto"}}}}}}},"/v1/vats/{id}/default":{"post":{"tags":["VATs"],"summary":"Set default VAT","description":"Set a VAT as the default for the storegroup","operationId":"setDefaultVAT","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VATDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/VATDto"}}}}}}},"/v1/url":{"get":{"tags":["Url"],"summary":"Get short url","description":"Get short url from already created long url","operationId":"getUrl","parameters":[{"name":"url","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ShortUrlDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/ShortUrlDto"}}}}}},"post":{"tags":["Url"],"summary":"Create url","description":"Create a new short url based on long url","operationId":"createUrl","parameters":[{"name":"url","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ShortUrlDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/ShortUrlDto"}}}}}}},"/v1/units":{"get":{"tags":["Units"],"summary":"Get units","description":"Get a list of units for articles","operationId":"getUnits","parameters":[{"name":"query","in":"query","required":false,"schema":{"type":"string"}},{"name":"include_count","in":"query","required":false,"schema":{"type":"boolean","default":false}},{"name":"since","in":"query","required":false,"schema":{"type":"integer","format":"int64","default":0}}],"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnitsResponseDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/UnitsResponseDto"}}}}}},"post":{"tags":["Units"],"summary":"Add new unit","description":"Add a new unit","operationId":"addUnit","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnitDto"}}}},"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnitDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/UnitDto"}}}}}}},"/v1/units/{id}/default":{"post":{"tags":["Units"],"summary":"Set default unit","description":"Set a unit as the default unit for the storegroup","operationId":"setDefaultUnit","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnitDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/UnitDto"}}}}}}},"/v1/suppliers":{"get":{"tags":["Suppliers"],"summary":"Get suppliers","description":"Get a list of suppliers based on query","operationId":"getSuppliers","parameters":[{"name":"query","in":"query","required":false,"schema":{"type":"string","default":""}},{"name":"since","in":"query","required":false,"schema":{"type":"integer","format":"int64","default":0}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":0}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":100}},{"name":"order","in":"query","required":false,"schema":{"type":"string","default":"asc"}},{"name":"sort_column","in":"query","required":false,"schema":{"type":"string","default":"name"}},{"name":"open_orders","in":"query","required":false,"schema":{"type":"boolean","default":false}},{"name":"article","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SuppliersResponseDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/SuppliersResponseDto"}}}}}},"post":{"tags":["Suppliers"],"summary":"Add supplier","description":"Add a new supplier","operationId":"addSupplier","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SupplierDto"}}},"required":true},"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SupplierDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/SupplierDto"}}}}}}},"/v1/supplier_delivery_terms":{"get":{"tags":["Supplier delivery terms"],"summary":"Get supplier delivery terms","description":"Get a list of supplier delivery terms","operationId":"getDeliveryTerms","parameters":[{"name":"since","in":"query","required":false,"schema":{"type":"integer","format":"int64","default":0}}],"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SupplierDeliveryTermsResponseDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/SupplierDeliveryTermsResponseDto"}}}}}},"post":{"tags":["Supplier delivery terms"],"summary":"Add supplier delivery term","description":"Add a new supplier delivery term","operationId":"addDeliveryTerm","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SupplierDeliveryTermDto"}}}},"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SupplierDeliveryTermDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/SupplierDeliveryTermDto"}}}}}}},"/v1/stores":{"get":{"tags":["Stores"],"summary":"Get stores","description":"Get a list of all stores for this group","operationId":"getStores","responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StoresResponseDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/StoresResponseDto"}}}}}},"post":{"tags":["Stores"],"summary":"Add store","description":"Add a new store to group","operationId":"addStore","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StoreRequestDto"}}},"required":true},"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StoreDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/StoreDto"}}}}}},"delete":{"tags":["Stores"],"summary":"Delete a store","description":"Delete a store, articles are moved to the store with id = move_to_store if it exists","operationId":"deleteStore","parameters":[{"name":"move_to_store","in":"query","required":false,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}},"application/xml":{"schema":{"type":"object"}}}}}}},"/v1/stocktake":{"post":{"tags":["Stocktake"],"summary":"Create stocktake","description":"Create a new inventory list","operationId":"addStocktake","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StocktakeDto"}}},"required":true},"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StocktakesResponseDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/StocktakesResponseDto"}}}}}}},"/v1/stocktake/{id}/stockplace/{stockplace}":{"post":{"tags":["Stocktake articles"],"summary":"Add stockplace articles","description":"Add articles from a stockplace to an existing stocktake. The stocktake must be in state NEW","operationId":"addStockplaceArticles","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"stockplace","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}},"application/xml":{"schema":{"type":"object"}}}}}},"delete":{"tags":["Stocktake articles"],"summary":"Remove stockplace articles","description":"Remove articles from a stockplace in an existing stocktake. The stocktake must be in state NEW","operationId":"removeStockplaceArticles","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"stockplace","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}},"application/xml":{"schema":{"type":"object"}}}}}}},"/v1/stocktake/{id}/copy":{"post":{"tags":["Stocktake"],"summary":"Copy stocktake","description":"Copy a specific inventory list and set state to NEW","operationId":"copyStocktake","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StocktakesResponseDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/StocktakesResponseDto"}}}}}}},"/v1/stocktake/{id}/articles/all":{"post":{"tags":["Stocktake articles"],"summary":"Add all articles","description":"Add all articles from store to an existing stocktake. The stocktake must be in state NEW","operationId":"addAllArticles","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}},"application/xml":{"schema":{"type":"object"}}}}}}},"/v1/stocktake/finished/{finished_list_id}/copy":{"post":{"tags":["Stocktake"],"summary":"Copy finished stocktake","description":"Copy a specific finished inventory list and set state to NEW","operationId":"copyFinishedStocktake","parameters":[{"name":"finished_list_id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StocktakesResponseDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/StocktakesResponseDto"}}}}}}},"/v1/roles":{"get":{"tags":["Role"],"summary":"Get roles","description":"Get list of roles","operationId":"getRoles","responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RolesResponseDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/RolesResponseDto"}}}}}},"post":{"tags":["Role"],"summary":"Add role","description":"Add new role","operationId":"addRole","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RoleDto"}}},"required":true},"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RolesResponseDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/RolesResponseDto"}}}}}}},"/v1/roles/suggest":{"post":{"tags":["Role"],"summary":"Suggest role","description":"Suggest role paths and fields from a free text description of what the role should be able to do. Nothing is saved.","operationId":"suggestRole","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RoleSuggestionRequestDto"}}},"required":true},"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RoleSuggestionDto"}}}}}}},"/v1/purchase_orders":{"get":{"tags":["Purchase orders"],"summary":"Get purchase orders","description":"Get a list of purchase orders based on query","operationId":"getPurchaseOrders","parameters":[{"name":"supplier_id","in":"query","required":false,"schema":{"type":"integer","format":"int64"}},{"name":"query","in":"query","required":false,"schema":{"type":"string","default":""}},{"name":"state","in":"query","required":false,"schema":{"type":"string","default":"-1"}},{"name":"order","in":"query","required":false,"schema":{"type":"string","default":"asc"}},{"name":"sort_column","in":"query","required":false,"schema":{"type":"string","default":"po_ref"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":0}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":50}},{"name":"start_delivered_date","in":"query","required":false,"schema":{"type":"integer","format":"int64"}},{"name":"end_delivered_date","in":"query","required":false,"schema":{"type":"integer","format":"int64"}}],"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PurchaseOrdersResponseDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/PurchaseOrdersResponseDto"}}}}}},"post":{"tags":["Purchase orders"],"summary":"Add purchase order","description":"Add a new purchase order","operationId":"addPurchaseOrder","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PurchaseOrderDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/PurchaseOrderDto"}}},"required":true},"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PurchaseOrderDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/PurchaseOrderDto"}}}}}}},"/v1/purchase_orders/{order_id}/deliver_all":{"post":{"tags":["Delivery"],"summary":"Deliver all articles","description":"Mark all articles as delivered for a purchase order, with the ordered amount","operationId":"registerDeliveryForAllProducts","parameters":[{"name":"order_id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}},"application/xml":{"schema":{"type":"object"}}}}}}},"/v1/purchase_orders/{order_id}/deliver":{"post":{"tags":["Delivery"],"summary":"Deliver article","description":"Mark article as delivered for a purchase order. If article has already been delivered, the deliveryArticle-object will add to the already delivered amount","operationId":"registerDelivery","parameters":[{"name":"order_id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PurchaseOrderDeliveryArticleDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/PurchaseOrderDeliveryArticleDto"}}},"required":true},"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PurchaseOrderDeliveryArticleDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/PurchaseOrderDeliveryArticleDto"}}}}}}},"/v1/purchase_orders/{order_id}/create_article":{"post":{"tags":["Purchase orders"],"summary":"Create article","description":"Create a new article from a purchase order row and replaces that row with the newly create article","operationId":"createArticleFromOrderRow","parameters":[{"name":"order_id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreatePurchaseOrderArticleDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/CreatePurchaseOrderArticleDto"}}},"required":true},"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PurchaseOrderDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/PurchaseOrderDto"}}}}}}},"/v1/purchase_orders/products":{"post":{"tags":["Purchase orders"],"summary":"Add articles to purchase order","description":"Add articles to a new or existing purchase order","operationId":"addPurchaseOrderProducts","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PurchaseOrderArticlesRequestDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/PurchaseOrderArticlesRequestDto"}}},"required":true},"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PurchaseOrderDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/PurchaseOrderDto"}}}}}}},"/v1/purchase_orders/production_order":{"post":{"tags":["Purchase orders"],"summary":"Create purchase orders from production order","description":"Create new purchase orders from a production order","operationId":"createPurchaseOrdersFromProductionOrder","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProductionOrderPurchaseOrderLightDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/ProductionOrderPurchaseOrderLightDto"}}},"required":true},"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PurchaseOrdersResponseDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/PurchaseOrdersResponseDto"}}}}}}},"/v1/purchase_orders/customer_order":{"post":{"tags":["Purchase orders"],"summary":"Create purchase order from customer order","description":"Create a new purchase order from a customer order","operationId":"addPurchaseOrderFromCustomerOrder","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PurchaseOrderLightDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/PurchaseOrderLightDto"}}},"required":true},"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PurchaseOrdersResponseDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/PurchaseOrdersResponseDto"}}}}}}},"/v1/projects":{"get":{"tags":["Projects"],"summary":"Get projects","description":"Get a list of projects","operationId":"getProjects","parameters":[{"name":"state","in":"query","required":false,"schema":{"type":"string","default":"-1"}},{"name":"from","in":"query","required":false,"schema":{"type":"integer","format":"int64","default":0}},{"name":"to","in":"query","required":false,"schema":{"type":"integer","format":"int64","default":0}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":0}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":50}},{"name":"query","in":"query","required":false,"schema":{"type":"string","default":""}},{"name":"cost","in":"query","required":false,"schema":{"type":"boolean","default":false}},{"name":"sort_column","in":"query","required":false,"schema":{"type":"string","default":"start_date"}},{"name":"order","in":"query","required":false,"schema":{"type":"string","default":"desc"}}],"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectsResponseDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/ProjectsResponseDto"}}}}}},"post":{"tags":["Projects"],"summary":"Add project","description":"Add a new project","operationId":"addProject","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectDto"}}},"required":true},"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/ProjectDto"}}}}}}},"/v1/projects/{id}/article":{"post":{"tags":["Projects"],"summary":"Add project article","description":"Add a new article to a project","operationId":"addProjectArticle","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectArticleDto"}}},"required":true},"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectArticleDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/ProjectArticleDto"}}}}}}},"/v1/projects/export":{"post":{"tags":["Export"],"summary":"Create export","description":"Create export file for articles in open projects","operationId":"createExportFile","parameters":[{"name":"save_document","in":"query","required":false,"schema":{"type":"boolean","default":false}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}},"application/xml":{"schema":{"type":"object"}}}}}}},"/v1/projects/customer_order/{customer_order_id}":{"post":{"tags":["Projects"],"summary":"Add project from customer order","description":"Create a new project (or link an existing one in state NEW) and connect it to a customer order. The order must be in state NEW, READY_FOR_PACKING or PACKING, and not already linked to a project","operationId":"createProjectFromCustomerOrder","parameters":[{"name":"customer_order_id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectCustomerOrderRequestDto"}}},"required":true},"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/ProjectDto"}}}}}}},"/v1/production_orders":{"post":{"tags":["Production orders"],"summary":"Add production order","description":"Add a new production order","operationId":"addProductionOrder","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProductionOrderDto"}}},"required":true},"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProductionOrderDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/ProductionOrderDto"}}}}}}},"/v1/production_orders/{order_id}/article":{"post":{"tags":["Production orders"],"summary":"Add article for production order","description":"Add a new article for production order","operationId":"addProductionOrderArticle","parameters":[{"name":"order_id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProductionOrderArticleDto"}}},"required":true},"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProductionOrderArticlesResponseDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/ProductionOrderArticlesResponseDto"}}}}}}},"/v1/production_orders/customer_order/{customer_order_id}":{"post":{"tags":["Customer orders"],"summary":"Create production order from customer order","description":"Create production order from an existing customer order","operationId":"createProductionOrderFromCustomerOrder","parameters":[{"name":"customer_order_id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProductionOrderDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/ProductionOrderDto"}}}}}}},"/v1/prices/lists":{"get":{"tags":["Pricelists"],"summary":"Get pricelists","description":"Get a list of pricelists","operationId":"getPricelists","parameters":[{"name":"query","in":"query","required":false,"schema":{"type":"string","default":""}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":0}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":25}},{"name":"order","in":"query","required":false,"schema":{"type":"string","default":"asc"}},{"name":"sort_column","in":"query","required":false,"schema":{"type":"string","default":"code"}}],"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PricelistsResponseDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/PricelistsResponseDto"}}}}}},"post":{"tags":["Pricelists"],"summary":"Add pricelist","description":"Add a new pricelist","operationId":"addPriceList","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PricelistDto"}}}},"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PricelistDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/PricelistDto"}}}}}}},"/v1/prices/lists/{id}/prices":{"get":{"tags":["Prices"],"summary":"Get prices","description":"Get a list of prices for a specific pricelist","operationId":"getAllPricesInList","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"since","in":"query","required":false,"schema":{"type":"integer","format":"int64","default":0}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":0}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":100}}],"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PricesResponseDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/PricesResponseDto"}}}}}},"post":{"tags":["Prices"],"summary":"Add price","description":"Add a new price for a pricelist and article","operationId":"addPrice","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PriceDto"}}}},"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PriceDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/PriceDto"}}}}}}},"/v1/prices/lists/{id}/default":{"post":{"tags":["Pricelists"],"summary":"Set default pricelist","description":"Set a pricelist as the default for the storegroup","operationId":"setDefaultPricelist","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PricelistDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/PricelistDto"}}}}}}},"/v1/pdf":{"post":{"tags":["PDF"],"summary":"Generate PDF from HTML","description":"Generate a PDF document from HTML","operationId":"generatePDF","parameters":[{"name":"paper_width","in":"query","required":false,"schema":{"type":"number","format":"float","default":210.0}},{"name":"paper_height","in":"query","required":false,"schema":{"type":"number","format":"float","default":297.0}},{"name":"paper_margin","in":"query","required":false,"schema":{"type":"number","format":"float","default":0.0}},{"name":"filename","in":"query","required":false,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"string"}}},"required":true},"responses":{"default":{"description":"default response","content":{"application/pdf":{"schema":{"type":"string"}},"application/json":{"schema":{"type":"string"}}}}}}},"/v1/payment_terms":{"get":{"tags":["Payment terms"],"summary":"Get payment terms","description":"Get a list of payment terms","operationId":"getPaymentTerms","parameters":[{"name":"since","in":"query","required":false,"schema":{"type":"integer","format":"int64","default":0}}],"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaymentTermsResponseDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/PaymentTermsResponseDto"}}}}}},"post":{"tags":["Payment terms"],"summary":"Add payment term","description":"Add a new payment term","operationId":"addPaymentTerm","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaymentTermDto"}}}},"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaymentTermDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/PaymentTermDto"}}}}}}},"/v1/mobile/version":{"post":{"tags":["Login"],"summary":"Get app version","description":"Get mobile application version","operationId":"getVersion","parameters":[{"name":"platform","in":"header","required":false,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MobileVersionRequestDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/MobileVersionRequestDto"}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}},"application/xml":{"schema":{"type":"object"}}}}}}},"/v1/mobile/reset":{"post":{"tags":["Login"],"summary":"Reset password","description":"Sends an email to provided user with instructions on how to reset password","operationId":"reset","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MobileResetPasswordDto"}}}},"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MobileResetPasswordResponseDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/MobileResetPasswordResponseDto"}}}}}}},"/v1/mobile/login":{"post":{"tags":["Login"],"summary":"Login using a mobile device","description":"Logging in using a mobile device either registers a new device for the account or updates the device with latest push-id. A list of accessible stores are returned","operationId":"login","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MobileLoginDto"}}}},"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MobileLoginResponseDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/MobileLoginResponseDto"}}}}}}},"/v1/mcp":{"get":{"tags":["MCP"],"summary":"MCP stream","description":"Open stream to client","operationId":"openStream","parameters":[{"name":"Last-Event-ID","in":"header","required":false,"schema":{"type":"string"}},{"name":"Mcp-Session-Id","in":"header","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"text/event-stream":{"schema":{"type":"object"}},"application/json":{"schema":{"type":"object"}}}}}},"post":{"tags":["MCP"],"summary":"MCP entry","description":"Entry point to MCP Server","operationId":"mcpEntryPoint","parameters":[{"name":"Mcp-Session-Id","in":"header","required":false,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/JsonRPCRequestDto"}}},"required":true},"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JsonRPCResponseDto"}}}}}},"delete":{"tags":["MCP"],"summary":"MCP close","description":"Close stream for client","operationId":"closeStream","parameters":[{"name":"Mcp-Session-Id","in":"header","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}}},"options":{"tags":["MCP"],"summary":"MCP options","description":"Options request","operationId":"options","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/v1/invoices/drafts/customer_order/{order_id}":{"post":{"tags":["Invoice drafts"],"summary":"Create invoice draft","description":"Create invoice drafts for articles in customer order","operationId":"createInvoiceDraftsForCustomerOrder","parameters":[{"name":"order_id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvoiceDraftsResponseDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/InvoiceDraftsResponseDto"}}}}}}},"/v1/integration/visma/login":{"post":{"tags":["Visma"],"summary":"Visma single sign on","description":"Callback request from Visma single sign on","operationId":"loginVisma","parameters":[{"name":"arg0","in":"query","required":true,"schema":{"type":"object","additionalProperties":{"type":"string"}}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/v1/integration/visma/initiate":{"post":{"tags":["Visma"],"summary":"Initiate Visma integration","description":"Save initial data for Visma integration","operationId":"initiateVisma","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}},"application/xml":{"schema":{"type":"object"}}}}}}},"/v1/integration/three_way_merge":{"get":{"tags":["Integration"],"summary":"Get three-way merge state","description":"Returns whether three-way merge is enabled for this store","operationId":"getThreeWayMergeState","responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ThreeWayMergeStateDto"}}}}}},"post":{"tags":["Integration"],"summary":"Set three-way merge state","description":"Enables or disables three-way merge for this store. Change is logged as an integration message for audit.","operationId":"setThreeWayMergeState","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ThreeWayMergeToggleRequestDto"}}},"required":true},"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ThreeWayMergeStateDto"}}}}}}},"/v1/integration/sync_event/summary/batch":{"post":{"tags":["Integration"],"summary":"Get sync event summary batch","description":"Get sync event summaries for a batch of entities (max 100 per request).","operationId":"getSyncEventSummaryBatch","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationSyncEventSummaryBatchRequestDto"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/v1/integration/sync_conflict/{id}/resolve":{"post":{"tags":["Integration"],"summary":"Resolve sync conflict","description":"Marks a conflict as resolved with the chosen resolution strategy","operationId":"resolveSyncConflict","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationSyncConflictResolveRequestDto"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/v1/integration/integration_health_digest":{"get":{"tags":["Integration"],"summary":"Get integration health digest state","description":"Returns whether the nightly integration-health digest email is enabled for this store","operationId":"getIntegrationHealthDigestState","responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationHealthDigestStateDto"}}}}}},"post":{"tags":["Integration"],"summary":"Set integration health digest state","description":"Enables or disables the nightly integration-health digest email for this store","operationId":"setIntegrationHealthDigestState","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationHealthDigestToggleRequestDto"}}},"required":true},"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationHealthDigestStateDto"}}}}}}},"/v1/integration/health/dead_letter/replay_bulk":{"post":{"tags":["Integration"],"summary":"Replay dead letter entries in bulk","description":"Replays multiple dead-letter entries by id. Returns a per-id result list including partial failures.","operationId":"replayDeadLetterBulk","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationReplayBulkRequestDto"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/v1/integration/fortnox/initiate":{"post":{"tags":["Fortnox"],"summary":"Initiate Fortnox integration","description":"Save initial data for Fortnox integration","operationId":"initiateFortnox","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}},"application/xml":{"schema":{"type":"object"}}}}}}},"/v1/integration/external":{"get":{"tags":["External Integration"],"summary":"Get credentials","description":"Get external integration credentials","operationId":"getExternalIntegrationCredentials","responses":{"default":{"description":"default response","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExternalCredentialsResponseDto"}}}}}},"post":{"tags":["External Integration"],"summary":"Add credentials","description":"Create new external integration credentials","operationId":"addExternalIntegrationCredentials","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExternalCredentialsRequestDto"}}},"required":true},"responses":{"default":{"description":"default response","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExternalCredentialsDto"}}}}}}},"/v1/integration/external/request":{"post":{"tags":["External Integration"],"summary":"Redirect request","description":"Redirects requests to external integrations and returns the data. Before the request is redirected credentials will be added. Credentials can be either in the headers-list, in the url or in the body. If a credential is left blank either in the header or in the url, the system will try to find the exact same key in the stored credential and replace the value with that. But a credential could also have the format {{my_key}} and the system will then replace my_key with the stored credential value of that key. This is how it must be done if you have credentials in the body-field","operationId":"pipeRequest","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExternalRequestDto"}}},"required":true},"responses":{"default":{"description":"default response","content":{"*/*":{"schema":{"type":"string"}}}}}}},"/v1/integration/dead_letter/{id}/reset":{"post":{"tags":["Integration"],"summary":"Reset dead letter retry state","description":"Clears permanently_failed and resumes automatic retry for a dead-letter entry, without replaying it immediately","operationId":"resetDeadLetter","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/v1/integration/dead_letter/{id}/replay":{"post":{"tags":["Integration"],"summary":"Replay dead letter entry","description":"Moves a dead-letter entry back to the integration queue and marks it resolved","operationId":"replayDeadLetter","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/v1/integration/dead_letter/{id}/dismiss":{"post":{"tags":["Integration"],"summary":"Dismiss dead letter entry","description":"Marks a dead-letter entry as resolved without replaying it","operationId":"dismissDeadLetter","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/v1/integration/custom":{"post":{"tags":["Integration"],"summary":"Send custom request","description":"Send custom request","operationId":"customRequest","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationCustomRequestDto"}}},"required":true},"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"type":"string"}},"application/xml":{"schema":{"type":"string"}}}}}}},"/v1/integration/bankid/{order_ref}/cancel":{"post":{"tags":["BankID"],"summary":"BankID cancel","description":"Cancel ongoing authentication","operationId":"cancelBankID","parameters":[{"name":"order_ref","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/v1/integration/bankid/start_auth":{"post":{"tags":["BankID"],"summary":"BankID start authentication","description":"Start BankID authentication using either QR Code or logging on to the same device","operationId":"authenticateBankID","responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BankIDAuthResponseDto"}}}}}}},"/v1/images/{article_id}":{"get":{"tags":["Article images"],"summary":"Get image for article","description":"Get image for article based on article-id","operationId":"getArticleImage","parameters":[{"name":"article_id","in":"path","required":true,"schema":{"type":"string"}},{"name":"default_url","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"default":{"description":"default response","content":{"image/png":{"schema":{"type":"string"}},"application/json":{"schema":{"type":"string"}}}}}},"post":{"tags":["Article images"],"summary":"Upload image for article","description":"Upload new image for article. If article had a previous image, it will be replaced. Max file size is 10Mb and the image will be scaled to max 300px x 300px","operationId":"addArticleImage","parameters":[{"name":"article_id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"multipart/form-data":{"schema":{"type":"object","properties":{"file":{"type":"string","format":"binary"}},"required":["file"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}},"application/xml":{"schema":{"type":"object"}}}}}},"delete":{"tags":["Article images"],"summary":"Delete image for article","description":"Delete image for article based on article-id","operationId":"deleteArticleImage","parameters":[{"name":"article_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}},"application/xml":{"schema":{"type":"object"}}}}}}},"/v1/images/store":{"get":{"tags":["Store images"],"summary":"Get image for store","description":"Get image for store","operationId":"getStoreImage","parameters":[{"name":"default_url","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"default":{"description":"default response","content":{"image/png":{"schema":{"type":"string"}},"application/json":{"schema":{"type":"string"}}}}}},"post":{"tags":["Store images"],"summary":"Upload image for store","description":"Upload new image for store. If store had a previous image, it will be replaced. Max file size is 10Mb and the image will be scaled to max 300px x 300px","operationId":"addStoreImage","requestBody":{"content":{"multipart/form-data":{"schema":{"type":"object","properties":{"file":{"type":"string","format":"binary"}},"required":["file"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}},"application/xml":{"schema":{"type":"object"}}}}}}},"/v1/images/barcode":{"post":{"tags":["Article images"],"summary":"Get barcode","description":"Get barcode","operationId":"getBarcodeImage","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BarcodeRequestDto"}}},"required":true},"responses":{"default":{"description":"default response","content":{"image/png":{"schema":{"type":"string"}},"image/svg+xml":{"schema":{"type":"string"}},"application/json":{"schema":{"type":"string"}}}}}}},"/v1/images/barcode/gs1":{"post":{"tags":["Article images"],"summary":"Get gs1 barcode","description":"Get GS1 barcode that can include batch information, best before and more","operationId":"getGS1BarcodeImage","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GS1BarcodeRequestDto"}}},"required":true},"responses":{"default":{"description":"default response","content":{"image/png":{"schema":{"type":"string"}},"image/svg+xml":{"schema":{"type":"string"}},"application/json":{"schema":{"type":"string"}}}}}}},"/v1/feature":{"get":{"tags":["Feature"],"summary":"Get features","description":"Get list of features installed for store. Only stores installed for user´s role will be returned","operationId":"getFeatures","parameters":[{"name":"include_native_features","in":"query","required":false,"schema":{"type":"boolean","default":false}}],"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FeaturesResponseDto"}}}}}},"post":{"tags":["Feature"],"summary":"Upload feature","description":"Upload a zipfile with feature files","operationId":"uploadFeature","parameters":[{"name":"accepted_permissions","in":"query","required":false,"schema":{"type":"string"}},{"name":"accepted_sandbox_removal","in":"query","required":false,"schema":{"type":"boolean"}}],"requestBody":{"content":{"multipart/form-data":{"schema":{"type":"object","properties":{"file":{"type":"string","format":"binary"}},"required":["file"]}}}},"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FeatureResponseDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/FeatureResponseDto"}}}}}}},"/v1/feature/{id}/token":{"post":{"tags":["Feature"],"summary":"Create feature token","description":"Mint a short-lived token the extension's sandboxed frontend authenticates with","operationId":"createFeatureToken","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FeatureTokenResponseDto"}}}}}}},"/v1/feature/{feature_id}/type/{structure_type}/data":{"get":{"tags":["Feature Data"],"summary":"Get feature datas","description":"Get data rows for a feature based on structure type and id. To be able to store data for a feature, the feature must have a data-structure defined in its config-file and be uploaded to the store. The data posted in this request MUST match the config´s data structure and MUST contain a key field","operationId":"getFeatureDatasForType","parameters":[{"name":"feature_id","in":"path","required":true,"schema":{"type":"string"}},{"name":"structure_type","in":"path","required":true,"schema":{"type":"string"}},{"name":"parent_type","in":"query","required":false,"schema":{"type":"string"}},{"name":"parent_id","in":"query","required":false,"schema":{"type":"string"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":0}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":25}},{"name":"query","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"type":"string"}}}}}},"post":{"tags":["Feature Data"],"summary":"Add feature datas","description":"Add or updates data from a list for a feature based on structure type and id. To be able to store data for a feature, the feature must have a data-structure defined in its config-file and be uploaded to the store. The data posted in this request MUST match the config´s data structure and MUST contain a key field","operationId":"addFeatureDatasForType","parameters":[{"name":"feature_id","in":"path","required":true,"schema":{"type":"string"}},{"name":"structure_type","in":"path","required":true,"schema":{"type":"string"}},{"name":"parent_type","in":"query","required":false,"schema":{"type":"string"}},{"name":"parent_id","in":"query","required":false,"schema":{"type":"string"}},{"name":"parent_url","in":"query","required":false,"schema":{"type":"string"}},{"name":"enable_for_group","in":"query","required":false,"schema":{"type":"boolean","default":false}}],"requestBody":{"content":{"application/json":{"schema":{"type":"string"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/v1/feature/{feature_id}/type/{structure_type}/data/{data_id}":{"get":{"tags":["Feature Data"],"summary":"Get feature data","description":"Get data for a feature based on structure type and id. To be able to store data for a feature, the feature must have a data-structure defined in its config-file and be uploaded to the store. The data posted in this request MUST match the config´s data structure and MUST contain a key field","operationId":"getFeatureDataForType","parameters":[{"name":"feature_id","in":"path","required":true,"schema":{"type":"string"}},{"name":"structure_type","in":"path","required":true,"schema":{"type":"string"}},{"name":"data_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"type":"string"}}}}}},"post":{"tags":["Feature Data"],"summary":"Add feature data","description":"Add or updates data for a feature based on structure type and id. To be able to store data for a feature, the feature must have a data-structure defined in its config-file and be uploaded to the store. The data posted in this request MUST match the config´s data structure and MUST contain a key field","operationId":"addFeatureDataForType","parameters":[{"name":"feature_id","in":"path","required":true,"schema":{"type":"string"}},{"name":"structure_type","in":"path","required":true,"schema":{"type":"string"}},{"name":"data_id","in":"path","required":true,"schema":{"type":"string"}},{"name":"parent_type","in":"query","required":false,"schema":{"type":"string"}},{"name":"parent_id","in":"query","required":false,"schema":{"type":"string"}},{"name":"parent_url","in":"query","required":false,"schema":{"type":"string"}},{"name":"enable_for_group","in":"query","required":false,"schema":{"type":"boolean","default":false}}],"requestBody":{"content":{"application/json":{"schema":{"type":"string"}}},"required":true},"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"type":"string"}}}}}},"delete":{"tags":["Feature Data"],"summary":"Delete feature data","description":"Delete data for a feature based on structure type and id","operationId":"deleteFeatureDataForType","parameters":[{"name":"feature_id","in":"path","required":true,"schema":{"type":"string"}},{"name":"structure_type","in":"path","required":true,"schema":{"type":"string"}},{"name":"data_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/v1/feature/{feature_id}/type/{structure_type}/data/delete":{"post":{"tags":["Feature Data"],"summary":"Delete feature datas","description":"Delete data from a list for a feature based on structure type and id. To be able to store data for a feature, the feature must have a data-structure defined in its config-file and be uploaded to the store. The data posted in this request MUST match the config´s data structure and MUST contain a key field","operationId":"deleteFeatureDatasForType","parameters":[{"name":"feature_id","in":"path","required":true,"schema":{"type":"string"}},{"name":"structure_type","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"string"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/v1/feature/{feature_id}/server/function":{"post":{"tags":["Feature Server Function"],"summary":"Execute server function","description":"Add server function to be executed. The function will be placed last in queue and be executed as quickly as possible","operationId":"executeFeatureServerFunction","parameters":[{"name":"feature_id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FeatureServerFunctionDto"}}},"required":true},"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FeatureQueueDto"}}}}}}},"/v1/feature/{feature_id}/log":{"post":{"tags":["Feature Server Function"],"summary":"Record feature frontend log events","description":"Record a batch of frontend events from inside the feature's own iframe. Merged into GET .../logs.","operationId":"addFeatureFrontendLog","parameters":[{"name":"feature_id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FeatureFrontendLogRequestDto"}}},"required":true},"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FeatureFrontendLogAckDto"}}}}}}},"/v1/feature/{feature_id}/file":{"post":{"tags":["Feature"],"summary":"Upload feature file","description":"Upload a file to an existing feature","operationId":"uploadFeatureFile","parameters":[{"name":"feature_id","in":"path","required":true,"schema":{"type":"string"}},{"name":"folder","in":"query","required":false,"schema":{"type":"string"}}],"requestBody":{"content":{"multipart/form-data":{"schema":{"type":"object","properties":{"file":{"type":"string","format":"binary"}},"required":["file"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}},"application/xml":{"schema":{"type":"object"}}}}}}},"/v1/feature/{feature_id}/email":{"post":{"tags":["Feature Email"],"summary":"Send feature email","description":"Send an email using a template declared in the feature's config. The template must be declared in the feature's email_templates config section, and all declared variables must be provided.","operationId":"sendFeatureEmail","parameters":[{"name":"feature_id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SendFeatureEmailRequestDto"}}},"required":true},"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StatusMessageDto"}}}}}}},"/v1/feature/{feature_id}/data":{"get":{"tags":["Feature Data"],"summary":"Get feature datas (default)","description":"Get data rows for a feature based on id. To be able to store data for a feature, the feature must have a data-structure defined in its config-file and be uploaded to the store. The data posted in this request MUST match the config´s data structure and MUST contain a key field","operationId":"getFeatureDatasForDefaultType","parameters":[{"name":"feature_id","in":"path","required":true,"schema":{"type":"string"}},{"name":"parent_type","in":"query","required":false,"schema":{"type":"string"}},{"name":"parent_id","in":"query","required":false,"schema":{"type":"string"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":0}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":25}},{"name":"query","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"type":"string"}}}}}},"post":{"tags":["Feature Data"],"summary":"Add feature datas (default)","description":"Add or updates data from a list for a feature based on id. To be able to store data for a feature, the feature must have a data-structure defined in its config-file and be uploaded to the store. The data posted in this request MUST match the config´s data structure and MUST contain a key field","operationId":"addFeatureDatasForDefaultType","parameters":[{"name":"feature_id","in":"path","required":true,"schema":{"type":"string"}},{"name":"parent_type","in":"query","required":false,"schema":{"type":"string"}},{"name":"parent_id","in":"query","required":false,"schema":{"type":"string"}},{"name":"parent_url","in":"query","required":false,"schema":{"type":"string"}},{"name":"enable_for_group","in":"query","required":false,"schema":{"type":"boolean","default":false}}],"requestBody":{"content":{"application/json":{"schema":{"type":"string"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/v1/feature/{feature_id}/data/{data_id}":{"get":{"tags":["Feature Data"],"summary":"Get feature data (default)","description":"Get data for a feature based on id. To be able to store data for a feature, the feature must have a data-structure defined in its config-file and be uploaded to the store. The data posted in this request MUST match the config´s data structure and MUST contain a key field","operationId":"getFeatureDataForDefaultType","parameters":[{"name":"feature_id","in":"path","required":true,"schema":{"type":"string"}},{"name":"data_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"type":"string"}}}}}},"post":{"tags":["Feature Data"],"summary":"Add feature data (default)","description":"Add or updates data for a feature based on id. To be able to store data for a feature, the feature must have a data-structure defined in its config-file and be uploaded to the store. The data posted in this request MUST match the config´s data structure and MUST contain a key field","operationId":"addFeatureDataForDefaultType","parameters":[{"name":"feature_id","in":"path","required":true,"schema":{"type":"string"}},{"name":"data_id","in":"path","required":true,"schema":{"type":"string"}},{"name":"parent_type","in":"query","required":false,"schema":{"type":"string"}},{"name":"parent_id","in":"query","required":false,"schema":{"type":"string"}},{"name":"parent_url","in":"query","required":false,"schema":{"type":"string"}},{"name":"enable_for_group","in":"query","required":false,"schema":{"type":"boolean","default":false}}],"requestBody":{"content":{"application/json":{"schema":{"type":"string"}}},"required":true},"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"type":"string"}}}}}},"delete":{"tags":["Feature Data"],"summary":"Delete feature data (default)","description":"Delete data for a feature based on id","operationId":"deleteFeatureDataForDefaultType","parameters":[{"name":"feature_id","in":"path","required":true,"schema":{"type":"string"}},{"name":"data_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/v1/feature/{feature_id}/data/delete":{"post":{"tags":["Feature Data"],"summary":"Delete feature datas (default)","description":"Delete data from a list for a feature based on id. To be able to store data for a feature, the feature must have a data-structure defined in its config-file and be uploaded to the store. The data posted in this request MUST match the config´s data structure and MUST contain a key field","operationId":"deleteFeatureDatasForDefaultType","parameters":[{"name":"feature_id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"string"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/v1/feature/store/install":{"post":{"tags":["Store feature"],"summary":"Install store feature","description":"Install feature from store","operationId":"installFeatureFromStore","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FeatureInstallDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/FeatureInstallDto"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}},"application/xml":{"schema":{"type":"object"}}}}}}},"/v1/feature/draft":{"get":{"tags":["Feature draft"],"summary":"List feature drafts","description":"List the caller's storegroup's extension-workshop drafts, newest first -- no manifest or file content","operationId":"listDrafts","responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FeatureDraftListResponseDto"}}}}}},"post":{"tags":["Feature draft"],"summary":"Create feature draft","description":"Create a new extension-workshop draft, materialized from the feature skeleton, as revision 1","operationId":"createDraft","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FeatureDraftCreateRequestDto"}}},"required":true},"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FeatureDraftDto"}}}}}}},"/v1/feature/draft/{draft_id}/validate":{"post":{"tags":["Feature draft"],"summary":"Validate draft","description":"Structured pre-build validation of a draft's current revision -- config.json against the schema, the real upload gate's permissions checks, data_tables[] name limits, menu[].file existence, JS/HTML conventions, a denylist, CSP, and the server-code dependency allowlist","operationId":"validateDraft","parameters":[{"name":"draft_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FeatureDraftValidationResponseDto"}}}}}}},"/v1/feature/draft/{draft_id}/submit":{"post":{"tags":["Feature draft"],"summary":"Submit feature draft to store","description":"Submit a PUBLISHED draft for Lagerkoll's review. This is a request for review, not a publish action","operationId":"submitDraftToStore","parameters":[{"name":"draft_id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FeatureStoreSubmissionCreateRequestDto"}}}},"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FeatureStoreSubmissionDto"}}}}}}},"/v1/feature/draft/{draft_id}/rollback":{"post":{"tags":["Feature draft"],"summary":"Rollback feature draft","description":"Roll back to an earlier revision by writing a new revision whose manifest copies toRevision's","operationId":"rollbackDraft","parameters":[{"name":"draft_id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FeatureDraftRollbackRequestDto"}}},"required":true},"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FeatureRevisionDto"}}}}}}},"/v1/feature/draft/{draft_id}/publish":{"post":{"tags":["Feature draft"],"summary":"Publish feature draft","description":"Queue a draft's current revision for publishing, gated on human approval in Lagerkoll's own UI","operationId":"publishDraft","parameters":[{"name":"draft_id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FeatureDraftPublishRequestDto"}}},"required":true},"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FeatureDraftPublishStartedDto"}}}}}}},"/v1/feature/draft/{draft_id}/publish/{job_id}/reject":{"post":{"tags":["Feature draft"],"summary":"Reject feature draft publish","description":"Reject a pending publish request","operationId":"rejectDraftPublish","parameters":[{"name":"draft_id","in":"path","required":true,"schema":{"type":"string"}},{"name":"job_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FeatureDraftJobDto"}}}}}}},"/v1/feature/draft/{draft_id}/publish/{job_id}/approve":{"post":{"tags":["Feature draft"],"summary":"Approve feature draft publish","description":"Approve a pending publish request, installing its pinned revision","operationId":"approveDraftPublish","parameters":[{"name":"draft_id","in":"path","required":true,"schema":{"type":"string"}},{"name":"job_id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FeatureDraftPublishApproveRequestDto"}}},"required":true},"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FeatureDraftJobDto"}}}}}}},"/v1/feature/draft/{draft_id}/install":{"post":{"tags":["Feature draft"],"summary":"Install draft to sandbox","description":"Install a draft's already-built current revision as a brand-new local feature, visible only to the installing author","operationId":"installDraft","parameters":[{"name":"draft_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FeatureDraftInstallStartedDto"}}}}}},"delete":{"tags":["Feature draft"],"summary":"Uninstall draft from sandbox","description":"Uninstall a draft's local sandbox install","operationId":"uninstallDraft","parameters":[{"name":"draft_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/v1/feature/draft/{draft_id}/files/delete":{"post":{"tags":["Feature draft"],"summary":"Delete draft files","description":"Remove several files from the draft's manifest in one new revision, all-or-nothing","operationId":"deleteDraftFiles","parameters":[{"name":"draft_id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FeatureDraftDeleteFilesRequestDto"}}},"required":true},"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FeatureDraftDeleteFilesResultDto"}}}}}}},"/v1/feature/draft/{draft_id}/file/patch":{"post":{"tags":["Feature draft"],"summary":"Patch draft file","description":"Replace one exact occurrence of 'old' with 'new' in an existing text file, creating a new revision","operationId":"patchDraftFile","parameters":[{"name":"draft_id","in":"path","required":true,"schema":{"type":"string"}},{"name":"path","in":"query","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FeatureDraftFilePatchRequestDto"}}},"required":true},"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FeatureDraftWriteResultDto"}}}}}}},"/v1/feature/draft/{draft_id}/export":{"post":{"tags":["Feature draft"],"summary":"Export draft repo","description":"Export a draft's FULL revision history as a downloadable artifact (zip or git bundle), asynchronously -- returns a job_id to poll via GET .../export/{job_id} (REST) or the getDraftJob tool","operationId":"exportDraftRepo","parameters":[{"name":"draft_id","in":"path","required":true,"schema":{"type":"string"}},{"name":"format","in":"query","required":false,"schema":{"type":"string","default":"zip"}}],"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FeatureDraftExportStartedDto"}}}}}}},"/v1/feature/draft/{draft_id}/build":{"post":{"tags":["Feature draft"],"summary":"Build draft","description":"Build a draft's current revision into a downloadable zip, asynchronously -- returns a job_id to poll via GET .../build/{job_id} (REST) or the getDraftJob tool. validateDraft runs implicitly first; a severity ERROR finding blocks the build (returned directly, same shape as POST .../validate) instead of starting a job","operationId":"buildDraft","parameters":[{"name":"draft_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FeatureDraftBuildStartedDto"}}}}}}},"/v1/feature/draft/submissions/{submission_id}/withdraw":{"post":{"tags":["Feature draft"],"summary":"Withdraw feature store submission","description":"Withdraw the caller's own open submission","operationId":"withdrawSubmission","parameters":[{"name":"submission_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FeatureStoreSubmissionDto"}}}}}}},"/v1/feature/create":{"post":{"tags":["Feature"],"summary":"Create feature","description":"Create stubs for a new feature. This method will return a zip-file with the basic files needed to develop the feature","operationId":"createFeature","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateFeatureRequestDto"}}},"required":true},"responses":{"default":{"description":"default response","content":{"application/zip":{"schema":{"type":"string"}},"application/json":{"schema":{"type":"string"}}}}}}},"/v1/events":{"get":{"tags":["Scheduled Events"],"summary":"Get scheduled events","description":"Get a list of scheduled events for store","operationId":"getScheduledEvents","responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduledEventsResponseDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/ScheduledEventsResponseDto"}}}}}},"post":{"tags":["Scheduled Events"],"summary":"Add scheduled event","description":"Add a new scheduled event with a trigger and action","operationId":"addScheduledEvent","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduledEventDto"}}}},"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduledEventDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/ScheduledEventDto"}}}}}}},"/v1/events/trigger":{"post":{"tags":["Scheduled Events"],"summary":"Trigger scheduled event","description":"Trigger a scheduled event","operationId":"triggerScheduledEvent","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TriggerScheduledEventDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/TriggerScheduledEventDto"}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}},"application/xml":{"schema":{"type":"object"}}}}}}},"/v1/documents":{"get":{"tags":["Document"],"summary":"Get document metadatas","description":"Get list of document metadatas","operationId":"getDocumentMetadatas","parameters":[{"name":"query","in":"query","required":false,"schema":{"type":"string","default":""}},{"name":"type","in":"query","required":false,"schema":{"type":"string","default":""}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":0}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":25}},{"name":"order","in":"query","required":false,"schema":{"type":"string","default":"desc"}},{"name":"sort_column","in":"query","required":false,"schema":{"type":"string","default":"created"}}],"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentsResponseDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/DocumentsResponseDto"}}}}}},"post":{"tags":["Document"],"summary":"Upload document","description":"Upload document. Max size is 4Mb.","operationId":"addDocument","parameters":[{"name":"description","in":"query","required":false,"schema":{"type":"string"}},{"name":"version","in":"query","required":false,"schema":{"type":"string"}},{"name":"filename","in":"query","required":false,"schema":{"type":"string"}},{"name":"read_permissions","in":"query","required":false,"schema":{"type":"array","items":{"type":"integer","format":"int64"}}},{"name":"type","in":"query","required":false,"schema":{"type":"string"}}],"requestBody":{"content":{"multipart/form-data":{"schema":{"type":"object","properties":{"file":{"type":"string","format":"binary"}},"required":["file"]}}}},"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/DocumentDto"}}}}}}},"/v1/documents/{document_name}/copy":{"post":{"tags":["Document"],"summary":"Copy document","description":"Copy a document to a new document with new filename and description","operationId":"copyDocument","parameters":[{"name":"document_name","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentDto"}}},"required":true},"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/DocumentDto"}}}}}}},"/v1/customers":{"get":{"tags":["Customers"],"summary":"Get customers","description":"Get a list of customers based on query","operationId":"getCustomers","parameters":[{"name":"query","in":"query","required":false,"schema":{"type":"string","default":""}},{"name":"type","in":"query","required":false,"schema":{"type":"string","default":"UNDEFINED"}},{"name":"since","in":"query","required":false,"schema":{"type":"integer","format":"int64","default":0}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":0}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":100}},{"name":"order","in":"query","required":false,"schema":{"type":"string","default":"asc"}},{"name":"sort_column","in":"query","required":false,"schema":{"type":"string","default":"name"}},{"name":"pricelist_id","in":"query","required":false,"schema":{"type":"integer","format":"int64"}},{"name":"filter_non_active","in":"query","required":false,"schema":{"type":"boolean","default":false}}],"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomersResponseDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/CustomersResponseDto"}}}}}},"post":{"tags":["Customers"],"summary":"Add customer","description":"Add a new customer","operationId":"addCustomer","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomerDto"}}},"required":true},"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomerDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/CustomerDto"}}}}}}},"/v1/customers/{customer_id}/invite":{"post":{"tags":["Customers"],"summary":"Invite customer","description":"Invite customer to customer portal. Customer can then login to the customer and place orders","operationId":"inviteCustomer","parameters":[{"name":"customer_id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserDto"}}},"required":true},"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/UserDto"}}}}}}},"/v1/customers/tag":{"post":{"tags":["Customers"],"summary":"Add customer tags","description":"Add customer tags for store group","operationId":"addCustomerTag","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomerTagDto"}}},"required":true},"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomerTagDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/CustomerTagDto"}}}}}}},"/v1/customers/import/{template_id}":{"post":{"tags":["Customers"],"summary":"Import customers","description":"Import customers from excel","operationId":"importCustomers","parameters":[{"name":"template_id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"update_only","in":"query","required":false,"schema":{"type":"boolean","default":false}}],"requestBody":{"content":{"multipart/form-data":{"schema":{"type":"object","properties":{"file":{"type":"string","format":"binary"}},"required":["file"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}},"application/xml":{"schema":{"type":"object"}}}}}}},"/v1/customers/import/test/{template_id}":{"post":{"tags":["Customers"],"summary":"Test import customers","description":"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","operationId":"importCustomersTest","parameters":[{"name":"template_id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"requestBody":{"content":{"multipart/form-data":{"schema":{"type":"object","properties":{"file":{"type":"string","format":"binary"}},"required":["file"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}},"application/xml":{"schema":{"type":"object"}}}}}}},"/v1/customers/import/template":{"post":{"tags":["Templates"],"summary":"Add customer import template","description":"Add a customer import template","operationId":"addImportTemplate","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomerImportTemplateDto"}}},"required":true},"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomerImportTemplateDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/CustomerImportTemplateDto"}}}}}}},"/v1/customers/export/{template_id}":{"post":{"tags":["Export"],"summary":"Create export","description":"Create a customer export file for today´s date, using the specific template","operationId":"createExportFile_1","parameters":[{"name":"template_id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}},"application/xml":{"schema":{"type":"object"}}}}}}},"/v1/customer_orders":{"get":{"tags":["Customer orders"],"summary":"Get customer orders","description":"Get a list of customer orders","operationId":"getCustomerOrders","parameters":[{"name":"customer_id","in":"query","required":false,"schema":{"type":"integer","format":"int64"}},{"name":"state","in":"query","required":false,"schema":{"type":"string","default":"-1"}},{"name":"since","in":"query","required":false,"schema":{"type":"integer","format":"int64","default":0}},{"name":"invoiced_end","in":"query","required":false,"schema":{"type":"integer","format":"int64"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":0}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":50}},{"name":"query","in":"query","required":false,"schema":{"type":"string","default":""}},{"name":"include_fifo","in":"query","required":false,"schema":{"type":"boolean","default":false}},{"name":"sort_column","in":"query","required":false,"schema":{"type":"string","default":"id"}},{"name":"order","in":"query","required":false,"schema":{"type":"string","default":"desc"}}],"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomerOrdersResponseDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/CustomerOrdersResponseDto"}}}}}},"post":{"tags":["Customer orders"],"summary":"Add customer order","description":"Add a new customer order","operationId":"addCustomerOrder","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomerOrderDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/CustomerOrderDto"}}},"required":true},"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomerOrderDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/CustomerOrderDto"}}}}}}},"/v1/customer_orders/{order_id}/picking_lists/{list_id}/rest":{"post":{"tags":["Picking lists"],"summary":"Picking list rest","description":"Create rest list from a picking list","operationId":"createRestPickingList","parameters":[{"name":"order_id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"list_id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PurchaseOrdersResponseDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/PurchaseOrdersResponseDto"}}}}}}},"/v1/customer_orders/{order_id}/dropshipment":{"post":{"tags":["Customer orders"],"summary":"Create drop shipment","description":"Create drop shipment for this customer order. One or more purchase orders will be connected with content from this customer order. The customer order will be moved to drop shipment state","operationId":"createDropShipment","parameters":[{"name":"order_id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"is_dropshipment","in":"query","required":false,"schema":{"type":"boolean","default":true}}],"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PurchaseOrdersResponseDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/PurchaseOrdersResponseDto"}}}}}}},"/v1/customer_orders/offers":{"get":{"tags":["Offers"],"summary":"Get offers","description":"Get a list of offers","operationId":"getOffers","parameters":[{"name":"since","in":"query","required":false,"schema":{"type":"integer","format":"int64","default":0}},{"name":"state","in":"query","required":false,"schema":{"type":"string","default":"-1"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":0}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":50}},{"name":"query","in":"query","required":false,"schema":{"type":"string","default":""}},{"name":"sort_column","in":"query","required":false,"schema":{"type":"string","default":"id"}},{"name":"order","in":"query","required":false,"schema":{"type":"string","default":"desc"}}],"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OffersResponseDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/OffersResponseDto"}}}}}},"post":{"tags":["Offers"],"summary":"Add offer","description":"Add a new offer","operationId":"addOffer","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OfferDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/OfferDto"}}},"required":true},"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OfferDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/OfferDto"}}}}}}},"/v1/customer_delivery_terms":{"get":{"tags":["Delivery terms"],"summary":"Get delivery terms","description":"Get a list of delivery terms for customer orders","operationId":"getCustomerDeliveryTerms","parameters":[{"name":"since","in":"query","required":false,"schema":{"type":"integer","format":"int64","default":0}}],"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomerDeliveryTermsResponseDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/CustomerDeliveryTermsResponseDto"}}}}}},"post":{"tags":["Delivery terms"],"summary":"Add delivery term","description":"Add a new delivery term for customer orders","operationId":"addCustomerDeliveryTerm","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomerDeliveryTermDto"}}}},"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomerDeliveryTermDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/CustomerDeliveryTermDto"}}}}}}},"/v1/costcenters":{"get":{"tags":["Cost centers"],"summary":"Get cost centers","description":"Get a list of cost centers for customer orders","operationId":"getCostCenters","parameters":[{"name":"since","in":"query","required":false,"schema":{"type":"integer","format":"int64","default":0}}],"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CostCentersResponseDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/CostCentersResponseDto"}}}}}},"post":{"tags":["Cost centers"],"summary":"Add cost centers","description":"Add a new cost center","operationId":"addCostCenter","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CostCenterDto"}}}},"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CostCenterDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/CostCenterDto"}}}}}}},"/v1/categories":{"get":{"tags":["Categories"],"summary":"Get categories","description":"Get a list of categories for articles","operationId":"getCategories","parameters":[{"name":"query","in":"query","required":false,"schema":{"type":"string"}},{"name":"since","in":"query","required":false,"schema":{"type":"integer","format":"int64","default":0}}],"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CategoriesResponseDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/CategoriesResponseDto"}}}}}},"post":{"tags":["Categories"],"summary":"Add new category","description":"Add a new category","operationId":"addCategory","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CategoryDto"}}}},"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CategoryDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/CategoryDto"}}}}}}},"/v1/assistant/chat":{"post":{"tags":["Assistant"],"summary":"Chat","description":"Send a message to the assistant and receive a streamed response","operationId":"chat","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssistantChatRequestDto"}}},"required":true},"responses":{"200":{"description":"OK","content":{"text/event-stream":{"schema":{"type":"object"}}}}}}},"/v1/articles":{"get":{"tags":["Articles"],"summary":"Get articles","description":"Get a list of articles based on parameters","operationId":"getArticles","parameters":[{"name":"query","in":"query","required":false,"schema":{"type":"string","default":""}},{"name":"since","in":"query","required":false,"schema":{"type":"integer","format":"int64"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":0}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":25}},{"name":"order","in":"query","required":false,"schema":{"type":"string","default":"desc"}},{"name":"sort_column","in":"query","required":false,"schema":{"type":"string","default":"query"}},{"name":"details","in":"query","required":false,"schema":{"type":"boolean","default":true}},{"name":"tags","in":"query","required":false,"schema":{"type":"boolean","default":true}},{"name":"prices","in":"query","required":false,"schema":{"type":"boolean","default":false}},{"name":"include_purchase_prices","in":"query","required":false,"schema":{"type":"boolean","default":false}},{"name":"filter_outof_stock","in":"query","required":false,"schema":{"type":"boolean","default":false}},{"name":"filter_stock_warning","in":"query","required":false,"schema":{"type":"boolean","default":false}},{"name":"filter_non_stock","in":"query","required":false,"schema":{"type":"boolean","default":false}},{"name":"filter_non_active","in":"query","required":false,"schema":{"type":"boolean","default":false}},{"name":"filter_regardless_bundled","in":"query","required":false,"schema":{"type":"boolean","default":true}},{"name":"include_image_last_updated","in":"query","required":false,"schema":{"type":"boolean","default":false}},{"name":"include_bundle","in":"query","required":false,"schema":{"type":"boolean","default":false}},{"name":"include_next_delivery","in":"query","required":false,"schema":{"type":"boolean","default":false}},{"name":"include_batches","in":"query","required":false,"schema":{"type":"boolean","default":false}},{"name":"include_fifo_value","in":"query","required":false,"schema":{"type":"boolean","default":false}},{"name":"supplier_id","in":"query","required":false,"schema":{"type":"integer","format":"int64"}}],"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ArticlesResponseDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/ArticlesResponseDto"}}}}}},"post":{"tags":["Articles"],"summary":"Add new article","description":"Add a new article","operationId":"addArticle","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ArticleDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/ArticleDto"}}},"required":true},"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ArticleDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/ArticleDto"}}}}}}},"/v1/articles/{id}/batch/serialnumber/inactivate_empty":{"post":{"tags":["Batches"],"summary":"Inactivate zero-balance batches/serial numbers","description":"Bulk-inactivate every batch AND serial number with amount = 0 for a single article in the caller's store. Returns the per-kind counts that were flipped. Idempotent — re-calling immediately returns 0/0.","operationId":"inactivateZeroBalanceBatches","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}},"application/xml":{"schema":{"type":"object"}}}}}}},"/v1/articles/{id}/article_units":{"get":{"tags":["Article units"],"summary":"Get article units","description":"Get article units for a specific article","operationId":"getArticleUnits","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"include_default","in":"query","required":false,"schema":{"type":"boolean","default":false}}],"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ArticleUnitsResponseDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/ArticleUnitsResponseDto"}}}}}},"post":{"tags":["Article units"],"summary":"Add article unit","description":"Add article unit for a specific article","operationId":"addArticleUnit","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ArticleUnitDto"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}},"application/xml":{"schema":{"type":"object"}}}}}}},"/v1/articles/{id}/article_units/list":{"post":{"tags":["Article units"],"summary":"Set article units","description":"Replace list of article units for a specific article","operationId":"setArticleUnits","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ArticleUnitsResponseDto"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}},"application/xml":{"schema":{"type":"object"}}}}}}},"/v1/articles/{article_id}/serialnumber":{"post":{"tags":["Batches"],"summary":"Add serial number","description":"Add serial number to an existing article","operationId":"addSerialNumber","parameters":[{"name":"article_id","in":"path","required":true,"schema":{"type":"string"}},{"name":"update_article_amount","in":"query","required":false,"schema":{"type":"boolean","default":false}},{"name":"reason","in":"query","required":false,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ArticleBatchDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/ArticleBatchDto"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}},"application/xml":{"schema":{"type":"object"}}}}}}},"/v1/articles/{article_id}/serialnumber/list":{"post":{"tags":["Batches"],"summary":"Add serial numbers sequence","description":"Create a sequence of serial numbers to an existing article","operationId":"addSerialnumberList","parameters":[{"name":"article_id","in":"path","required":true,"schema":{"type":"string"}},{"name":"prefix","in":"query","required":false,"schema":{"type":"string","default":""}},{"name":"start","in":"query","required":false,"schema":{"type":"integer","format":"int64","default":1}},{"name":"length","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":0}},{"name":"amount","in":"query","required":false,"schema":{"type":"integer","format":"int64","default":1}},{"name":"suffix","in":"query","required":false,"schema":{"type":"string","default":""}},{"name":"stock_place","in":"query","required":false,"schema":{"type":"string","default":""}},{"name":"update_article_amount","in":"query","required":false,"schema":{"type":"boolean","default":false}},{"name":"reason","in":"query","required":false,"schema":{"type":"string"}},{"name":"set_barcode_from_serialnumber","in":"query","required":false,"schema":{"type":"boolean","default":false}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}},"application/xml":{"schema":{"type":"object"}}}}}}},"/v1/articles/{article_id}/batch":{"post":{"tags":["Batches"],"summary":"Add batch","description":"Add batch to an existing article","operationId":"addBatch","parameters":[{"name":"article_id","in":"path","required":true,"schema":{"type":"string"}},{"name":"update_article_amount","in":"query","required":false,"schema":{"type":"boolean","default":false}},{"name":"reason","in":"query","required":false,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ArticleBatchDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/ArticleBatchDto"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}},"application/xml":{"schema":{"type":"object"}}}}}}},"/v1/articles/tag":{"post":{"tags":["Articles"],"summary":"Add article tags","description":"Add article tags for store group","operationId":"addArticleTag","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ArticleTagDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/ArticleTagDto"}}},"required":true},"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ArticleTagDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/ArticleTagDto"}}}}}}},"/v1/articles/labels/print":{"get":{"tags":["Print"],"summary":"Print labels for several articles","description":"Print labels for several articles, given as a required, comma-separated list of article ids in the articles parameter","operationId":"printArticlesLabels","parameters":[{"name":"articles","in":"query","required":false,"schema":{"type":"string"}},{"name":"count","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":1}},{"name":"label_width","in":"query","required":false,"schema":{"type":"number","format":"float","default":110.0}},{"name":"label_height","in":"query","required":false,"schema":{"type":"number","format":"float","default":28.0}},{"name":"label_margin_width","in":"query","required":false,"schema":{"type":"number","format":"float","default":2.0}},{"name":"label_margin_height","in":"query","required":false,"schema":{"type":"number","format":"float","default":2.0}},{"name":"paper_width","in":"query","required":false,"schema":{"type":"number","format":"float","default":210.0}},{"name":"paper_height","in":"query","required":false,"schema":{"type":"number","format":"float","default":297.0}},{"name":"paper_margin_width","in":"query","required":false,"schema":{"type":"number","format":"float","default":0.0}},{"name":"paper_margin_height","in":"query","required":false,"schema":{"type":"number","format":"float","default":0.0}}],"responses":{"default":{"description":"default response","content":{"application/pdf":{"schema":{"type":"string"}},"application/json":{"schema":{"type":"string"}}}}}},"post":{"tags":["Print"],"summary":"Print labels for articles and batches","description":"Print labels for a list of articles and/or batches/serial numbers","operationId":"printLabelsForBatches","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PrintLabelsRequestDto"}}},"required":true},"responses":{"default":{"description":"default response","content":{"application/pdf":{"schema":{"type":"string"}},"application/json":{"schema":{"type":"string"}}}}}}},"/v1/articles/import/{template_id}":{"post":{"tags":["Articles"],"summary":"Import articles","description":"Import articles from excel or tsv","operationId":"importArticles","parameters":[{"name":"template_id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"update_only","in":"query","required":false,"schema":{"type":"boolean","default":false}},{"name":"register_delivery","in":"query","required":false,"schema":{"type":"boolean","default":false}}],"requestBody":{"content":{"multipart/form-data":{"schema":{"type":"object","properties":{"file":{"type":"string","format":"binary"}},"required":["file"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}},"application/xml":{"schema":{"type":"object"}}}}}}},"/v1/articles/import/test/{template_id}":{"post":{"tags":["Articles"],"summary":"Test import articles","description":"Test import articles from excel or tsv. This will read the first data-row from the uploaded file and return the result. Can be used to verify that the template being used is mapped correctly. No actual changed will be saved","operationId":"importArticlesTest","parameters":[{"name":"template_id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"requestBody":{"content":{"multipart/form-data":{"schema":{"type":"object","properties":{"file":{"type":"string","format":"binary"}},"required":["file"]}}}},"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"type":"object"}},"application/xml":{"schema":{"type":"object"}}}}}}},"/v1/articles/import/template":{"post":{"tags":["Templates"],"summary":"Add article import template","description":"Add an article import template","operationId":"addImportTemplate_1","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ArticleImportTemplateDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/ArticleImportTemplateDto"}}},"required":true},"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ArticleImportTemplateDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/ArticleImportTemplateDto"}}}}}}},"/v1/articles/import/bundle":{"post":{"tags":["Articles"],"summary":"Import bundled articles","description":"Import structure for bundled articles from excel or tsv","operationId":"importBundleArticles","parameters":[{"name":"file_type","in":"query","required":false,"schema":{"type":"string","default":"tsv"}}],"requestBody":{"content":{"multipart/form-data":{"schema":{"type":"object","properties":{"file":{"type":"string","format":"binary"}},"required":["file"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}},"application/xml":{"schema":{"type":"object"}}}}}}},"/v1/articles/import/bundle/test":{"post":{"tags":["Articles"],"summary":"Test import bundled articles","description":"Test import structure for bundled articles from excel or tsv. No actual changed will be saved","operationId":"importBundleArticlesTest","parameters":[{"name":"file_type","in":"query","required":false,"schema":{"type":"string","default":"tsv"}}],"requestBody":{"content":{"multipart/form-data":{"schema":{"type":"object","properties":{"file":{"type":"string","format":"binary"}},"required":["file"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}},"application/xml":{"schema":{"type":"object"}}}}}}},"/v1/articles/import/batch_serial":{"post":{"tags":["Batches"],"summary":"Import batches and serial numbers","description":"Import batches and serial numbers for articles from excel or tsv","operationId":"importBatchSerial","parameters":[{"name":"file_type","in":"query","required":false,"schema":{"type":"string","default":"tsv"}}],"requestBody":{"content":{"multipart/form-data":{"schema":{"type":"object","properties":{"file":{"type":"string","format":"binary"}},"required":["file"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}},"application/xml":{"schema":{"type":"object"}}}}}}},"/v1/articles/import/batch_serial/test":{"post":{"tags":["Batches"],"summary":"Test import batches and serial numbers","description":"Test import batches and serial numbers for articles from excel or tsv. No actual changed will be saved","operationId":"importBatchSerialTest","parameters":[{"name":"file_type","in":"query","required":false,"schema":{"type":"string","default":"tsv"}}],"requestBody":{"content":{"multipart/form-data":{"schema":{"type":"object","properties":{"file":{"type":"string","format":"binary"}},"required":["file"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}},"application/xml":{"schema":{"type":"object"}}}}}}},"/v1/articles/export/{template_id}":{"post":{"tags":["Export"],"summary":"Create export","description":"Create an article export file for today´s date, using the specific template. The export is triggered on an asynchronous lambda — this endpoint only requests page 0 with a page size of 100 articles and returns an empty 200 OK response immediately, before the export file exists; the finished file is mailed to the calling user's own account email","operationId":"createExportFile_2","parameters":[{"name":"template_id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}},"application/xml":{"schema":{"type":"object"}}}}}}},"/v1/articles/export/{template_id}/stock_changes":{"post":{"tags":["Export"],"summary":"Create export for stock changes","description":"Create export file for specific period and template that lists stock changes","operationId":"createExportFileForStockChanges","parameters":[{"name":"template_id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"start_date","in":"query","required":false,"schema":{"type":"string"}},{"name":"end_date","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}},"application/xml":{"schema":{"type":"object"}}}}}}},"/v1/articles/export/{template_id}/date/{date}":{"post":{"tags":["Export"],"summary":"Create export for date","description":"Create export file for specific date and template","operationId":"createExportFileForDate","parameters":[{"name":"template_id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"date","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}},"application/xml":{"schema":{"type":"object"}}}}}}},"/v1/articles/export/user_checkout":{"post":{"tags":["Export"],"summary":"Create export for user checkou","description":"Create export file for specific period that lists user checkouts","operationId":"createExportFileForUserCheckout","parameters":[{"name":"start_date","in":"query","required":false,"schema":{"type":"string"}},{"name":"end_date","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}},"application/xml":{"schema":{"type":"object"}}}}}}},"/v1/articles/export/bundle":{"post":{"tags":["Export"],"summary":"Export bundled articles","description":"Create export file for today´s date for bundled articles","operationId":"exportBundledArticles","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}},"application/xml":{"schema":{"type":"object"}}}}}}},"/v1/account/verify":{"post":{"tags":["User Account"],"summary":"Verify user account","description":"Verify the user account. If successful the account is activated and can be used to login with","operationId":"verifyAccount","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VerificationDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/VerificationDto"}}}},"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VerificationResponseDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/VerificationResponseDto"}}}}}}},"/v1/account/users/invite":{"post":{"tags":["User Account"],"summary":"Invite user","description":"Invite user to store","operationId":"inviteUser","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/UserDto"}}}},"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/UserDto"}}}}}}},"/v1/account/support":{"post":{"tags":["Company Account"],"summary":"Send support","description":"Send support mail to Lagerkoll","operationId":"sendSupport","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SupportDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/SupportDto"}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}},"application/xml":{"schema":{"type":"object"}}}}}}},"/v1/account/status":{"get":{"tags":["Status"],"summary":"Get status messages","description":"Get a list of the latest status messages saved for the store","operationId":"getStatusMessages","parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":0}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":100}}],"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StatusMessagesResponseDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/StatusMessagesResponseDto"}}}}}},"post":{"tags":["Status"],"summary":"Send status message","description":"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","operationId":"addStatusMessage","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StatusMessageDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/StatusMessageDto"}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}},"application/xml":{"schema":{"type":"object"}}}}}},"delete":{"tags":["Status"],"summary":"Remove all messages","description":"Remove all status messages for the store","operationId":"removeAllStatusMessages","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}},"application/xml":{"schema":{"type":"object"}}}}}}},"/v1/account/register":{"post":{"tags":["Company Account"],"summary":"Register company account","description":"Register a new company account. Before user is allowed to do this, he/she must first view and accept the license agreement","operationId":"registerAccount","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/AccountDto"}}}},"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountResponseDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/AccountResponseDto"}}}}}}},"/v1/account/promotion/invite":{"post":{"tags":["Company Account"],"summary":"Invite new company to Lagerkoll","description":"Invite a new company to use Lagerkoll and get a discount on the next invoice","operationId":"promotionCodeInvite","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PromotionCodeInviteRequestDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/PromotionCodeInviteRequestDto"}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}},"application/xml":{"schema":{"type":"object"}}}}}}},"/v1/account/login":{"get":{"tags":["User Account"],"summary":"Get logged in user","description":"Get logged in user, same response as in login","operationId":"getLoggedInUser","responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LoginResponseDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/LoginResponseDto"}}}}}},"post":{"tags":["User Account"],"summary":"Log in","description":"Login to your Lagerkoll user account to get a valid user token to be used for other requests","operationId":"login_1","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LoginDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/LoginDto"}}}},"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LoginResponseDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/LoginResponseDto"}}}}}}},"/v1/account/login/webtoken/{web_token}":{"post":{"tags":["User Account"],"summary":"Log in with webtoken","description":"Login to your user account using a valid webtoken","operationId":"loginWithWebToken","parameters":[{"name":"web_token","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LoginResponseDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/LoginResponseDto"}}}}}}},"/v1/account/login/sso":{"post":{"tags":["User Account"],"summary":"Log in with SSO","description":"Login to your Lagerkoll user account and connect your SSO user with your Lagerkoll user","operationId":"loginSSO","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LoginSSODto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/LoginSSODto"}}}},"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LoginResponseDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/LoginResponseDto"}}}}}}},"/v1/account/email/send":{"post":{"tags":["Company Account"],"summary":"Send email","description":"Send email to an email address","operationId":"sendEmail","parameters":[{"name":"toAddress","in":"query","required":false,"schema":{"type":"string"}},{"name":"subject","in":"query","required":false,"schema":{"type":"string"}},{"name":"message","in":"query","required":false,"schema":{"type":"string"}}],"requestBody":{"content":{"multipart/form-data":{"schema":{"type":"object","properties":{"file":{"type":"string","format":"binary"}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}},"application/xml":{"schema":{"type":"object"}}}}}}},"/v1/webhooks/{id}":{"get":{"tags":["Webhooks"],"summary":"Get webhooks for feature","description":"Get all webhooks for a feature","operationId":"getWebhooksForFeature","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookResponseDto"}}}}}},"delete":{"tags":["Webhooks"],"summary":"Delete webhook","description":"Delete webhook","operationId":"deleteWebhook","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}},"application/xml":{"schema":{"type":"object"}}}}}}},"/v1/vats/codes":{"get":{"tags":["VATs"],"summary":"Get VAT codes","description":"Get a list of VAT codes","operationId":"getVATCodes","responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VATCodesResponseDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/VATCodesResponseDto"}}}}}}},"/v1/url/{url}":{"get":{"tags":["Url"],"summary":"Redirect url","description":"Redirect to where the short url points","operationId":"redirectUrl","parameters":[{"name":"url","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"object"}}}}}}},"/v1/system/releasenotes":{"get":{"tags":["System"],"summary":"Get release notes","description":"Get release notes","operationId":"getReleaseNotes","responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReleaseNotesDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/ReleaseNotesDto"}}}}}}},"/v1/system/ping":{"get":{"tags":["System"],"summary":"Ping","description":"Ping server to check that it is alive","operationId":"ping","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}},"application/xml":{"schema":{"type":"object"}}}}}}},"/v1/system/message":{"get":{"tags":["System"],"summary":"Get system message","description":"Get current active system message","operationId":"getSystemMessage","responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SystemMessageDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/SystemMessageDto"}}}}}}},"/v1/system/config":{"get":{"tags":["System"],"summary":"Get system configuration","description":"Get configurations valid for this system","operationId":"getSystemConfig","responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SystemConfigDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/SystemConfigDto"}}}}}}},"/v1/stores/retention":{"get":{"tags":["Stores"],"summary":"Get retention info","description":"Retention information is used to bundle useful information about the company account's status","operationId":"getRetentionInfo","responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RetentionResponseDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/RetentionResponseDto"}}}}}}},"/v1/stores/calculatedDeactivationDate":{"get":{"tags":["Stores"],"summary":"Get calculated deactivation date","description":"Calculates what deactivation date would be for an active store","operationId":"getCalculatedDeactivationDate","responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DateResponseDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/DateResponseDto"}}}}}}},"/v1/stocktake/{id}/print":{"get":{"tags":["Stocktake"],"summary":"Print stocktake","description":"Print stocktake to PDF. If stocktake contains more than 1000 articles the result be sent by email when done. If no email is provided in the request, the mail is sent to logged in user","operationId":"printStocktake","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"order","in":"query","required":false,"schema":{"type":"string","default":"asc"}},{"name":"sort_column","in":"query","required":false,"schema":{"type":"string","default":"art"}},{"name":"email","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"default":{"description":"default response","content":{"application/pdf":{"schema":{"type":"string"}},"application/json":{"schema":{"type":"string"}}}}}}},"/v1/stocktake/{id}/articles/{article_id}":{"get":{"tags":["Stocktake articles"],"summary":"Get stocktake article","description":"Get a specific article from a stocktake","operationId":"getStocktakeArticle","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"article_id","in":"path","required":true,"schema":{"type":"string"}},{"name":"batch_id","in":"query","required":false,"schema":{"type":"string"}},{"name":"serial_nr","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StocktakeArticleDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/StocktakeArticleDto"}}}}}}},"/v1/stocktake/{id}/articles/search":{"get":{"tags":["Stocktake articles"],"summary":"Search articles","description":"Search article in stock and get flag to show if the article is already part of the stocktake","operationId":"searchArticlesWithStocktakeStatus","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"query","in":"query","required":false,"schema":{"type":"string"}},{"name":"supplier_id","in":"query","required":false,"schema":{"type":"integer","format":"int64"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":0}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":25}},{"name":"order","in":"query","required":false,"schema":{"type":"string","default":"asc"}},{"name":"sort_column","in":"query","required":false,"schema":{"type":"string","default":"art"}}],"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StocktakeSearchArticlesResponseDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/StocktakeSearchArticlesResponseDto"}}}}}}},"/v1/stocktake/state/{state}":{"get":{"tags":["Stocktake"],"summary":"Get stocktakes","description":"Get a list of new, ongoing or finished stocktakes","operationId":"getStocktakes","parameters":[{"name":"state","in":"path","required":true,"schema":{"type":"string"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":0}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":25}}],"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StocktakesResponseDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/StocktakesResponseDto"}}}}}}},"/v1/stocktake/finished/{id}/articles":{"get":{"tags":["Stocktake articles"],"summary":"Get finished stocktake articles","description":"Get articles for a finished stocktake","operationId":"getFinishedStocktakeArticles","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"query","in":"query","required":false,"schema":{"type":"string"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":0}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":25}},{"name":"order","in":"query","required":false,"schema":{"type":"string","default":"asc"}},{"name":"sort_column","in":"query","required":false,"schema":{"type":"string","default":"art"}}],"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StocktakeArticlesResponseDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/StocktakeArticlesResponseDto"}}}}}}},"/v1/stocktake/finished/{finished_list_id}":{"get":{"tags":["Stocktake"],"summary":"Get finished stocktake","description":"Get a single finished stocktake","operationId":"getFinishedStocktake","parameters":[{"name":"finished_list_id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StocktakesResponseDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/StocktakesResponseDto"}}}}}},"delete":{"tags":["Stocktake"],"summary":"Remove finished stocktake","description":"Remove a single finished stocktake","operationId":"removeFinishedStocktake","parameters":[{"name":"finished_list_id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}},"application/xml":{"schema":{"type":"object"}}}}}}},"/v1/stocktake/finished/{finished_list_id}/receipt/print":{"get":{"tags":["Stocktake"],"summary":"Print stocktake receipt","description":"Print stocktake receipt to PDF and emails it to requesting user","operationId":"printStocktakeReceipt","parameters":[{"name":"finished_list_id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/v1/reports/tobacco_sales_account":{"get":{"tags":["Reports"],"summary":"Get tobacco and nicotine sales accounts","description":"Get sales accounts for tobacco and nicotine statistics for chosen period","operationId":"getCustomerOrderedAccountsForTobacco","parameters":[{"name":"include_tobacco","in":"query","required":false,"schema":{"type":"boolean","default":true}},{"name":"include_nicotine","in":"query","required":false,"schema":{"type":"boolean","default":true}},{"name":"start_date","in":"query","required":false,"schema":{"type":"integer","format":"int64"}},{"name":"end_date","in":"query","required":false,"schema":{"type":"integer","format":"int64"}},{"name":"tag","in":"query","required":false,"schema":{"type":"integer","format":"int64"}}],"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReportsBeverageSalesAccountsResponseDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/ReportsBeverageSalesAccountsResponseDto"}}}}}}},"/v1/reports/tobacco":{"get":{"tags":["Reports"],"summary":"Get tobacco and nicotine statistics","description":"Get tobacco and nicotine statistics for chosen period","operationId":"getCustomerOrderedArticlesForTobacco","parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":0}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":50}},{"name":"include_tobacco","in":"query","required":false,"schema":{"type":"boolean","default":true}},{"name":"include_nicotine","in":"query","required":false,"schema":{"type":"boolean","default":true}},{"name":"start_date","in":"query","required":false,"schema":{"type":"integer","format":"int64"}},{"name":"end_date","in":"query","required":false,"schema":{"type":"integer","format":"int64"}},{"name":"tag","in":"query","required":false,"schema":{"type":"integer","format":"int64"}},{"name":"account","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":-1}}],"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReportsTobaccoStatisticsResponseDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/ReportsTobaccoStatisticsResponseDto"}}}}}}},"/v1/reports/tobacco/summary":{"get":{"tags":["Reports"],"summary":"Get summary for tobacco and nicotine","description":"Get summary of weight, volume, tax cost for weight and tax cost for volume for tobacco and nicotine statistics during chosen period","operationId":"getTobaccoSummary","parameters":[{"name":"include_tobacco","in":"query","required":false,"schema":{"type":"boolean","default":true}},{"name":"include_nicotine","in":"query","required":false,"schema":{"type":"boolean","default":true}},{"name":"start_date","in":"query","required":false,"schema":{"type":"integer","format":"int64"}},{"name":"end_date","in":"query","required":false,"schema":{"type":"integer","format":"int64"}},{"name":"tag","in":"query","required":false,"schema":{"type":"integer","format":"int64"}},{"name":"account","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":-1}}],"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReportsBeverageSalesAccountsResponseDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/ReportsBeverageSalesAccountsResponseDto"}}}}}}},"/v1/reports/stockworth":{"get":{"tags":["Reports"],"summary":"Get stockworth","description":"Get stockworth data for report","operationId":"getStockWorth","parameters":[{"name":"days","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":30}},{"name":"end_date","in":"query","required":false,"schema":{"type":"integer","format":"int64"}}],"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReportsStockWorthResponseDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/ReportsStockWorthResponseDto"}}}}}}},"/v1/reports/stock_count_fixed":{"get":{"tags":["Reports"],"summary":"Get stock count fixed","description":"Get a list of articles where stock has not changed during a specified period","operationId":"getStockCountFixedArticles","parameters":[{"name":"start_date","in":"query","required":false,"schema":{"type":"string"}},{"name":"end_date","in":"query","required":false,"schema":{"type":"string"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":0}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":25}},{"name":"order","in":"query","required":false,"schema":{"type":"string"}},{"name":"sort_column","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ArticlesForStockCountChangeResponseDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/ArticlesForStockCountChangeResponseDto"}}}}}}},"/v1/reports/stock_count_change":{"get":{"tags":["Reports"],"summary":"Get stock count change","description":"Get a list of articles where stock has changed during a specified period","operationId":"getStockCountChangeArticles","parameters":[{"name":"start_date","in":"query","required":false,"schema":{"type":"string"}},{"name":"end_date","in":"query","required":false,"schema":{"type":"string"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":0}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":25}},{"name":"order","in":"query","required":false,"schema":{"type":"string"}},{"name":"sort_column","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ArticlesForStockCountChangeResponseDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/ArticlesForStockCountChangeResponseDto"}}}}}}},"/v1/reports/orders/{id}":{"get":{"tags":["Reports"],"summary":"Get orders for article","description":"Get customer and purchase orders data for article for report","operationId":"getOrdersForArticle","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"end_date","in":"query","required":false,"schema":{"type":"integer","format":"int64"}}],"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReportsOrdersResponseDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/ReportsOrdersResponseDto"}}}}}}},"/v1/reports/ordered_articles":{"get":{"tags":["Reports"],"summary":"Get ordered articles","description":"Get last ordered articles data for article for report","operationId":"getLastCustomerOrderedArticles","responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReportsCustomerOrderArticlesResponseDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/ReportsCustomerOrderArticlesResponseDto"}}}}}}},"/v1/reports/customers_for_article/{id}":{"get":{"tags":["Reports"],"summary":"Get customers for article","description":"Get customers data for article for report","operationId":"getCustomersForArticle","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"start","in":"query","required":false,"schema":{"type":"integer","format":"int64"}},{"name":"end","in":"query","required":false,"schema":{"type":"integer","format":"int64"}},{"name":"batch_id","in":"query","required":false,"schema":{"type":"string"}},{"name":"serial_nr","in":"query","required":false,"schema":{"type":"string"}},{"name":"delivered","in":"query","required":false,"schema":{"type":"boolean","default":true}},{"name":"not_delivered","in":"query","required":false,"schema":{"type":"boolean","default":true}}],"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReportsCustomersResponseDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/ReportsCustomersResponseDto"}}}}}}},"/v1/reports/customers":{"get":{"tags":["Reports"],"summary":"Get customers","description":"Get customers data for report (top customers by order value). Only non-cancelled customer orders are considered, at most 1000 orders in the period. days only controls the window's lower bound: the selection uses delivered_date when set, otherwise the planned delivery_date: that date >= <start> 00:00:00 AND <= <end_date's date> 00:00:00, where <start> is the UTC midnight of end_date's own day, minus days days. end_date's own day is excluded, so the window spans exactly days full days, and today's orders are only included the next day; an order timestamped exactly <end_date's date> 00:00:00.000 is included, since the comparison is <=. The time of day is discarded in the JDBC binding (java.sql.Date), and which calendar date each bound resolves to is determined by the API server's JVM default timezone","operationId":"getCustomers_1","parameters":[{"name":"days","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":30}},{"name":"end_date","in":"query","required":false,"schema":{"type":"integer","format":"int64"}},{"name":"max_customers","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":10}}],"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReportsCustomersResponseDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/ReportsCustomersResponseDto"}}}}}}},"/v1/reports/customers/{customer_id}/products":{"get":{"tags":["Reports"],"summary":"Get customer products","description":"Get customer products data for report (articles ordered by a specific customer). Only non-cancelled customer orders are considered. At most 1000 orders in the period are fetched before filtering to this customer, so this customer's own orders can be undercounted if other customers' orders in the period already fill that cap. days only controls the window's lower bound: the selection uses delivered_date when set, otherwise the planned delivery_date: that date >= <start> 00:00:00 AND <= <end_date's date> 00:00:00, where <start> is the UTC midnight of end_date's own day, minus days days. end_date's own day is excluded, so the window spans exactly days full days, and today's orders are only included the next day; an order timestamped exactly <end_date's date> 00:00:00.000 is included, since the comparison is <=. The time of day is discarded in the JDBC binding (java.sql.Date), and which calendar date each bound resolves to is determined by the API server's JVM default timezone","operationId":"getCustomerProducts","parameters":[{"name":"customer_id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"days","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":30}},{"name":"end_date","in":"query","required":false,"schema":{"type":"integer","format":"int64"}}],"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReportsArticlesResponseDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/ReportsArticlesResponseDto"}}}}}}},"/v1/reports/customerorders":{"get":{"tags":["Reports"],"summary":"Get customer orders","description":"Get customer orders data for report (daily sales summary). Only non-cancelled orders are considered, at most 1000 orders in the period. days only controls the window's lower bound: the selection is order_date >= <start> 00:00:00 AND order_date <= <end_date's date> 00:00:00, where <start> is the UTC midnight of end_date's own day, minus days days. end_date's own day is excluded, so the window spans exactly days full days, and today's orders are only included the next day; an order timestamped exactly <end_date's date> 00:00:00.000 is included, since the comparison is <=. The time of day is discarded in the JDBC binding (java.sql.Date), and which calendar date each bound resolves to is determined by the API server's JVM default timezone","operationId":"getCustomerOrders_1","parameters":[{"name":"days","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":30}},{"name":"end_date","in":"query","required":false,"schema":{"type":"integer","format":"int64"}}],"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReportsCustomerOrderSummariesResponseDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/ReportsCustomerOrderSummariesResponseDto"}}}}}}},"/v1/reports/customerorders/{id}":{"get":{"tags":["Reports"],"summary":"Get customer orders for article","description":"Get customer orders data for article for report. Only non-cancelled orders are considered, at most 1000 orders in the period. days only controls the window's lower bound: the selection matches if ANY of delivered_date, delivery_date, or order_date (checked independently, not a fallback) is >= <start> 00:00:00 AND <= <end_date's date> 00:00:00, where <start> is the UTC midnight of end_date's own day, minus days days. end_date's own day is excluded, so the window spans exactly days full days, and today's orders are only included the next day; an order timestamped exactly <end_date's date> 00:00:00.000 is included, since the comparison is <=. The time of day is discarded in the JDBC binding (java.sql.Date), and which calendar date each bound resolves to is determined by the API server's JVM default timezone","operationId":"getCustomerOrdersForArticle","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"batch","in":"query","required":false,"schema":{"type":"string"}},{"name":"serialnumber","in":"query","required":false,"schema":{"type":"string"}},{"name":"days","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":30}},{"name":"end_date","in":"query","required":false,"schema":{"type":"integer","format":"int64"}}],"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReportsCustomerOrdersResponseDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/ReportsCustomerOrdersResponseDto"}}}}}}},"/v1/reports/category/{id}/category_rate":{"get":{"tags":["Reports"],"summary":"Get category rate","description":"Get the rate of a category","operationId":"getCategoryRate","parameters":[{"name":"start","in":"query","required":false,"schema":{"type":"string"}},{"name":"end","in":"query","required":false,"schema":{"type":"string"}},{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CategoryRateDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/CategoryRateDto"}}}}}}},"/v1/reports/category/{id}/category_chart":{"get":{"tags":["Reports"],"summary":"Get annual sales to category chart","description":"Get a list of annual sales to display in the chart. If a category is missing value for specific year it means it has a value of 0","operationId":"getCategoryChart","parameters":[{"name":"start","in":"query","required":false,"schema":{"type":"string"}},{"name":"end","in":"query","required":false,"schema":{"type":"string"}},{"name":"limiter","in":"query","required":false,"schema":{"type":"string","default":"quarter"}},{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DataChartResponseDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/DataChartResponseDto"}}}}}}},"/v1/reports/category/{id}/bestseller_article":{"get":{"tags":["Reports"],"summary":"Get bestseller article","description":"Get the bestseller article of a category","operationId":"getBestsellerArticle","parameters":[{"name":"start","in":"query","required":false,"schema":{"type":"string"}},{"name":"end","in":"query","required":false,"schema":{"type":"string"}},{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TopArticle"}},"application/xml":{"schema":{"$ref":"#/components/schemas/TopArticle"}}}}}}},"/v1/reports/category/{id}/articles_chart":{"get":{"tags":["Reports"],"summary":"Get articles to chart","description":"Get a list of articles for a category to display in the chart. If an article is missing value for specific day it means it has a value of 0","operationId":"getArticlesChart","parameters":[{"name":"start","in":"query","required":false,"schema":{"type":"string"}},{"name":"end","in":"query","required":false,"schema":{"type":"string"}},{"name":"limiter","in":"query","required":false,"schema":{"type":"string","default":"quarter"}},{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DataChartResponseDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/DataChartResponseDto"}}}}}}},"/v1/reports/categories_chart":{"get":{"tags":["Reports"],"summary":"Get sales to categories chart","description":"Get a list of sales to display in the chart. If a category is missing value for specific day, week, month, quarter or year it means it has a value of 0","operationId":"getCategoriesChart","parameters":[{"name":"start","in":"query","required":false,"schema":{"type":"string"}},{"name":"end","in":"query","required":false,"schema":{"type":"string"}},{"name":"limiter","in":"query","required":false,"schema":{"type":"string","default":"quarter"}}],"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DataChartResponseDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/DataChartResponseDto"}}}}}}},"/v1/reports/articles_stockstate":{"get":{"tags":["Reports"],"summary":"Get articles stock state","description":"Get articles stock state data for report","operationId":"getArticlesStockState","parameters":[{"name":"article_id","in":"query","required":false,"schema":{"type":"string"}},{"name":"end_date","in":"query","required":false,"schema":{"type":"integer","format":"int64"}}],"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReportsArticleStockStatesResponseDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/ReportsArticleStockStatesResponseDto"}}}}}}},"/v1/reports/articles_per_account":{"get":{"tags":["Reports"],"summary":"Get articles per account","description":"Get articles data sold per account for report. Only invoiced orders are considered. At most 1000 orders in the period are fetched before filtering to invoiced state, so invoiced orders can be undercounted if non-invoiced orders in the period already fill that cap. days only controls the window's lower bound: the selection is order_date >= <start> 00:00:00 AND order_date <= <end_date's date> 00:00:00, where <start> is the UTC midnight of end_date's own day, minus days days. end_date's own day is excluded, so the window spans exactly days full days, and today's orders are only included the next day; an order timestamped exactly <end_date's date> 00:00:00.000 is included, since the comparison is <=. The time of day is discarded in the JDBC binding (java.sql.Date), and which calendar date each bound resolves to is determined by the API server's JVM default timezone","operationId":"getArticlesSoldPerAccount","parameters":[{"name":"days","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":30}},{"name":"end_date","in":"query","required":false,"schema":{"type":"integer","format":"int64"}},{"name":"max_accounts","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":0}}],"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReportsAccountsResponseDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/ReportsAccountsResponseDto"}}}}}}},"/v1/reports/articles_most_sold":{"get":{"tags":["Reports"],"summary":"Get articles most sold","description":"Get articles most sold data for report. Only non-cancelled customer orders are considered, at most 1000 orders in the period, and articles with no sales in the period are omitted from the result. days only controls the window's lower bound: the selection uses delivered_date when set, otherwise the planned delivery_date: that date is bound between <start> and <end_date> using java.sql.Date on BOTH ends (time of day is discarded on both bounds, not just the lower one), so an order delivered on end_date's own calendar day IS included, not excluded. <start> is the UTC midnight of end_date's own day, minus days days. The window therefore spans days + 1 calendar days, not days: with days=0, orders delivered on end_date's own day are already included, not only from the next day onward. Which calendar date each bound resolves to is determined by the API server's JVM default timezone","operationId":"getArticlesMostSold","parameters":[{"name":"days","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":30}},{"name":"end_date","in":"query","required":false,"schema":{"type":"integer","format":"int64"}},{"name":"max_articles","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":10}},{"name":"type","in":"query","required":false,"schema":{"type":"string","default":"amount"}}],"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReportsArticlesResponseDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/ReportsArticlesResponseDto"}}}}}}},"/v1/reports/alcoholic_beverage_sales_account":{"get":{"tags":["Reports"],"summary":"Get alcoholic beverage sales accounts","description":"Get sales accounts for alcoholic beverage statistics for chosen period","operationId":"getLastCustomerOrderedArticles_1","parameters":[{"name":"start_date","in":"query","required":false,"schema":{"type":"integer","format":"int64"}},{"name":"end_date","in":"query","required":false,"schema":{"type":"integer","format":"int64"}}],"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReportsBeverageSalesAccountsResponseDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/ReportsBeverageSalesAccountsResponseDto"}}}}}}},"/v1/reports/alcoholic_beverage":{"get":{"tags":["Reports"],"summary":"Get alcoholic beverage statistics","description":"Get alcoholic beverage statistics for chosen period","operationId":"getLastCustomerOrderedArticles_2","parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":0}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":50}},{"name":"start_date","in":"query","required":false,"schema":{"type":"integer","format":"int64"}},{"name":"end_date","in":"query","required":false,"schema":{"type":"integer","format":"int64"}},{"name":"account","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":-1}}],"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReportsBeverageStatisticsResponseDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/ReportsBeverageStatisticsResponseDto"}}}}}}},"/v1/reports/alcoholic_beverage/summary":{"get":{"tags":["Reports"],"summary":"Get summary alcoholic beverage","description":"Get summary of volume, tax cost for volume for alcoholic beverage statistics during chosen period","operationId":"getAlcoholicSummary","parameters":[{"name":"start_date","in":"query","required":false,"schema":{"type":"integer","format":"int64"}},{"name":"end_date","in":"query","required":false,"schema":{"type":"integer","format":"int64"}},{"name":"account","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":-1}}],"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReportsAlcoholicSummaryDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/ReportsAlcoholicSummaryDto"}}}}}}},"/v1/purchase_orders/{id}/verification/print":{"get":{"tags":["Print"],"summary":"Print purchase order verification","description":"Print a purchase order verification based on order id","operationId":"printPurchaseOrderVerification","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"default":{"description":"default response","content":{"application/pdf":{"schema":{"type":"string"}},"application/json":{"schema":{"type":"string"}}}}}}},"/v1/purchase_orders/{id}/products":{"get":{"tags":["Purchase orders"],"summary":"Get purchase order products","description":"Get a list of all products in a purchase orders with detailed information","operationId":"getPurchaseOrderProducts","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"query","in":"query","required":false,"schema":{"type":"string","default":""}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":0}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":25}},{"name":"order","in":"query","required":false,"schema":{"type":"string","default":"desc"}},{"name":"sort_column","in":"query","required":false,"schema":{"type":"string","default":"query"}}],"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ArticlesResponseDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/ArticlesResponseDto"}}}}}}},"/v1/purchase_orders/{id}/products/{article_id}/batches":{"get":{"tags":["Purchase orders"],"summary":"Get purchase order batch products","description":"Get a list of all batches for a product in a purchase orders","operationId":"getPurchaseOrderBatchProducts","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"article_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"type":"string"}},"application/xml":{"schema":{"type":"string"}}}}}}},"/v1/purchase_orders/{id}/print_labels":{"get":{"tags":["Print"],"summary":"Print labels","description":"Print purchase order labels","operationId":"printPurchaseOrderLabels","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"ordered","in":"query","required":false,"schema":{"type":"boolean","default":false}},{"name":"gs1","in":"query","required":false,"schema":{"type":"boolean","default":false}}],"responses":{"default":{"description":"default response","content":{"application/pdf":{"schema":{"type":"string"}},"application/json":{"schema":{"type":"string"}}}}}}},"/v1/purchase_orders/{id}/print":{"get":{"tags":["Print"],"summary":"Print purchase order","description":"Print purchase order","operationId":"printPurchaseOrder","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"default":{"description":"default response","content":{"application/pdf":{"schema":{"type":"string"}},"application/json":{"schema":{"type":"string"}}}}}}},"/v1/purchase_orders/warned_articles":{"get":{"tags":["Purchase orders"],"summary":"Get warned articles","description":"Get warned articles for store","operationId":"getWarnedArticles","parameters":[{"name":"order","in":"query","required":false,"schema":{"type":"string","default":"asc"}},{"name":"sort_column","in":"query","required":false,"schema":{"type":"string","default":"name"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":0}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":50}},{"name":"include_ordered","in":"query","required":false,"schema":{"type":"boolean","default":true}}],"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrderedArticlesResponseDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/OrderedArticlesResponseDto"}}}}}}},"/v1/purchase_orders/traceability/{batch_id}":{"get":{"tags":["Traceability"],"summary":"Get purchase orders with batch","description":"Search purchase orders containing a batch or serial number","operationId":"getPurchaseOrdersWithBatch","parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":0}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":50}},{"name":"batch_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PurchaseOrderTraceabilitiesResponseDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/PurchaseOrderTraceabilitiesResponseDto"}}}}}}},"/v1/purchase_orders/state/{state}":{"get":{"tags":["Purchase orders"],"summary":"Get purchase orders based on state","description":"Get a list of purchase orders based on state","operationId":"getPurchaseOrdersWithState","parameters":[{"name":"supplier_id","in":"query","required":false,"schema":{"type":"integer","format":"int64"}},{"name":"state","in":"path","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"order","in":"query","required":false,"schema":{"type":"string","default":"asc"}},{"name":"sort_column","in":"query","required":false,"schema":{"type":"string","default":"po_ref"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":0}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":50}},{"name":"start_delivered_date","in":"query","required":false,"schema":{"type":"integer","format":"int64"}},{"name":"end_delivered_date","in":"query","required":false,"schema":{"type":"integer","format":"int64"}}],"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PurchaseOrdersResponseDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/PurchaseOrdersResponseDto"}}}}}}},"/v1/purchase_orders/state/{state}/order_value":{"get":{"tags":["Purchase orders"],"summary":"Get order value based on state and query","description":"Get total order value based on state and query","operationId":"getTotalOrderValueForState","parameters":[{"name":"supplier_id","in":"query","required":false,"schema":{"type":"integer","format":"int64"}},{"name":"state","in":"path","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"query","in":"query","required":false,"schema":{"type":"string","default":""}}],"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PurchaseOrdersResponseDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/PurchaseOrdersResponseDto"}}}}}}},"/v1/purchase_orders/po_ref/{po_ref}":{"get":{"tags":["Purchase orders"],"summary":"Get purchase order by po-ref","description":"Get a single purchase order based on po-ref","operationId":"getPurchaseOrderByPORef","parameters":[{"name":"po_ref","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PurchaseOrdersResponseDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/PurchaseOrdersResponseDto"}}}}}}},"/v1/purchase_orders/po_ref/next_id":{"get":{"tags":["Purchase orders"],"summary":"Get available po-ref","description":"Get next available po-ref that can be used when creating a new purchase order","operationId":"getNextPurchaseOrderRef","responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PurchaseOrderRefDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/PurchaseOrderRefDto"}}}}}}},"/v1/purchase_orders/ordered_articles":{"get":{"tags":["Purchase orders"],"summary":"Get ordered articles","description":"Get ordered articles for store","operationId":"getOrderedArticles","parameters":[{"name":"order","in":"query","required":false,"schema":{"type":"string","default":"asc"}},{"name":"sort_column","in":"query","required":false,"schema":{"type":"string","default":"name"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":0}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":50}}],"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrderedArticlesResponseDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/OrderedArticlesResponseDto"}}}}}}},"/v1/purchase_orders/dropshipment/{customer_order_id}":{"get":{"tags":["Purchase orders"],"summary":"Get dropshipment orders for customer order","description":"Get dropshipment orders for a customer order","operationId":"getPurchaseOrderForDropShipment","parameters":[{"name":"customer_order_id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PurchaseOrdersResponseDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/PurchaseOrdersResponseDto"}}}}}}},"/v1/purchase_orders/dropshipment/{customer_order_id}/supplier/{supplier_id}":{"get":{"tags":["Purchase orders"],"summary":"Get dropshipment order for supplier","description":"Get a dropshipment order for a customer order and supplier","operationId":"getPurchaseOrderForDropShipmentAndSupplier","parameters":[{"name":"customer_order_id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"supplier_id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PurchaseOrdersResponseDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/PurchaseOrdersResponseDto"}}}}}}},"/v1/purchase_orders/article/{article_id}":{"get":{"tags":["Purchase orders"],"summary":"Get purchase orders with article","description":"Get a list of purchase orders that contains a specific article. It´s also possible to filter article on batch or serialnumber","operationId":"getPurchaseOrdersWithArticle","parameters":[{"name":"article_id","in":"path","required":true,"schema":{"type":"string"}},{"name":"batch","in":"query","required":false,"schema":{"type":"string"}},{"name":"serialnumber","in":"query","required":false,"schema":{"type":"string"}},{"name":"max_state","in":"query","required":false,"schema":{"type":"integer","format":"int32"}},{"name":"order","in":"query","required":false,"schema":{"type":"string","default":"asc"}},{"name":"sort_column","in":"query","required":false,"schema":{"type":"string","default":"id"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":0}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":50}}],"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PurchaseOrdersResponseDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/PurchaseOrdersResponseDto"}}}}}}},"/v1/purchase_orders/article/{article_id}/last_delivered":{"get":{"tags":["Purchase orders"],"summary":"Get last delivered purchase orders for article","description":"Get last delivered purchase orders for article","operationId":"getLastReceivedOrderForArticle","parameters":[{"name":"article_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PurchaseOrdersResponseDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/PurchaseOrdersResponseDto"}}}}}}},"/v1/projects/{project_id}":{"get":{"tags":["Projects"],"summary":"Get project for id","description":"Get project based on id","operationId":"getProjectById","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/ProjectDto"}}}}}}},"/v1/projects/{project_id}/cost":{"get":{"tags":["Projects"],"summary":"Get cost for project","description":"Get total cost for a project","operationId":"getCostForProject","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectInvoiceDraftsResponseDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/ProjectInvoiceDraftsResponseDto"}}}}}}},"/v1/projects/{project_id}/articles":{"get":{"tags":["Projects"],"summary":"Get project articles","description":"Get a list of project articles","operationId":"getProjectArticles","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"query","in":"query","required":false,"schema":{"type":"string"}},{"name":"state","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":0}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":0}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":50}},{"name":"sort_column","in":"query","required":false,"schema":{"type":"string","default":"checkout_date"}},{"name":"sort_order","in":"query","required":false,"schema":{"type":"string","default":"desc"}}],"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectArticlesResponseDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/ProjectArticlesResponseDto"}}}}}}},"/v1/projects/{project_id}/articles/invoice":{"get":{"tags":["Projects"],"summary":"Get invoice drafts","description":"Get a list of invoice drafts for a project","operationId":"getInvoiceDrafts","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"state","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":0}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":0}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":50}},{"name":"sort_column","in":"query","required":false,"schema":{"type":"string","default":"created"}},{"name":"sort_order","in":"query","required":false,"schema":{"type":"string","default":"desc"}}],"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectInvoiceDraftsResponseDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/ProjectInvoiceDraftsResponseDto"}}}}}}},"/v1/projects/events":{"get":{"tags":["Projects"],"summary":"Get changed projects","description":"Get a list of open projects where articles have been checked out, checked in, consumed or invoiced between a start date and end date","operationId":"getProjectsChangedForPeriod","parameters":[{"name":"start_date","in":"query","required":false,"schema":{"type":"string"}},{"name":"end_date","in":"query","required":false,"schema":{"type":"string"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":0}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":50}},{"name":"sort_column","in":"query","required":false,"schema":{"type":"string","default":"created"}},{"name":"order","in":"query","required":false,"schema":{"type":"string","default":"desc"}}],"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectsResponseDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/ProjectsResponseDto"}}}}}}},"/v1/production_orders/{order_id}":{"get":{"tags":["Production orders"],"summary":"Get production order for id","description":"Get production order based on id","operationId":"getProductionOrderById","parameters":[{"name":"order_id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProductionOrderDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/ProductionOrderDto"}}}}}}},"/v1/production_orders/{order_id}/products/flat":{"get":{"tags":["Production orders"],"summary":"Get flat products","description":"Get a flat list of products for a production order based on id","operationId":"getFlatProducts","parameters":[{"name":"order_id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"query","in":"query","required":false,"schema":{"type":"string","default":""}},{"name":"supplier","in":"query","required":false,"schema":{"type":"integer","format":"int64"}},{"name":"order","in":"query","required":false,"schema":{"type":"string","default":"asc"}},{"name":"sort_column","in":"query","required":false,"schema":{"type":"string","default":"art"}}],"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FlatBundledArticlesResponseDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/FlatBundledArticlesResponseDto"}}}}}}},"/v1/production_orders/{order_id}/pickinglist/print":{"get":{"tags":["Print"],"summary":"Print pickinglist","description":"Print pickinglist of flat articles for production order","operationId":"printPickingList","parameters":[{"name":"order_id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"filter_non_available","in":"query","required":false,"schema":{"type":"boolean","default":false}},{"name":"article_images","in":"query","required":false,"schema":{"type":"boolean","default":false}},{"name":"order","in":"query","required":false,"schema":{"type":"string","default":"asc"}},{"name":"sort_column","in":"query","required":false,"schema":{"type":"string","default":"art"}}],"responses":{"default":{"description":"default response","content":{"application/pdf":{"schema":{"type":"string"}},"application/json":{"schema":{"type":"string"}}}}}}},"/v1/production_orders/{order_id}/batch":{"get":{"tags":["Production orders"],"summary":"Get batch and serial for a production order","description":"Get batches and serial numbers for all the articles in a production order","operationId":"getBatches","parameters":[{"name":"order_id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProductionOrderBatchResponseDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/ProductionOrderBatchResponseDto"}}}}}}},"/v1/production_orders/state/{state}":{"get":{"tags":["Production orders"],"summary":"Get production orders for state","description":"Get a list of production orders based on state","operationId":"getProductionOrdersWithState","parameters":[{"name":"state","in":"path","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"from","in":"query","required":false,"schema":{"type":"integer","format":"int64","default":0}},{"name":"to","in":"query","required":false,"schema":{"type":"integer","format":"int64","default":0}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":0}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":50}},{"name":"sort_column","in":"query","required":false,"schema":{"type":"string","default":"start_date"}},{"name":"order","in":"query","required":false,"schema":{"type":"string","default":"desc"}}],"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProductionOrdersResponseDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/ProductionOrdersResponseDto"}}}}}}},"/v1/production_orders/production_orders_state":{"get":{"tags":["Production orders"],"summary":"Get production orders between states","description":"Get a list of production orders between two states","operationId":"getProductionOrdersBetweenState","parameters":[{"name":"state_from","in":"query","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"state_to","in":"query","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":0}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":20}},{"name":"query","in":"query","required":false,"schema":{"type":"string","default":""}}],"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProductionOrderDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/ProductionOrderDto"}}}}}}},"/v1/production_orders/pr_ref/next_id":{"get":{"tags":["Production orders"],"summary":"Get po-ref for production order","description":"Get the next unique po-ref for production order","operationId":"getNextProductionOrderRef","responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProductionOrderRefDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/ProductionOrderRefDto"}}}}}}},"/v1/production_orders/customer_order/{order_id}":{"get":{"tags":["Production orders"],"summary":"Get production orders for customer order","description":"Get a list of production orders connected to a customer order","operationId":"getProductionOrdersForCustomerOrder","parameters":[{"name":"order_id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProductionOrdersResponseDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/ProductionOrdersResponseDto"}}}}}}},"/v1/production_orders/article/{article_id}":{"get":{"tags":["Production orders"],"summary":"Get production orders with article","description":"Get a list of production orders that contains a specific article","operationId":"getProductionOrdersWithArticle","parameters":[{"name":"article_id","in":"path","required":true,"schema":{"type":"string"}},{"name":"max_state","in":"query","required":false,"schema":{"type":"integer","format":"int32"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":0}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":50}},{"name":"sort_column","in":"query","required":false,"schema":{"type":"string","default":"start_date"}},{"name":"order","in":"query","required":false,"schema":{"type":"string","default":"desc"}}],"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProductionOrdersResponseDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/ProductionOrdersResponseDto"}}}}}}},"/v1/prices/lists/{list_id}/article/{article_id}/amount/{amount}/price":{"get":{"tags":["Prices"],"summary":"Calculate price","description":"Calculate price for a specific pricelist, article and amount","operationId":"calculatePrice","parameters":[{"name":"list_id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"article_id","in":"path","required":true,"schema":{"type":"string"}},{"name":"amount","in":"path","required":true,"schema":{"type":"number","format":"double"}},{"name":"price","in":"query","required":false,"schema":{"type":"number","format":"double"}},{"name":"store","in":"query","required":false,"schema":{"type":"integer","format":"int64"}},{"name":"get_default_sales_price","in":"query","required":false,"schema":{"type":"boolean","default":true}}],"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CalculatePriceResponseDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/CalculatePriceResponseDto"}}}}}}},"/v1/prices/lists/{id}/article/{article_id}/prices":{"get":{"tags":["Prices"],"summary":"Get prices for list and article","description":"Get a list of prices for a specific pricelist and article","operationId":"getAllPricesInListForArticle","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"article_id","in":"path","required":true,"schema":{"type":"string"}},{"name":"since","in":"query","required":false,"schema":{"type":"integer","format":"int64","default":0}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":0}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":100}}],"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PricesResponseDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/PricesResponseDto"}}}}}}},"/v1/prices/article/{article_id}/prices":{"get":{"tags":["Prices"],"summary":"Get prices for article","description":"Get a list of prices for a specific article","operationId":"getAllPricesForArticle","parameters":[{"name":"article_id","in":"path","required":true,"schema":{"type":"string"}},{"name":"since","in":"query","required":false,"schema":{"type":"integer","format":"int64","default":0}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":0}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":100}}],"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PricesResponseDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/PricesResponseDto"}}}}}}},"/v1/mobile/webtoken":{"get":{"tags":["Login"],"summary":"Get webtoken","description":"Get a valid webtoken to use for automatic login to web-app","operationId":"getWebToken","responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebTokenDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/WebTokenDto"}}}}}}},"/v1/languages":{"get":{"tags":["languages"],"summary":"Get languages","description":"Get a list of valid languages","operationId":"getLanguages","responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LanguagesResponseDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/LanguagesResponseDto"}}}}}}},"/v1/invoices/drafts":{"get":{"tags":["Invoice drafts"],"summary":"Get invoice drafts","description":"Get a list of invoice drafts","operationId":"getInvoiceDrafts_1","parameters":[{"name":"query","in":"query","required":false,"schema":{"type":"string","default":""}},{"name":"type","in":"query","required":false,"schema":{"type":"string","default":"ALL"}},{"name":"return_invoiced_rows","in":"query","required":false,"schema":{"type":"boolean","default":true}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":0}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":100}},{"name":"sort_column","in":"query","required":false,"schema":{"type":"string","default":"created"}},{"name":"sort_order","in":"query","required":false,"schema":{"type":"string","default":"desc"}}],"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvoiceDraftsResponseDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/InvoiceDraftsResponseDto"}}}}}}},"/v1/integration/visma/authorize":{"get":{"tags":["Visma"],"summary":"Start Visma single sign on","description":"Builds the Visma OAuth authorize redirect with a server-issued state, and binds it to the browser with a short-lived cookie","operationId":"authorizeVisma","responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"object"}}}}}}},"/v1/integration/sync_event":{"get":{"tags":["Integration"],"summary":"Get sync events","description":"Get sync events for a specific entity. Body snapshots are truncated to 512 characters in the response. 'only' filters the outcome: 'all' (default, no filter), 'errors' (ERROR only), or 'problems' (ERROR and WARN).","operationId":"getSyncEvents","parameters":[{"name":"entity_type","in":"query","required":false,"schema":{"type":"string"}},{"name":"entity_id","in":"query","required":false,"schema":{"type":"string"}},{"name":"since","in":"query","required":false,"schema":{"type":"string"}},{"name":"only","in":"query","required":false,"schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":20}},{"name":"integration","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/v1/integration/sync_event/summary":{"get":{"tags":["Integration"],"summary":"Get sync event summary","description":"Get a summary of sync events for a specific entity, including error and warning counts and dead-letter status.","operationId":"getSyncEventSummary","parameters":[{"name":"entity_type","in":"query","required":false,"schema":{"type":"string"}},{"name":"entity_id","in":"query","required":false,"schema":{"type":"string"}},{"name":"since","in":"query","required":false,"schema":{"type":"string"}},{"name":"integration","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/v1/integration/sync_conflict":{"get":{"tags":["Integration"],"summary":"Get sync conflicts","description":"Returns unresolved (or all) 3-way merge conflicts for the store","operationId":"getSyncConflicts","parameters":[{"name":"entity_type","in":"query","required":false,"schema":{"type":"string"}},{"name":"entity_id","in":"query","required":false,"schema":{"type":"string"}},{"name":"only_unresolved","in":"query","required":false,"schema":{"type":"boolean","default":true}}],"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationSyncConflictResponseDto"}}}}}}},"/v1/integration/status":{"get":{"tags":["Integration"],"summary":"Get status","description":"Get status for your integration","operationId":"getIntegrationStatus","responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationStatusDto"}}}}}}},"/v1/integration/health":{"get":{"tags":["Integration"],"summary":"Get integration health","description":"Returns an aggregated health overview of integration sync events and dead-letter queue for the store. Defaults to 24h if 'since' is not provided. 'since' accepts a relative value (24h, 7d) or an absolute yyyy-MM-dd HH:mm:ss datetime.","operationId":"getIntegrationHealth","parameters":[{"name":"since","in":"query","required":false,"schema":{"type":"string"}},{"name":"integration","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/v1/integration/health/errors":{"get":{"tags":["Integration"],"summary":"Get integration health errors","description":"Returns grouped error information for admin drilldown. Group by 'code' (default), 'entity', or 'component'. 'since' accepts a relative value (24h, 7d) or an absolute yyyy-MM-dd HH:mm:ss datetime.","operationId":"getIntegrationHealthErrors","parameters":[{"name":"since","in":"query","required":false,"schema":{"type":"string"}},{"name":"error_code","in":"query","required":false,"schema":{"type":"string"}},{"name":"fortnox_error_code","in":"query","required":false,"schema":{"type":"string"}},{"name":"integration","in":"query","required":false,"schema":{"type":"string"}},{"name":"component","in":"query","required":false,"schema":{"type":"string"}},{"name":"entity_type","in":"query","required":false,"schema":{"type":"string"}},{"name":"group_by","in":"query","required":false,"schema":{"type":"string","default":"code"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":50}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/v1/integration/dead_letter":{"get":{"tags":["Integration"],"summary":"Get dead letter entries","description":"List unresolved dead-letter entries for the store","operationId":"getDeadLetters","parameters":[{"name":"entity_type","in":"query","required":false,"schema":{"type":"string"}},{"name":"entity_id","in":"query","required":false,"schema":{"type":"string"}},{"name":"component","in":"query","required":false,"schema":{"type":"string"}},{"name":"since","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/v1/integration/bankid/{order_ref}/status":{"get":{"tags":["BankID"],"summary":"BankID check status","description":"Check authentication status from BankID. If user is logged in the success of authentication will automatically connect the logged in user with the ssn from BankID. If user is not logged in and ssn is not found in Lagerkoll, the ssn is returned to client. Otherwise the user is logged in and a new valid webtoken is returned","operationId":"getBankIdStatus","parameters":[{"name":"order_ref","in":"path","required":true,"schema":{"type":"string"}},{"name":"invite_user_id","in":"query","required":false,"schema":{"type":"integer","format":"int64"}},{"name":"invite_user_key","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BankIDStatusResponseDto"}}}}}}},"/v1/images/feature/{id}":{"get":{"tags":["Feature images"],"summary":"Get image for feature","description":"Get image for feature in Feature Store","operationId":"getFeatureImage","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"default_url","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"default":{"description":"default response","content":{"image/png":{"schema":{"type":"string"}},"application/json":{"schema":{"type":"string"}}}}}}},"/v1/images/feature/{id}/screenshot/{screenshot}":{"get":{"tags":["Feature images"],"summary":"Get screenshot for feature","description":"Get screenshot for feature in Feature Store","operationId":"getFeatureScreenshot","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"screenshot","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"default":{"description":"default response","content":{"image/png":{"schema":{"type":"string"}},"application/json":{"schema":{"type":"string"}}}}}}},"/v1/images/feature/icon/{id}":{"get":{"tags":["Feature images"],"summary":"Get icon for feature","description":"Get icon for feature","operationId":"getFeatureIcon","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"default_url","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"default":{"description":"default response","content":{"image/png":{"schema":{"type":"string"}},"application/json":{"schema":{"type":"string"}}}}}}},"/v1/images/company/{company_id}/image.jpg":{"get":{"tags":["Store images"],"summary":"Get public image for store","description":"Open request to get image for store, no credentials needed","operationId":"getStoreImageOpen","parameters":[{"name":"company_id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"default":{"description":"default response","content":{"image/png":{"schema":{"type":"string"}},"application/json":{"schema":{"type":"string"}}}}}}},"/v1/images/barcode/{article_id}":{"get":{"tags":["Article images"],"summary":"Get barcode for article","description":"Get barcode for article based on article-id. Returns 404 if no barcode is found on article","operationId":"getBarcodeImageForArticle","parameters":[{"name":"article_id","in":"path","required":true,"schema":{"type":"string"}},{"name":"width","in":"query","required":false,"schema":{"type":"number","format":"double","default":200.0}},{"name":"height","in":"query","required":false,"schema":{"type":"number","format":"double","default":100.0}},{"name":"measure","in":"query","required":false,"schema":{"type":"string","default":"px"}},{"name":"default_url","in":"query","required":false,"schema":{"type":"string"}},{"name":"barcode_type","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"default":{"description":"default response","content":{"image/png":{"schema":{"type":"string"}},"image/svg+xml":{"schema":{"type":"string"}},"application/json":{"schema":{"type":"string"}}}}}}},"/v1/health":{"get":{"tags":["health-controller"],"summary":"Get health","description":"Returns a simple liveness probe response.","operationId":"getHealth","responses":{"200":{"description":"OK","content":{"text/plain":{"schema":{"type":"string"}}}}}}},"/v1/feature/{id}/{file}":{"get":{"tags":["Feature"],"summary":"Get file for feature","description":"Get a file for specified feature","operationId":"getFeatureFile","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"file","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"default":{"description":"default response","content":{"*/*":{"schema":{"type":"string"}}}}}}},"/v1/feature/{id}/dependents":{"get":{"tags":["Feature"],"summary":"Get feature dependents","description":"List installed features that depend on the given feature. Returns an empty list if nothing depends on it.","operationId":"getFeatureDependents","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/v1/feature/{feature_id}/server/function/queue":{"get":{"tags":["Feature Server Function"],"summary":"Count server function queue","description":"Count number of server functions that is in queue for a specific feature","operationId":"getFeatureServerFunctionQueue","parameters":[{"name":"feature_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FeatureQueueDto"}}}}}}},"/v1/feature/{feature_id}/logs":{"get":{"tags":["Feature Server Function"],"summary":"Get feature sandbox logs","description":"Read this feature's own runtime log, merging CLOUDWATCH (DEV/PROD, server code only) and FRONTEND (everywhere) events into one response.","operationId":"getFeatureLogs","parameters":[{"name":"feature_id","in":"path","required":true,"schema":{"type":"string"}},{"name":"start","in":"query","required":false,"schema":{"type":"integer","format":"int64"}},{"name":"end","in":"query","required":false,"schema":{"type":"integer","format":"int64"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","format":"int32"}},{"name":"filter","in":"query","required":false,"schema":{"type":"string"}},{"name":"next_token","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FeatureLogsDto"}}}}}}},"/v1/feature/{feature_id}/api/swagger.json":{"get":{"tags":["Feature API"],"summary":"Feature Swagger","description":"Get Swagger for Feature API","operationId":"getSwagger","parameters":[{"name":"feature_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/v1/feature/store":{"get":{"tags":["Store feature"],"summary":"Get store features","description":"Get list of store features","operationId":"getStoreFeatures","parameters":[{"name":"categories","in":"query","required":false,"schema":{"type":"string"}},{"name":"features","in":"query","required":false,"schema":{"type":"string"}},{"name":"query","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StoreFeaturesResponseDto"}}}}}}},"/v1/feature/store/categories":{"get":{"tags":["Store feature"],"summary":"Get feature categories","description":"Get list of store feature features","operationId":"getStoreFeatureCategories","responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FeatureCategoriesDto"}}}}}}},"/v1/feature/server/function/queue":{"get":{"tags":["Feature Server Function"],"summary":"Count function queue","description":"Count number of server functions that is in queue","operationId":"getServerFunctionQueues","responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FeatureQueueInfosDto"}}}}}}},"/v1/feature/draft/{draft_id}/revisions":{"get":{"tags":["Feature draft"],"summary":"List feature revisions","description":"List a draft's revision history, newest first -- never includes a revision's manifest","operationId":"listRevisions","parameters":[{"name":"draft_id","in":"path","required":true,"schema":{"type":"string"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":0}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","format":"int32"}}],"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FeatureRevisionListResponseDto"}}}}}}},"/v1/feature/draft/{draft_id}/revisions/{revision}/file":{"get":{"tags":["Feature draft"],"summary":"Get revision file","description":"Read a text file's content as of a specific past revision, paginated by character offset/limit","operationId":"getRevisionFile","parameters":[{"name":"draft_id","in":"path","required":true,"schema":{"type":"string"}},{"name":"revision","in":"path","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"path","in":"query","required":true,"schema":{"type":"string"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","format":"int64","default":0}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","format":"int64"}}],"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FeatureDraftFileContentDto"}}}}}}},"/v1/feature/draft/{draft_id}/publish/{job_id}":{"get":{"tags":["Feature draft"],"summary":"Get publish job","description":"Everything the confirmation view needs to render for a publish request","operationId":"getPublishJob","parameters":[{"name":"draft_id","in":"path","required":true,"schema":{"type":"string"}},{"name":"job_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FeatureDraftPublishStatusDto"}}}}}}},"/v1/feature/draft/{draft_id}/files":{"get":{"tags":["Feature draft"],"summary":"List draft files","description":"List the current revision's manifest (path, sha256, bytes) -- not file content -- paginated by entry count","operationId":"listDraftFiles","parameters":[{"name":"draft_id","in":"path","required":true,"schema":{"type":"string"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":0}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","format":"int32"}}],"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FeatureDraftFilesResponseDto"}}}}}}},"/v1/feature/draft/{draft_id}/export/{job_id}":{"get":{"tags":["Feature draft"],"summary":"Download export","description":"Download a completed export's artifact (zip or git bundle). An authenticated capi endpoint that streams bytes -- not a presigned S3 URL","operationId":"downloadExport","parameters":[{"name":"draft_id","in":"path","required":true,"schema":{"type":"string"}},{"name":"job_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"default":{"description":"default response","content":{"application/zip":{},"application/x-git-bundle":{}}}}}},"/v1/feature/draft/{draft_id}/diff":{"get":{"tags":["Feature draft"],"summary":"Diff feature revisions","description":"Unified-diff text between two revisions, optionally restricted to one path","operationId":"diffRevisions","parameters":[{"name":"draft_id","in":"path","required":true,"schema":{"type":"string"}},{"name":"from","in":"query","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"to","in":"query","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"path","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FeatureDraftDiffResponseDto"}}}}}}},"/v1/feature/draft/{draft_id}/build/{job_id}":{"get":{"tags":["Feature draft"],"summary":"Get build job","description":"Poll an async draft build's status and result by its job_id -- always returns 200 regardless of state; result is null while RUNNING, carries the artifact's download_url once SUCCEEDED and the failure reason once FAILED","operationId":"getBuildJob","parameters":[{"name":"draft_id","in":"path","required":true,"schema":{"type":"string"}},{"name":"job_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FeatureDraftJobDto"}}}}}}},"/v1/feature/draft/{draft_id}/build/{job_id}/download":{"get":{"tags":["Feature draft"],"summary":"Download build","description":"Download a completed build's zip artifact. An authenticated capi endpoint that streams bytes -- not a presigned S3 URL","operationId":"downloadBuild","parameters":[{"name":"draft_id","in":"path","required":true,"schema":{"type":"string"}},{"name":"job_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"default":{"description":"default response","content":{"application/zip":{}}}}}},"/v1/feature/draft/submissions":{"get":{"tags":["Feature draft"],"summary":"List feature store submissions","description":"List the caller's storegroup's own feature store submissions, newest first","operationId":"listSubmissions","responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FeatureStoreSubmissionListResponseDto"}}}}}}},"/v1/feature/draft/publish/pending":{"get":{"tags":["Feature draft"],"summary":"List pending feature draft publish requests","description":"List the caller's storegroup's publish requests awaiting human approval, oldest first","operationId":"listPendingPublishJobs","responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FeatureDraftPublishPendingResponseDto"}}}}}}},"/v1/events/user":{"get":{"tags":["Scheduled Events"],"summary":"Get scheduled events for user","description":"Get a list of scheduled events for store and user","operationId":"getScheduledEventsForUser","responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduledEventsResponseDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/ScheduledEventsResponseDto"}}}}}}},"/v1/documents/{document_name}":{"get":{"tags":["Document"],"summary":"Get document metadata","description":"Get document metadata","operationId":"getDocumentMetadata","parameters":[{"name":"document_name","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentsResponseDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/DocumentsResponseDto"}}}}}},"delete":{"tags":["Document"],"summary":"Delete document","description":"Delete document","operationId":"deleteDocument","parameters":[{"name":"document_name","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}},"application/xml":{"schema":{"type":"object"}}}}}}},"/v1/documents/{document_name}/binary":{"get":{"tags":["Document"],"summary":"Get document binary","description":"Get document binary","operationId":"getDocumentBinary","parameters":[{"name":"document_name","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"default":{"description":"default response","content":{"application/octet-stream":{"schema":{"type":"string"}},"application/json":{"schema":{"type":"string"}}}}}}},"/v1/documents/system":{"get":{"tags":["System Document"],"summary":"Get system document metadatas","description":"Get list of system document metadatas","operationId":"getSystemDocumentMetadatas","responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentsResponseDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/DocumentsResponseDto"}}}}}}},"/v1/documents/system/{document_name}/binary":{"get":{"tags":["System Document"],"summary":"Get system document binary","description":"Get system document binary","operationId":"getSystemDocumentBinary","parameters":[{"name":"document_name","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"default":{"description":"default response","content":{"application/octet-stream":{"schema":{"type":"string"}},"application/json":{"schema":{"type":"string"}}}}}}},"/v1/customers/{customer_id}":{"get":{"tags":["Customers"],"summary":"Get customer","description":"Get a single customer based on customer id","operationId":"getCustomer","parameters":[{"name":"customer_id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomersResponseDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/CustomersResponseDto"}}}}}}},"/v1/customers/user":{"get":{"tags":["Customers"],"summary":"Get customer for user","description":"Get customer for currently logged in user","operationId":"getCustomerForUser","responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomersResponseDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/CustomersResponseDto"}}}}}}},"/v1/customers/tags":{"get":{"tags":["Customers"],"summary":"Get customer tags","description":"Get customer tags for store group","operationId":"getCustomerTags","parameters":[{"name":"query","in":"query","required":false,"schema":{"type":"string","default":""}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":0}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":50}}],"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomerTagResponseDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/CustomerTagResponseDto"}}}}}}},"/v1/customers/import/templates":{"get":{"tags":["Templates"],"summary":"Get customer import templates","description":"Get customer import templates","operationId":"getCustomerImportTemplates","parameters":[{"name":"query","in":"query","required":false,"schema":{"type":"string","default":""}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":0}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":50}}],"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomerImportTemplateResponseDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/CustomerImportTemplateResponseDto"}}}}}}},"/v1/customers/external/{customer_id}":{"get":{"tags":["Customers"],"summary":"Get customer (ext-id)","description":"Get a single customer based on customer external id","operationId":"getCustomerByExternalId","parameters":[{"name":"customer_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomersResponseDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/CustomersResponseDto"}}}}}}},"/v1/customer_orders/{order_id}/purchase_orders":{"get":{"tags":["Customer orders"],"summary":"Get purchase orders for customer order","description":"Get dropshipment orders for a customer order","operationId":"getPurchaseOrders_1","parameters":[{"name":"order_id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PurchaseOrdersResponseDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/PurchaseOrdersResponseDto"}}}}}}},"/v1/customer_orders/{order_id}/pickinglist/{list_id}/print":{"get":{"tags":["Print"],"summary":"Print pickinglist","description":"Print pickinglist for customer order","operationId":"printPickingList_1","parameters":[{"name":"order_id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"list_id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"default":{"description":"default response","content":{"application/pdf":{"schema":{"type":"string"}},"application/json":{"schema":{"type":"string"}}}}}}},"/v1/customer_orders/{order_id}/picking_lists":{"get":{"tags":["Picking lists"],"summary":"Get pickinglists","description":"Get pickinglists for customer order","operationId":"getPickingListsForOrder","parameters":[{"name":"order_id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"return_products","in":"query","required":false,"schema":{"type":"boolean","default":true}},{"name":"sort_column","in":"query","required":false,"schema":{"type":"string","default":"stock_place"}},{"name":"sort_order","in":"query","required":false,"schema":{"type":"string","default":"asc"}}],"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PickingListsResponseDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/PickingListsResponseDto"}}}}}}},"/v1/customer_orders/{order_id}/picking_lists/{list_id}":{"get":{"tags":["Picking lists"],"summary":"Get pickinglist","description":"Get pickinglist for customer order","operationId":"getPickingListForOrder","parameters":[{"name":"order_id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"list_id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"return_products","in":"query","required":false,"schema":{"type":"boolean","default":true}},{"name":"sort_column","in":"query","required":false,"schema":{"type":"string","default":"stock_place"}},{"name":"sort_order","in":"query","required":false,"schema":{"type":"string","default":"asc"}}],"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PickingListsResponseDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/PickingListsResponseDto"}}}}}}},"/v1/customer_orders/{order_id}/picking_lists/{list_id}/articles":{"get":{"tags":["Picking lists"],"summary":"Search pickinglist articles","description":"Search articles for a specific picking list. Will match based on article-id, article name, barcode, barcode for batches / serialnumbers, and barcodes for article units","operationId":"getPickingListArticlesForOrder","parameters":[{"name":"order_id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"list_id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"query","in":"query","required":false,"schema":{"type":"string"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":0}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":50}}],"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PickingListProductsDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/PickingListProductsDto"}}}}}}},"/v1/customer_orders/{order_id}/offers":{"get":{"tags":["Offers"],"summary":"Get offer for customer order","description":"Get offer for a chosen customer order","operationId":"getOffersForCustomerOrder","parameters":[{"name":"order_id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OffersResponseDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/OffersResponseDto"}}}}}}},"/v1/customer_orders/{id}/products":{"get":{"tags":["Customer orders"],"summary":"Get products for customer order","description":"Get list of products for a customer order with details","operationId":"getCustomerOrderProducts","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"type":"string"}},"application/xml":{"schema":{"type":"string"}}}}}}},"/v1/customer_orders/{id}/print":{"get":{"tags":["Print"],"summary":"Print customer order","description":"Print customer order based on order id","operationId":"printCustomerOrder","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"default":{"description":"default response","content":{"application/pdf":{"schema":{"type":"string"}},"application/json":{"schema":{"type":"string"}}}}}}},"/v1/customer_orders/{id}/invoice/print":{"get":{"tags":["Invoice"],"summary":"Get invoice file","description":"Get invoice binary file by id","operationId":"getInvoiceBinaryById","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"default":{"description":"default response","content":{"application/pdf":{"schema":{"type":"string"}},"application/json":{"schema":{"type":"string"}}}}}}},"/v1/customer_orders/{id}/delivery_note/print":{"get":{"tags":["Print"],"summary":"Print delivery note","description":"Print delivery note for a customer orders based on order id","operationId":"printDeliveryNote","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"picking_list_id","in":"query","required":false,"schema":{"type":"integer","format":"int64"}}],"responses":{"default":{"description":"default response","content":{"application/pdf":{"schema":{"type":"string"}},"application/json":{"schema":{"type":"string"}}}}}}},"/v1/customer_orders/value":{"get":{"tags":["Customer orders"],"summary":"Get customer orders value","description":"Get total value for customer orders for a state","operationId":"getCustomerOrdersValue","parameters":[{"name":"customer_id","in":"query","required":false,"schema":{"type":"integer","format":"int64"}},{"name":"state","in":"query","required":false,"schema":{"type":"string","default":"-1"}}],"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomerOrdersResponseDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/CustomerOrdersResponseDto"}}}}}}},"/v1/customer_orders/traceability/{batch_id}":{"get":{"tags":["Traceability"],"summary":"Get customer orders with batch","description":"Search customer orders containing a batch or serial number","operationId":"getCustomerOrdersWithBatch","parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":0}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":50}},{"name":"batch_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomerOrderTraceabilitiesResponseDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/CustomerOrderTraceabilitiesResponseDto"}}}}}}},"/v1/customer_orders/traceability/from_bundled/{batch_id}":{"get":{"tags":["Traceability"],"summary":"Get customer orders from traceability with batch","description":"Search customer orders containing a batch or serial number based on bundled products where batch/sn comes from bundle parts","operationId":"getCustomerOrdersFromTraceabilityWithBatch","parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":0}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":50}},{"name":"batch_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomerOrderTraceabilitiesResponseDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/CustomerOrderTraceabilitiesResponseDto"}}}}}}},"/v1/customer_orders/state/{state}":{"get":{"tags":["Customer orders"],"summary":"Get customer orders for state","description":"Get a list of customer orders based on state","operationId":"getCustomerOrdersWithState","parameters":[{"name":"state","in":"path","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"from","in":"query","required":false,"schema":{"type":"integer","format":"int64","default":0}},{"name":"to","in":"query","required":false,"schema":{"type":"integer","format":"int64","default":0}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":0}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":50}},{"name":"sort_column","in":"query","required":false,"schema":{"type":"string","default":"id"}},{"name":"order","in":"query","required":false,"schema":{"type":"string","default":"desc"}}],"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomerOrdersResponseDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/CustomerOrdersResponseDto"}}}}}}},"/v1/customer_orders/rest_articles/supplier/{supplier_id}/":{"get":{"tags":["Rest articles"],"summary":"Get rest articles for supplier","description":"Get rest articles for supplier with customer orders","operationId":"getRestArticlesForSupplier","parameters":[{"name":"supplier_id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"order","in":"query","required":false,"schema":{"type":"string","default":"asc"}},{"name":"sort_column","in":"query","required":false,"schema":{"type":"string","default":"deliveryDate"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":0}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":50}}],"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RestOrderResponseDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/RestOrderResponseDto"}}}}}}},"/v1/customer_orders/rest_articles/purchaseorder/{order_id}/":{"get":{"tags":["Rest articles"],"summary":"Get rest articles for purchase order","description":"Get rest articles for purchase order with customer orders","operationId":"getRestArticlesForPurchaseOrder","parameters":[{"name":"order_id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"order","in":"query","required":false,"schema":{"type":"string","default":"asc"}},{"name":"sort_column","in":"query","required":false,"schema":{"type":"string","default":"deliveryDate"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":0}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":50}}],"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RestOrderResponseDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/RestOrderResponseDto"}}}}}}},"/v1/customer_orders/print_labels":{"get":{"tags":["Print"],"summary":"Print labels","description":"Print a CSV file (semicolon-separated: Namn;Address1;Address2;Postnummer;Ort;Epost;Telefon) of delivery addresses for customer orders in state PACKED. The file is UTF-8 without a byte-order mark and mixes line endings — the header row ends in \\n, data rows end in \\r\\n. page_size defaults to 25","operationId":"printCustomerOrderLabels","parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":0}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":25}},{"name":"sort_order","in":"query","required":false,"schema":{"type":"string","default":"asc"}},{"name":"sort_column","in":"query","required":false,"schema":{"type":"string","default":"id"}}],"responses":{"default":{"description":"default response","content":{"application/pdf":{"schema":{"type":"string"}}}}}}},"/v1/customer_orders/pickinglists/print":{"get":{"tags":["Print"],"summary":"Print all pickinglists","description":"Print all pickinglists for customer orders that are ready to be picked","operationId":"printAllPickingLists","parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":0}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":25}}],"responses":{"default":{"description":"default response","content":{"application/pdf":{"schema":{"type":"string"}},"application/json":{"schema":{"type":"string"}}}}}}},"/v1/customer_orders/picking_lists":{"get":{"tags":["Picking lists"],"summary":"Get your picking lists","description":"Get a list of picking lists assigned to you, based on search query","operationId":"getAssignedToYouPickingLists","parameters":[{"name":"query","in":"query","required":false,"schema":{"type":"string","default":""}},{"name":"return_unassigned_lists","in":"query","required":false,"schema":{"type":"boolean","default":true}},{"name":"return_products","in":"query","required":false,"schema":{"type":"boolean","default":true}},{"name":"sort_column","in":"query","required":false,"schema":{"type":"string","default":"art,stock_place"}},{"name":"sort_order","in":"query","required":false,"schema":{"type":"string","default":"asc"}}],"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PickingListsResponseDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/PickingListsResponseDto"}}}}}}},"/v1/customer_orders/picking_lists/new":{"get":{"tags":["Picking lists"],"summary":"Get unassigned picking lists","description":"Get a list of all unassigned lists","operationId":"getUnassignedPickingLists","parameters":[{"name":"return_products","in":"query","required":false,"schema":{"type":"boolean","default":true}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":0}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":50}},{"name":"sort_column","in":"query","required":false,"schema":{"type":"string","default":"stock_place"}},{"name":"sort_order","in":"query","required":false,"schema":{"type":"string","default":"asc"}}],"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PickingListsResponseDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/PickingListsResponseDto"}}}}}}},"/v1/customer_orders/picking_lists/assigned":{"get":{"tags":["Picking lists"],"summary":"Get assigned picking lists","description":"Get a list of all assigned lists","operationId":"getAssignedPickingLists","parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":0}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":50}},{"name":"return_products","in":"query","required":false,"schema":{"type":"boolean","default":true}},{"name":"filter_your_lists","in":"query","required":false,"schema":{"type":"boolean","default":false}}],"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PickingListsResponseDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/PickingListsResponseDto"}}}}}}},"/v1/customer_orders/offers/{offer_id}/print":{"get":{"tags":["Offers"],"summary":"Print offer","description":"Print offer based on order id","operationId":"printOffer","parameters":[{"name":"offer_id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"default":{"description":"default response","content":{"application/pdf":{"schema":{"type":"string"}},"application/json":{"schema":{"type":"string"}}}}}}},"/v1/customer_orders/external/{external_id}":{"get":{"tags":["Customer orders"],"summary":"Get customer order by external id","description":"Get a single customer order based on external order id","operationId":"getCustomerOrderByExternalId","parameters":[{"name":"external_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomerOrdersResponseDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/CustomerOrdersResponseDto"}}}}}}},"/v1/customer_orders/delivery_notes/print":{"get":{"tags":["Print"],"summary":"Print all delivery notes","description":"Print delivery notes for all customer orders that are packed and ready to be sent","operationId":"printAllDeliveryNotes","parameters":[{"name":"state","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":20}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":0}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":25}},{"name":"sort_order","in":"query","required":false,"schema":{"type":"string","default":"asc"}},{"name":"sort_column","in":"query","required":false,"schema":{"type":"string","default":"id"}}],"responses":{"default":{"description":"default response","content":{"application/pdf":{"schema":{"type":"string"}},"application/json":{"schema":{"type":"string"}}}}}}},"/v1/customer_orders/cost/{id}":{"get":{"tags":["Customer orders"],"summary":"Get customer order cost","description":"Get the cost for a specific customer order based on order id","operationId":"getCustomerOrderCost","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomerOrderCostDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/CustomerOrderCostDto"}}}}}}},"/v1/customer_orders/article/{article_id}":{"get":{"tags":["Customer orders"],"summary":"Get customer orders with article","description":"Get a list of customer orders that contains a specific article. It´s also possible to filter article on batch or serialnumber","operationId":"getCustomerOrdersWithArticle","parameters":[{"name":"article_id","in":"path","required":true,"schema":{"type":"string"}},{"name":"batch","in":"query","required":false,"schema":{"type":"string"}},{"name":"serialnumber","in":"query","required":false,"schema":{"type":"string"}},{"name":"max_state","in":"query","required":false,"schema":{"type":"integer","format":"int32"}},{"name":"from","in":"query","required":false,"schema":{"type":"integer","format":"int64","default":0}},{"name":"to","in":"query","required":false,"schema":{"type":"integer","format":"int64","default":0}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":0}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":50}},{"name":"sort_column","in":"query","required":false,"schema":{"type":"string","default":"id"}},{"name":"order","in":"query","required":false,"schema":{"type":"string","default":"desc"}}],"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomerOrdersResponseDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/CustomerOrdersResponseDto"}}}}}}},"/v1/currencies":{"get":{"tags":["Currencies"],"summary":"Get currencies","description":"Get a list of valid currencies","operationId":"getCurrencies","responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CurrenciesResponseDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/CurrenciesResponseDto"}}}}}}},"/v1/currencies/base/{currency_code}":{"get":{"tags":["Currencies"],"summary":"Get currencies with base","description":"Get a list of valid currencies with a base currency to establish exchange rate","operationId":"getCurrenciesWithBase","parameters":[{"name":"currency_code","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CurrenciesResponseDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/CurrenciesResponseDto"}}}}}}},"/v1/currencies/base/{base_currency_code}/currency/{currency_code}":{"get":{"tags":["Currencies"],"summary":"Get currency based on currency-code with base","description":"Get a valid currencies with a base currency to establish exchange rate","operationId":"getCurrencyWithBase","parameters":[{"name":"base_currency_code","in":"path","required":true,"schema":{"type":"string"}},{"name":"currency_code","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CurrencyDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/CurrencyDto"}}}}}}},"/v1/countries":{"get":{"tags":["Countries"],"summary":"Get countries","description":"Get a list of valid countries","operationId":"getCountries","parameters":[{"name":"query","in":"query","required":false,"schema":{"type":"string","default":""}}],"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CountriesResponseDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/CountriesResponseDto"}}}}}}},"/v1/auth/tokens":{"get":{"tags":["OAuth2"],"summary":"List my connections","description":"Lists the caller's own active third-party OAuth connections (client, store, scope, issued, last used). An OAuth-bearer caller sees only the connection bound to its own store; a session-authenticated caller sees every connection in the stores of its current store group.","operationId":"listTokens","responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OAuthTokenListItemDto"}}}}}}},"/v1/articles/{id}/serialnumber":{"get":{"tags":["Batches"],"summary":"Get serial numbers for article","description":"Get serial numbers for a specific article based on article-id","operationId":"getSerialNumbersForArticle","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"query","in":"query","required":false,"schema":{"type":"string"}},{"name":"include_all_serial_numbers","in":"query","required":false,"schema":{"type":"boolean","default":true}},{"name":"include_inactive","in":"query","required":false,"schema":{"type":"boolean","default":false}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":0}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":100}},{"name":"sort_column","in":"query","required":false,"schema":{"type":"string","default":"batch_id"}},{"name":"order_by","in":"query","required":false,"schema":{"type":"string","default":"asc"}}],"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ArticleBatchesDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/ArticleBatchesDto"}}}}}}},"/v1/articles/{id}/labels/print":{"get":{"tags":["Print"],"summary":"Print labels for an article","description":"Print labels for a single article, identified by the id path segment","operationId":"printArticleLabels","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"count","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":1}},{"name":"label_width","in":"query","required":false,"schema":{"type":"number","format":"float","default":110.0}},{"name":"label_height","in":"query","required":false,"schema":{"type":"number","format":"float","default":28.0}},{"name":"label_margin_width","in":"query","required":false,"schema":{"type":"number","format":"float","default":2.0}},{"name":"label_margin_height","in":"query","required":false,"schema":{"type":"number","format":"float","default":2.0}},{"name":"paper_width","in":"query","required":false,"schema":{"type":"number","format":"float","default":210.0}},{"name":"paper_height","in":"query","required":false,"schema":{"type":"number","format":"float","default":297.0}},{"name":"paper_margin_width","in":"query","required":false,"schema":{"type":"number","format":"float","default":0.0}},{"name":"paper_margin_height","in":"query","required":false,"schema":{"type":"number","format":"float","default":0.0}}],"responses":{"default":{"description":"default response","content":{"application/pdf":{"schema":{"type":"string"}},"application/json":{"schema":{"type":"string"}}}}}}},"/v1/articles/{id}/history":{"get":{"tags":["Articles"],"summary":"Get article history","description":"Get an article history based on article-id","operationId":"getArticleHistory","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":0}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":25}}],"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ArticleHistoryResponseDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/ArticleHistoryResponseDto"}}}}}}},"/v1/articles/{id}/fifo":{"get":{"tags":["Articles"],"summary":"Get article fifo","description":"Get an article fifo based on article-id","operationId":"getArticleFIFO","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":0}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":25}}],"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ArticleFIFOsResponseDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/ArticleFIFOsResponseDto"}}}}}},"delete":{"tags":["Articles"],"summary":"Delete fifo","description":"Delete all article fifos based on article-id","operationId":"deleteArticleFIFO","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}},"application/xml":{"schema":{"type":"object"}}}}}}},"/v1/articles/{id}/bundle/print":{"get":{"tags":["Print"],"summary":"Print bundled article","description":"Print bundle article as PDF","operationId":"printBundledArticle","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"amount","in":"query","required":false,"schema":{"type":"number","format":"double","default":1.0}}],"responses":{"default":{"description":"default response","content":{"application/pdf":{"schema":{"type":"string"}},"application/json":{"schema":{"type":"string"}}}}}}},"/v1/articles/{id}/batch":{"get":{"tags":["Batches"],"summary":"Get batches for article","description":"Get batches for a specific article based on article-id","operationId":"getBatchesForArticle","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"query","in":"query","required":false,"schema":{"type":"string"}},{"name":"include_all_batches","in":"query","required":false,"schema":{"type":"boolean","default":true}},{"name":"include_inactive","in":"query","required":false,"schema":{"type":"boolean","default":false}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":0}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":100}},{"name":"sort_column","in":"query","required":false,"schema":{"type":"string","default":"batch_id"}},{"name":"order_by","in":"query","required":false,"schema":{"type":"string","default":"asc"}}],"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ArticleBatchesDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/ArticleBatchesDto"}}}}}}},"/v1/articles/{id}/batch/serialnumber":{"get":{"tags":["Batches"],"summary":"Get batches and serial numbers for article","description":"Get batches and serial numbers for a specific article based on article-id","operationId":"getBatchesAndSerialNumbersForArticle","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"query","in":"query","required":false,"schema":{"type":"string"}},{"name":"filter_all_batches","in":"query","required":false,"schema":{"type":"boolean","default":true}},{"name":"include_inactive","in":"query","required":false,"schema":{"type":"boolean","default":false}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":0}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":100}},{"name":"sort_column","in":"query","required":false,"schema":{"type":"string","default":"batch_id"}},{"name":"order","in":"query","required":false,"schema":{"type":"string","default":"desc"}}],"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ArticleBatchesDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/ArticleBatchesDto"}}}}}}},"/v1/articles/{article_id}/serial/{serial_nr}/traceability":{"get":{"tags":["Traceability"],"summary":"Traceability for a bundled article by serial number","description":"Get bundled parts with batch and serial numbers for a serial number","operationId":"getArticleTraceabilitySerialNr","parameters":[{"name":"article_id","in":"path","required":true,"schema":{"type":"string"}},{"name":"serial_nr","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PartTraceabilityResponseDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/PartTraceabilityResponseDto"}}}}}}},"/v1/articles/{article_id}/other_purchased":{"get":{"tags":["Articles"],"summary":"Get other articles","description":"Based on an article a list of other interesting articles is returned","operationId":"getOtherPurchasedArticles","parameters":[{"name":"article_id","in":"path","required":true,"schema":{"type":"string"}},{"name":"amount","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":5}}],"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ArticlesResponseDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/ArticlesResponseDto"}}}}}}},"/v1/articles/{article_id}/batch/{batch_id}/traceability":{"get":{"tags":["Traceability"],"summary":"Traceability for a bundled article by batch","description":"Get bundled parts with batch and serial numbers for a batch","operationId":"getArticleTraceabilityBatch","parameters":[{"name":"article_id","in":"path","required":true,"schema":{"type":"string"}},{"name":"batch_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PartTraceabilityResponseDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/PartTraceabilityResponseDto"}}}}}}},"/v1/articles/tags":{"get":{"tags":["Articles"],"summary":"Get article tags","description":"Get article tags for store group","operationId":"getArticleTags","parameters":[{"name":"query","in":"query","required":false,"schema":{"type":"string","default":""}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":0}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":50}}],"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomerTagResponseDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/CustomerTagResponseDto"}}}}}}},"/v1/articles/supplier/{supplier_id}":{"get":{"tags":["Articles"],"summary":"Get articles for supplier","description":"Get a list of articles connected to a supplier","operationId":"getArticlesForSupplier","parameters":[{"name":"supplier_id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":0}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":25}},{"name":"order","in":"query","required":false,"schema":{"type":"string","default":"asc"}},{"name":"sort_column","in":"query","required":false,"schema":{"type":"string","default":"name"}}],"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ArticlesResponseDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/ArticlesResponseDto"}}}}}}},"/v1/articles/supplier/{supplier_id}/print":{"get":{"tags":["Print"],"summary":"Print supplier articles","description":"Print articles connected to a supplier as PDF","operationId":"printSupplierArticles","parameters":[{"name":"supplier_id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"default":{"description":"default response","content":{"application/pdf":{"schema":{"type":"string"}},"application/json":{"schema":{"type":"string"}}}}}}},"/v1/articles/stockwarning":{"get":{"tags":["Articles"],"summary":"Get articles low in stock","description":"Get a list of articles below stock warning","operationId":"getArticlesBelowStockWarning","parameters":[{"name":"filter_warning_flag","in":"query","required":false,"schema":{"type":"boolean","default":false}},{"name":"set_articles_warned","in":"query","required":false,"schema":{"type":"boolean","default":false}}],"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ArticlesResponseDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/ArticlesResponseDto"}}}}}}},"/v1/articles/stockwarning/count":{"get":{"tags":["Articles"],"summary":"Count articles low in stock","description":"Get the number of articles below stock warning","operationId":"countArticlesBelowStockWarning","parameters":[{"name":"include_ordered","in":"query","required":false,"schema":{"type":"boolean","default":true}}],"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CountDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/CountDto"}}}}}}},"/v1/articles/stockvalue":{"get":{"tags":["Stock"],"summary":"Get stock value","description":"Get stock value for selected store","operationId":"getStockValue","parameters":[{"name":"date","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StockValueDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/StockValueDto"}}}}}}},"/v1/articles/stockplaces":{"get":{"tags":["Articles"],"summary":"Get stockplaces","description":"Get list of stockplaces used in articles","operationId":"getArticleStockplaces","responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ArticleStockplacesResponseDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/ArticleStockplacesResponseDto"}}}}}}},"/v1/articles/serialnumber":{"get":{"tags":["Batches"],"summary":"Get serial numbers","description":"Get serial numbers based on query","operationId":"getSerialNumbers","parameters":[{"name":"query","in":"query","required":false,"schema":{"type":"string"}},{"name":"include_inactive","in":"query","required":false,"schema":{"type":"boolean","default":false}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":0}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":100}}],"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ArticleBatchesDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/ArticleBatchesDto"}}}}}}},"/v1/articles/next_id":{"get":{"tags":["Articles"],"summary":"Get next article id","description":"Get next available unique article id","operationId":"getNextArticleId","responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ArticleIdDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/ArticleIdDto"}}}}}}},"/v1/articles/import/templates":{"get":{"tags":["Templates"],"summary":"Get import templates","description":"Get article import templates","operationId":"getImportTemplates","parameters":[{"name":"query","in":"query","required":false,"schema":{"type":"string","default":""}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":0}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":50}}],"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ArticleImportTemplateResponseDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/ArticleImportTemplateResponseDto"}}}}}}},"/v1/articles/history":{"get":{"tags":["Articles"],"summary":"Get history articles","description":"Get a list of articles for a specific date","operationId":"getHistoryArticles","parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":0}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":25}},{"name":"date","in":"query","required":false,"schema":{"type":"string"}},{"name":"category","in":"query","required":false,"schema":{"type":"integer","format":"int64"}},{"name":"include_paging_info","in":"query","required":false,"schema":{"type":"boolean","default":true}}],"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ArticlesResponseDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/ArticlesResponseDto"}}}}}}},"/v1/articles/history/info":{"get":{"tags":["Articles"],"summary":"Get history articles info","description":"Get info on number of articles and pages exists in stock for given date","operationId":"getHistoryArticlesPageInfo","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":25}},{"name":"date","in":"query","required":false,"schema":{"type":"string"}},{"name":"category","in":"query","required":false,"schema":{"type":"integer","format":"int64"}}],"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ArticlesResponseDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/ArticlesResponseDto"}}}}}}},"/v1/articles/group":{"get":{"tags":["Articles"],"summary":"Get storegroup articles","description":"Search for articles across all stores in a storegroup","operationId":"getArticlesForStoregroup","parameters":[{"name":"query","in":"query","required":false,"schema":{"type":"string","default":""}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":0}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":25}},{"name":"order","in":"query","required":false,"schema":{"type":"string","default":"asc"}},{"name":"sort_column","in":"query","required":false,"schema":{"type":"string","default":"art"}},{"name":"summarize","in":"query","required":false,"schema":{"type":"boolean","default":false}}],"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StoreArticlesResponseDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/StoreArticlesResponseDto"}}}}}}},"/v1/articles/fields/{articleFields}":{"get":{"tags":["Field list"],"summary":"Get field list for settings","description":"Get field list for delivery note and order confirmation settings","operationId":"getFieldListForSettings","parameters":[{"name":"articleFields","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FieldsResponseDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/FieldsResponseDto"}}}}}}},"/v1/articles/external/{id}":{"get":{"tags":["Articles"],"summary":"Get article (external)","description":"Get an article based on external article-id","operationId":"getArticleByExternalId","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"prices","in":"query","required":false,"schema":{"type":"boolean","default":false}},{"name":"include_bundle","in":"query","required":false,"schema":{"type":"boolean","default":false}},{"name":"include_next_delivery","in":"query","required":false,"schema":{"type":"boolean","default":false}},{"name":"include_purchase_prices","in":"query","required":false,"schema":{"type":"boolean","default":false}},{"name":"include_batches","in":"query","required":false,"schema":{"type":"boolean","default":false}},{"name":"sort_column","in":"query","required":false,"schema":{"type":"string","default":"batch_id"}},{"name":"order","in":"query","required":false,"schema":{"type":"string","default":"desc"}}],"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ArticlesResponseDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/ArticlesResponseDto"}}}}}}},"/v1/articles/export":{"get":{"tags":["Export"],"summary":"Get export dates","description":"Get a list of existing export dates. Each date corresponds to an article export file","operationId":"getExportDates","parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":0}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":25}}],"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExportDatesResponseDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/ExportDatesResponseDto"}}}}}}},"/v1/articles/export/{date}":{"get":{"tags":["Export"],"summary":"Get export for date","description":"Get existing export file for specific date","operationId":"getExportFile","parameters":[{"name":"date","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"type":"string"}},"application/xml":{"schema":{"type":"string"}}}}}}},"/v1/articles/export/file/{id}":{"get":{"tags":["Export"],"summary":"Get export by id","description":"Get existing export file based on id","operationId":"getExportFileById","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"type":"string"}},"application/xml":{"schema":{"type":"string"}}}}}}},"/v1/articles/customfields":{"get":{"tags":["Custom fields"],"summary":"Get custom fields not in template","description":"Get custom fields which exists on articles but is not in the template","operationId":"getCustomFields","parameters":[{"name":"query","in":"query","required":false,"schema":{"type":"string"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":0}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":50}}],"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomFieldsTemplateDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/CustomFieldsTemplateDto"}}}}}}},"/v1/articles/category/{category_id}":{"get":{"tags":["Articles"],"summary":"Get articles for category","description":"Get a list of articles connected to a category","operationId":"getArticlesForCategory","parameters":[{"name":"query","in":"query","required":false,"schema":{"type":"string","default":""}},{"name":"category_id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":0}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":25}},{"name":"order","in":"query","required":false,"schema":{"type":"string","default":"asc"}},{"name":"sort_column","in":"query","required":false,"schema":{"type":"string","default":"name"}},{"name":"details","in":"query","required":false,"schema":{"type":"boolean","default":true}},{"name":"prices","in":"query","required":false,"schema":{"type":"boolean","default":false}},{"name":"include_purchase_prices","in":"query","required":false,"schema":{"type":"boolean","default":false}},{"name":"include_image_last_updated","in":"query","required":false,"schema":{"type":"boolean","default":false}},{"name":"include_bundle","in":"query","required":false,"schema":{"type":"boolean","default":false}},{"name":"include_next_delivery","in":"query","required":false,"schema":{"type":"boolean","default":false}},{"name":"include_batches","in":"query","required":false,"schema":{"type":"boolean","default":false}}],"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ArticlesResponseDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/ArticlesResponseDto"}}}}}}},"/v1/articles/batch":{"get":{"tags":["Batches"],"summary":"Get batches","description":"Get batches based on query","operationId":"getBatches_1","parameters":[{"name":"query","in":"query","required":false,"schema":{"type":"string"}},{"name":"include_all_batches","in":"query","required":false,"schema":{"type":"boolean","default":true}},{"name":"include_inactive","in":"query","required":false,"schema":{"type":"boolean","default":false}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":0}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":100}}],"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ArticleBatchesDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/ArticleBatchesDto"}}}}}}},"/v1/articles/batch/serialnumber":{"get":{"tags":["Batches"],"summary":"Get batches and serial numbers","description":"Get batches and serial numbers","operationId":"getBatchesAndSerialNumbers","parameters":[{"name":"query","in":"query","required":false,"schema":{"type":"string"}},{"name":"batch","in":"query","required":false,"schema":{"type":"boolean","default":true}},{"name":"serial","in":"query","required":false,"schema":{"type":"boolean","default":true}},{"name":"filter_all_batches","in":"query","required":false,"schema":{"type":"boolean","default":true}},{"name":"include_inactive","in":"query","required":false,"schema":{"type":"boolean","default":false}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":0}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":100}}],"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ArticleBatchesDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/ArticleBatchesDto"}}}}}}},"/v1/articles/autocomplete":{"get":{"tags":["Articles"],"summary":"Get articles for autocomplete","description":"Get a list of articles with bare minimum of fields to use for autocomplete fields","operationId":"getArticlesAutocomplete","parameters":[{"name":"light","in":"query","required":false,"schema":{"type":"boolean","default":true}},{"name":"query","in":"query","required":false,"schema":{"type":"string","default":""}},{"name":"pricelist_id","in":"query","required":false,"schema":{"type":"integer","format":"int64","default":-1}},{"name":"supplier_id","in":"query","required":false,"schema":{"type":"integer","format":"int64","default":-1}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":0}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":20}}],"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ArticlesAutoCompleteResponseDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/ArticlesAutoCompleteResponseDto"}}}}}}},"/v1/account/webmessages":{"get":{"tags":["User Account"],"summary":"Get unread web messages","description":"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","operationId":"getUnreadWebMessages","parameters":[{"name":"statistics","in":"query","required":false,"schema":{"type":"boolean","default":false}}],"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebMessagesResponseDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/WebMessagesResponseDto"}}}}}}},"/v1/account/users":{"get":{"tags":["User Account"],"summary":"Get users","description":"Get list of users connected to company account","operationId":"getUsers","parameters":[{"name":"query","in":"query","required":false,"schema":{"type":"string","default":""}},{"name":"since","in":"query","required":false,"schema":{"type":"integer","format":"int64","default":0}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":0}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":100}},{"name":"filter_customers","in":"query","required":false,"schema":{"type":"boolean","default":false}}],"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UsersResponseDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/UsersResponseDto"}}}}}}},"/v1/account/status/count":{"get":{"tags":["Status"],"summary":"Get unread status messages count","description":"Get number of unread status messages","operationId":"getUnreadStatusMessagesCount","responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CountDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/CountDto"}}}}}}},"/v1/account/settings/{user_id}":{"get":{"tags":["Account"],"summary":"Get user settings","description":"Get settings for user","operationId":"getUserAccountSettingsForUser","parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountSettingsDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/AccountSettingsDto"}}}}}}},"/v1/account/license":{"get":{"tags":["Company Account"],"summary":"Get licence","description":"Get link to license. This must be displayed to user before he/she is allowed to register","operationId":"getLicenseAgreement","parameters":[{"name":"promotion_code","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LicenseDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/LicenseDto"}}}}}}},"/v1/account/invoices":{"get":{"tags":["Company Account"],"summary":"InvoicesResponse","description":"Get list of invoices for account","operationId":"getInvoices","responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvoicesResponseDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/InvoicesResponseDto"}}}}}}},"/v1/account/invoices/{invoice_id}":{"get":{"tags":["Company Account"],"summary":"Get invoice by id","description":"Get single invoice by id for account","operationId":"getInvoiceById","parameters":[{"name":"invoice_id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvoiceDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/InvoiceDto"}}}}}}},"/v1/account/invoices/{invoice_id}/print":{"get":{"tags":["Company Account"],"summary":"Get invoice file","description":"Get invoice binary file by id for account","operationId":"getInvoiceBinaryById_1","parameters":[{"name":"invoice_id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"credit","in":"query","required":false,"schema":{"type":"boolean"}},{"name":"store","in":"query","required":false,"schema":{"type":"integer","format":"int64"}}],"responses":{"default":{"description":"default response","content":{"application/pdf":{"schema":{"type":"string"}},"application/json":{"schema":{"type":"string"}}}}}}},"/v1/account/invoices/next":{"get":{"tags":["Company Account"],"summary":"Get next invoice","description":"Get next future invoice for account","operationId":"getNextInvoice","responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvoiceDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/InvoiceDto"}}}}}}},"/v1/stocktake/{id}/articles/{articleId}":{"delete":{"tags":["Stocktake articles"],"summary":"Remove article","description":"Remove article from an existing stocktake. The stocktake must be in state NEW","operationId":"removeArticle","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"articleId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}},"application/xml":{"schema":{"type":"object"}}}}}}},"/v1/stocktake/{id}/articles/{articleId}/batch/{batchId}":{"delete":{"tags":["Stocktake articles"],"summary":"Remove article batch","description":"Remove an article batch or serial number from an existing stocktake. The stocktake must be in state NEW","operationId":"removeArticleBatch","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"articleId","in":"path","required":true,"schema":{"type":"string"}},{"name":"batchId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}},"application/xml":{"schema":{"type":"object"}}}}}}},"/v1/purchase_orders/open/products/{article_id}":{"delete":{"tags":["Purchase orders"],"summary":"Remove article from open order","description":"Remove article from open purchase order","operationId":"removeProductFromOpenOrder","parameters":[{"name":"article_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}},"application/xml":{"schema":{"type":"object"}}}}}}},"/v1/production_orders/{order_id}/article/{article_id}":{"delete":{"tags":["Production orders"],"summary":"Remove production order article","description":"Remove article from an existing production order","operationId":"deleteProductionOrderArticle","parameters":[{"name":"order_id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"article_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProductionOrderDto"}},"application/xml":{"schema":{"$ref":"#/components/schemas/ProductionOrderDto"}}}}}}},"/v1/integration":{"delete":{"tags":["Integration"],"summary":"Remove integration","description":"Remove integration and stop all sync messages","operationId":"removeIntegration","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}},"application/xml":{"schema":{"type":"object"}}}}}}},"/v1/feature/draft/{draft_id}":{"delete":{"tags":["Feature draft"],"summary":"Delete feature draft","description":"Hard-delete a draft and its full revision history, freeing its feature_id back up. S3 blobs are left in place","operationId":"deleteDraft","parameters":[{"name":"draft_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/v1/events/{id}":{"delete":{"tags":["Scheduled Events"],"summary":"Remove scheduled event","description":"Remove a scheduled event for store","operationId":"removeScheduledEvent","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}},"application/xml":{"schema":{"type":"object"}}}}}}},"/v1/auth/tokens/{id}":{"delete":{"tags":["OAuth2"],"summary":"Revoke my connection","description":"Revokes one of the caller's own OAuth connections (the whole token family, access and refresh token alike).","operationId":"revokeConnection","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"object"}}}}}}},"/v1/articles/fifo/{id}":{"delete":{"tags":["Articles"],"summary":"Delete article fifo","description":"Delete a specific fifo row","operationId":"deleteFIFO","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}},"application/xml":{"schema":{"type":"object"}}}}}}},"/v1/articles/customfields/{name}":{"delete":{"tags":["Templates"],"summary":"Delete custom field","description":"Delete custom field and remove it from articles","operationId":"deleteCustomField","parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}},"application/xml":{"schema":{"type":"object"}}}}}}},"/v1/account/sso/{type}":{"delete":{"tags":["User Account"],"summary":"Remove SSO","description":"Remove Single Sign On from user","operationId":"removeSSO","parameters":[{"name":"type","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}},"application/xml":{"schema":{"type":"object"}}}}}}}},"components":{"schemas":{"WayOfDeliveryDto":{"properties":{"code":{"type":"string"},"description":{"type":"string"}}},"VATDto":{"properties":{"id":{"type":"integer","format":"int64"},"vat":{"type":"number","format":"double"},"account":{"type":"integer","format":"int32"},"code":{"type":"string"},"description":{"type":"string"},"isDefault":{"type":"boolean"}}},"UnitDto":{"properties":{"id":{"type":"integer","format":"int64"},"externalId":{"type":"string"},"name":{"type":"string"},"articles":{"type":"integer","format":"int32"},"articleUnits":{"type":"integer","format":"int32"},"isDefault":{"type":"boolean"}}},"SupplierDto":{"properties":{"id":{"type":"integer","format":"int64"},"externalId":{"type":"string"},"supplierExternalId":{"type":"string"},"name":{"type":"string"},"orgNumber":{"type":"string"},"vatNumber":{"type":"string"},"comments":{"type":"string"},"street":{"type":"string"},"zip":{"type":"string"},"city":{"type":"string"},"country":{"type":"string"},"countryName":{"type":"string"},"contactName":{"type":"string"},"contactPhone":{"type":"string"},"contactEmail":{"type":"string"},"customerNumber":{"type":"string"},"includePricesInOrders":{"type":"boolean"},"includeShipmentAndMiscInPrice":{"type":"boolean"},"currency":{"type":"string"},"rate":{"type":"number","format":"double"},"buyPrice":{"type":"number","format":"double"},"buyPriceShipment":{"type":"number","format":"double"},"buyPriceMisc":{"type":"number","format":"double"},"language":{"type":"string"},"automaticOrder":{"type":"boolean"},"paymentTerms":{"type":"string"},"deliveryDays":{"type":"integer","format":"int32"},"emailStatus":{"type":"object","additionalProperties":{"type":"boolean"}},"openOrders":{"type":"integer","format":"int32"}}},"SupplierDeliveryTermDto":{"properties":{"code":{"type":"string"},"description":{"type":"string"}}},"StocktakeDto":{"properties":{"id":{"type":"integer","format":"int64"},"name":{"type":"string"},"storeId":{"type":"integer","format":"int64"},"description":{"type":"string"},"dueDate":{"type":"string","format":"date-time"},"itemsTotal":{"type":"integer","format":"int32"},"itemsLeft":{"type":"integer","format":"int32"},"annualAccount":{"type":"boolean"},"onTheFly":{"type":"boolean"},"state":{"type":"string"},"stockValueFIFO":{"type":"number","format":"double"},"stockValue":{"type":"number","format":"double"},"accounts":{"type":"array","items":{"type":"string"}}}},"StocktakesResponseDto":{"type":"object","properties":{"stocktakes":{"type":"array","items":{"$ref":"#/components/schemas/StocktakeDto"}}}},"StocktakeArticleRequestDto":{"properties":{"articleId":{"type":"string"},"batchId":{"type":"string"},"serialNr":{"type":"string"},"addedAmount":{"type":"number","format":"double"},"addToExisting":{"type":"boolean"}}},"PathDto":{"properties":{"path":{"type":"string"},"action":{"type":"string"}}},"RoleDto":{"properties":{"id":{"type":"integer","format":"int64"},"storeGroupId":{"type":"integer","format":"int64"},"name":{"type":"string"},"paths":{"type":"array","items":{"$ref":"#/components/schemas/PathDto"}},"fields":{"type":"object","additionalProperties":{"type":"array","items":{"type":"string"}}},"portal":{"type":"string"},"users":{"type":"integer","format":"int32"},"loginServices":{"type":"array","items":{"type":"string"}},"nativeFeatures":{"type":"array","items":{"type":"string"}},"convertedFields":{"type":"object","additionalProperties":{"type":"array","items":{"type":"string"}}},"convertedLoginServices":{"type":"array","items":{"type":"string","enum":["WEB","APP"]}}}},"RolesResponseDto":{"type":"object","properties":{"roles":{"type":"array","items":{"$ref":"#/components/schemas/RoleDto"}}}},"ArticleUnitDto":{"properties":{"storegroupId":{"type":"integer","format":"int64"},"articleId":{"type":"string"},"unit":{"$ref":"#/components/schemas/UnitDto"},"convert":{"type":"number","format":"double"},"barcode":{"type":"string"}}},"PurchaseOrderArticleBatchDto":{"properties":{"batchId":{"type":"string"},"serialNr":{"type":"string"},"orderedAmount":{"type":"number","format":"double"},"deliveredAmount":{"type":"number","format":"double"},"bestBefore":{"type":"integer","format":"int64"}}},"PurchaseOrderArticleDto":{"properties":{"id":{"type":"integer","format":"int64"},"articleId":{"type":"string"},"articleName":{"type":"string"},"supplierArticleId":{"type":"string"},"orderedAmount":{"type":"number","format":"double"},"deliveredAmount":{"type":"number","format":"double"},"availableAmount":{"type":"number","format":"double"},"stockWarning":{"type":"number","format":"double"},"barcode":{"type":"string"},"barcodeType":{"type":"string"},"purchasePrice":{"type":"number","format":"double"},"purchasePriceMisc":{"type":"number","format":"double"},"purchasePriceShipment":{"type":"number","format":"double"},"rate":{"type":"number","format":"double"},"description":{"type":"string"},"unit":{"type":"string"},"type":{"type":"string"},"stock":{"type":"boolean"},"batches":{"type":"array","items":{"$ref":"#/components/schemas/PurchaseOrderArticleBatchDto"}},"units":{"type":"array","items":{"$ref":"#/components/schemas/ArticleUnitDto"}},"orderedAmountWithUnits":{"type":"string"},"updateArticleBuyPrice":{"type":"boolean"}}},"PurchaseOrderDto":{"properties":{"id":{"type":"integer","format":"int64"},"storeId":{"type":"integer","format":"int64"},"poReference":{"type":"string"},"supplierId":{"type":"integer","format":"int64"},"supplierName":{"type":"string"},"orderSentDate":{"type":"string","format":"date-time"},"deliveryDate":{"type":"string","format":"date-time"},"confirmedDeliveryDate":{"type":"string","format":"date-time"},"deliveredDate":{"type":"string","format":"date-time"},"paymentTerms":{"type":"string"},"paymentTermsDescription":{"type":"string"},"deliveryTerms":{"type":"string"},"deliveryTermsDescription":{"type":"string"},"deliveryContact":{"type":"string"},"deliveryCompany":{"type":"string"},"deliveryPhone":{"type":"string"},"deliveryAddress":{"type":"string"},"deliveryAddress2":{"type":"string"},"deliveryCity":{"type":"string"},"deliveryZip":{"type":"string"},"deliveryCountry":{"type":"string"},"contactPerson":{"type":"string"},"contactEmail":{"type":"string"},"productCount":{"type":"integer","format":"int32"},"state":{"type":"integer","format":"int32"},"supplierOrderId":{"type":"string"},"customerOrderId":{"type":"integer","format":"int64"},"productionOrderId":{"type":"integer","format":"int64"},"message":{"type":"string"},"isPickNPack":{"type":"boolean"},"comment":{"type":"string"},"deliveryNoteId":{"type":"string"},"publicId":{"type":"string"},"externalInvoiceReference":{"type":"string"},"goodsMarking":{"type":"string"},"orderValue":{"type":"number","format":"double"},"orderValueCurrency":{"type":"string"},"orderValueStore":{"type":"number","format":"double"},"articles":{"type":"array","items":{"$ref":"#/components/schemas/PurchaseOrderArticleDto"}},"updateArticleBuyPrice":{"type":"boolean"},"pickNPack":{"type":"boolean","writeOnly":true}}},"VerifyProductDto":{"properties":{"articleId":{"type":"string"},"purchasePrice":{"type":"number","format":"double"},"purchasePriceShipment":{"type":"number","format":"double"},"purchasePriceMisc":{"type":"number","format":"double"}}},"VerifyProductsDto":{"properties":{"verify":{"type":"boolean"},"externalInvoiceReference":{"type":"string"},"products":{"type":"array","items":{"$ref":"#/components/schemas/VerifyProductDto"}},"updateArticleBuyPrice":{"type":"boolean"}}},"PurchaseOrderStateDto":{"properties":{"state":{"type":"integer","format":"int32"}}},"ReceiversDto":{"properties":{"to":{"type":"string"},"ccList":{"type":"array","items":{"type":"string"}}}},"PurchaseOrderRateDto":{"properties":{"rate":{"type":"number","format":"double"}}},"MoveOpenPurchaseOrderArticleDto":{"properties":{"articleId":{"type":"string"},"supplierId":{"type":"integer","format":"int64"},"orderId":{"type":"integer","format":"int64"},"amount":{"type":"number","format":"double"},"price":{"type":"number","format":"double"},"bundleParts":{"type":"array","items":{"$ref":"#/components/schemas/MoveOpenPurchaseOrderArticleDto"}}}},"ProjectArticleDto":{"properties":{"id":{"type":"integer","format":"int64"},"projectId":{"type":"integer","format":"int64"},"articleId":{"type":"string"},"articleName":{"type":"string"},"batchId":{"type":"string"},"snId":{"type":"string"},"batchSnBestBefore":{"type":"integer","format":"int64"},"checkoutAmount":{"type":"number","format":"double"},"checkinAmount":{"type":"number","format":"double"},"consumedAmount":{"type":"number","format":"double"},"invoicedAmount":{"type":"number","format":"double"},"priceListId":{"type":"integer","format":"int64"},"rental":{"type":"boolean"},"price":{"type":"number","format":"double"},"rentalCurrency":{"type":"string"},"comment":{"type":"string"},"purchasePrice":{"type":"number","format":"double"},"events":{"type":"array","items":{"$ref":"#/components/schemas/ProjectArticleEventDto"}},"accountId":{"type":"integer","format":"int64"},"accountName":{"type":"string"},"checkoutDate":{"type":"integer","format":"int64"},"checkinConsumeDate":{"type":"string","format":"date-time"}}},"ProjectArticleEventDto":{"properties":{"type":{"type":"string"},"amount":{"type":"number","format":"double"},"date":{"type":"string","format":"date-time"}}},"ProjectDto":{"properties":{"projectId":{"type":"integer","format":"int64"},"name":{"type":"string"},"customerId":{"type":"integer","format":"int64"},"customerName":{"type":"string"},"description":{"type":"string"},"state":{"type":"integer","format":"int32"},"responsibleUserId":{"type":"integer","format":"int64"},"responsibleUserName":{"type":"string"},"createdById":{"type":"integer","format":"int64"},"createdByName":{"type":"string"},"created":{"type":"integer","format":"int64"},"articles":{"type":"array","items":{"$ref":"#/components/schemas/ProjectArticleDto"}},"cost":{"type":"number","format":"double"},"stockValue":{"type":"number","format":"double"}}},"InvoiceDraftDto":{"properties":{"id":{"type":"integer","format":"int64"},"dataType":{"type":"string"},"dataId":{"type":"integer","format":"int64"},"dataArticleId":{"type":"integer","format":"int64"},"articleId":{"type":"string"},"articleName":{"type":"string"},"amount":{"type":"number","format":"double"},"price":{"type":"number","format":"double"},"pricelistId":{"type":"integer","format":"int64"},"currency":{"type":"string"},"rentalCurrency":{"type":"string"},"startDate":{"type":"string","format":"date-time"},"endDate":{"type":"string","format":"date-time"},"rentalAmount":{"type":"number","format":"double"},"comment":{"type":"string"},"isInvoiced":{"type":"boolean"},"isProcessed":{"type":"boolean"},"invoiceId":{"type":"string"},"createdById":{"type":"integer","format":"int64"},"createdByName":{"type":"string"},"created":{"type":"string","format":"date-time"}}},"InvoiceProjectArticlesResponseDto":{"type":"object","properties":{"articles":{"type":"array","items":{"$ref":"#/components/schemas/ProjectArticleDto"}},"invoiceDrafts":{"type":"array","items":{"$ref":"#/components/schemas/InvoiceDraftDto"}}}},"InvoiceProjectArticlesRequestDto":{"properties":{"projectId":{"type":"integer","format":"int64"},"customerId":{"type":"integer","format":"int64"},"type":{"type":"string"},"invoiceDrafts":{"type":"array","items":{"$ref":"#/components/schemas/InvoiceDraftDto"}},"freeTexts":{"type":"array","items":{"type":"string"}}}},"InvoiceDraftProjectArticlesRequestDto":{"properties":{"projectId":{"type":"integer","format":"int64"},"articles":{"type":"array","items":{"$ref":"#/components/schemas/ProjectArticleDto"}}}},"CloseProjectRequestDto":{"properties":{"closeArticles":{"type":"object","additionalProperties":{"type":"string"}}}},"ProductionOrderArticleDto":{"properties":{"productionOrderId":{"type":"integer","format":"int64"},"articleId":{"type":"string"},"articleName":{"type":"string"},"time":{"type":"number","format":"double"},"amount":{"type":"number","format":"double"},"finished":{"type":"number","format":"double"},"waste":{"type":"number","format":"double"},"status":{"type":"integer","format":"int32"},"accuracy":{"type":"number","format":"double"}}},"ProductionOrderDto":{"type":"object","properties":{"orderId":{"type":"integer","format":"int64"},"prReference":{"type":"string"},"customerOrderId":{"type":"integer","format":"int64"},"customerOrderExternalId":{"type":"string"},"internalReference":{"type":"string"},"name":{"type":"string"},"comment":{"type":"string"},"startDate":{"type":"string","format":"date-time"},"endDate":{"type":"string","format":"date-time"},"finishDate":{"type":"string","format":"date-time"},"workHours":{"type":"number","format":"double"},"state":{"type":"integer","format":"int32"},"reserveInDepth":{"type":"boolean"},"storeState":{"type":"integer","format":"int32"},"totalAmount":{"type":"number","format":"double"},"finishedAmount":{"type":"number","format":"double"},"articles":{"type":"array","items":{"$ref":"#/components/schemas/ProductionOrderArticleDto"}},"singleArticles":{"type":"array","items":{"$ref":"#/components/schemas/ProductionOrderSingleArticleGroupDto"}}}},"ProductionOrderSingleArticleGroupDto":{"properties":{"articleId":{"type":"string"},"singleArticles":{"type":"array","items":{"$ref":"#/components/schemas/ProductionOrderSingleArticleReservedDto"}}}},"ProductionOrderSingleArticleReservedDto":{"properties":{"articleId":{"type":"string"},"singleArticleId":{"type":"string"},"singleArticleName":{"type":"string"},"unit":{"type":"string"},"totalReserved":{"type":"number","format":"double"},"totalAmount":{"type":"number","format":"double"},"partAmount":{"type":"number","format":"double"},"purchasePrice":{"type":"number","format":"double"},"hasStockValue":{"type":"boolean"},"productionOrderState":{"type":"integer","format":"int32"},"finishedAmount":{"type":"number","format":"double"}}},"PartTraceabilityBatchDto":{"properties":{"batchId":{"type":"string"},"amount":{"type":"number","format":"double"}}},"PartTraceabilityDto":{"properties":{"articleId":{"type":"string"},"amount":{"type":"number","format":"double"},"batches":{"type":"array","items":{"$ref":"#/components/schemas/PartTraceabilityBatchDto"}},"serial":{"type":"array","items":{"type":"string"}}}},"ProductionOrderArticleTraceabilityDto":{"properties":{"articleId":{"type":"string"},"batch":{"type":"string"},"serial":{"type":"string"},"amount":{"type":"number","format":"double"},"bestBefore":{"type":"integer","format":"int64"},"barcode":{"type":"string"},"partTraceability":{"type":"array","items":{"$ref":"#/components/schemas/PartTraceabilityDto"}},"limitPartAmounts":{"type":"boolean"}}},"PricelistDto":{"properties":{"id":{"type":"integer","format":"int64"},"code":{"type":"string"},"name":{"type":"string"},"description":{"type":"string"},"currency":{"type":"string"},"rate":{"type":"number","format":"double"},"preSelected":{"type":"boolean"},"markupLocked":{"type":"boolean"},"markupPercent":{"type":"number","format":"double"}}},"PricelistRequestDto":{"properties":{"id":{"type":"integer","format":"int64"},"code":{"type":"string"},"name":{"type":"string"},"description":{"type":"string"},"currency":{"type":"string"},"preSelected":{"type":"boolean"},"exchangeRate":{"type":"number","format":"double"},"markupLocked":{"type":"boolean"},"markupPercent":{"type":"number","format":"double"}}},"PriceDto":{"properties":{"listId":{"type":"integer","format":"int64"},"listExternalId":{"type":"string"},"articleId":{"type":"string"},"fromQuantity":{"type":"number","format":"double"},"price":{"type":"number","format":"double"}}},"ArticlePricesDto":{"properties":{"articleId":{"type":"string"},"prices":{"type":"array","items":{"$ref":"#/components/schemas/PriceDto"}}}},"PaymentTermDto":{"properties":{"code":{"type":"string"},"description":{"type":"string"}}},"MobilePushDataDto":{"properties":{"pushId":{"type":"string"}}},"InvoiceDraftIdsRequestDto":{"properties":{"invoiceDraftIds":{"type":"array","items":{"type":"integer","format":"int64"}},"type":{"type":"string"}}},"Address":{"properties":{"city":{"type":"string"},"country":{"type":"string"}}},"Contact":{"properties":{"phone":{"type":"string"},"email":{"type":"string"}}},"Customer":{"properties":{"name":{"type":"string"},"phone":{"type":"string"},"reference":{"type":"string"}}},"InvoiceInfo":{"properties":{"currency":{"type":"string"},"invoice_number":{"type":"string"},"invoice_date":{"type":"string"},"due_date":{"type":"string"},"payment_terms":{"type":"string"},"customer_number":{"type":"string"},"customer_reference":{"type":"string"},"our_reference":{"type":"string"},"order_id":{"type":"string"}}},"InvoiceInterpreterResponseDto":{"type":"object","properties":{"invoice":{"$ref":"#/components/schemas/InvoiceInfo"},"customer":{"$ref":"#/components/schemas/Customer"},"supplier":{"$ref":"#/components/schemas/Supplier"},"totals":{"$ref":"#/components/schemas/Totals"},"payment":{"$ref":"#/components/schemas/Payment"},"notes":{"$ref":"#/components/schemas/Notes"},"line_items":{"type":"array","items":{"$ref":"#/components/schemas/LineItem"}}}},"LineItem":{"properties":{"title":{"type":"string"},"description":{"type":"string"},"quantity":{"type":"number","format":"double"},"unit":{"type":"string"},"freight":{"type":"number","format":"double"},"product_code":{"type":"string"},"unit_price":{"type":"number","format":"double"},"line_amount":{"type":"number","format":"double"}}},"Notes":{"properties":{"interest_terms":{"type":"string"},"complaint_terms":{"type":"string"}}},"Payment":{"properties":{"to_bankgiro":{"type":"string"},"ocr_number":{"type":"string"},"reference_number":{"type":"string"}}},"Supplier":{"properties":{"name":{"type":"string"},"address":{"$ref":"#/components/schemas/Address"},"contact":{"$ref":"#/components/schemas/Contact"},"bankgiro":{"type":"string"},"organization_number":{"type":"string"},"vat_registration_number":{"type":"string"}}},"Totals":{"properties":{"rounding":{"type":"number","format":"double"},"freight":{"type":"number","format":"double"},"total_before_vat":{"type":"number","format":"double"},"vat_rate_percent":{"type":"number","format":"double"},"vat_amount":{"type":"number","format":"double"},"total_with_vat":{"type":"number","format":"double"}}},"Company":{"properties":{"org_number":{"type":"string"},"vat_number":{"type":"string"}}},"DeliveryFrom":{"properties":{"name":{"type":"string"},"attention":{"type":"string"},"city":{"type":"string"},"country":{"type":"string"},"phone":{"type":"string"},"address1":{"type":"string"},"postal_code":{"type":"string"}}},"DeliveryNoteInterpreterResponseDto":{"type":"object","properties":{"customer":{"$ref":"#/components/schemas/Customer"},"company":{"$ref":"#/components/schemas/Company"},"lines":{"type":"array","items":{"$ref":"#/components/schemas/Line"}},"order_number":{"type":"string"},"customers_order_number":{"type":"string"},"delivery_from":{"$ref":"#/components/schemas/DeliveryFrom"},"delivery_to":{"$ref":"#/components/schemas/DeliveryTo"},"order_date":{"type":"string"},"delivery_date":{"type":"string"},"delivery_terms":{"type":"string"}}},"DeliveryTo":{"properties":{"name":{"type":"string"},"city":{"type":"string"},"country":{"type":"string"},"phone":{"type":"string"},"address1":{"type":"string"},"postal_code":{"type":"string"}}},"ExtraLine":{"properties":{"type":{"type":"string"},"value":{"type":"string"},"ordered_quantity":{"$ref":"#/components/schemas/Quantity"},"delivered_quantity":{"$ref":"#/components/schemas/Quantity"}}},"Line":{"properties":{"description":{"type":"string"},"article_number":{"type":"string"},"article_name":{"type":"string"},"vat_percent":{"type":"number","format":"double"},"ordered_quantity":{"$ref":"#/components/schemas/Quantity"},"delivered_quantity":{"$ref":"#/components/schemas/Quantity"},"extra_lines":{"type":"array","items":{"$ref":"#/components/schemas/ExtraLine"}}}},"Quantity":{"properties":{"value":{"type":"number","format":"double"},"unit":{"type":"string"}}},"ExternalCredentialsDto":{"properties":{"integration":{"type":"string"},"allowedMethods":{"type":"array","items":{"type":"string","enum":["GET","POST","PUT","DELETE"]}}}},"ExternalCredentialsRequestDto":{"properties":{"integration":{"type":"string"},"values":{"type":"object","additionalProperties":{"type":"string"}},"allowedMethods":{"type":"array","items":{"type":"string","enum":["GET","POST","PUT","DELETE"]}},"authorizationMethod":{"type":"string"}}},"FeatureFileDto":{"properties":{"index":{"type":"integer","format":"int32"},"filename":{"type":"string"},"menuTitle":{"type":"object","additionalProperties":{"type":"string"}}}},"FeaturePermission":{"properties":{"method":{"type":"string"},"path":{"type":"string"}}},"FeatureResponseDto":{"properties":{"id":{"type":"string"},"name":{"type":"object","additionalProperties":{"type":"string"}},"roles":{"type":"array","items":{"type":"integer","format":"int64"}},"icon":{"type":"string"},"image":{"type":"string"},"description":{"type":"object","additionalProperties":{"type":"string"}},"publisher":{"type":"string"},"credits":{"type":"string"},"price":{"type":"number","format":"double"},"annual":{"type":"boolean"},"dashboard":{"type":"string"},"version":{"type":"string"},"files":{"type":"array","items":{"$ref":"#/components/schemas/FeatureFileDto"}},"server":{"type":"boolean"},"serverApi":{"type":"boolean"},"category":{"type":"array","items":{"type":"string"}},"permissions":{"type":"array","items":{"$ref":"#/components/schemas/FeaturePermission"}},"sandbox":{"type":"boolean"}}},"McpFeatureToolsPolicyDto":{"type":"object","properties":{"featureId":{"type":"string"},"enabled":{"type":"boolean"}}},"FeatureDraftWriteResultDto":{"type":"object","properties":{"draftId":{"type":"string"},"revision":{"type":"integer","format":"int32"},"path":{"type":"string"},"sha256":{"type":"string"},"bytes":{"type":"integer","format":"int64"},"unchanged":{"type":"boolean"}}},"FeatureDraftFileWriteRequestDto":{"properties":{"content":{"type":"string"},"expectedSha256":{"type":"string"},"message":{"type":"string"},"authorAgent":{"type":"string"},"promptSummary":{"type":"string"}}},"ArticleTagDto":{"properties":{"id":{"type":"integer","format":"int64"},"externalId":{"type":"string"},"name":{"type":"string"},"desc":{"type":"string"}}},"CustomerDiscountDto":{"properties":{"articleTag":{"$ref":"#/components/schemas/ArticleTagDto"},"discount":{"type":"number","format":"double"}}},"CustomerDto":{"properties":{"customerId":{"type":"integer","format":"int64"},"externalCustomerId":{"type":"string"},"externalId":{"type":"string"},"name":{"type":"string"},"orgNumber":{"type":"string"},"ourReference":{"type":"string"},"phone1":{"type":"string"},"phone2":{"type":"string"},"address1":{"type":"string"},"address2":{"type":"string"},"zipCode":{"type":"string"},"city":{"type":"string"},"country":{"type":"string"},"countryName":{"type":"string"},"language":{"type":"string"},"comments":{"type":"string"},"currency":{"type":"string"},"deliveryAddress1":{"type":"string"},"deliveryAddress2":{"type":"string"},"deliveryCity":{"type":"string"},"deliveryZipCode":{"type":"string"},"deliveryCountry":{"type":"string"},"deliveryCountryName":{"type":"string"},"deliveryName":{"type":"string"},"deliveryPhone1":{"type":"string"},"deliveryPhone2":{"type":"string"},"visitingAddress":{"type":"string"},"visitingCity":{"type":"string"},"visitingZipCode":{"type":"string"},"visitingCountry":{"type":"string"},"visitingCountryName":{"type":"string"},"email":{"type":"string"},"emailInvoice":{"type":"string"},"emailOffer":{"type":"string"},"emailOrder":{"type":"string"},"emailStatus":{"type":"object","additionalProperties":{"type":"boolean"}},"invoiceDiscount":{"type":"number","format":"float"},"invoiceRemark":{"type":"string"},"priceIncludeVAT":{"type":"boolean"},"showVAT":{"type":"boolean"},"deliveryTerm":{"type":"string"},"paymentTerm":{"type":"string"},"customerType":{"type":"string"},"vatNumber":{"type":"string"},"webUrl":{"type":"string"},"wayOfDelivery":{"type":"string"},"yourReference":{"type":"string"},"pricelistId":{"type":"integer","format":"int64"},"pricelistName":{"type":"string"},"tags":{"type":"array","items":{"$ref":"#/components/schemas/CustomerTagDto"}},"discounts":{"type":"array","items":{"$ref":"#/components/schemas/CustomerDiscountDto"}},"deactivatedDate":{"type":"string","format":"date-time"},"active":{"type":"boolean"}}},"CustomerTagDto":{"properties":{"id":{"type":"integer","format":"int64"},"externalId":{"type":"string"},"name":{"type":"string"},"desc":{"type":"string"}}},"CustomerImportTemplateDto":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"storegroupId":{"type":"integer","format":"int64"},"name":{"type":"string"},"type":{"type":"string"},"data":{"$ref":"#/components/schemas/ImportTemplateCustomerDto"}}},"ImportTemplateColumnDto":{"properties":{"column":{"type":"integer","format":"int32"},"defaultValue":{"type":"string"}}},"ImportTemplateCustomerDto":{"properties":{"rowTitle":{"type":"integer","format":"int32"},"rowFirst":{"type":"integer","format":"int32"},"customerName":{"type":"integer","format":"int32"},"customerId":{"type":"integer","format":"int32"},"externalId":{"$ref":"#/components/schemas/ImportTemplateColumnDto"},"externalCustomerId":{"$ref":"#/components/schemas/ImportTemplateColumnDto"},"type":{"$ref":"#/components/schemas/ImportTemplateColumnDto"},"orgNumber":{"$ref":"#/components/schemas/ImportTemplateColumnDto"},"vat":{"$ref":"#/components/schemas/ImportTemplateColumnDto"},"ourReference":{"$ref":"#/components/schemas/ImportTemplateColumnDto"},"yourReference":{"$ref":"#/components/schemas/ImportTemplateColumnDto"},"comment":{"$ref":"#/components/schemas/ImportTemplateColumnDto"},"phoneOne":{"$ref":"#/components/schemas/ImportTemplateColumnDto"},"phoneTwo":{"$ref":"#/components/schemas/ImportTemplateColumnDto"},"addressOne":{"$ref":"#/components/schemas/ImportTemplateColumnDto"},"addressTwo":{"$ref":"#/components/schemas/ImportTemplateColumnDto"},"zipCode":{"$ref":"#/components/schemas/ImportTemplateColumnDto"},"city":{"$ref":"#/components/schemas/ImportTemplateColumnDto"},"country":{"$ref":"#/components/schemas/ImportTemplateColumnDto"},"language":{"$ref":"#/components/schemas/ImportTemplateColumnDto"},"currency":{"$ref":"#/components/schemas/ImportTemplateColumnDto"},"deliveryAddressOne":{"$ref":"#/components/schemas/ImportTemplateColumnDto"},"deliveryAddressTwo":{"$ref":"#/components/schemas/ImportTemplateColumnDto"},"deliveryCity":{"$ref":"#/components/schemas/ImportTemplateColumnDto"},"deliveryZipCode":{"$ref":"#/components/schemas/ImportTemplateColumnDto"},"deliveryCountry":{"$ref":"#/components/schemas/ImportTemplateColumnDto"},"deliveryName":{"$ref":"#/components/schemas/ImportTemplateColumnDto"},"deliveryPhoneOne":{"$ref":"#/components/schemas/ImportTemplateColumnDto"},"deliveryPhoneTwo":{"$ref":"#/components/schemas/ImportTemplateColumnDto"},"visitingAddress":{"$ref":"#/components/schemas/ImportTemplateColumnDto"},"visitingCity":{"$ref":"#/components/schemas/ImportTemplateColumnDto"},"visitingZipCode":{"$ref":"#/components/schemas/ImportTemplateColumnDto"},"visitingCountry":{"$ref":"#/components/schemas/ImportTemplateColumnDto"},"email":{"$ref":"#/components/schemas/ImportTemplateColumnDto"},"emailInvoice":{"$ref":"#/components/schemas/ImportTemplateColumnDto"},"emailOffer":{"$ref":"#/components/schemas/ImportTemplateColumnDto"},"emailOrder":{"$ref":"#/components/schemas/ImportTemplateColumnDto"},"invoiceDiscount":{"$ref":"#/components/schemas/ImportTemplateColumnDto"},"invoiceRemark":{"$ref":"#/components/schemas/ImportTemplateColumnDto"},"priceIncludeVat":{"$ref":"#/components/schemas/ImportTemplateColumnDto"},"showVat":{"$ref":"#/components/schemas/ImportTemplateColumnDto"},"deliveryTerm":{"$ref":"#/components/schemas/ImportTemplateColumnDto"},"paymentTerm":{"$ref":"#/components/schemas/ImportTemplateColumnDto"},"wayOfDelivery":{"$ref":"#/components/schemas/ImportTemplateColumnDto"},"www":{"$ref":"#/components/schemas/ImportTemplateColumnDto"},"priceListId":{"$ref":"#/components/schemas/ImportTemplateColumnDto"},"tags":{"$ref":"#/components/schemas/ImportTemplateColumnDto"}}},"CategoryDto":{"properties":{"id":{"type":"integer","format":"int64"},"name":{"type":"string"},"articles":{"type":"integer","format":"int32"}}},"CustomerOrderBatchProductDto":{"properties":{"batchId":{"type":"string"},"serialNr":{"type":"string"},"orderedAmount":{"type":"number","format":"double"},"pickedAmount":{"type":"number","format":"double"},"deliveredAmount":{"type":"number","format":"double"},"bestBefore":{"type":"string","format":"date-time"},"stockPlace":{"type":"string"}}},"CustomerOrderDto":{"properties":{"orderId":{"type":"integer","format":"int64"},"externalOrderId":{"type":"string"},"externalDisplayOrderId":{"type":"string"},"webshopOrderId":{"type":"string"},"storeGroupId":{"type":"integer","format":"int64"},"customerId":{"type":"integer","format":"int64"},"customerName":{"type":"string"},"customerOrderNumber":{"type":"string"},"state":{"type":"integer","format":"int32"},"administrationFee":{"type":"number","format":"float"},"currency":{"type":"string"},"currencyRate":{"type":"number","format":"float"},"comments":{"type":"string"},"deliveryAddress1":{"type":"string"},"deliveryAddress2":{"type":"string"},"deliveryZipCode":{"type":"string"},"deliveryCity":{"type":"string"},"deliveryCountry":{"type":"string"},"deliveryDate":{"type":"string","format":"date-time"},"deliveryName":{"type":"string"},"deliveryEmail":{"type":"string"},"freight":{"type":"number","format":"float"},"orderDate":{"type":"string","format":"date-time"},"deliveredDate":{"type":"string","format":"date-time"},"ourReference":{"type":"string"},"phone1":{"type":"string"},"phone2":{"type":"string"},"remarks":{"type":"string"},"deliveryTerm":{"type":"string"},"deliveryTermDesc":{"type":"string"},"paymentTerm":{"type":"string"},"paymentTermDesc":{"type":"string"},"vatIncluded":{"type":"boolean"},"wayOfDelivery":{"type":"string"},"wayOfDeliveryDesc":{"type":"string"},"yourReference":{"type":"string"},"products":{"type":"array","items":{"$ref":"#/components/schemas/CustomerOrderProductDto"}},"pricelistId":{"type":"integer","format":"int64"},"externalInvoiceReference1":{"type":"string"},"externalInvoiceReference2":{"type":"string"},"costCenter":{"type":"integer","format":"int64"},"totalPrice":{"type":"number","format":"double"},"totalDiscount":{"type":"number","format":"double"},"deliveryStatus":{"type":"integer","format":"int32"},"orderValue":{"type":"number","format":"double"},"projectId":{"type":"integer","format":"int64"},"externalProjectId":{"type":"string"}}},"CustomerOrderProductDto":{"properties":{"id":{"type":"integer","format":"int64"},"storeId":{"type":"integer","format":"int64"},"storeGroupId":{"type":"integer","format":"int64"},"articleId":{"type":"string"},"rowIndex":{"type":"integer","format":"int32"},"orderedAmount":{"type":"number","format":"double"},"pickedAmount":{"type":"number","format":"double"},"deliveredAmount":{"type":"number","format":"double"},"piecePrice":{"type":"number","format":"double"},"totalPrice":{"type":"number","format":"double"},"vat":{"type":"number","format":"double"},"discountType":{"type":"string"},"discount":{"type":"number","format":"double"},"description":{"type":"string"},"costCenter":{"type":"integer","format":"int64"},"isBundled":{"type":"boolean"},"width":{"type":"number","format":"double"},"height":{"type":"number","format":"double"},"depth":{"type":"number","format":"double"},"weight":{"type":"number","format":"double"},"batches":{"type":"array","items":{"$ref":"#/components/schemas/CustomerOrderBatchProductDto"}},"category":{"$ref":"#/components/schemas/CategoryDto"},"stockWarning":{"type":"number","format":"double"},"availableAmount":{"type":"number","format":"double"},"tg":{"type":"number","format":"double"},"type":{"type":"string"},"fifo":{"type":"number","format":"double"},"bundled":{"type":"boolean","writeOnly":true}}},"BundledArticleDto":{"properties":{"articleId":{"type":"string"},"articleName":{"type":"string"},"externalId":{"type":"string"},"amount":{"type":"number","format":"double"},"isStock":{"type":"boolean"},"stockWarning":{"type":"number","format":"double"},"stock":{"type":"number","format":"double"},"reserved":{"type":"number","format":"double"},"type":{"type":"string"},"unitName":{"type":"string"},"stockPlace":{"type":"string"},"buyPrice":{"type":"number","format":"double"},"buyPriceShipment":{"type":"number","format":"double"},"buyPriceMisc":{"type":"number","format":"double"},"buyPriceCurrency":{"type":"string"},"supplierId":{"type":"integer","format":"int64"},"supplierName":{"type":"string"},"supplierArticleId":{"type":"string"}}},"PickingListProductDto":{"properties":{"customerOrderProductId":{"type":"integer","format":"int64"},"rowIndex":{"type":"integer","format":"int32"},"articleId":{"type":"string"},"name":{"type":"string"},"barcode":{"type":"string"},"orderedAmount":{"type":"number","format":"double"},"pickedAmount":{"type":"number","format":"double"},"stockAmount":{"type":"number","format":"double"},"stockPlace":{"type":"string"},"unit":{"$ref":"#/components/schemas/UnitDto"},"bundled":{"type":"boolean"},"parts":{"type":"array","items":{"$ref":"#/components/schemas/BundledArticleDto"}},"batches":{"type":"array","items":{"$ref":"#/components/schemas/CustomerOrderBatchProductDto"}},"units":{"type":"array","items":{"$ref":"#/components/schemas/ArticleUnitDto"}}}},"PickingListProductsDto":{"type":"object","properties":{"products":{"type":"array","items":{"$ref":"#/components/schemas/PickingListProductDto"}}}},"PickingListDto":{"properties":{"id":{"type":"integer","format":"int64"},"orderId":{"type":"integer","format":"int64"},"storeId":{"type":"integer","format":"int64"},"title":{"type":"string"},"state":{"type":"integer","format":"int32"},"warehouseWorkerId":{"type":"integer","format":"int64"},"warehouseWorkerName":{"type":"string"},"startedDate":{"type":"string","format":"date-time"},"finishedDate":{"type":"string","format":"date-time"},"deliveryDate":{"type":"string","format":"date-time"},"customerName":{"type":"string"},"orderComment":{"type":"string"},"orderRemark":{"type":"string"},"productsCount":{"type":"integer","format":"int32"},"products":{"type":"array","items":{"$ref":"#/components/schemas/PickingListProductDto"}}}},"EmailDto":{"properties":{"email":{"type":"string"},"ccList":{"type":"array","items":{"type":"string"}}}},"CustomerOrderRequestDto":{"properties":{"customerOrders":{"type":"array","items":{"$ref":"#/components/schemas/CustomerOrderDto"}}}},"OfferDto":{"properties":{"offerId":{"type":"integer","format":"int64"},"customerId":{"type":"integer","format":"int64"},"customerName":{"type":"string"},"customerPhone":{"type":"string"},"customerEmail":{"type":"string"},"state":{"type":"integer","format":"int32"},"pricelistId":{"type":"integer","format":"int64"},"currency":{"type":"string"},"rate":{"type":"number","format":"double"},"description":{"type":"string"},"ourReference":{"type":"string"},"validDate":{"type":"string","format":"date-time"},"createdDate":{"type":"string","format":"date-time"},"customerOrderId":{"type":"integer","format":"int64"},"rows":{"type":"array","items":{"$ref":"#/components/schemas/OfferRowDto"}}}},"OfferRowDto":{"properties":{"id":{"type":"integer","format":"int64"},"storeId":{"type":"integer","format":"int64"},"articleId":{"type":"string"},"articleName":{"type":"string"},"amount":{"type":"number","format":"double"},"unitId":{"type":"integer","format":"int64"},"unit":{"type":"string"},"salesPrice":{"type":"number","format":"double"},"discountType":{"type":"string"},"discount":{"type":"number","format":"double"},"purchasePrice":{"type":"number","format":"double"},"purchaseCurrency":{"type":"string"},"purchaseRate":{"type":"number","format":"double"},"supplierId":{"type":"integer","format":"int64"},"supplierName":{"type":"string"},"totalPrice":{"type":"number","format":"double"}}},"CustomerOrdersResponseDto":{"type":"object","properties":{"page":{"type":"integer","format":"int32"},"pages":{"type":"integer","format":"int32"},"pageSize":{"type":"integer","format":"int32"},"ordersCount":{"type":"integer","format":"int32"},"since":{"type":"integer","format":"int64"},"orders":{"type":"array","items":{"$ref":"#/components/schemas/CustomerOrderDto"}}}},"CustomerDeliveryTermDto":{"type":"object","properties":{"code":{"type":"string"},"description":{"type":"string"}}},"CostCenterDto":{"properties":{"id":{"type":"integer","format":"int64"},"externalId":{"type":"string"},"shortName":{"type":"string"},"name":{"type":"string"},"active":{"type":"boolean"}}},"ArticleBatchDto":{"properties":{"articleId":{"type":"string"},"articleName":{"type":"string"},"batchId":{"type":"string"},"serialNr":{"type":"string"},"amount":{"type":"number","format":"double"},"reserved":{"type":"number","format":"double"},"barcode":{"type":"string"},"bestBefore":{"type":"string","format":"date-time"},"stockPlace":{"type":"string"},"active":{"type":"boolean"}}},"ArticleBatchesDto":{"type":"object","properties":{"totalBatches":{"type":"integer","format":"int32"},"batches":{"type":"array","items":{"$ref":"#/components/schemas/ArticleBatchDto"}},"totalSerialNumbers":{"type":"integer","format":"int32"},"serialNumbers":{"type":"array","items":{"$ref":"#/components/schemas/ArticleBatchDto"}},"totalBatchesInStock":{"type":"number","format":"double"},"totalBatchesReserved":{"type":"number","format":"double"},"totalSerialNumbersInStock":{"type":"number","format":"double"},"totalSerialNumbersReserved":{"type":"number","format":"double"}}},"ArticleDto":{"properties":{"articleId":{"type":"string"},"externalId":{"type":"string"},"active":{"type":"boolean"},"name":{"type":"string"},"bundled":{"type":"boolean"},"reserveBundledParts":{"type":"boolean"},"parts":{"type":"array","items":{"$ref":"#/components/schemas/BundledArticleDto"}},"batches":{"$ref":"#/components/schemas/ArticleBatchesDto"},"description":{"type":"string"},"category":{"type":"string"},"amount":{"type":"number","format":"double"},"reserved":{"type":"number","format":"double"},"barcode":{"type":"string"},"barcodeType":{"type":"string"},"price":{"type":"number","format":"double"},"prices":{"type":"array","items":{"$ref":"#/components/schemas/PriceDto"}},"supplier":{"type":"integer","format":"int64"},"supplierExternalId":{"type":"string"},"supplierName":{"type":"string"},"supplierArticleId":{"type":"string"},"supplierAutomaticOrder":{"type":"boolean"},"supplierBuyPrice":{"type":"number","format":"double"},"supplierBuyPriceShipment":{"type":"number","format":"double"},"supplierArticles":{"type":"array","items":{"$ref":"#/components/schemas/SupplierArticleDto"}},"supplierBuyPriceMisc":{"type":"number","format":"double"},"supplierBuyCurrency":{"type":"string"},"supplierBuyRate":{"type":"number","format":"double"},"unit":{"type":"string"},"units":{"type":"array","items":{"$ref":"#/components/schemas/ArticleUnitDto"}},"vat":{"type":"number","format":"double"},"vatAccount":{"type":"integer","format":"int32"},"imageLastUpdated":{"type":"integer","format":"int64"},"type":{"type":"string"},"stock":{"type":"boolean"},"webshopArticle":{"type":"boolean"},"manufacturer":{"type":"string"},"manufacturerArticleId":{"type":"string"},"customFields":{"type":"array","items":{"$ref":"#/components/schemas/CustomFieldDto"}},"links":{"type":"array","items":{"$ref":"#/components/schemas/ArticleLinkDto"}},"tags":{"type":"array","items":{"$ref":"#/components/schemas/ArticleTagDto"}},"width":{"type":"number","format":"double"},"height":{"type":"number","format":"double"},"depth":{"type":"number","format":"double"},"weight":{"type":"number","format":"double"},"stockPlace":{"type":"string"},"useStockWarning":{"type":"boolean"},"stockWarning":{"type":"number","format":"double"},"criticalLevel":{"type":"number","format":"double"},"orderLevel":{"type":"number","format":"double"},"automaticOrder":{"type":"boolean"},"nextDeliveryDate":{"type":"integer","format":"int64"},"orderedAmount":{"type":"number","format":"double"},"deliveredAmount":{"type":"number","format":"double"},"availableAmount":{"type":"number","format":"double"},"fifoValue":{"type":"number","format":"double"}}},"ArticleLinkDto":{"properties":{"name":{"type":"string"},"url":{"type":"string"},"type":{"type":"string"}}},"CustomFieldDto":{"properties":{"name":{"type":"string"},"type":{"type":"string"},"value":{"type":"string"},"validValues":{"type":"array","items":{"$ref":"#/components/schemas/CustomFieldValidValueDto"}}}},"CustomFieldValidValueDto":{"properties":{"value":{"type":"string"},"description":{"type":"string"}}},"SupplierArticleDto":{"properties":{"supplier":{"type":"integer","format":"int64"},"supplierName":{"type":"string"},"supplierArticleId":{"type":"string"},"supplierAutomaticOrder":{"type":"boolean"},"supplierBuyPrice":{"type":"number","format":"double"},"supplierBuyPriceShipment":{"type":"number","format":"double"},"supplierBuyPriceMisc":{"type":"number","format":"double"},"supplierBuyCurrency":{"type":"string"},"supplierBuyRate":{"type":"number","format":"double"},"deliveryDays":{"type":"integer","format":"int32"}}},"ArticlesResponseDto":{"type":"object","properties":{"page":{"type":"integer","format":"int32"},"pages":{"type":"integer","format":"int32"},"pageSize":{"type":"integer","format":"int32"},"articlesCount":{"type":"integer","format":"int32"},"since":{"type":"integer","format":"int64"},"articles":{"type":"array","items":{"$ref":"#/components/schemas/ArticleDto"}}}},"BundleArticleForPartDto":{"properties":{"articleId":{"type":"string"},"articleName":{"type":"string"},"amount":{"type":"number","format":"double"}}},"ArticleBatchActiveDto":{"properties":{"active":{"type":"boolean"}}},"ArticleReservedDto":{"type":"object","properties":{"reserved":{"type":"number","format":"double"}}},"ArticleMoveDto":{"properties":{"articleId":{"type":"string"},"amount":{"type":"number","format":"double"},"toStoreId":{"type":"integer","format":"int64"},"batches":{"$ref":"#/components/schemas/ArticleBatchesDto"}}},"FIFORateDto":{"properties":{"date":{"type":"string","format":"date-time"},"rate":{"type":"number","format":"double"}}},"FIFOPriceDto":{"properties":{"date":{"type":"string","format":"date-time"},"price":{"type":"number","format":"double"}}},"ArticleImportTemplateDto":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"storegroupId":{"type":"integer","format":"int64"},"name":{"type":"string"},"type":{"type":"string"},"data":{"$ref":"#/components/schemas/ImportTemplateDto"}}},"ImportTemplateDto":{"properties":{"rowTitle":{"type":"integer","format":"int32"},"rowFirst":{"type":"integer","format":"int32"},"articleName":{"type":"integer","format":"int32"},"articleId":{"type":"integer","format":"int32"},"description":{"$ref":"#/components/schemas/ImportTemplateColumnDto"},"isActive":{"$ref":"#/components/schemas/ImportTemplateColumnDto"},"isBundled":{"$ref":"#/components/schemas/ImportTemplateColumnDto"},"category":{"$ref":"#/components/schemas/ImportTemplateColumnDto"},"amount":{"$ref":"#/components/schemas/ImportTemplateColumnDto"},"unit":{"$ref":"#/components/schemas/ImportTemplateColumnDto"},"barcode":{"$ref":"#/components/schemas/ImportTemplateColumnDto"},"barcodeType":{"$ref":"#/components/schemas/ImportTemplateColumnDto"},"buyPrice":{"$ref":"#/components/schemas/ImportTemplateColumnDto"},"buyPriceShipment":{"$ref":"#/components/schemas/ImportTemplateColumnDto"},"buyPriceMisc":{"$ref":"#/components/schemas/ImportTemplateColumnDto"},"rate":{"$ref":"#/components/schemas/ImportTemplateColumnDto"},"buyPriceCurrency":{"$ref":"#/components/schemas/ImportTemplateColumnDto"},"supplier":{"$ref":"#/components/schemas/ImportTemplateColumnDto"},"supplierArticleId":{"$ref":"#/components/schemas/ImportTemplateColumnDto"},"vat":{"$ref":"#/components/schemas/ImportTemplateColumnDto"},"vatAccount":{"$ref":"#/components/schemas/ImportTemplateColumnDto"},"isStock":{"$ref":"#/components/schemas/ImportTemplateColumnDto"},"type":{"$ref":"#/components/schemas/ImportTemplateColumnDto"},"stockPlace":{"$ref":"#/components/schemas/ImportTemplateColumnDto"},"useStockWarning":{"$ref":"#/components/schemas/ImportTemplateColumnDto"},"stockWarning":{"$ref":"#/components/schemas/ImportTemplateColumnDto"},"automaticOrder":{"$ref":"#/components/schemas/ImportTemplateColumnDto"},"criticalLevel":{"$ref":"#/components/schemas/ImportTemplateColumnDto"},"orderLevel":{"$ref":"#/components/schemas/ImportTemplateColumnDto"},"isWebshopArticle":{"$ref":"#/components/schemas/ImportTemplateColumnDto"},"manufacturer":{"$ref":"#/components/schemas/ImportTemplateColumnDto"},"manufacturerArticleId":{"$ref":"#/components/schemas/ImportTemplateColumnDto"},"width":{"$ref":"#/components/schemas/ImportTemplateColumnDto"},"height":{"$ref":"#/components/schemas/ImportTemplateColumnDto"},"depth":{"$ref":"#/components/schemas/ImportTemplateColumnDto"},"weight":{"$ref":"#/components/schemas/ImportTemplateColumnDto"},"tags":{"$ref":"#/components/schemas/ImportTemplateColumnDto"},"priceLists":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/ImportTemplateColumnDto"}},"customFields":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/ImportTemplateColumnDto"}},"includeReserved":{"type":"boolean"},"includeSubtotal":{"type":"boolean"},"includeSubtotalFifo":{"type":"boolean"},"includeNextDelivery":{"type":"boolean"},"includeOrderedAmount":{"type":"boolean"},"includeExportDate":{"type":"boolean"},"includeStockValue":{"type":"boolean"},"includeStockValueFifo":{"type":"boolean"}}},"CustomFieldsTemplateDto":{"type":"object","properties":{"fields":{"type":"array","items":{"$ref":"#/components/schemas/CustomFieldDto"}}}},"ArticleFieldDto":{"properties":{"articleId":{"type":"string"},"value":{"type":"string"}}},"BulkArticleResponseDto":{"type":"object","properties":{"articles":{"type":"array","items":{"$ref":"#/components/schemas/ArticleFieldDto"}},"field":{"type":"string"},"pricelistId":{"type":"integer","format":"int64"}}},"BulkArticleDto":{"properties":{"articles":{"type":"array","items":{"type":"string"}},"field":{"type":"string"},"pricelistId":{"type":"integer","format":"int64"},"type":{"type":"string","enum":["SET","PERCENTAGE","PROFIT"]},"value":{"type":"string"}}},"ArticleIdsDto":{"properties":{"articles":{"type":"array","items":{"type":"string"}}}},"AccountResponseDto":{"type":"object","properties":{"storeId":{"type":"integer","format":"int64"},"masterStoreId":{"type":"integer","format":"int64"},"storeGroupId":{"type":"integer","format":"int64"},"name":{"type":"string"},"orgNumber":{"type":"string"},"paymentType":{"type":"integer","format":"int32"},"deactivateDate":{"type":"integer","format":"int64"},"fortnox":{"type":"boolean"},"fortnoxV2":{"type":"boolean"},"visma":{"type":"boolean"},"settings":{"$ref":"#/components/schemas/StoreSettingsDto"},"customerPortalSettings":{"$ref":"#/components/schemas/CustomerPortalSettingsDto"},"fieldsSettings":{"$ref":"#/components/schemas/FieldsSettingsDto"},"purchaseOrderSettings":{"type":"object","additionalProperties":{"type":"object"}},"customerOrderSettings":{"type":"object","additionalProperties":{"type":"object"}},"barcodePrintingFieldsSettings":{"type":"object","additionalProperties":{"type":"object"}},"rules":{"$ref":"#/components/schemas/RulesDto"},"currency":{"type":"string"},"salesPriceIncludesVAT":{"type":"boolean"},"contactName":{"type":"string"},"address":{"type":"string"},"address2":{"type":"string"},"zip":{"type":"string"},"city":{"type":"string"},"countryCode":{"type":"string"},"country":{"type":"string"},"invoiceAddress":{"type":"string"},"invoiceAddress2":{"type":"string"},"invoiceZip":{"type":"string"},"invoiceCity":{"type":"string"},"invoiceCountryCode":{"type":"string"},"invoiceCountry":{"type":"string"},"phone":{"type":"string"},"email":{"type":"string"},"invoiceEmail":{"type":"string"},"storeName":{"type":"string"},"articleSuffix":{"type":"string"},"features":{"type":"array","items":{"$ref":"#/components/schemas/FeatureResponseDto"}}}},"CustomerPortalSettingsDto":{"properties":{"showArticleStockStatus":{"type":"boolean"},"orderArticlesNotInStock":{"type":"boolean"},"showWebshop":{"type":"boolean"},"showArticleId":{"type":"boolean"},"showName":{"type":"boolean"},"showDescription":{"type":"boolean"},"showImage":{"type":"boolean"},"showPrice":{"type":"boolean"},"showBatches":{"type":"boolean"},"showSerials":{"type":"boolean"},"showOtherPurchasedArticles":{"type":"boolean"},"welcomeTitle":{"type":"object","additionalProperties":{"type":"string"}},"welcomeText":{"type":"object","additionalProperties":{"type":"string"}}}},"FieldsSettingsDto":{"properties":{"domain":{"type":"string"},"key":{"type":"string"},"fields":{"type":"object","additionalProperties":{"type":"array","items":{"type":"string"}}}}},"RulesDto":{"properties":{"articleNameMaxLength":{"type":"integer","format":"int32"},"canCreateVAT":{"type":"boolean"},"supportsNoVAT":{"type":"boolean"},"canCreateWayOfDelivery":{"type":"boolean"},"canCreateSupplierDeliveryTerm":{"type":"boolean"},"canCreateCustomerDeliveryTerm":{"type":"boolean"},"canCreatePaymentTerm":{"type":"boolean"},"canCreateUnit":{"type":"boolean"},"canSetDefaultPricelist":{"type":"boolean"},"supportsBracketPricing":{"type":"boolean"},"showVATAccount":{"type":"boolean"},"canCreateCustomerOrderInvoice":{"type":"boolean"},"canCancelCustomerOrder":{"type":"boolean"},"customerTypeSetsVAT":{"type":"boolean"},"customerOrderReservedStateStart":{"type":"integer","format":"int32"},"customerOrderReservedStateEnd":{"type":"integer","format":"int32"},"defaultVAT":{"$ref":"#/components/schemas/VATDto"},"defaultUnitType":{"$ref":"#/components/schemas/UnitDto"},"defaultCategory":{"$ref":"#/components/schemas/CategoryDto"},"maxIntegrationDecimals":{"type":"integer","format":"int32"},"supportsCustomerOrderFees":{"type":"boolean"},"doesVATControllArticleType":{"type":"boolean"},"canCreateCostCenters":{"type":"boolean"},"canSetCostCentersOnCustomerOrder":{"type":"boolean"},"canSetStock":{"type":"boolean"},"increaseStockOnReceiveForPickNPack":{"type":"boolean"},"allowZeroSumCustomerOrders":{"type":"boolean"},"maxUsers":{"type":"integer","format":"int32"},"maxCustomers":{"type":"integer","format":"int32"},"maxStocks":{"type":"integer","format":"int32"},"maxArticles":{"type":"integer","format":"int32"},"batchAccess":{"type":"boolean"},"allowRestCustomerOrder":{"type":"boolean"},"supportsInvoiceTypes":{"type":"boolean"},"canChangeCustomerOnOrderStateStart":{"type":"integer","format":"int32"},"canChangeCustomerOnOrderStateEnd":{"type":"integer","format":"int32"},"allowPriceOnFreeTextRows":{"type":"boolean"},"allowPartialDeliveryOnCustomerOrder":{"type":"boolean"},"allowNegativeOrderedAmountInCustomerOrder":{"type":"boolean"}}},"StoreSettingsDto":{"properties":{"decimals":{"type":"integer","format":"int32"},"weeklyStatus":{"type":"boolean"},"lowStockWarning":{"type":"boolean"},"customerOrderNotification":{"type":"boolean"},"truncateArticleName":{"type":"boolean"},"automaticBundling":{"type":"boolean"},"reserveBundledParts":{"type":"boolean"},"defaultTemplate":{"type":"integer","format":"int64"},"automaticDailyExport":{"type":"boolean"},"language":{"type":"string"},"cashInvoicePaymentWay":{"type":"string"},"projectInvoicePaymentWay":{"type":"string"},"automaticBestBeforeBatchAssignment":{"type":"boolean"}}},"UserDto":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"customer":{"type":"boolean"},"admin":{"type":"boolean"},"systemAdmin":{"type":"boolean"},"name":{"type":"string"},"email":{"type":"string"},"phone":{"type":"string"},"notes":{"type":"string"},"emailInvalid":{"type":"boolean"},"role":{"$ref":"#/components/schemas/RoleDto"},"lastLoggedIn":{"type":"integer","format":"int64"},"bankID":{"type":"boolean"}}},"PasswordDto":{"properties":{"resetKey":{"type":"string"},"password":{"type":"string"},"confirmPassword":{"type":"string"}}},"PrepareResetPasswordDto":{"properties":{"username":{"type":"string"}}},"AccountSettingsDto":{"properties":{"language":{"type":"string"},"storeGroupId":{"type":"integer","format":"int64"},"storeId":{"type":"integer","format":"int64"},"showWelcome":{"type":"boolean"},"productSortColumn":{"type":"string"},"productSortOrder":{"type":"string"},"pickingListSortColumn":{"type":"string"},"pickingListSortOrder":{"type":"string"},"lastReadStatusMessages":{"type":"integer","format":"int64"},"supplierArticleSettings":{"type":"object","additionalProperties":{"type":"string"}},"supplierSortData":{"type":"object","additionalProperties":{"type":"string"}},"openPurchaseOrderSortData":{"type":"object","additionalProperties":{"type":"string"}},"customerSortData":{"type":"object","additionalProperties":{"type":"string"}},"articleSortData":{"type":"object","additionalProperties":{"type":"string"}},"storeArticleSortData":{"type":"object","additionalProperties":{"type":"string"}},"pickingListSortData":{"type":"object","additionalProperties":{"type":"string"}},"customerOrderRowSortData":{"type":"object","additionalProperties":{"type":"string"}},"priceListSortData":{"type":"object","additionalProperties":{"type":"string"}},"orderedArticlesSortData":{"type":"object","additionalProperties":{"type":"string"}},"warnedArticlesSortData":{"type":"object","additionalProperties":{"type":"string"}},"accountSortData":{"type":"object","additionalProperties":{"type":"string"}},"stocktakeArticleSortData":{"type":"object","additionalProperties":{"type":"string"}},"systemAccountSortData":{"type":"object","additionalProperties":{"type":"string"}},"systemUserSortData":{"type":"object","additionalProperties":{"type":"string"}},"helpSectionsCollapsed":{"type":"object","additionalProperties":{"type":"boolean"}},"reportsSettings":{"type":"object","additionalProperties":{"type":"string"}},"customerOrderSortData":{"type":"array","items":{"$ref":"#/components/schemas/SortDataDto"}},"purchaseOrderSortData":{"type":"array","items":{"$ref":"#/components/schemas/SortDataDto"}},"productionOrderSortData":{"type":"array","items":{"$ref":"#/components/schemas/SortDataDto"}},"productionOrderData":{"type":"object","additionalProperties":{"type":"string"}},"projectSortData":{"type":"array","items":{"$ref":"#/components/schemas/SortDataDto"}},"projectArticleSortData":{"type":"object","additionalProperties":{"type":"string"}},"invoiceDraftSortData":{"type":"object","additionalProperties":{"type":"string"}},"invoiceSortData":{"type":"object","additionalProperties":{"type":"string"}},"viewedReleaseNotesVersion":{"type":"string"},"multiPickData":{"type":"object","additionalProperties":{"type":"string"}},"dashboardSettings":{"type":"object","additionalProperties":{"type":"object"}}}},"SortDataDto":{"properties":{"state":{"type":"integer","format":"int32"},"column":{"type":"string"},"order":{"type":"string"}}},"SearchSettingsDto":{"type":"object","properties":{"storeIds":{"type":"array","items":{"type":"integer","format":"int64"}}}},"StoreGroupReportsSettingsDto":{"type":"object","properties":{"tobaccoSWCustomerTag":{"$ref":"#/components/schemas/CustomerTagDto"},"tobaccoEUCustomerTag":{"$ref":"#/components/schemas/CustomerTagDto"},"tobaccoNoTaxCustomerTag":{"$ref":"#/components/schemas/CustomerTagDto"}}},"EventsSettingsDto":{"type":"object","properties":{"bestBeforeTrigger":{"type":"integer","format":"int32"},"purchaseOrdersReminder":{"type":"boolean"}}},"EmailVerificationDto":{"properties":{"verification":{"type":"string"},"storeId":{"type":"integer","format":"int64"}}},"EmailSettingsDto":{"type":"object","properties":{"username":{"type":"string"},"email":{"type":"string"},"password":{"type":"string"},"outgoingAddress":{"type":"string"},"outgoingPort":{"type":"integer","format":"int32"},"auth":{"type":"boolean"},"tls":{"type":"boolean"},"ssl":{"type":"boolean"},"verified":{"type":"boolean"}}},"BarcodeSettingsDto":{"type":"object","properties":{"barcodePrintingFieldsSettings":{"type":"object","additionalProperties":{"type":"object"}}}},"ArticleSettingsDto":{"type":"object","properties":{"sharedArticleRegistry":{"type":"boolean"}}},"APIKeyDto":{"properties":{"name":{"type":"string"},"key":{"type":"string"},"requests":{"type":"array","items":{"$ref":"#/components/schemas/APIRequestDto"}}}},"APIRequestDto":{"properties":{"method":{"type":"string"},"path":{"type":"string"}}},"APISettingsDto":{"type":"object","properties":{"apiKeys":{"type":"array","items":{"$ref":"#/components/schemas/APIKeyDto"}},"stores":{"type":"array","items":{"type":"string"}},"callbackUrl":{"type":"string"},"integrationName":{"type":"string"},"integrationSuccessfull":{"type":"boolean"}}},"WebhookDto":{"properties":{"id":{"type":"integer","format":"int64"},"guid":{"type":"string"},"featureId":{"type":"string"},"featureMethod":{"type":"string"},"url":{"type":"string"}}},"VATsResponseDto":{"type":"object","properties":{"since":{"type":"integer","format":"int64"},"vats":{"type":"array","items":{"$ref":"#/components/schemas/VATDto"}}}},"ShortUrlDto":{"type":"object","properties":{"url":{"type":"string"}}},"StoreDto":{"properties":{"storeId":{"type":"integer","format":"int64"},"storeGroupId":{"type":"integer","format":"int64"},"name":{"type":"string"},"currency":{"type":"string"},"language":{"type":"string"},"isMaster":{"type":"boolean"},"articleSuffix":{"type":"string"}}},"StoreRequestDto":{"properties":{"companyName":{"type":"string"},"orgNumber":{"type":"string"},"storeName":{"type":"string"},"suffix":{"type":"string"},"email":{"type":"string"},"phone":{"type":"string"},"currency":{"type":"string"},"contactPerson":{"type":"string"},"address":{"type":"string"},"address2":{"type":"string"},"city":{"type":"string"},"zip":{"type":"string"},"country":{"type":"string"},"invoiceAddress":{"type":"string"},"invocieAddress2":{"type":"string"},"invoiceCity":{"type":"string"},"invoiceZip":{"type":"string"},"invoiceCountry":{"type":"string"},"invoiceEmail":{"type":"string"},"includeVat":{"type":"boolean"}}},"RoleSuggestionDto":{"type":"object","properties":{"paths":{"type":"array","items":{"$ref":"#/components/schemas/PathDto"}},"fields":{"type":"object","additionalProperties":{"type":"array","items":{"type":"string"}}},"rejectedPaths":{"type":"array","items":{"type":"string"}},"rejectedFields":{"type":"array","items":{"type":"string"}},"notes":{"type":"string"}}},"RoleSuggestionRequestDto":{"properties":{"text":{"type":"string"},"baseRoleId":{"type":"integer","format":"int64"},"includeFields":{"type":"boolean"},"language":{"type":"string"}}},"PurchaseOrderDeliveryArticleBatchDto":{"properties":{"batchId":{"type":"string"},"serialNr":{"type":"string"},"deliveredAmount":{"type":"number","format":"double"},"barcode":{"type":"string"},"bestBefore":{"type":"string","format":"date-time"},"stockPlace":{"type":"string"}}},"PurchaseOrderDeliveryArticleDto":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"deliveredAmount":{"type":"number","format":"double"},"batches":{"type":"array","items":{"$ref":"#/components/schemas/PurchaseOrderDeliveryArticleBatchDto"}}}},"CreatePurchaseOrderArticleDto":{"properties":{"id":{"type":"integer","format":"int64"},"articleId":{"type":"string"},"articleName":{"type":"string"},"supplierArticleId":{"type":"string"},"orderId":{"type":"integer","format":"int64"},"deliveredAmount":{"type":"number","format":"double"},"purchasePrice":{"type":"number","format":"double"},"unit":{"type":"string"}}},"PurchaseOrderArticlesRequestDto":{"properties":{"orderId":{"type":"integer","format":"int64"},"supplierId":{"type":"integer","format":"int64"},"articles":{"type":"array","items":{"$ref":"#/components/schemas/PurchaseOrderArticleDto"}}}},"PurchaseOrdersResponseDto":{"type":"object","properties":{"page":{"type":"integer","format":"int32"},"pages":{"type":"integer","format":"int32"},"pageSize":{"type":"integer","format":"int32"},"ordersCount":{"type":"integer","format":"int32"},"orders":{"type":"array","items":{"$ref":"#/components/schemas/PurchaseOrderDto"}}}},"ProductionOrderPurchaseOrderLightDto":{"properties":{"productionOrderId":{"type":"integer","format":"int64"},"articles":{"type":"array","items":{"$ref":"#/components/schemas/PurchaseOrderArticleLightDto"}}}},"PurchaseOrderArticleLightDto":{"properties":{"articleId":{"type":"string"},"orderedAmount":{"type":"number","format":"double"},"storeId":{"type":"integer","format":"int64"}}},"OpenPurchaseOrderArticleRequestDto":{"properties":{"articleId":{"type":"string"},"amount":{"type":"number","format":"double"}}},"PurchaseOrderLightDto":{"properties":{"customerOrderId":{"type":"integer","format":"int64"},"articles":{"type":"array","items":{"$ref":"#/components/schemas/PurchaseOrderArticleLightDto"}}}},"ProjectCustomerOrderRequestDto":{"properties":{"projectId":{"type":"integer","format":"int64"}}},"ProductionOrderArticlesResponseDto":{"type":"object","properties":{"articles":{"type":"array","items":{"$ref":"#/components/schemas/ProductionOrderArticleDto"}},"parts":{"type":"array","items":{"$ref":"#/components/schemas/ProductionOrderSingleArticleGroupDto"}}}},"MobileVersionRequestDto":{"properties":{"version":{"type":"string"},"build":{"type":"string"}}},"MobileResetPasswordResponseDto":{"type":"object","properties":{"email":{"type":"string"}}},"MobileResetPasswordDto":{"properties":{"email":{"type":"string"}}},"MobileLoginResponseDto":{"type":"object","properties":{"name":{"type":"string"},"email":{"type":"string"},"phone":{"type":"string"},"deviceId":{"type":"string"},"deviceKey":{"type":"string"},"storeGroups":{"type":"array","items":{"$ref":"#/components/schemas/StoreGroupDto"}}}},"StoreGroupDto":{"properties":{"groupId":{"type":"integer","format":"int64"},"name":{"type":"string"},"stores":{"type":"integer","format":"int32"},"storePermissions":{"type":"array","items":{"$ref":"#/components/schemas/StorePermissionDto"}},"integration":{"type":"string"}}},"StorePermissionDto":{"properties":{"storeId":{"type":"integer","format":"int64"},"storeGroupId":{"type":"integer","format":"int64"},"name":{"type":"string"},"currency":{"type":"string"},"language":{"type":"string"},"role":{"$ref":"#/components/schemas/RoleDto"},"capabilities":{"type":"array","items":{"type":"integer","format":"int32"}},"isMaster":{"type":"boolean"}}},"MobileLoginDto":{"properties":{"deviceId":{"type":"string"},"userAgent":{"type":"string"},"username":{"type":"string"},"password":{"type":"string"},"token":{"type":"string"},"deviceKey":{"type":"string"},"pushId":{"type":"string"},"deviceType":{"type":"string"},"clientVersion":{"type":"string"}}},"IJsonRPCResultDto":{},"JsonRPCErrorDto":{"properties":{"code":{"type":"integer","format":"int32"},"message":{"type":"string"}}},"JsonRPCResponseDto":{"type":"object","properties":{"jsonrpc":{"type":"string"},"id":{"type":"object"},"result":{"$ref":"#/components/schemas/IJsonRPCResultDto"},"error":{"$ref":"#/components/schemas/JsonRPCErrorDto"}}},"JsonRPCRequestDto":{"properties":{"id":{"type":"object"},"method":{"type":"string"},"params":{"$ref":"#/components/schemas/JsonRPCRequestParamsDto"}}},"JsonRPCRequestParamsDto":{"properties":{"name":{"type":"string"},"arguments":{"type":"object","additionalProperties":{"type":"object"}}}},"InvoiceDraftsResponseDto":{"type":"object","properties":{"page":{"type":"integer","format":"int32"},"pages":{"type":"integer","format":"int32"},"pageSize":{"type":"integer","format":"int32"},"ordersCount":{"type":"integer","format":"int32"},"invoiceDrafts":{"type":"array","items":{"$ref":"#/components/schemas/InvoiceDraftDto"}}}},"ThreeWayMergeStateDto":{"type":"object","properties":{"enabled":{"type":"boolean"},"changedAt":{"type":"string"},"changedBy":{"type":"string"}}},"ThreeWayMergeToggleRequestDto":{"properties":{"enabled":{"type":"boolean"}}},"EntityKey":{"properties":{"entityType":{"type":"string"},"entityId":{"type":"string"}}},"IntegrationSyncEventSummaryBatchRequestDto":{"properties":{"entities":{"type":"array","items":{"$ref":"#/components/schemas/EntityKey"}},"integration":{"type":"string"}}},"IntegrationSyncConflictResolveRequestDto":{"properties":{"resolution":{"type":"string"}}},"IntegrationHealthDigestStateDto":{"type":"object","properties":{"enabled":{"type":"boolean"},"changedAt":{"type":"string"},"changedBy":{"type":"string"}}},"IntegrationHealthDigestToggleRequestDto":{"properties":{"enabled":{"type":"boolean"}}},"IntegrationReplayBulkRequestDto":{"properties":{"ids":{"type":"array","items":{"type":"integer","format":"int64"}}}},"ExternalRequestDto":{"properties":{"integration":{"type":"string"},"method":{"type":"string"},"url":{"type":"string"},"headers":{"type":"object","additionalProperties":{"type":"string"}},"body":{"type":"object"},"formDataPartName":{"type":"string"},"formDataFilename":{"type":"string"},"formDataFileContentType":{"type":"string"}}},"IntegrationCustomRequestDto":{"properties":{"path":{"type":"string"}}},"BankIDAuthResponseDto":{"type":"object","properties":{"orderRef":{"type":"string"},"autoStartToken":{"type":"string"}}},"BarcodeRequestDto":{"properties":{"data":{"type":"string"},"type":{"type":"string"},"measure":{"type":"string"},"width":{"type":"number","format":"double"},"height":{"type":"number","format":"double"}}},"GS1BarcodeRequestDto":{"properties":{"articleId":{"type":"string"},"gtin":{"type":"string"},"batchId":{"type":"string"},"serialNumber":{"type":"string"},"bestBefore":{"type":"string","format":"date-time"},"expirationDate":{"type":"string","format":"date-time"},"measure":{"type":"string"},"width":{"type":"number","format":"double"},"height":{"type":"number","format":"double"},"type":{"type":"string"}}},"FeatureTokenResponseDto":{"type":"object","properties":{"featureToken":{"type":"string"},"expiresInSeconds":{"type":"integer","format":"int32"}}},"FeatureQueueDto":{"type":"object","properties":{"queue":{"type":"integer","format":"int32"}}},"FeatureServerFunctionDto":{"properties":{"function":{"type":"string"},"event":{"type":"string"},"crud":{"type":"string"},"dataId":{"type":"string"},"params":{"type":"object","additionalProperties":{"type":"object"}}}},"FeatureFrontendLogAckDto":{"type":"object","properties":{"accepted":{"type":"integer","format":"int32"},"rejected":{"type":"integer","format":"int32"}}},"FeatureFrontendLogEntryDto":{"properties":{"level":{"type":"string"},"kind":{"type":"string"},"message":{"type":"string"},"detail":{"type":"string"},"http_status":{"type":"integer","format":"int32"},"http_method":{"type":"string"},"http_path":{"type":"string"}}},"FeatureFrontendLogRequestDto":{"properties":{"events":{"type":"array","items":{"$ref":"#/components/schemas/FeatureFrontendLogEntryDto"}}}},"StatusMessageDto":{"properties":{"type":{"type":"string","enum":["INFO","ERROR","PROGRESS","PROGRESS_DONE"]},"action":{"type":"string","enum":["REGISTER","GET","ADD","UPDATE","DELETE"]},"messageId":{"type":"string"},"message":{"type":"string"},"technicalMessage":{"type":"string"},"progress":{"type":"integer","format":"int32"},"integrationType":{"type":"string","enum":["FortNox","FortNoxV2","VismaV2","Webshop","Import","Email"]},"created":{"type":"integer","format":"int64"},"userId":{"type":"integer","format":"int64"}}},"SendFeatureEmailRequestDto":{"properties":{"template":{"type":"string"},"toUserId":{"type":"integer","format":"int64"},"data":{"type":"object","additionalProperties":{"type":"string"}}}},"FeatureInstallDto":{"properties":{"id":{"type":"string"},"roles":{"type":"array","items":{"type":"integer","format":"int64"}},"acceptedPermissions":{"type":"string"},"acceptedSandboxRemoval":{"type":"boolean"}}},"FeatureDraftDto":{"properties":{"draftId":{"type":"string"},"storeGroupId":{"type":"integer","format":"int64"},"storeId":{"type":"integer","format":"int64"},"featureId":{"type":"string"},"state":{"type":"string"},"currentRevision":{"type":"integer","format":"int32"},"createdBy":{"type":"integer","format":"int64"},"created":{"type":"string","format":"date-time"},"updated":{"type":"string","format":"date-time"},"hasGeneratedRevisions":{"type":"boolean"}}},"FeatureDraftCreateRequestDto":{"properties":{"id":{"type":"string"},"name":{"type":"object","additionalProperties":{"type":"string"}},"icon":{"type":"string"},"description":{"type":"object","additionalProperties":{"type":"string"}},"server":{"type":"boolean"},"api":{"type":"boolean"},"dashboard":{"type":"boolean"},"category":{"type":"array","items":{"type":"string"}},"message":{"type":"string"},"authorAgent":{"type":"string"},"promptSummary":{"type":"string"}}},"FeatureDraftValidationFileDto":{"properties":{"path":{"type":"string"},"findings":{"type":"array","items":{"$ref":"#/components/schemas/FeatureDraftValidationFindingDto"}}}},"FeatureDraftValidationFindingDto":{"properties":{"severity":{"type":"string"},"line":{"type":"integer","format":"int32"},"code":{"type":"string"},"message":{"type":"string"}}},"FeatureDraftValidationResponseDto":{"type":"object","properties":{"draftId":{"type":"string"},"revision":{"type":"integer","format":"int32"},"ok":{"type":"boolean"},"totalFindings":{"type":"integer","format":"int32"},"truncated":{"type":"boolean"},"files":{"type":"array","items":{"$ref":"#/components/schemas/FeatureDraftValidationFileDto"}}}},"FeatureStoreSubmissionDto":{"properties":{"submissionId":{"type":"string"},"storeGroupId":{"type":"integer","format":"int64"},"storeId":{"type":"integer","format":"int64"},"draftId":{"type":"string"},"featureId":{"type":"string"},"revision":{"type":"integer","format":"int32"},"state":{"type":"string"},"submittedBy":{"type":"integer","format":"int64"},"notes":{"type":"string"},"reviewerUserId":{"type":"integer","format":"int64"},"decisionNotes":{"type":"string"},"created":{"type":"string","format":"date-time"},"updated":{"type":"string","format":"date-time"}}},"FeatureStoreSubmissionCreateRequestDto":{"properties":{"notes":{"type":"string"}}},"FeatureRevisionDto":{"properties":{"draftId":{"type":"string"},"revision":{"type":"integer","format":"int32"},"parentRevision":{"type":"integer","format":"int32"},"version":{"type":"string"},"authorUserId":{"type":"integer","format":"int64"},"authorSource":{"type":"string"},"authorAgent":{"type":"string"},"promptSummary":{"type":"string"},"message":{"type":"string"},"manifest":{"type":"string"},"zipSha256":{"type":"string"},"created":{"type":"string","format":"date-time"}}},"FeatureDraftRollbackRequestDto":{"properties":{"toRevision":{"type":"integer","format":"int32"},"confirm":{"type":"boolean"},"message":{"type":"string"},"authorAgent":{"type":"string"},"promptSummary":{"type":"string"}}},"FeatureDraftPublishExistingInstallDto":{"properties":{"featureId":{"type":"string"},"name":{"type":"object","additionalProperties":{"type":"string"}},"version":{"type":"string"},"publisher":{"type":"string"},"isPublic":{"type":"boolean"},"publishedDraftId":{"type":"string"},"dataTableNames":{"type":"array","items":{"type":"string"}}}},"FeatureDraftPublishStartedDto":{"type":"object","properties":{"draftId":{"type":"string"},"revision":{"type":"integer","format":"int32"},"jobId":{"type":"string"},"publishUrl":{"type":"string"},"existingInstall":{"$ref":"#/components/schemas/FeatureDraftPublishExistingInstallDto"}}},"FeatureDraftPublishRequestDto":{"properties":{"version":{"type":"string"},"notes":{"type":"string"}}},"FeatureDraftJobDto":{"type":"object","properties":{"jobId":{"type":"string"},"state":{"type":"string"},"result":{"type":"string"},"created":{"type":"string","format":"date-time"},"updated":{"type":"string","format":"date-time"}}},"FeatureDraftPublishApproveRequestDto":{"properties":{"roles":{"type":"array","items":{"type":"integer","format":"int64"}},"acceptedPermissions":{"type":"string"},"acceptedSandboxRemoval":{"type":"boolean"},"acceptedFeatureIdTakeover":{"type":"boolean"}}},"FeatureDraftInstallStartedDto":{"type":"object","properties":{"draftId":{"type":"string"},"featureId":{"type":"string"},"jobId":{"type":"string"}}},"FeatureDraftDeleteFilesResultDto":{"type":"object","properties":{"draftId":{"type":"string"},"revision":{"type":"integer","format":"int32"},"deletedPaths":{"type":"array","items":{"type":"string"}},"alreadyApplied":{"type":"boolean"}}},"FeatureDraftDeleteFileEntryDto":{"properties":{"path":{"type":"string"},"expectedSha256":{"type":"string"}}},"FeatureDraftDeleteFilesRequestDto":{"properties":{"files":{"type":"array","items":{"$ref":"#/components/schemas/FeatureDraftDeleteFileEntryDto"}},"message":{"type":"string"},"authorAgent":{"type":"string"},"promptSummary":{"type":"string"}}},"FeatureDraftFilePatchRequestDto":{"properties":{"old":{"type":"string"},"message":{"type":"string"},"authorAgent":{"type":"string"},"promptSummary":{"type":"string"},"new":{"type":"string"}}},"FeatureDraftExportStartedDto":{"type":"object","properties":{"draftId":{"type":"string"},"format":{"type":"string"},"jobId":{"type":"string"}}},"FeatureDraftBuildStartedDto":{"type":"object","properties":{"draftId":{"type":"string"},"revision":{"type":"integer","format":"int32"},"jobId":{"type":"string"}}},"CreateFeatureRequestDto":{"properties":{"id":{"type":"string"},"name":{"type":"object","additionalProperties":{"type":"string"}},"icon":{"type":"string"},"description":{"type":"object","additionalProperties":{"type":"string"}},"server":{"type":"boolean"},"api":{"type":"boolean"},"dashboard":{"type":"boolean"},"category":{"type":"array","items":{"type":"string"}}}},"ScheduledEventDto":{"properties":{"id":{"type":"integer","format":"int64"},"triggerType":{"type":"string"},"trigger":{"type":"object","additionalProperties":{"type":"object"}},"actionType":{"type":"string"},"action":{"type":"object","additionalProperties":{"type":"object"}},"createdBy":{"type":"integer","format":"int64"},"createdName":{"type":"string"}}},"TriggerScheduledEventDto":{"properties":{"event":{"type":"string"},"crud":{"type":"string"},"dataId":{"type":"string"},"parentType":{"type":"string"}}},"DocumentDto":{"properties":{"description":{"type":"string"},"version":{"type":"string"},"filename":{"type":"string"},"type":{"type":"string"},"filesize":{"type":"integer","format":"int64"},"created":{"type":"string","format":"date-time"},"ownerId":{"type":"integer","format":"int64"},"ownerName":{"type":"string"},"readPermissions":{"type":"array","items":{"$ref":"#/components/schemas/RoleDto"}}}},"AssistantChatRequestDto":{"properties":{"message":{"type":"string"},"previousResponseId":{"type":"string"}}},"ArticleUnitsResponseDto":{"type":"object","properties":{"units":{"type":"array","items":{"$ref":"#/components/schemas/ArticleUnitDto"}}}},"PrintLabelsEntryDto":{"properties":{"articleId":{"type":"string"},"batchId":{"type":"string"},"serialNr":{"type":"string"},"count":{"type":"integer","format":"int32"}}},"PrintLabelsRequestDto":{"properties":{"labels":{"type":"array","items":{"$ref":"#/components/schemas/PrintLabelsEntryDto"}},"labelWidth":{"type":"number","format":"float"},"labelHeight":{"type":"number","format":"float"},"labelMarginWidth":{"type":"number","format":"float"},"labelMarginHeight":{"type":"number","format":"float"},"paperWidth":{"type":"number","format":"float"},"paperHeight":{"type":"number","format":"float"},"paperMarginWidth":{"type":"number","format":"float"},"paperMarginHeight":{"type":"number","format":"float"}}},"VerificationResponseDto":{"type":"object","properties":{"username":{"type":"string"}}},"VerificationDto":{"properties":{"verification":{"type":"string"}}},"SupportDto":{"properties":{"subject":{"type":"string"},"message":{"type":"string"}}},"AccountDto":{"properties":{"companyName":{"type":"string"},"orgNumber":{"type":"string"},"address":{"type":"string"},"city":{"type":"string"},"zip":{"type":"string"},"country":{"type":"string"},"language":{"type":"string"},"contactPerson":{"type":"string"},"email":{"type":"string"},"phone":{"type":"string"},"notes":{"type":"string"},"currency":{"type":"string"},"password":{"type":"string"},"bankIDOrderRef":{"type":"string"},"paymentType":{"type":"integer","format":"int32"},"licenceAccepted":{"type":"boolean"},"promotionCode":{"type":"string"},"features":{"type":"array","items":{"type":"string"}}}},"PromotionCodeInviteRequestDto":{"properties":{"email":{"type":"string"}}},"LoginResponseDto":{"type":"object","properties":{"userId":{"type":"integer","format":"int64"},"apiKey":{"type":"string"},"name":{"type":"string"},"email":{"type":"string"},"phone":{"type":"string"},"storeGroups":{"type":"array","items":{"$ref":"#/components/schemas/StoreGroupDto"}},"systemAdmin":{"type":"boolean"},"admin":{"type":"boolean"},"settings":{"$ref":"#/components/schemas/AccountSettingsDto"},"delayedInvoicesMessage":{"type":"string"}}},"LoginDto":{"properties":{"username":{"type":"string"},"password":{"type":"string"}}},"LoginSSODto":{"properties":{"username":{"type":"string"},"password":{"type":"string"},"type":{"type":"string"},"externalId":{"type":"string"},"linkToken":{"type":"string"}}},"WayOfDeliveriesResponseDto":{"type":"object","properties":{"since":{"type":"integer","format":"int64"},"wayOfDeliveries":{"type":"array","items":{"$ref":"#/components/schemas/WayOfDeliveryDto"}}}},"WebhookResponseDto":{"type":"object","properties":{"webhooks":{"type":"array","items":{"$ref":"#/components/schemas/WebhookDto"}}}},"VATCodeDto":{"properties":{"vatCode":{"type":"string"},"vatValue":{"type":"number","format":"double"},"description":{"type":"string"}}},"VATCodesResponseDto":{"type":"object","properties":{"vatCodes":{"type":"array","items":{"$ref":"#/components/schemas/VATCodeDto"}}}},"UnitsResponseDto":{"type":"object","properties":{"since":{"type":"integer","format":"int64"},"units":{"type":"array","items":{"$ref":"#/components/schemas/UnitDto"}}}},"ReleaseNoteDto":{"properties":{"date":{"type":"string"},"version":{"type":"string"},"sv":{"type":"array","items":{"type":"string"}},"en":{"type":"array","items":{"type":"string"}}}},"ReleaseNotesDto":{"type":"object","properties":{"notes":{"type":"array","items":{"$ref":"#/components/schemas/ReleaseNoteDto"}}}},"SystemMessageDto":{"type":"object","properties":{"title":{"type":"string"},"message":{"type":"string"},"priority":{"type":"string"},"updated":{"type":"string","format":"date-time"}}},"SystemConfigDto":{"type":"object","properties":{"supportsBankIDLogin":{"type":"boolean"}}},"SuppliersResponseDto":{"type":"object","properties":{"page":{"type":"integer","format":"int32"},"pages":{"type":"integer","format":"int32"},"pageSize":{"type":"integer","format":"int32"},"suppliersCount":{"type":"integer","format":"int32"},"since":{"type":"integer","format":"int64"},"suppliers":{"type":"array","items":{"$ref":"#/components/schemas/SupplierDto"}}}},"SupplierDeliveryTermsResponseDto":{"type":"object","properties":{"since":{"type":"integer","format":"int64"},"supplierDeliveryTerms":{"type":"array","items":{"$ref":"#/components/schemas/SupplierDeliveryTermDto"}}}},"StoresResponseDto":{"type":"object","properties":{"orgName":{"type":"string"},"orgNumber":{"type":"string"},"stores":{"type":"array","items":{"$ref":"#/components/schemas/StoreDto"}}}},"RetentionResponseDto":{"type":"object","properties":{"storeId":{"type":"integer","format":"int64"},"groupId":{"type":"integer","format":"int64"},"getLastInventoryDueDate":{"type":"string","format":"date-time"},"articlesCount":{"type":"integer","format":"int32"},"sentOrders":{"type":"integer","format":"int32"},"openCustomerOrders":{"type":"integer","format":"int32"},"closedOrders":{"type":"integer","format":"int32"},"closedCustomerOrders":{"type":"integer","format":"int32"},"stockValue":{"type":"number","format":"double"},"stockValueFIFO":{"type":"number","format":"double"},"sentSupplierOrderProducts":{"type":"integer","format":"int32"},"openCustomerOrderProducts":{"type":"integer","format":"int32"},"closedSupplierOrderProducts":{"type":"integer","format":"int32"},"deliveredCustomerOrderProducts":{"type":"integer","format":"int32"}}},"DateResponseDto":{"type":"object","properties":{"date":{"type":"string","format":"date-time"}}},"FIFODto":{"properties":{"id":{"type":"integer","format":"int64"},"date":{"type":"string","format":"date-time"},"amount":{"type":"number","format":"double"},"amountInStock":{"type":"number","format":"double"},"supplierId":{"type":"integer","format":"int64"},"supplierName":{"type":"string"},"purchasePrice":{"type":"number","format":"double"},"purchaseRate":{"type":"number","format":"double"},"supplierOrderId":{"type":"integer","format":"int64"},"poRef":{"type":"string"},"description":{"type":"string"},"userId":{"type":"integer","format":"int64"},"userName":{"type":"string"}}},"StocktakeArticleDto":{"properties":{"articleId":{"type":"string"},"batchId":{"type":"string"},"serialNr":{"type":"string"},"active":{"type":"boolean"},"name":{"type":"string"},"description":{"type":"string"},"group":{"$ref":"#/components/schemas/CategoryDto"},"unit":{"$ref":"#/components/schemas/UnitDto"},"amount":{"type":"number","format":"double"},"reserved":{"type":"number","format":"double"},"barcode":{"type":"string"},"barcodeType":{"type":"string"},"inventoryAmount":{"type":"number","format":"double"},"inventoried":{"type":"boolean"},"type":{"type":"integer","format":"int32"},"stockPlace":{"type":"string"},"stockWarning":{"type":"number","format":"double"},"fifos":{"type":"array","items":{"$ref":"#/components/schemas/FIFODto"}},"bundled":{"type":"boolean"},"stock":{"type":"boolean"}}},"StocktakeArticlesResponseDto":{"type":"object","properties":{"page":{"type":"integer","format":"int32"},"pages":{"type":"integer","format":"int32"},"pageSize":{"type":"integer","format":"int32"},"articlesCount":{"type":"integer","format":"int32"},"since":{"type":"integer","format":"int64"},"articles":{"type":"array","items":{"$ref":"#/components/schemas/StocktakeArticleDto"}}}},"StocktakeSearchArticleResponseDto":{"properties":{"articleId":{"type":"string"},"active":{"type":"boolean"},"bundled":{"type":"boolean"},"name":{"type":"string"},"description":{"type":"string"},"group":{"$ref":"#/components/schemas/CategoryDto"},"unit":{"$ref":"#/components/schemas/UnitDto"},"amount":{"type":"number","format":"double"},"reserved":{"type":"number","format":"double"},"barcode":{"type":"string"},"barcodeType":{"type":"string"},"type":{"type":"integer","format":"int32"},"stockPlace":{"type":"string"},"stockWarning":{"type":"number","format":"double"},"includedInStocktake":{"type":"boolean"},"stock":{"type":"boolean"}}},"StocktakeSearchArticlesResponseDto":{"type":"object","properties":{"page":{"type":"integer","format":"int32"},"pages":{"type":"integer","format":"int32"},"pageSize":{"type":"integer","format":"int32"},"articlesCount":{"type":"integer","format":"int32"},"since":{"type":"integer","format":"int64"},"articles":{"type":"array","items":{"$ref":"#/components/schemas/StocktakeSearchArticleResponseDto"}}}},"ReportsBeverageSalesAccountsResponseDto":{"type":"object","properties":{"vats":{"type":"array","items":{"$ref":"#/components/schemas/VATDto"}}}},"ReportsTobaccoStatisticsResponseDto":{"type":"object","properties":{"page":{"type":"integer","format":"int32"},"pages":{"type":"integer","format":"int32"},"pageSize":{"type":"integer","format":"int32"},"articlesCount":{"type":"integer","format":"int32"},"stats":{"type":"array","items":{"$ref":"#/components/schemas/TobaccoStatistic"}}}},"TobaccoStatistic":{"properties":{"storeId":{"type":"integer","format":"int64"},"articleId":{"type":"string"},"type":{"type":"string"},"articleName":{"type":"string"},"delivered":{"type":"number","format":"double"},"weightG":{"type":"number","format":"double"},"volumeCl":{"type":"number","format":"double"},"taxPerWeight":{"type":"number","format":"double"},"taxPerLiter":{"type":"number","format":"double"},"vatType":{"type":"string"},"vatDescription":{"type":"string"},"deliveredDate":{"type":"string","format":"date-time"}}},"ReportsStockWorthDto":{"properties":{"stockValue":{"type":"number","format":"double"},"stockValueFIFO":{"type":"number","format":"double"},"date":{"type":"integer","format":"int64"}}},"ReportsStockWorthResponseDto":{"type":"object","properties":{"stats":{"type":"array","items":{"$ref":"#/components/schemas/ReportsStockWorthDto"}}}},"ArticlesForStockCountChangeResponseDto":{"type":"object","properties":{"page":{"type":"integer","format":"int32"},"pages":{"type":"integer","format":"int32"},"pageSize":{"type":"integer","format":"int32"},"articlesCount":{"type":"integer","format":"int32"},"articles":{"type":"array","items":{"$ref":"#/components/schemas/StockCountChangeArticleDto"}}}},"StockCountChangeArticleDto":{"properties":{"articleId":{"type":"string"},"name":{"type":"string"},"category":{"$ref":"#/components/schemas/CategoryDto"},"unit":{"$ref":"#/components/schemas/UnitDto"},"count":{"type":"number","format":"double"},"inDelivery":{"type":"number","format":"double"},"outDelivery":{"type":"number","format":"double"}}},"CustomerOrderState":{"properties":{"orderId":{"type":"integer","format":"int64"},"storeGroupId":{"type":"integer","format":"int64"},"externalOrderId":{"type":"string"},"customerId":{"type":"integer","format":"int64"},"externalCustomerId":{"type":"integer","format":"int64"},"customerName":{"type":"string"},"state":{"type":"string","enum":["0","5","10","15","20","25","30","40","45","50","60"]},"deliveryDate":{"type":"string","format":"date-time"},"orderedAmount":{"type":"number","format":"double"},"availableAmount":{"type":"number","format":"double"}}},"PurchaseOrderState":{"properties":{"orderId":{"type":"integer","format":"int64"},"poRef":{"type":"string"},"storeId":{"type":"integer","format":"int64"},"supplierId":{"type":"integer","format":"int64"},"supplierName":{"type":"string"},"deliveryDate":{"type":"string","format":"date-time"},"confirmedDeliveryDate":{"type":"string","format":"date-time"},"state":{"type":"string","enum":["0","1","2","3","4"]},"orderedAmount":{"type":"number","format":"double"}}},"ReportsOrdersResponseDto":{"type":"object","properties":{"customerOrders":{"type":"array","items":{"$ref":"#/components/schemas/CustomerOrderState"}},"purchaseOrders":{"type":"array","items":{"$ref":"#/components/schemas/PurchaseOrderState"}}}},"ReportsCustomerOrderArticleDto":{"properties":{"articleId":{"type":"string"},"ordered":{"type":"number","format":"double"},"orderId":{"type":"integer","format":"int64"},"externalOrderId":{"type":"string"},"orderDate":{"type":"integer","format":"int64"},"deliveryDate":{"type":"integer","format":"int64"},"deliveredDate":{"type":"integer","format":"int64"}}},"ReportsCustomerOrderArticlesResponseDto":{"type":"object","properties":{"articles":{"type":"array","items":{"$ref":"#/components/schemas/ReportsCustomerOrderArticleDto"}}}},"ReportsCustomerDto":{"properties":{"customerId":{"type":"integer","format":"int64"},"customerName":{"type":"string"},"orderValue":{"type":"number","format":"double"}}},"ReportsCustomersResponseDto":{"type":"object","properties":{"stats":{"type":"array","items":{"$ref":"#/components/schemas/ReportsCustomerDto"}}}},"ReportsArticleDto":{"properties":{"articleId":{"type":"string"},"articleName":{"type":"string"},"amount":{"type":"number","format":"double"},"value":{"type":"number","format":"double"}}},"ReportsArticlesResponseDto":{"type":"object","properties":{"stats":{"type":"array","items":{"$ref":"#/components/schemas/ReportsArticleDto"}}}},"ReportsCustomerOrderSummariesResponseDto":{"type":"object","properties":{"stats":{"type":"array","items":{"$ref":"#/components/schemas/ReportsCustomerOrderSummaryDto"}}}},"ReportsCustomerOrderSummaryDto":{"properties":{"orderValue":{"type":"number","format":"double"},"orderAmount":{"type":"number","format":"double"},"orderProducts":{"type":"number","format":"double"},"date":{"type":"integer","format":"int64"}}},"ReportsCustomerOrderDto":{"properties":{"orderId":{"type":"integer","format":"int64"},"orderDisplayId":{"type":"string"},"orderCreated":{"type":"integer","format":"int64"},"orderValue":{"type":"number","format":"double"},"orderState":{"type":"string"},"articleId":{"type":"string"},"articleName":{"type":"string"},"articleAmount":{"type":"number","format":"double"},"articleValue":{"type":"number","format":"double"},"articleDiscount":{"type":"number","format":"double"},"articleDiscountType":{"type":"string"},"customerId":{"type":"integer","format":"int64"},"customerDisplayId":{"type":"string"},"customerName":{"type":"string"}}},"ReportsCustomerOrdersResponseDto":{"type":"object","properties":{"stats":{"type":"array","items":{"$ref":"#/components/schemas/ReportsCustomerOrderDto"}}}},"CategoryRateDto":{"type":"object","properties":{"percentage":{"type":"number","format":"double"},"average":{"type":"number","format":"double"},"totalSold":{"type":"number","format":"double"},"category":{"type":"string"}}},"DataChartDto":{"properties":{"name":{"type":"string"},"category":{"type":"string"},"data":{"type":"array","items":{"$ref":"#/components/schemas/DataDto"}}}},"DataChartResponseDto":{"type":"object","properties":{"articles":{"type":"array","items":{"$ref":"#/components/schemas/DataChartDto"}}}},"DataDto":{"properties":{"sales":{"type":"number","format":"double"},"x":{"type":"string"},"y":{"type":"number","format":"double"}}},"TopArticle":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"total":{"type":"number","format":"double"},"category":{"type":"string"}}},"ReportsArticleStockStateDto":{"properties":{"articleId":{"type":"string"},"stockAmount":{"type":"number","format":"double"},"incoming":{"type":"number","format":"double"},"outgoing":{"type":"number","format":"double"},"date":{"type":"integer","format":"int64"}}},"ReportsArticleStockStatesResponseDto":{"type":"object","properties":{"states":{"type":"array","items":{"$ref":"#/components/schemas/ReportsArticleStockStateDto"}}}},"ReportsAccountDto":{"properties":{"account":{"type":"string"},"value":{"type":"number","format":"double"}}},"ReportsAccountsResponseDto":{"type":"object","properties":{"stats":{"type":"array","items":{"$ref":"#/components/schemas/ReportsAccountDto"}}}},"BeverageStatistic":{"properties":{"storeId":{"type":"integer","format":"int64"},"articleId":{"type":"string"},"articleName":{"type":"string"},"delivered":{"type":"number","format":"double"},"volumeCl":{"type":"number","format":"double"},"volumePercent":{"type":"number","format":"double"},"taxPerLiter":{"type":"number","format":"double"},"vatType":{"type":"string"},"vatDescription":{"type":"string"},"deliveredDate":{"type":"string","format":"date-time"}}},"ReportsBeverageStatisticsResponseDto":{"type":"object","properties":{"page":{"type":"integer","format":"int32"},"pages":{"type":"integer","format":"int32"},"pageSize":{"type":"integer","format":"int32"},"articlesCount":{"type":"integer","format":"int32"},"stats":{"type":"array","items":{"$ref":"#/components/schemas/BeverageStatistic"}}}},"ReportsAlcoholicSummaryDto":{"type":"object","properties":{"totalVolume":{"type":"number","format":"double"},"taxCostVolume":{"type":"number","format":"double"}}},"OrderedArticleDto":{"properties":{"article":{"$ref":"#/components/schemas/ArticleDto"},"orderId":{"type":"integer","format":"int64"},"poReference":{"type":"string"},"state":{"type":"integer","format":"int32"}}},"OrderedArticlesResponseDto":{"type":"object","properties":{"page":{"type":"integer","format":"int32"},"pages":{"type":"integer","format":"int32"},"pageSize":{"type":"integer","format":"int32"},"articlesCount":{"type":"integer","format":"int32"},"since":{"type":"integer","format":"int64"},"articles":{"type":"array","items":{"$ref":"#/components/schemas/OrderedArticleDto"}}}},"PurchaseOrderTraceabilitiesResponseDto":{"type":"object","properties":{"page":{"type":"integer","format":"int32"},"pages":{"type":"integer","format":"int32"},"pageSize":{"type":"integer","format":"int32"},"ordersCount":{"type":"integer","format":"int32"},"orders":{"type":"array","items":{"$ref":"#/components/schemas/PurchaseOrderTraceabilityDto"}}}},"PurchaseOrderTraceabilityDto":{"properties":{"orderId":{"type":"integer","format":"int64"},"poReference":{"type":"string"},"state":{"type":"integer","format":"int32"},"supplierId":{"type":"integer","format":"int64"},"supplierName":{"type":"string"},"articleId":{"type":"string"},"articleName":{"type":"string"},"batchId":{"type":"string"},"serieNr":{"type":"string"},"delivered":{"type":"number","format":"double"}}},"PurchaseOrderRefDto":{"type":"object","properties":{"poReference":{"type":"string"}}},"OpenPurchaseOrderArticleResponseDto":{"properties":{"articleId":{"type":"string"},"articleName":{"type":"string"},"supplierId":{"type":"integer","format":"int64"},"supplierName":{"type":"string"},"orderedAmount":{"type":"number","format":"double"},"purchasePrice":{"type":"number","format":"double"},"shipmentPrice":{"type":"number","format":"double"},"miscPrice":{"type":"number","format":"double"},"currency":{"type":"string"},"rate":{"type":"number","format":"double"},"partAmount":{"type":"number","format":"double"},"bundled":{"type":"boolean"},"orders":{"type":"array","items":{"$ref":"#/components/schemas/PurchaseOrderIdDto"}}}},"OpenPurchaseOrderArticlesResponseDto":{"type":"object","properties":{"page":{"type":"integer","format":"int32"},"pages":{"type":"integer","format":"int32"},"pageSize":{"type":"integer","format":"int32"},"articlesCount":{"type":"integer","format":"int32"},"articles":{"type":"array","items":{"$ref":"#/components/schemas/OpenPurchaseOrderArticleResponseDto"}}}},"PurchaseOrderIdDto":{"properties":{"id":{"type":"integer","format":"int64"},"poReference":{"type":"string"}}},"ProjectsResponseDto":{"type":"object","properties":{"page":{"type":"integer","format":"int32"},"pages":{"type":"integer","format":"int32"},"pageSize":{"type":"integer","format":"int32"},"projectsCount":{"type":"integer","format":"int32"},"projects":{"type":"array","items":{"$ref":"#/components/schemas/ProjectDto"}}}},"ProjectInvoiceDraftsResponseDto":{"type":"object","properties":{"page":{"type":"integer","format":"int32"},"pages":{"type":"integer","format":"int32"},"pageSize":{"type":"integer","format":"int32"},"draftsCount":{"type":"integer","format":"int32"},"invoiceDrafts":{"type":"array","items":{"$ref":"#/components/schemas/InvoiceDraftDto"}}}},"ProjectArticlesResponseDto":{"type":"object","properties":{"page":{"type":"integer","format":"int32"},"pages":{"type":"integer","format":"int32"},"pageSize":{"type":"integer","format":"int32"},"projectsCount":{"type":"integer","format":"int32"},"articles":{"type":"array","items":{"$ref":"#/components/schemas/ProjectArticleDto"}}}},"FlatBundledArticleDto":{"properties":{"articleId":{"type":"string"},"articleName":{"type":"string"},"reserved":{"type":"number","format":"double"},"amount":{"type":"number","format":"double"},"partAmount":{"type":"number","format":"double"},"purchasePrice":{"type":"number","format":"double"},"purchasePriceMisc":{"type":"number","format":"double"},"purchasePriceShipment":{"type":"number","format":"double"},"supplierId":{"type":"integer","format":"int64"},"supplierName":{"type":"string"},"supplierArticleId":{"type":"string"},"unit":{"type":"string"},"stockplace":{"type":"string"},"purchaseOrders":{"type":"array","items":{"$ref":"#/components/schemas/FlatBundledArticlePurchaseOrderDto"}}}},"FlatBundledArticlePurchaseOrderDto":{"properties":{"orderId":{"type":"integer","format":"int64"},"poRef":{"type":"string"},"ordered":{"type":"number","format":"double"},"state":{"type":"integer","format":"int32"},"deliveryDate":{"type":"string","format":"date-time"}}},"FlatBundledArticlesResponseDto":{"type":"object","properties":{"articles":{"type":"array","items":{"$ref":"#/components/schemas/FlatBundledArticleDto"}}}},"ProductionOrderBatchResponseDto":{"type":"object","properties":{"articleId":{"type":"string"},"countBatch":{"type":"integer","format":"int32"},"countSerial":{"type":"integer","format":"int32"},"batches":{"type":"array","items":{"$ref":"#/components/schemas/ProductionOrderProductBatchDto"}}}},"ProductionOrderProductBatchDto":{"properties":{"batchId":{"type":"string"},"serialNr":{"type":"string"},"orderedAmount":{"type":"number","format":"double"},"deliveredAmount":{"type":"number","format":"double"},"bestBefore":{"type":"string","format":"date-time"}}},"ProductionOrdersResponseDto":{"type":"object","properties":{"page":{"type":"integer","format":"int32"},"pages":{"type":"integer","format":"int32"},"pageSize":{"type":"integer","format":"int32"},"ordersCount":{"type":"integer","format":"int32"},"orders":{"type":"array","items":{"$ref":"#/components/schemas/ProductionOrderDto"}}}},"ProductionOrderRefDto":{"type":"object","properties":{"prReference":{"type":"string"}}},"PricelistsResponseDto":{"type":"object","properties":{"page":{"type":"integer","format":"int32"},"pages":{"type":"integer","format":"int32"},"pageSize":{"type":"integer","format":"int32"},"pricelistsCount":{"type":"integer","format":"int32"},"pricelists":{"type":"array","items":{"$ref":"#/components/schemas/PricelistDto"}}}},"CalculatePriceResponseDto":{"type":"object","properties":{"price":{"type":"number","format":"double"}}},"PricesResponseDto":{"type":"object","properties":{"page":{"type":"integer","format":"int32"},"pages":{"type":"integer","format":"int32"},"pageSize":{"type":"integer","format":"int32"},"pricesCount":{"type":"integer","format":"int32"},"since":{"type":"integer","format":"int64"},"prices":{"type":"array","items":{"$ref":"#/components/schemas/PriceDto"}}}},"PaymentTermsResponseDto":{"type":"object","properties":{"since":{"type":"integer","format":"int64"},"paymentTerms":{"type":"array","items":{"$ref":"#/components/schemas/PaymentTermDto"}}}},"WebTokenDto":{"type":"object","properties":{"accountId":{"type":"integer","format":"int64"},"storeId":{"type":"integer","format":"int64"},"token":{"type":"string"}}},"LanguageDto":{"properties":{"code":{"type":"string"}}},"LanguagesResponseDto":{"type":"object","properties":{"languages":{"type":"array","items":{"$ref":"#/components/schemas/LanguageDto"}}}},"ConflictItemDto":{"properties":{"id":{"type":"integer","format":"int64"},"entityType":{"type":"string"},"entityIdLocal":{"type":"string"},"entityIdFortnox":{"type":"string"},"fieldPath":{"type":"string"},"valueSnapshot":{"type":"string"},"valueLk":{"type":"string"},"valueFortnox":{"type":"string"},"detectedAt":{"type":"string"},"resolved":{"type":"boolean"},"resolvedAt":{"type":"string"},"resolvedBy":{"type":"string"},"resolution":{"type":"string"}}},"IntegrationSyncConflictResponseDto":{"type":"object","properties":{"conflicts":{"type":"array","items":{"$ref":"#/components/schemas/ConflictItemDto"}}}},"IntegrationStatusDto":{"type":"object","properties":{"storeId":{"type":"integer","format":"int64"},"groupId":{"type":"integer","format":"int64"},"storeName":{"type":"string"},"receiver":{"type":"string","enum":["API","WEB","MOBILE","INTEGRATION_FORTNOX","INTEGRATION_FORTNOX_V2","INTEGRATION_VISMA","INTEGRATION_SYNC","EXPORT"]},"status":{"type":"string","enum":["NOT_RUNNING","CAN_START","STARTING","RUNNING","PAUSED"]},"queueSize":{"type":"integer","format":"int32"},"lambdaInstanceId":{"type":"string"}}},"ExternalCredentialsResponseDto":{"type":"object","properties":{"credentials":{"type":"array","items":{"$ref":"#/components/schemas/ExternalCredentialsDto"}}}},"BankIDStatusResponseDto":{"type":"object","properties":{"orderRef":{"type":"string"},"status":{"type":"string"},"hint":{"type":"string"},"ssn":{"type":"string"},"accountId":{"type":"integer","format":"int64"},"storeId":{"type":"integer","format":"int64"},"token":{"type":"string"},"qrCode":{"type":"string"}}},"FeaturesResponseDto":{"type":"object","properties":{"features":{"type":"array","items":{"$ref":"#/components/schemas/FeatureResponseDto"}}}},"FeatureLogEventDto":{"properties":{"timestamp":{"type":"integer","format":"int64"},"message":{"type":"string"},"source":{"type":"string"},"log_stream_name":{"type":"string"}}},"FeatureLogsDto":{"type":"object","properties":{"from":{"type":"integer","format":"int64"},"to":{"type":"integer","format":"int64"},"truncated":{"type":"boolean"},"events":{"type":"array","items":{"$ref":"#/components/schemas/FeatureLogEventDto"}},"function_name":{"type":"string"},"next_token":{"type":"string"}}},"DataTableDto":{"properties":{"name":{"type":"string"},"key":{"type":"string"},"groupData":{"type":"boolean"},"fields":{"type":"object","additionalProperties":{"type":"string"}}}},"FeatureScreenshotDto":{"properties":{"filename":{"type":"string"},"description":{"type":"object","additionalProperties":{"type":"string"}}}},"StoreFeatureResponseDto":{"properties":{"id":{"type":"string"},"name":{"type":"object","additionalProperties":{"type":"string"}},"version":{"type":"string"},"icon":{"type":"string"},"image":{"type":"string"},"description":{"type":"object","additionalProperties":{"type":"string"}},"publisher":{"type":"string"},"credits":{"type":"string"},"price":{"type":"number","format":"double"},"annual":{"type":"boolean"},"trialDays":{"type":"integer","format":"int32"},"dataTables":{"type":"array","items":{"$ref":"#/components/schemas/DataTableDto"}},"files":{"type":"array","items":{"$ref":"#/components/schemas/FeatureFileDto"}},"dependency":{"type":"array","items":{"type":"string"}},"category":{"type":"array","items":{"type":"string"}},"screenshots":{"type":"array","items":{"$ref":"#/components/schemas/FeatureScreenshotDto"}},"permissions":{"type":"array","items":{"$ref":"#/components/schemas/FeaturePermission"}},"permissionsFingerprint":{"type":"string"},"sandbox":{"type":"boolean"}}},"StoreFeaturesResponseDto":{"type":"object","properties":{"features":{"type":"array","items":{"$ref":"#/components/schemas/StoreFeatureResponseDto"}}}},"FeatureCategoriesDto":{"type":"object","properties":{"categories":{"type":"array","items":{"$ref":"#/components/schemas/FeatureCategoryDto"}}}},"FeatureCategoryDto":{"properties":{"category":{"type":"string"},"features":{"type":"integer","format":"int32"}}},"FeatureQueueInfoDto":{"properties":{"featureId":{"type":"string"},"featureName":{"type":"object","additionalProperties":{"type":"string"}},"queue":{"type":"integer","format":"int32"}}},"FeatureQueueInfosDto":{"type":"object","properties":{"queues":{"type":"array","items":{"$ref":"#/components/schemas/FeatureQueueInfoDto"}}}},"FeatureDraftListResponseDto":{"type":"object","properties":{"drafts":{"type":"array","items":{"$ref":"#/components/schemas/FeatureDraftDto"}}}},"FeatureRevisionListResponseDto":{"type":"object","properties":{"draftId":{"type":"string"},"revisions":{"type":"array","items":{"$ref":"#/components/schemas/FeatureRevisionDto"}},"totalCount":{"type":"integer","format":"int32"},"offset":{"type":"integer","format":"int32"},"hasMore":{"type":"boolean"}}},"FeatureDraftFileContentDto":{"type":"object","properties":{"draftId":{"type":"string"},"revision":{"type":"integer","format":"int32"},"path":{"type":"string"},"sha256":{"type":"string"},"totalChars":{"type":"integer","format":"int64"},"offset":{"type":"integer","format":"int64"},"content":{"type":"string"},"hasMore":{"type":"boolean"}}},"FeatureDraftPublishStatusDto":{"type":"object","properties":{"jobId":{"type":"string"},"draftId":{"type":"string"},"featureId":{"type":"string"},"state":{"type":"string"},"revision":{"type":"integer","format":"int32"},"version":{"type":"string"},"notes":{"type":"string"},"authorSource":{"type":"string"},"permissions":{"type":"array","items":{"$ref":"#/components/schemas/FeaturePermission"}},"permissionsFingerprint":{"type":"string"},"sandbox":{"type":"boolean"},"created":{"type":"string","format":"date-time"},"expiresAt":{"type":"string","format":"date-time"},"existingInstall":{"$ref":"#/components/schemas/FeatureDraftPublishExistingInstallDto"}}},"FeatureDraftFilesResponseDto":{"type":"object","properties":{"draftId":{"type":"string"},"revision":{"type":"integer","format":"int32"},"files":{"type":"array","items":{"$ref":"#/components/schemas/FeatureDraftManifestEntryDto"}},"totalCount":{"type":"integer","format":"int32"},"offset":{"type":"integer","format":"int32"},"hasMore":{"type":"boolean"}}},"FeatureDraftManifestEntryDto":{"properties":{"path":{"type":"string"},"sha256":{"type":"string"},"bytes":{"type":"integer","format":"int64"}}},"FeatureDraftDiffResponseDto":{"type":"object","properties":{"draftId":{"type":"string"},"fromRevision":{"type":"integer","format":"int32"},"toRevision":{"type":"integer","format":"int32"},"files":{"type":"array","items":{"$ref":"#/components/schemas/FeatureDraftFileDiffDto"}},"truncated":{"type":"boolean"}}},"FeatureDraftFileDiffDto":{"properties":{"path":{"type":"string"},"status":{"type":"string"},"unifiedDiff":{"type":"string"}}},"FeatureStoreSubmissionListResponseDto":{"type":"object","properties":{"submissions":{"type":"array","items":{"$ref":"#/components/schemas/FeatureStoreSubmissionDto"}}}},"FeatureDraftPublishPendingItemDto":{"properties":{"draftId":{"type":"string"},"jobId":{"type":"string"},"version":{"type":"string"},"notes":{"type":"string"},"authorSource":{"type":"string"},"expiresAt":{"type":"string","format":"date-time"}}},"FeatureDraftPublishPendingResponseDto":{"type":"object","properties":{"jobs":{"type":"array","items":{"$ref":"#/components/schemas/FeatureDraftPublishPendingItemDto"}}}},"ScheduledEventsResponseDto":{"type":"object","properties":{"scheduledEvents":{"type":"array","items":{"$ref":"#/components/schemas/ScheduledEventDto"}}}},"DocumentsResponseDto":{"type":"object","properties":{"page":{"type":"integer","format":"int32"},"pages":{"type":"integer","format":"int32"},"pageSize":{"type":"integer","format":"int32"},"documentsCount":{"type":"integer","format":"int32"},"documents":{"type":"array","items":{"$ref":"#/components/schemas/DocumentDto"}}}},"CustomersResponseDto":{"type":"object","properties":{"page":{"type":"integer","format":"int32"},"pages":{"type":"integer","format":"int32"},"pageSize":{"type":"integer","format":"int32"},"customersCount":{"type":"integer","format":"int32"},"since":{"type":"integer","format":"int64"},"customers":{"type":"array","items":{"$ref":"#/components/schemas/CustomerDto"}}}},"CustomerTagResponseDto":{"type":"object","properties":{"page":{"type":"integer","format":"int32"},"pages":{"type":"integer","format":"int32"},"pageSize":{"type":"integer","format":"int32"},"projectsCount":{"type":"integer","format":"int32"},"tags":{"type":"array","items":{"$ref":"#/components/schemas/CustomerTagDto"}}}},"CustomerImportTemplateResponseDto":{"type":"object","properties":{"page":{"type":"integer","format":"int32"},"pages":{"type":"integer","format":"int32"},"pageSize":{"type":"integer","format":"int32"},"importTemplateCount":{"type":"integer","format":"int32"},"importTemplates":{"type":"array","items":{"$ref":"#/components/schemas/CustomerImportTemplateDto"}}}},"PickingListsResponseDto":{"type":"object","properties":{"page":{"type":"integer","format":"int32"},"pages":{"type":"integer","format":"int32"},"pageSize":{"type":"integer","format":"int32"},"listsCount":{"type":"integer","format":"int32"},"since":{"type":"integer","format":"int64"},"lists":{"type":"array","items":{"$ref":"#/components/schemas/PickingListDto"}}}},"OffersResponseDto":{"type":"object","properties":{"page":{"type":"integer","format":"int32"},"pages":{"type":"integer","format":"int32"},"pageSize":{"type":"integer","format":"int32"},"offersCount":{"type":"integer","format":"int32"},"since":{"type":"integer","format":"int64"},"offers":{"type":"array","items":{"$ref":"#/components/schemas/OfferDto"}}}},"CustomerOrderTraceabilitiesResponseDto":{"type":"object","properties":{"page":{"type":"integer","format":"int32"},"pages":{"type":"integer","format":"int32"},"pageSize":{"type":"integer","format":"int32"},"ordersCount":{"type":"integer","format":"int32"},"orders":{"type":"array","items":{"$ref":"#/components/schemas/CustomerOrderTraceabilityDto"}}}},"CustomerOrderTraceabilityDto":{"properties":{"orderId":{"type":"integer","format":"int64"},"state":{"type":"integer","format":"int32"},"customerId":{"type":"integer","format":"int64"},"customerName":{"type":"string"},"articleId":{"type":"string"},"articleName":{"type":"string"},"batchId":{"type":"string"},"serieNr":{"type":"string"},"delivered":{"type":"number","format":"double"}}},"RestOrderArticleDto":{"properties":{"id":{"type":"string"},"name":{"type":"string"},"date":{"type":"string","format":"date-time"},"deliver":{"type":"number","format":"double"},"available":{"type":"number","format":"double"},"customerOrders":{"type":"array","items":{"$ref":"#/components/schemas/RestOrderCustomerOrderDto"}}}},"RestOrderCustomerOrderDto":{"properties":{"id":{"type":"integer","format":"int64"},"displayId":{"type":"string"},"state":{"type":"string"},"customerId":{"type":"integer","format":"int64"},"customerName":{"type":"string"},"desiredDelivery":{"type":"string","format":"date-time"},"reserved":{"type":"number","format":"double"}}},"RestOrderResponseDto":{"type":"object","properties":{"pages":{"type":"integer","format":"int32"},"page":{"type":"integer","format":"int32"},"pageSize":{"type":"integer","format":"int32"},"articlesCount":{"type":"integer","format":"int32"},"articles":{"type":"array","items":{"$ref":"#/components/schemas/RestOrderArticleDto"}}}},"CustomerOrderCostDto":{"type":"object","properties":{"orderId":{"type":"integer","format":"int64"},"productCosts":{"type":"array","items":{"$ref":"#/components/schemas/CustomerOrderProductCostDto"}}}},"CustomerOrderProductCostDto":{"properties":{"articleId":{"type":"string"},"deliveredAmount":{"type":"number","format":"double"},"totalCost":{"type":"number","format":"double"}}},"CustomerDeliveryTermsResponseDto":{"type":"object","properties":{"since":{"type":"integer","format":"int64"},"customerDeliveryTerms":{"type":"array","items":{"$ref":"#/components/schemas/CustomerDeliveryTermDto"}}}},"CurrenciesResponseDto":{"type":"object","properties":{"currencies":{"type":"array","items":{"$ref":"#/components/schemas/CurrencyDto"}},"baseCurrency":{"type":"string"}}},"CurrencyDto":{"type":"object","properties":{"currency":{"type":"string"},"currencyChar":{"type":"string"},"country":{"type":"string"},"rate":{"type":"number","format":"double"}}},"CountriesResponseDto":{"type":"object","properties":{"countries":{"type":"array","items":{"$ref":"#/components/schemas/CountryDto"}}}},"CountryDto":{"properties":{"code":{"type":"string"},"name":{"type":"string"}}},"CostCentersResponseDto":{"type":"object","properties":{"since":{"type":"integer","format":"int64"},"costCenters":{"type":"array","items":{"$ref":"#/components/schemas/CostCenterDto"}}}},"CategoriesResponseDto":{"type":"object","properties":{"since":{"type":"integer","format":"int64"},"categories":{"type":"array","items":{"$ref":"#/components/schemas/CategoryDto"}}}},"OAuthTokenListItemDto":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"clientName":{"type":"string"},"storeId":{"type":"integer","format":"int64"},"storeName":{"type":"string"},"scope":{"type":"string"},"created":{"type":"integer","format":"int64"},"lastUsed":{"type":"integer","format":"int64"}}},"ArticleHistoryDto":{"properties":{"articleId":{"type":"string"},"supplierId":{"type":"integer","format":"int64"},"supplierName":{"type":"string"},"oldCount":{"type":"number","format":"double"},"newCount":{"type":"number","format":"double"},"oldReserved":{"type":"number","format":"double"},"newReserved":{"type":"number","format":"double"},"pricelistId":{"type":"integer","format":"int64"},"pricelistName":{"type":"string"},"oldSalesPrice":{"type":"number","format":"double"},"newSalesPrice":{"type":"number","format":"double"},"oldPurchasePrice":{"type":"number","format":"double"},"newPurchasePrice":{"type":"number","format":"double"},"oldFifo":{"type":"number","format":"double"},"newFifo":{"type":"number","format":"double"},"userId":{"type":"integer","format":"int64"},"userName":{"type":"string"},"reason":{"type":"string"},"created":{"type":"string","format":"date-time"}}},"ArticleHistoryResponseDto":{"type":"object","properties":{"page":{"type":"integer","format":"int32"},"pages":{"type":"integer","format":"int32"},"pageSize":{"type":"integer","format":"int32"},"historyCount":{"type":"integer","format":"int32"},"since":{"type":"integer","format":"int64"},"history":{"type":"array","items":{"$ref":"#/components/schemas/ArticleHistoryDto"}}}},"ArticleFIFOsResponseDto":{"type":"object","properties":{"page":{"type":"integer","format":"int32"},"pages":{"type":"integer","format":"int32"},"pageSize":{"type":"integer","format":"int32"},"fifoCount":{"type":"integer","format":"int32"},"since":{"type":"integer","format":"int64"},"fifos":{"type":"array","items":{"$ref":"#/components/schemas/FIFODto"}}}},"ArticleTraceabilityBatchDto":{"properties":{"batchId":{"type":"string"},"serialNr":{"type":"string"},"amount":{"type":"number","format":"double"},"reserved":{"type":"number","format":"double"},"barcode":{"type":"string"},"bestBefore":{"type":"string","format":"date-time"},"producedAmount":{"type":"number","format":"double"}}},"PartTraceabilityExtendedDto":{"properties":{"articleId":{"type":"string"},"articleName":{"type":"string"},"unit":{"type":"string"},"amount":{"type":"number","format":"double"},"producedAmount":{"type":"number","format":"double"},"batches":{"type":"array","items":{"$ref":"#/components/schemas/ArticleTraceabilityBatchDto"}},"serial":{"type":"array","items":{"$ref":"#/components/schemas/ArticleTraceabilityBatchDto"}}}},"PartTraceabilityResponseDto":{"type":"object","properties":{"traceability":{"type":"array","items":{"$ref":"#/components/schemas/PartTraceabilityExtendedDto"}},"modifiedStructure":{"type":"boolean"}}},"CountDto":{"type":"object","properties":{"count":{"type":"integer","format":"int32"}}},"StockValueDto":{"type":"object","properties":{"stockValue":{"type":"number","format":"double"},"stockValueFIFO":{"type":"number","format":"double"}}},"ArticleStockplaceDto":{"properties":{"stockplace":{"type":"string"},"articles":{"type":"integer","format":"int32"}}},"ArticleStockplacesResponseDto":{"type":"object","properties":{"stockplaces":{"type":"array","items":{"$ref":"#/components/schemas/ArticleStockplaceDto"}}}},"ArticleIdDto":{"type":"object","properties":{"id":{"type":"string"}}},"ArticleImportTemplateResponseDto":{"type":"object","properties":{"page":{"type":"integer","format":"int32"},"pages":{"type":"integer","format":"int32"},"pageSize":{"type":"integer","format":"int32"},"importTemplateCount":{"type":"integer","format":"int32"},"importTemplates":{"type":"array","items":{"$ref":"#/components/schemas/ArticleImportTemplateDto"}}}},"StoreArticleDto":{"properties":{"articleId":{"type":"string"},"name":{"type":"string"},"storeId":{"type":"integer","format":"int64"},"storeName":{"type":"string"},"availableAmount":{"type":"number","format":"double"}}},"StoreArticlesResponseDto":{"type":"object","properties":{"page":{"type":"integer","format":"int32"},"pages":{"type":"integer","format":"int32"},"pageSize":{"type":"integer","format":"int32"},"articlesCount":{"type":"integer","format":"int32"},"since":{"type":"integer","format":"int64"},"articles":{"type":"array","items":{"$ref":"#/components/schemas/StoreArticleDto"}}}},"FieldsResponseDto":{"type":"object","properties":{"fields":{"type":"array","items":{"type":"string"}}}},"ExportDateDto":{"properties":{"id":{"type":"string"},"type":{"type":"string"},"date":{"type":"string","format":"date-time"},"stockValue":{"type":"number","format":"double"},"stockValueFIFO":{"type":"number","format":"double"}}},"ExportDatesResponseDto":{"type":"object","properties":{"page":{"type":"integer","format":"int32"},"pages":{"type":"integer","format":"int32"},"pageSize":{"type":"integer","format":"int32"},"datesCount":{"type":"integer","format":"int32"},"dates":{"type":"array","items":{"$ref":"#/components/schemas/ExportDateDto"}}}},"ArticleAutoCompleteDto":{"properties":{"articleId":{"type":"string"},"active":{"type":"boolean"},"name":{"type":"string"},"bundled":{"type":"boolean"},"amount":{"type":"number","format":"double"},"reserved":{"type":"number","format":"double"},"barcode":{"type":"string"},"barcodeType":{"type":"string"},"price":{"type":"number","format":"double"},"supplierBuyPrice":{"type":"number","format":"double"},"supplierBuyPriceShipment":{"type":"number","format":"double"},"supplierBuyPriceMisc":{"type":"number","format":"double"},"supplierBuyCurrency":{"type":"string"},"supplierBuyRate":{"type":"number","format":"double"},"unit":{"type":"string"},"type":{"type":"string"},"stock":{"type":"boolean"},"vat":{"type":"number","format":"double"},"matchedBatches":{"type":"array","items":{"$ref":"#/components/schemas/MatchedBatchDto"}}}},"ArticlesAutoCompleteResponseDto":{"type":"object","properties":{"articlesCount":{"type":"integer","format":"int32"},"page":{"type":"integer","format":"int32"},"pageSize":{"type":"integer","format":"int32"},"pages":{"type":"integer","format":"int32"},"articles":{"type":"array","items":{"$ref":"#/components/schemas/ArticleAutoCompleteDto"}}}},"MatchedBatchDto":{"properties":{"batchId":{"type":"string"},"serialNr":{"type":"string"},"barcode":{"type":"string"},"bestBefore":{"type":"string"}}},"WebMessageDto":{"properties":{"params":{"type":"object","additionalProperties":{"type":"string"}},"action":{"type":"string"}}},"WebMessageStatusDto":{"properties":{"action":{"type":"string"},"responseCode":{"type":"integer","format":"int32"},"data":{"$ref":"#/components/schemas/WebMessageDto"}}},"WebMessagesResponseDto":{"type":"object","properties":{"messages":{"type":"array","items":{"$ref":"#/components/schemas/WebMessageStatusDto"}}}},"UsersResponseDto":{"type":"object","properties":{"page":{"type":"integer","format":"int32"},"pages":{"type":"integer","format":"int32"},"pageSize":{"type":"integer","format":"int32"},"usersCount":{"type":"integer","format":"int32"},"since":{"type":"integer","format":"int64"},"users":{"type":"array","items":{"$ref":"#/components/schemas/UserDto"}}}},"StatusMessagesResponseDto":{"type":"object","properties":{"pages":{"type":"integer","format":"int32"},"page":{"type":"integer","format":"int32"},"pageSize":{"type":"integer","format":"int32"},"messagesCount":{"type":"integer","format":"int32"},"messages":{"type":"array","items":{"$ref":"#/components/schemas/StatusMessageDto"}}}},"AccountModelDto":{"properties":{"id":{"type":"integer","format":"int32"},"paymentType":{"type":"integer","format":"int32"},"premium":{"type":"boolean"},"reseller":{"type":"boolean"},"name":{"type":"string"},"price":{"type":"number","format":"double"},"discountPercentage":{"type":"number","format":"double"},"maxUsers":{"type":"integer","format":"int32"},"maxCustomers":{"type":"integer","format":"int32"},"maxStocks":{"type":"integer","format":"int32"},"maxArticles":{"type":"integer","format":"int32"},"fortnoxAccess":{"type":"integer","format":"int32"},"vismaAccess":{"type":"integer","format":"int32"},"batchAccess":{"type":"integer","format":"int32"},"peaccess":{"type":"integer","format":"int32"}}},"LicenseDto":{"type":"object","properties":{"eula":{"type":"string"},"models":{"type":"array","items":{"$ref":"#/components/schemas/AccountModelDto"}}}},"InvoiceDto":{"type":"object","properties":{"invoiceId":{"type":"integer","format":"int64"},"serverId":{"type":"integer","format":"int64"},"invoiceDate":{"type":"string","format":"date-time"},"invoiceDays":{"type":"integer","format":"int32"},"paymentDate":{"type":"string","format":"date-time"},"invoicePeriodInMonths":{"type":"integer","format":"int32"},"rows":{"type":"array","items":{"$ref":"#/components/schemas/InvoiceRowDto"}},"invoiceExpireDate":{"type":"string","format":"date-time"},"state":{"type":"string"},"invoicePaidDate":{"type":"string","format":"date-time"}}},"InvoiceRowDto":{"properties":{"articleId":{"type":"string"},"articleName":{"type":"string"},"articlePrice":{"type":"number","format":"double"},"articleVat":{"type":"number","format":"double"},"discountPercent":{"type":"number","format":"double"},"amount":{"type":"number","format":"double"}}},"InvoicesResponseDto":{"type":"object","properties":{"invoices":{"type":"array","items":{"$ref":"#/components/schemas/InvoiceDto"}}}},"FeatureDraftDeleteFileResultDto":{"type":"object","properties":{"draftId":{"type":"string"},"revision":{"type":"integer","format":"int32"},"path":{"type":"string"},"alreadyApplied":{"type":"boolean"}}}}}}