{"openapi":"3.0.0","paths":{"/v3/affiliates":{"post":{"operationId":"AffiliatesController_create","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateAffiliateDto"}}}},"responses":{"201":{"description":""}},"tags":["affiliates"]},"get":{"operationId":"AffiliatesController_findAll","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Affiliate"}}}}}},"tags":["affiliates"]}},"/v3/affiliates/url":{"get":{"operationId":"AffiliatesController_url","parameters":[],"responses":{"200":{"description":""}},"tags":["affiliates"]}},"/v3/affiliates/{id}":{"get":{"operationId":"AffiliatesController_findOne","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Affiliate"}}}}},"tags":["affiliates"]}},"/v3/affiliates/r":{"get":{"operationId":"AffiliatesController_redirect","parameters":[{"name":"id","required":true,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":""}},"tags":["affiliates"]}},"/v3/affiliates/iban":{"get":{"operationId":"AffiliatesController_getIban","parameters":[],"responses":{"200":{"description":""}},"tags":["affiliates"]},"post":{"operationId":"AffiliatesController_updateIban","parameters":[],"responses":{"201":{"description":""}},"tags":["affiliates"]}},"/v3/businesspartners":{"post":{"operationId":"BusinesspartnersController_create","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateBusinesspartnerDto"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Businesspartner"}}}}},"tags":["businesspartners"]},"get":{"operationId":"BusinesspartnersController_findAll","parameters":[{"name":"limit","required":false,"in":"query","schema":{"minimum":1,"default":1000,"type":"number"}},{"name":"skip","required":false,"in":"query","schema":{"type":"number"}},{"name":"creditorNumber","required":false,"in":"query","schema":{"type":"string"}},{"name":"debitorNumber","required":false,"in":"query","schema":{"type":"string"}},{"name":"epagesCustomerId","required":false,"in":"query","schema":{"type":"string"}},{"name":"woocommerceCustomerId","required":false,"in":"query","schema":{"type":"number"}},{"name":"shopifyCustomerId","required":false,"in":"query","schema":{"type":"number"}},{"name":"azooCustomerId","required":false,"in":"query","schema":{"type":"string"}},{"name":"shopwareCustomerId","required":false,"in":"query","schema":{"type":"number"}},{"name":"topixUuid","required":false,"in":"query","schema":{"type":"string"}},{"name":"email","required":false,"in":"query","schema":{"type":"string"}},{"name":"updatedBefore","required":false,"in":"query","schema":{"format":"date-time","type":"string"}},{"name":"updatedAfter","required":false,"in":"query","schema":{"format":"date-time","type":"string"}},{"name":"createdBefore","required":false,"in":"query","schema":{"format":"date-time","type":"string"}},{"name":"createdAfter","required":false,"in":"query","schema":{"format":"date-time","type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"type":"object"}}}}}},"tags":["businesspartners"]}},"/v3/businesspartners/defaults":{"get":{"operationId":"BusinesspartnersController_getDefaults","summary":"Get default attributes for business partners","description":"Returns a list of default values for business partners derived from client settings","parameters":[],"responses":{"200":{"description":"List of default attributes for business partners","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/BusinesspartnerDefaultsDto"}}}}}},"tags":["businesspartners"]}},"/v3/businesspartners/setDefaults":{"post":{"operationId":"BusinesspartnersController_setDefaults","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateBusinesspartnerDto"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateBusinesspartnerDto"}}}}},"tags":["businesspartners"]}},"/v3/businesspartners/validate":{"post":{"operationId":"BusinesspartnersController_validate","parameters":[],"responses":{"201":{"description":""}},"tags":["businesspartners"]}},"/v3/businesspartners/{id}/archive":{"post":{"operationId":"BusinesspartnersController_archive","parameters":[],"responses":{"201":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}}},"tags":["businesspartners"]}},"/v3/businesspartners/{id}/unarchive":{"post":{"operationId":"BusinesspartnersController_unarchive","parameters":[],"responses":{"201":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}}},"tags":["businesspartners"]}},"/v3/businesspartners/search":{"post":{"operationId":"BusinesspartnersController_search","summary":"Search business partners","description":"Search for business partners using query, filters and pagination options","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SearchBusinesspartnerDto"}}}},"responses":{"200":{"description":"Returns search results with metadata and pagination","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SearchResponseDto"}}}},"201":{"description":""}},"tags":["businesspartners"]}},"/v3/businesspartners/findMany":{"get":{"operationId":"BusinesspartnersController_findMany","parameters":[{"name":"ids","required":true,"in":"query","schema":{"type":"array","items":{"type":"string"}}},{"name":"limit","required":false,"in":"query","schema":{"minimum":1,"default":1000,"type":"number"}},{"name":"skip","required":false,"in":"query","schema":{"type":"number"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"type":"object"}}}}}},"tags":["businesspartners"]}},"/v3/businesspartners/{id}":{"get":{"operationId":"BusinesspartnersController_findOne","parameters":[{"name":"limit","required":false,"in":"query","schema":{"minimum":1,"default":1000,"type":"number"}},{"name":"skip","required":false,"in":"query","schema":{"type":"number"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Businesspartner"}}}}},"tags":["businesspartners"]},"patch":{"operationId":"BusinesspartnersController_update","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateBusinesspartnerDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}}},"tags":["businesspartners"]},"delete":{"operationId":"BusinesspartnersController_remove","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}}},"tags":["businesspartners"]}},"/v3/businesspartners/{id}/credit":{"get":{"operationId":"BusinesspartnersController_getCredit","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BusinesspartnerCreditDto"}}}}},"tags":["businesspartners"]}},"/v3/businesspartners/{id}/customattribute":{"post":{"operationId":"BusinesspartnersController_updateCustomattribute","summary":"Update a single custom attribute","description":"Updates a specific custom attribute by matching the ref value","parameters":[],"requestBody":{"required":true,"description":"Custom attribute update data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateCustomattributeDto"},"examples":{"update-custom-attribute":{"summary":"Update custom attribute value","value":{"ref":"63eb1234d1ed93658502a1ec","value":"abcdef"}}}}}},"responses":{"200":{"description":"Custom attribute updated successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Businesspartner"}}}},"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Businesspartner"}}}}},"tags":["businesspartners"]}},"/v3/businesspartners/{id}/sync-search":{"post":{"operationId":"BusinesspartnersController_syncSearch","summary":"Trigger search index sync for a business partner","description":"Enqueues a job to rebuild the businesspartners_search entry for the given contact. Used by legacy systems after BP mutations.","parameters":[],"responses":{"201":{"description":""}},"tags":["businesspartners"]}},"/v3/tags/{id}/updatesearch":{"get":{"operationId":"TagsController_updateSearch","parameters":[],"responses":{"200":{"description":""}},"tags":["tags"]}},"/v3/tags":{"post":{"operationId":"TagsController_create","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateTagDto"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Tag"}}}}},"tags":["tags"]},"get":{"operationId":"TagsController_findAll","parameters":[{"name":"limit","required":false,"in":"query","schema":{"minimum":1,"default":1000,"type":"number"}},{"name":"skip","required":false,"in":"query","schema":{"type":"number"}},{"name":"section","required":false,"in":"query","schema":{"type":"string"}},{"name":"name","required":false,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Tag"}}}}}},"tags":["tags"]}},"/v3/tags/{id}":{"get":{"operationId":"TagsController_findOne","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Tag"}}}}},"tags":["tags"]},"patch":{"operationId":"TagsController_update","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateTagDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}}},"tags":["tags"]},"delete":{"operationId":"TagsController_remove","parameters":[],"responses":{"200":{"description":""}},"tags":["tags"]}},"/v3/tags/{id}/duplicate":{"post":{"operationId":"TagsController_duplicate","parameters":[],"responses":{"201":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}}},"tags":["tags"]}},"/v3/tags/{id}/archive":{"post":{"operationId":"TagsController_archive","parameters":[],"responses":{"201":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}}},"tags":["tags"]}},"/v3/tags/setGroupScalePrice":{"post":{"operationId":"TagsController_setGroupScalePrice","summary":"Set group scale price for a tag","description":"Sets or updates the group scale price configuration for a tag by name. Creates a new discount rule if none exists, or updates the enabled status if one already exists.","parameters":[],"requestBody":{"required":true,"description":"Tag name and pricelist are required. Enabled is optional and defaults to true.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SetGroupScalePriceDto"}}}},"responses":{"200":{"description":"Group scale price successfully set or updated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Discountrule"}}}},"201":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"404":{"description":"Tag with the specified name not found"}},"tags":["tags"]}},"/v3/reservationitems":{"post":{"operationId":"ReservationItemsController_create","summary":"Create a new reservation item","description":"Creates a new reservation item linked to a specific reservation.","parameters":[],"requestBody":{"required":true,"description":"Data for the reservation item to be created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateReservationItemDto"}}}},"responses":{"201":{"description":"The reservation item was created successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReservationItem"}}}}},"tags":["reservationitems"]},"get":{"operationId":"ReservationItemsController_findAll","summary":"Get all reservation items","description":"Returns a list of all reservation items with pagination.","parameters":[{"name":"limit","required":false,"in":"query","schema":{"minimum":1,"default":1000,"type":"number"}},{"name":"skip","required":false,"in":"query","schema":{"type":"number"}},{"required":false,"name":"limit","in":"query","schema":{"minimum":1,"default":1000,"type":"number"}},{"required":false,"name":"skip","in":"query","schema":{"type":"number"}}],"responses":{"200":{"description":"List of reservation items","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ReservationItem"}}}}}},"tags":["reservationitems"]}},"/v3/reservationitems/{id}":{"get":{"operationId":"ReservationItemsController_findOne","summary":"Get a specific reservation item","description":"Returns detailed information about a reservation item based on its ID.","parameters":[{"name":"id","required":true,"in":"path","description":"ID of the reservation item","schema":{"type":"string"}}],"responses":{"200":{"description":"The requested reservation item","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReservationItem"}}}},"404":{"description":"Reservation item not found"}},"tags":["reservationitems"]},"patch":{"operationId":"ReservationItemsController_update","summary":"Update a reservation item","description":"Updates an existing reservation item with the provided data.","parameters":[{"name":"id","required":true,"in":"path","description":"ID of the reservation item to update","schema":{"type":"string"}}],"requestBody":{"required":true,"description":"Updated reservation item data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateReservationItemDto"}}}},"responses":{"200":{"description":"The updated reservation item","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReservationItem"}}}},"404":{"description":"Reservation item not found"}},"tags":["reservationitems"]},"delete":{"operationId":"ReservationItemsController_remove","summary":"Delete a reservation item","description":"Removes a reservation item from the system.","parameters":[{"name":"id","required":true,"in":"path","description":"ID of the reservation item to delete","schema":{"type":"string"}}],"responses":{"200":{"description":"The reservation item was successfully deleted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReservationItem"}}}},"404":{"description":"Reservation item not found"}},"tags":["reservationitems"]}},"/v3/reservationitems/reservation/{id}":{"get":{"operationId":"ReservationItemsController_findByReservation","summary":"Get all items for a specific reservation","description":"Returns all reservation items associated with a given reservation ID.","parameters":[{"name":"id","required":true,"in":"path","description":"ID of the parent reservation","schema":{"type":"string"}}],"responses":{"200":{"description":"List of reservation items belonging to the specified reservation","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ReservationItem"}}}}},"404":{"description":"Reservation not found"}},"tags":["reservationitems"]}},"/v3/reservationitems/{id}/back":{"post":{"operationId":"ReservationItemsController_itemBack","summary":"Record items returned","description":"Records that items have been returned from a reservation.","parameters":[{"name":"id","required":true,"in":"path","description":"ID of the reservation item","schema":{"type":"string"}}],"requestBody":{"required":true,"description":"Amount of items returned","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AmountDto"}}}},"responses":{"200":{"description":"The updated reservation item after recording returns","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReservationItem"}}}},"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReservationItem"}}}},"404":{"description":"Reservation item not found"}},"tags":["reservationitems"]}},"/v3/reservationitems/{id}/purchased":{"post":{"operationId":"ReservationItemsController_itemPurchased","summary":"Record items purchased","description":"Records that items from a reservation have been purchased.","parameters":[{"name":"id","required":true,"in":"path","description":"ID of the reservation item","schema":{"type":"string"}}],"requestBody":{"required":true,"description":"Amount of items purchased","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AmountDto"}}}},"responses":{"200":{"description":"The updated reservation item after recording purchases","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReservationItem"}}}},"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReservationItem"}}}},"404":{"description":"Reservation item not found"}},"tags":["reservationitems"]}},"/v3/reservationitems/{id}/out":{"post":{"operationId":"ReservationItemsController_itemOut","summary":"Record items going out","description":"Records that items have been taken out for a reservation.","parameters":[{"name":"id","required":true,"in":"path","description":"ID of the reservation item","schema":{"type":"string"}}],"requestBody":{"required":true,"description":"Amount of items taken out","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AmountDto"}}}},"responses":{"200":{"description":"The updated reservation item after recording outgoing items","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReservationItem"}}}},"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReservationItem"}}}},"404":{"description":"Reservation item not found"}},"tags":["reservationitems"]}},"/v3/reservationitems/cancel-document":{"post":{"operationId":"ReservationItemsController_documentCancel","parameters":[],"responses":{"201":{"description":""}},"tags":["reservationitems"]}},"/v3/reservations":{"post":{"operationId":"ReservationsController_create","summary":"Create a new reservation","description":"Creates a new reservation with the provided data.","parameters":[],"requestBody":{"required":true,"description":"Data for the reservation to be created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateReservationDto"}}}},"responses":{"201":{"description":"The reservation was created successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Reservation"}}}}},"tags":["reservations"]},"get":{"operationId":"ReservationsController_findAll","summary":"Get all reservations","description":"Returns a list of all reservations with pagination and filter options.","parameters":[{"name":"limit","required":false,"in":"query","schema":{"minimum":1,"default":1000,"type":"number"}},{"name":"skip","required":false,"in":"query","schema":{"type":"number"}},{"name":"businesspartner","required":true,"in":"query","schema":{"type":"string"}},{"name":"state","required":true,"in":"query","schema":{"type":"string"}},{"name":"pointofsale","required":true,"in":"query","schema":{"type":"string"}},{"name":"number","required":true,"in":"query","schema":{"type":"number"}},{"name":"dueDate","required":true,"in":"query","schema":{"format":"date-time","type":"string"}},{"name":"updatedAt","required":true,"in":"query","schema":{"format":"date-time","type":"string"}},{"name":"stock","required":true,"in":"query","schema":{"type":"string"}},{"required":true,"name":"businesspartner","in":"query","schema":{"type":"string"}},{"required":true,"name":"state","in":"query","schema":{"type":"string"}},{"required":true,"name":"pointofsale","in":"query","schema":{"type":"string"}},{"required":true,"name":"number","in":"query","schema":{"type":"number"}},{"required":true,"name":"status","in":"query","schema":{"type":"object"}},{"required":true,"name":"dueDate","in":"query","schema":{"format":"date-time","type":"string"}},{"required":true,"name":"updatedAt","in":"query","schema":{"format":"date-time","type":"string"}},{"required":true,"name":"stock","in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"List of reservations","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Reservation"}}}}}},"tags":["reservations"]}},"/v3/reservations/{id}":{"get":{"operationId":"ReservationsController_findOne","summary":"Get a specific reservation","description":"Returns detailed information about a reservation based on its ID.","parameters":[{"name":"id","required":true,"in":"path","description":"ID of the reservation","schema":{"type":"string"}}],"responses":{"200":{"description":"The requested reservation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Reservation"}}}},"404":{"description":"Reservation not found"}},"tags":["reservations"]},"patch":{"operationId":"ReservationsController_update","summary":"Update a reservation","description":"Updates an existing reservation with the provided data.","parameters":[{"name":"id","required":true,"in":"path","description":"ID of the reservation to update","schema":{"type":"string"}}],"requestBody":{"required":true,"description":"Updated reservation data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateReservationDto"}}}},"responses":{"200":{"description":"The updated reservation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Reservation"}}}},"404":{"description":"Reservation not found"}},"tags":["reservations"]},"delete":{"operationId":"ReservationsController_remove","summary":"Delete a reservation","description":"Removes a reservation from the system.","parameters":[{"name":"id","required":true,"in":"path","description":"ID of the reservation to delete","schema":{"type":"string"}}],"responses":{"200":{"description":"The reservation was successfully deleted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Reservation"}}}},"404":{"description":"Reservation not found"}},"tags":["reservations"]}},"/v3/reservations/open":{"get":{"operationId":"ReservationsController_findOpenReservations","summary":"Get all open reservations","description":"Returns a list of all open reservations that have not been completed or canceled.","parameters":[{"name":"limit","required":false,"in":"query","schema":{"minimum":1,"default":1000,"type":"number"}},{"name":"skip","required":false,"in":"query","schema":{"type":"number"}},{"required":false,"name":"limit","in":"query","schema":{"minimum":1,"default":1000,"type":"number"}},{"required":false,"name":"skip","in":"query","schema":{"type":"number"}}],"responses":{"200":{"description":"List of open reservations","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Reservation"}}}}}},"tags":["reservations"]}},"/v3/reservations/draft":{"get":{"operationId":"ReservationsController_findDrafts","summary":"Get all draft reservations","description":"Returns a list of reservations that are in draft state and not yet confirmed.","parameters":[{"name":"limit","required":false,"in":"query","schema":{"minimum":1,"default":1000,"type":"number"}},{"name":"skip","required":false,"in":"query","schema":{"type":"number"}},{"required":false,"name":"limit","in":"query","schema":{"minimum":1,"default":1000,"type":"number"}},{"required":false,"name":"skip","in":"query","schema":{"type":"number"}}],"responses":{"200":{"description":"List of draft reservations","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Reservation"}}}}}},"tags":["reservations"]}},"/v3/reservations/{id}/confirm":{"post":{"operationId":"ReservationsController_confirm","summary":"Confirm a reservation","description":"Sets the status of a reservation to confirmed.","parameters":[{"name":"id","required":true,"in":"path","description":"ID of the reservation to confirm","schema":{"type":"string"}}],"responses":{"200":{"description":"The confirmed reservation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Reservation"}}}},"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Reservation"}}}},"404":{"description":"Reservation not found"}},"tags":["reservations"]}},"/v3/articles":{"post":{"operationId":"ArticlesController_create","summary":"Create a new article","parameters":[],"requestBody":{"required":true,"description":"Article data for creation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateArticleDto"}}}},"responses":{"200":{"description":"Article successfully created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ArticleDto"}}}},"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Article"}}}}},"tags":["articles"]},"get":{"operationId":"ArticlesController_findAll","summary":"Find all articles with optional filtering and pagination","parameters":[{"name":"limit","required":false,"in":"query","schema":{"minimum":1,"default":1000,"type":"number"}},{"name":"skip","required":false,"in":"query","schema":{"type":"number"}},{"name":"createdAfter","required":false,"in":"query","schema":{"format":"date-time","type":"string"}},{"name":"createdBefore","required":false,"in":"query","schema":{"format":"date-time","type":"string"}},{"name":"updatedAfter","required":false,"in":"query","schema":{"format":"date-time","type":"string"}},{"name":"updatedBefore","required":false,"in":"query","schema":{"format":"date-time","type":"string"}},{"name":"number","required":false,"in":"query","schema":{"type":"string"}},{"name":"ean","required":false,"in":"query","schema":{"type":"string"}},{"name":"code","required":false,"in":"query","schema":{"type":"string"}},{"name":"stock","required":false,"in":"query","schema":{"type":"string"}},{"name":"stockOperator","required":false,"in":"query","schema":{"type":"string"}},{"name":"stockAmount","required":false,"in":"query","schema":{"type":"number"}},{"name":"inStock","required":false,"in":"query","schema":{"type":"boolean"}},{"name":"outOfStock","required":false,"in":"query","schema":{"type":"boolean"}},{"name":"id","required":false,"in":"query","schema":{"$ref":"#/components/schemas/ObjectId"}},{"required":false,"name":"tags","in":"query","schema":{"type":"array","items":{"$ref":"#/components/schemas/ObjectId"}}},{"required":false,"name":"createdAfter","in":"query","schema":{"format":"date-time","type":"string"}},{"required":false,"name":"createdBefore","in":"query","schema":{"format":"date-time","type":"string"}},{"required":false,"name":"updatedAfter","in":"query","schema":{"format":"date-time","type":"string"}},{"required":false,"name":"updatedBefore","in":"query","schema":{"format":"date-time","type":"string"}},{"required":false,"name":"number","in":"query","schema":{"type":"string"}},{"required":false,"name":"ean","in":"query","schema":{"type":"string"}},{"required":false,"name":"code","in":"query","schema":{"type":"string"}},{"required":false,"name":"stock","in":"query","schema":{"type":"string"}},{"required":false,"name":"stockOperator","in":"query","schema":{"type":"string"}},{"required":false,"name":"stockAmount","in":"query","schema":{"type":"number"}},{"required":false,"name":"inStock","in":"query","schema":{"type":"boolean"}},{"required":false,"name":"outOfStock","in":"query","schema":{"type":"boolean"}}],"responses":{"200":{"description":"If filtered by id, returns a single Article, otherwise returns an array of Articles","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ArticleDto"}}}}}},"tags":["articles"]}},"/v3/articles/upsert":{"post":{"operationId":"ArticlesController_upsert","summary":"Create or update an article by article number","description":"Finds an existing article by article number and updates additional fields. If no article is found with the given number, creates a new article.","parameters":[],"requestBody":{"required":true,"description":"Article data for creation or update","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateArticleDto"}}}},"responses":{"200":{"description":"Article successfully created or updated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ArticleDto"}}}},"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Article"}}}}},"tags":["articles"]}},"/v3/articles/{id}/sync-search":{"post":{"operationId":"ArticlesController_syncSearch","summary":"Trigger search index sync for an article","description":"Enqueues a job to rebuild searchString/searchStringInvert for the given article. Used by legacy systems after article mutations.","parameters":[],"responses":{"201":{"description":""}},"tags":["articles"]}},"/v3/articles/{id}/stockavailability":{"get":{"operationId":"ArticlesController_stockAvailability","parameters":[{"name":"from","required":false,"in":"query","description":"Only return movements created on or after this date (the time part is set to 00:00:00)","example":"2026-09-01T00:00:00.000Z","schema":{"format":"date-time","type":"string"}},{"name":"to","required":false,"in":"query","description":"Only return movements created before this date (the time part is set to 23:59:59)","example":"2026-09-17T00:00:00.000Z","schema":{"format":"date-time","type":"string"}},{"name":"stocks","required":false,"in":"query","description":"Filter by stock: comma-separated list of stock IDs (ObjectId). Filtering only, no stock is booked here.","example":"507f1f77bcf86cd799439012,507f1f77bcf86cd799439013","schema":{"type":"string"}}],"responses":{"200":{"description":""}},"tags":["articles"]}},"/v3/articles/next-number":{"get":{"operationId":"ArticlesController_getNextNumber","summary":"Get next available article number","parameters":[],"responses":{"200":{"description":"Next available article number","content":{"application/json":{"schema":{"type":"object","properties":{"value":{"type":"string","description":"Next article number"}}}}}}},"tags":["articles"]}},"/v3/articles/find-by-number-or-ean":{"get":{"operationId":"ArticlesController_findByNumberOrEAN","summary":"Find article by article number or EAN","parameters":[{"name":"limit","required":false,"in":"query","schema":{"minimum":1,"default":1000,"type":"number"}},{"name":"skip","required":false,"in":"query","schema":{"type":"number"}},{"name":"number","required":true,"in":"query","description":"Article number or EAN to search for","schema":{"type":"string"}}],"responses":{"200":{"description":"Found article","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ArticleDto"}}}}},"tags":["articles"]}},"/v3/articles/{id}/stockitementries":{"get":{"operationId":"ArticlesController_getStockitementries","summary":"Get stock item entries for an article","parameters":[{"name":"from","required":false,"in":"query","description":"Only return movements created on or after this date (the time part is set to 00:00:00)","example":"2026-09-01T00:00:00.000Z","schema":{"format":"date-time","type":"string"}},{"name":"to","required":false,"in":"query","description":"Only return movements created before this date (the time part is set to 23:59:59)","example":"2026-09-17T00:00:00.000Z","schema":{"format":"date-time","type":"string"}},{"name":"stocks","required":false,"in":"query","description":"Filter by stock: comma-separated list of stock IDs (ObjectId). Filtering only, no stock is booked here.","example":"507f1f77bcf86cd799439012,507f1f77bcf86cd799439013","schema":{"type":"string"}},{"required":false,"description":"Only return movements created on or after this date (the time part is set to 00:00:00)","example":"2026-09-01T00:00:00.000Z","name":"from","in":"query","schema":{"format":"date-time","type":"string"}},{"required":false,"description":"Only return movements created before this date (the time part is set to 23:59:59)","example":"2026-09-17T00:00:00.000Z","name":"to","in":"query","schema":{"format":"date-time","type":"string"}},{"required":false,"description":"Filter by stock: comma-separated list of stock IDs (ObjectId). Filtering only, no stock is booked here.","example":"507f1f77bcf86cd799439012,507f1f77bcf86cd799439013","name":"stocks","in":"query","schema":{"type":"string"}},{"description":"Alternative stock filter as a map of stock ID to boolean; only stocks set to true are returned","example":{"507f1f77bcf86cd799439012":true},"required":false,"name":"showstock","in":"query","schema":{"type":"object"}},{"name":"id","required":true,"in":"path","description":"Article ID","schema":{"type":"string"}}],"responses":{"200":{"description":"Stock item entries for the article"}},"tags":["articles"]}},"/v3/articles/{id}/legacy/stockitementries":{"post":{"operationId":"ArticlesController_getStockitementriesLegacy","summary":"Get stock item entries for an article (legacy, read-only)","description":"Read-only listing of existing stock movements; the filter parameters are sent in the body instead of the query string. This endpoint does not create bookings — use POST /stockitementries to book a stock delta.","parameters":[{"name":"id","required":true,"in":"path","description":"Article ID","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetArticleStockitementryDto"}}}},"responses":{"200":{"description":"Stock item entries for the article"},"201":{"description":""}},"tags":["articles"]}},"/v3/articles/scale-items":{"get":{"operationId":"ArticlesController_getScaleItems","summary":"Get scale items","parameters":[],"responses":{"200":{"description":"List of scale items"}},"tags":["articles"]}},"/v3/articles/{id}/scale-items":{"get":{"operationId":"ArticlesController_getScaleItem","summary":"Get scale item for specific article","parameters":[{"name":"id","required":true,"in":"path","description":"Article ID","schema":{"type":"string"}}],"responses":{"200":{"description":"Scale item for the article"}},"tags":["articles"]}},"/v3/articles/{id}/set-stock-availability":{"post":{"operationId":"ArticlesController_setStockAvailability","summary":"Set stock availability for an article","parameters":[{"name":"id","required":true,"in":"path","description":"Article ID","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SetStockAvailabilityDto"}}}},"responses":{"201":{"description":""}},"tags":["articles"]}},"/v3/articles/{id}/stock/total":{"get":{"operationId":"ArticlesController_getStockTotal","summary":"Get total stock for an article","parameters":[{"name":"stock","required":false,"in":"query","schema":{"$ref":"#/components/schemas/ObjectId"}},{"name":"id","required":true,"in":"path","description":"Article ID","schema":{"type":"string"}}],"responses":{"200":{"description":"Total stock information"}},"tags":["articles"]}},"/v3/articles/{id}":{"get":{"operationId":"ArticlesController_findOne","summary":"Find article by ID","parameters":[{"name":"id","required":true,"in":"path","description":"Article ID","schema":{"type":"string"}}],"responses":{"200":{"description":"Single article","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ArticleDto"}}}}},"tags":["articles"]},"patch":{"operationId":"ArticlesController_patch","summary":"Update an article","parameters":[{"name":"id","required":true,"in":"path","description":"Article ID","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateArticleDto"}}}},"responses":{"200":{"description":"Updated article","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ArticleDto"}}}}},"tags":["articles"]},"delete":{"operationId":"ArticlesController_remove","summary":"Delete an article","parameters":[{"name":"id","required":true,"in":"path","description":"Article ID","schema":{"type":"string"}}],"responses":{"200":{"description":"Article successfully deleted"}},"tags":["articles"]}},"/v3/articles/{id}/label/{labelId}":{"get":{"operationId":"ArticlesController_createLabel","summary":"Create a label PDF for an article","description":"Creates a PDF label for the specified article using the provided label template","parameters":[{"name":"id","required":true,"in":"path","description":"Article ID","schema":{}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"label":{"type":"string","description":"Label ID"}},"required":["label"]}}}},"responses":{"200":{"description":"Label PDF created successfully","content":{"application/json":{"schema":{"type":"object","properties":{"file":{"type":"string","description":"PDF file path or data"},"message":{"type":"string","description":"Success message"}}}}}}},"tags":["articles"]}},"/v3/articles/labels":{"post":{"operationId":"ArticlesController_createLabels","summary":"Create labels for multiple articles","description":"Creates PDF labels for multiple articles using the provided label template and filter criteria","parameters":[],"requestBody":{"required":true,"description":"Label creation data including label ID, filter criteria, and optional article list","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateLabelsDto"}}}},"responses":{"200":{"description":"Labels PDF created successfully","content":{"application/json":{"schema":{"type":"object","properties":{"file":{"type":"string","description":"PDF file path or data"},"message":{"type":"string","description":"Success message"}}}}}},"201":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}}},"tags":["articles"]}},"/v3/articles/{id}/archive":{"post":{"operationId":"ArticlesController_archive","summary":"Archive an article","parameters":[],"responses":{"200":{"description":"Article archived successfully"},"201":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}}},"tags":["articles"]}},"/v3/articles/{id}/unarchive":{"post":{"operationId":"ArticlesController_unarchive","summary":"Unarchive an article","parameters":[],"responses":{"200":{"description":"Article unarchived successfully"},"201":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}}},"tags":["articles"]}},"/v3/articles/{id}/duplicate":{"post":{"operationId":"ArticlesController_duplicate","summary":"Duplicate an article","parameters":[],"responses":{"201":{"description":"Article duplicated successfully"}},"tags":["articles"]}},"/v3/articles/{id}/variant-options":{"put":{"operationId":"ArticlesController_setVariantOptions","summary":"Set variant option groups on a main article","description":"Stores up to 3 Shopify-compatible option groups (name, position, values) on the main article.","parameters":[{"name":"id","required":true,"in":"path","description":"Main article ID","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SetVariantOptionsDto"}}}},"responses":{"200":{"description":"Updated main article","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ArticleDto"}}}}},"tags":["articles"]}},"/v3/articles/{id}/generate-variants":{"post":{"operationId":"ArticlesController_generateVariants","summary":"Generate variant articles from the option groups of a main article","description":"Multiplies the option groups (cartesian product) and creates one article per combination. Pass preview=true for a dry-run list. Pass combinations to create/update only a subset (with optional title/number overrides). Orphans are only soft-deleted when deleteOrphaned is set.","parameters":[{"name":"id","required":true,"in":"path","description":"Main article ID","schema":{"type":"string"}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GenerateVariantsDto"}}}},"responses":{"200":{"description":"Created/updated/orphaned variants or a preview of the combinations"},"201":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}}},"tags":["articles"]}},"/v3/articles/{id}/sync-variants":{"post":{"operationId":"ArticlesController_syncVariants","summary":"Copy selected fields of a main article into its variants","description":"Applies the listed fields of the main article to all (or the given) variant articles. Stock settings are merged per setting; stock levels are never touched. Titles are only re-prefixed when they start with previousTitle.","parameters":[{"name":"id","required":true,"in":"path","description":"Main article ID","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SyncVariantsDto"}}}},"responses":{"200":{"description":"Number of variants and the updated ones"},"201":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}}},"tags":["articles"]}},"/v3/articles/{id}/variants":{"get":{"operationId":"ArticlesController_getVariants","summary":"List all variant articles of a main article","parameters":[{"name":"id","required":true,"in":"path","description":"Main article ID","schema":{"type":"string"}}],"responses":{"200":{"description":"Variant articles","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ArticleDto"}}}}}},"tags":["articles"]}},"/v3/stocks":{"post":{"operationId":"StocksController_create","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateStockDto"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Stock"}}}}},"tags":["stocks"]},"get":{"operationId":"StocksController_findAll","parameters":[{"name":"limit","required":false,"in":"query","schema":{"minimum":1,"default":1000,"type":"number"}},{"name":"skip","required":false,"in":"query","schema":{"type":"number"}},{"name":"name","required":false,"in":"query","schema":{"type":"string"}},{"required":false,"name":"visible","in":"query","schema":{"type":"boolean"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Stock"}}}}}},"tags":["stocks"]}},"/v3/stocks/search":{"post":{"operationId":"StocksController_search","summary":"Search stocks","description":"Search for stocks using query, filters and pagination options","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SearchStockDto"}}}},"responses":{"200":{"description":"Returns search results with metadata and pagination","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SearchResponseDto"}}}},"201":{"description":""}},"tags":["stocks"]}},"/v3/stocks/{id}":{"get":{"operationId":"StocksController_findOne","parameters":[{"name":"limit","required":false,"in":"query","schema":{"minimum":1,"default":1000,"type":"number"}},{"name":"skip","required":false,"in":"query","schema":{"type":"number"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Stock"}}}}},"tags":["stocks"]},"patch":{"operationId":"StocksController_update","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateStockDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}}},"tags":["stocks"]},"delete":{"operationId":"StocksController_remove","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}}},"tags":["stocks"]}},"/v3/stocks/{id}/archive":{"post":{"operationId":"StocksController_archive","parameters":[],"responses":{"201":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}}},"tags":["stocks"]}},"/v3/stocks/{id}/duplicate":{"post":{"operationId":"StocksController_duplicate","parameters":[],"responses":{"201":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}}},"tags":["stocks"]}},"/v3/stocks/findMany":{"get":{"operationId":"StocksController_findMany","parameters":[{"name":"ids","required":true,"in":"query","schema":{"type":"array","items":{"type":"string"}}},{"name":"limit","required":false,"in":"query","schema":{"minimum":1,"default":1000,"type":"number"}},{"name":"skip","required":false,"in":"query","schema":{"type":"number"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"type":"object"}}}}}},"tags":["stocks"]}},"/v3/branches":{"post":{"operationId":"BranchesController_create","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateBranchDto"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Branch"}}}}},"tags":["branches"]},"get":{"operationId":"BranchesController_findAll","parameters":[{"name":"limit","required":false,"in":"query","schema":{"minimum":1,"default":1000,"type":"number"}},{"name":"skip","required":false,"in":"query","schema":{"type":"number"}},{"name":"name","required":false,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Branch"}}}}}},"tags":["branches"]}},"/v3/branches/{id}":{"get":{"operationId":"BranchesController_findOne","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Branch"}}}}},"tags":["branches"]},"patch":{"operationId":"BranchesController_update","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateBranchDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}}},"tags":["branches"]},"delete":{"operationId":"BranchesController_remove","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}}},"tags":["branches"]}},"/v3/branches/{id}/xrechnung":{"patch":{"operationId":"BranchesController_updateXrechnung","summary":"Update the seller data used for XRechnung","description":"Sets address, tax ids, contact and IBAN of the branch. useForDocument=true makes it the only seller branch for invoices outside the POS.","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateBranchXrechnungDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}}},"tags":["branches"]}},"/v3/branches/{id}/archive":{"patch":{"operationId":"BranchesController_archive","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}}},"tags":["branches"]}},"/v3/branches/{id}/unarchive":{"patch":{"operationId":"BranchesController_unarchive","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}}},"tags":["branches"]}},"/v3/branches/{id}/affiliations":{"get":{"operationId":"BranchesController_getAffiliations","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}}},"tags":["branches"]}},"/v3/branches/my":{"get":{"operationId":"BranchesController_getMyBranches","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Branch"}}}}}},"tags":["branches"]}},"/v3/branches/{id}/users":{"get":{"operationId":"BranchesController_getBranchUsers","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"type":"object"}}}}}},"tags":["branches"]}},"/v3/pointofsales":{"get":{"operationId":"PointofsalesController_findAll","parameters":[{"name":"limit","required":false,"in":"query","schema":{"minimum":1,"default":1000,"type":"number"}},{"name":"skip","required":false,"in":"query","schema":{"type":"number"}},{"name":"edition","required":false,"in":"query","schema":{"type":"string"}},{"name":"name","required":false,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Pointofsale"}}}}}},"tags":["pointofsales"]},"post":{"operationId":"PointofsalesController_create","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreatePointofsaleDto"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Pointofsale"}}}}},"tags":["pointofsales"]}},"/v3/pointofsales/{id}/fast-switch-users":{"get":{"operationId":"PointofsalesController_getFastSwitchUsers","parameters":[],"responses":{"200":{"description":""}},"tags":["pointofsales"]}},"/v3/pointofsales/{id}":{"patch":{"operationId":"PointofsalesController_update","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdatePointofsaleDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Pointofsale"}}}}},"tags":["pointofsales"]},"get":{"operationId":"PointofsalesController_findOne","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}}},"tags":["pointofsales"]}},"/v3/pointofsales/legacy/articles":{"get":{"operationId":"PointofsalesController_legacyGetArticles","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}}},"tags":["pointofsales"]}},"/v3/pointofsales/{id}/display-url":{"get":{"operationId":"PointofsalesController_getDisplayUrl","parameters":[],"responses":{"200":{"description":""}},"tags":["pointofsales"]}},"/v3/pointofsales/{id}/update-baskets-currency":{"post":{"operationId":"PointofsalesController_updateBasketsCurrency","parameters":[],"responses":{"201":{"description":""}},"tags":["pointofsales"]}},"/v3/pointofsales/{id}/set-current-basket":{"post":{"operationId":"PointofsalesController_setCurrentBasket","parameters":[],"responses":{"201":{"description":""}},"tags":["pointofsales"]}},"/v3/pointofsales/{id}/renew-posjournal":{"post":{"operationId":"PointofsalesController_renewPosjournal","parameters":[],"responses":{"201":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}}},"tags":["pointofsales"]}},"/v3/pointofsales/{id}/automatic-closing-cronjob":{"get":{"operationId":"PointofsalesController_getAutomaticClosingCronjob","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Cronjob"}}}}},"tags":["pointofsales"]},"post":{"operationId":"PointofsalesController_setAutomaticClosingCronjob","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SetAutomaticClosingDto"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Cronjob"}}}}},"tags":["pointofsales"]},"delete":{"operationId":"PointofsalesController_deleteAutomaticClosingCronjob","parameters":[],"responses":{"200":{"description":""}},"tags":["pointofsales"]}},"/v3/posbaskets/{id}/updateFirestore":{"post":{"operationId":"PosbasketsController_updateFirestore","parameters":[],"responses":{"201":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}}},"tags":["posbaskets"]}},"/v3/posbaskets":{"post":{"operationId":"PosbasketsController_create","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreatePosbasketDto"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Posbasket"}}}}},"tags":["posbaskets"]},"get":{"operationId":"PosbasketsController_findAll","parameters":[{"name":"limit","required":false,"in":"query","schema":{"minimum":1,"default":1000,"type":"number"}},{"name":"skip","required":false,"in":"query","schema":{"type":"number"}},{"name":"name","required":false,"in":"query","schema":{"type":"string"}},{"name":"temp","required":false,"in":"query","schema":{"type":"boolean"}},{"name":"visible","required":false,"in":"query","schema":{"type":"boolean"}},{"name":"type","required":false,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Posbasket"}}}}}},"tags":["posbaskets"]}},"/v3/posbaskets/refive-coupons":{"get":{"operationId":"PosbasketsController_getRefiveCoupons","summary":"List active Refive coupon codes available for the client","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"type":"object"}}}}}},"tags":["posbaskets"]}},"/v3/posbaskets/{id}":{"get":{"operationId":"PosbasketsController_findOne","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Posbasket"}}}}},"tags":["posbaskets"]},"patch":{"operationId":"PosbasketsController_update","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdatePosbasketDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}}},"tags":["posbaskets"]},"delete":{"operationId":"PosbasketsController_remove","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}}},"tags":["posbaskets"]}},"/v3/posbaskets/{id}/age":{"get":{"operationId":"PosbasketsController_getAge","parameters":[],"responses":{"200":{"description":""}},"tags":["posbaskets"]}},"/v3/posbaskets/{id}/version":{"get":{"operationId":"PosbasketsController_getVersion","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}}},"tags":["posbaskets"]}},"/v3/posbaskets/{id}/add-item":{"post":{"operationId":"PosbasketsController_addItem","summary":"Add scanner input or article to posbasket","description":"Universal entry point for scanner/search input. Applies the scanner modification script of the pointofsale and then resolves `item.search` as reservation, article, voucher, bonus code or identity card. Realtime notifications are sent to the POS. Returns the updated posbasket. Use `add-article` if only plain articles should be added.","parameters":[],"requestBody":{"required":true,"description":"Scanner input or article data to add to the posbasket","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PosbasketAddItemDto"},"examples":{"scanner-input":{"summary":"Scanned barcode / search term","description":"Resolved as article, voucher, bonus code or identity card (in this order)","value":{"item":{"search":"4006381333931"}}},"function-code-add-article":{"summary":"Function code 202: add article","description":"Format: .F.202.F.<amount>.F.<article id or search>[.F.<price>[.F.<notice>[.F.<json>]]].F.","value":{"item":{"search":".F.202.F.2.F.ART001.F."}}},"function-code-customer-card":{"summary":"Function code 011: assign customer card","description":"Format: .F.011.F.<businesspartner id>.F.","value":{"item":{"search":".F.011.F.64f1c2a9e4b0a1b2c3d4e5f6.F."}}},"by-article-id":{"summary":"Add a specific article by ID","value":{"item":{"id":"64f1c2a9e4b0a1b2c3d4e5f6","amount":1}}}}}}},"responses":{"201":{"description":"Updated posbasket"},"404":{"description":"Posbasket not found, or `item.search` matches no article, voucher, bonus code or identity"}},"tags":["posbaskets"]}},"/v3/posbaskets/{id}/add-article":{"post":{"operationId":"PosbasketsController_addArticle","summary":"Add article to posbasket","description":"Looks up the article by `search`, `id`/`ref`, `number` or `ean` and adds it to the basket. Bundles and optiongroup selections are expanded into additional lines, identical articles are summed if the basket is set to `onAddItem: sum`. Prices, tax and discount rules are recalculated afterwards. If several articles match, the POS receives a `chooseArticle` event and nothing is added. Unlike `add-item`, scanner modifications, function codes, vouchers, bonus codes and identity cards are not evaluated.","parameters":[],"requestBody":{"required":true,"description":"Article data to add to the posbasket","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PosbasketAddArticleDto"},"examples":{"by-search":{"summary":"Add article by search term","value":{"item":{"search":"apple juice","amount":2}}},"by-number":{"summary":"Add article by article number","value":{"item":{"number":"ART001","amount":1,"price":4.99}}},"by-ean":{"summary":"Add article by EAN/barcode","value":{"item":{"ean":"1234567890123","amount":1}}},"weighted-article":{"summary":"Add weighted article","value":{"item":{"number":"ART00001","weight":{"gross":1.5,"tare":0.1,"net":1.4}}}}}}}},"responses":{"201":{"description":"Updated posbasket. Returns an empty/boolean result if the article was not found, the POS had to choose between several matches, or required data is missing (the POS is informed via realtime event)."},"404":{"description":"Posbasket or pricelist not found"},"405":{"description":"Posbasket is locked or a payment is in progress"}},"tags":["posbaskets"]}},"/v3/posbaskets/{id}/set-attribute":{"post":{"operationId":"PosbasketsController_setAttribute","summary":"Set attribute on a posbasket (businesspartner, pointofsale, etc.)","parameters":[],"requestBody":{"required":true,"description":"Attribute to update on the posbasket","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SetAttributeDto"},"examples":{"set-businesspartner":{"summary":"Set business partner for posbasket","value":{"attribute":"businesspartner","content":"507f1f77bcf86cd799439011","updateNotification":true}},"set-pointofsale":{"summary":"Set point of sale for posbasket","value":{"attribute":"pointofsale","content":"507f1f77bcf86cd799439012"}},"set-project":{"summary":"Set project for posbasket","value":{"attribute":"project","content":"507f1f77bcf86cd799439013","updateNotification":false}}}}}},"responses":{"201":{"description":""}},"tags":["posbaskets"]}},"/v3/posbaskets/{id}/apply-discount-rules":{"post":{"operationId":"PosbasketsController_applyDiscountRules","summary":"Apply discount rules to basket items","parameters":[],"responses":{"201":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}}},"tags":["posbaskets"]}},"/v3/posbaskets/{id}/set-identity-max-charge":{"post":{"operationId":"PosbasketsController_setIdentityMaxCharge","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SetIdentityMaxChargeDto"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Posbasket"}}}}},"tags":["posbaskets"]}},"/v3/posbaskets/{id}/review2":{"post":{"operationId":"PosbasketsController_review2","summary":"Review2 - orchestrate discount rules, identity charges, business partner discounts, and legal signing","parameters":[],"responses":{"201":{"description":""}},"tags":["posbaskets"]}},"/v3/posbaskets/{id}/set-defaults":{"post":{"operationId":"PosbasketsController_setDefaults","parameters":[],"responses":{"201":{"description":""}},"tags":["posbaskets"]}},"/v3/posbaskets/{id}/add-payment":{"post":{"operationId":"PosbasketsController_addPayment","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegacyAddPaymentDto"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Posbasket"}}}}},"tags":["posbaskets"]}},"/v3/posbaskets/{id}/paymentstatus":{"get":{"operationId":"PosbasketsController_getPaymentStatus","parameters":[],"responses":{"200":{"description":""}},"tags":["posbaskets"]}},"/v3/posbaskets/{id}/set-item-attributes":{"post":{"operationId":"PosbasketsController_setItemAttributes","summary":"Update item attributes in a posbasket","parameters":[],"requestBody":{"required":true,"description":"Item attributes to update in the posbasket","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SetItemAttributesDto"},"examples":{"update-discount":{"summary":"Update item discount","value":{"attributes":[{"index":0,"attribute":"discount","content":15}],"updateNotification":true}},"update-price":{"summary":"Update item price","value":{"attributes":[{"index":0,"attribute":"price","content":12.99}],"userHasChangedPrice":true}},"update-amount":{"summary":"Update item amount","value":{"attributes":[{"index":0,"attribute":"amount","content":3}]}},"update-shippingdate":{"summary":"Update item shipping date","value":{"attributes":[{"index":0,"attribute":"shippingdate","content":"2024-12-25"}]}},"update-title":{"summary":"Update item title","value":{"attributes":[{"index":0,"attribute":"title","content":"Custom Product Name"}]}},"update-stock-bin":{"summary":"Update item stock and bin","value":{"attributes":[{"index":0,"attribute":"stock","content":"507f1f77bcf86cd799439011"},{"index":0,"attribute":"bin","content":"507f1f77bcf86cd799439012"}]}},"update-itemtracker-document":{"summary":"Update item tracker and document references","value":{"attributes":[{"index":0,"attribute":"itemtracker","content":"507f1f77bcf86cd799439015"},{"index":0,"attribute":"document","content":"507f1f77bcf86cd799439016"},{"index":0,"attribute":"documentItemId","content":"507f1f77bcf86cd799439017"}]}},"multiple-updates":{"summary":"Update multiple attributes","value":{"attributes":[{"index":0,"attribute":"discount","content":10},{"index":1,"attribute":"amount","content":2}]}}}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}}},"tags":["posbaskets"]}},"/v3/posbaskets/{id}/set-item-attribute":{"post":{"operationId":"PosbasketsController_setItemAttribute","summary":"Update a single item attribute in a posbasket","parameters":[],"requestBody":{"required":true,"description":"Single item attribute to update in the posbasket","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SetItemAttributeDto"},"examples":{"update-discount":{"summary":"Update item discount","value":{"index":0,"attribute":"discount","content":15,"updateNotification":true}},"update-price":{"summary":"Update item price","value":{"index":0,"attribute":"price","content":12.99,"userHasChangedPrice":true}},"update-amount":{"summary":"Update item amount","value":{"index":0,"attribute":"amount","content":3}},"update-shippingdate":{"summary":"Update item shipping date","value":{"index":0,"attribute":"shippingdate","content":"2024-12-25"}},"update-title":{"summary":"Update item title","value":{"index":0,"attribute":"title","content":"Custom Product Name"}},"update-stock":{"summary":"Update item stock","value":{"index":0,"attribute":"stock","content":"507f1f77bcf86cd799439011"}},"update-user":{"summary":"Update item user","value":{"index":0,"attribute":"user","content":"507f1f77bcf86cd799439013"}},"update-itemtracker":{"summary":"Update item tracker","value":{"index":0,"attribute":"itemtracker","content":"507f1f77bcf86cd799439015"}},"update-document":{"summary":"Update document reference","value":{"index":0,"attribute":"document","content":"507f1f77bcf86cd799439016"}},"update-documentitemid":{"summary":"Update document item ID","value":{"index":0,"attribute":"documentItemId","content":"507f1f77bcf86cd799439017"}}}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}}},"tags":["posbaskets"]}},"/v3/posbaskets/{id}/posdelivery-mappings":{"get":{"operationId":"PosbasketsController_getPosdeliveryMappings","summary":"Get pos delivery mappings for a posbasket","parameters":[{"name":"type","required":false,"in":"query","description":"Document type filter","schema":{"type":"string"}},{"name":"businesspartner","required":false,"in":"query","description":"Businesspartner ObjectId filter","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}}},"tags":["posbaskets"]}},"/v3/posbaskets/{id}/create-document":{"post":{"operationId":"PosbasketsController_createDocumentFromPosbasket","summary":"Create document from posbasket","description":"Converts a POS basket to a document with comprehensive payment processing, legal compliance, and integration handling. This is the migrated version of the legacy post_toDocument function.","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateDocumentFromPosbasketDto"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}}},"tags":["posbaskets"]}},"/v3/posbaskets/{id}/merge":{"post":{"operationId":"PosbasketsController_mergePosbasket","summary":"Merge a posbasket into another (target) basket and empty the source","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MergePosbasketDto"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Posbasket"}}}}},"tags":["posbaskets"]}},"/v3/posbaskets/{id}/add-coupon":{"post":{"operationId":"PosbasketsController_addCoupon","summary":"Apply a Refive coupon code to the basket","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddCouponDto"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Posbasket"}}}}},"tags":["posbaskets"]}},"/v3/posbaskets/{id}/remove-coupon/{itemId}":{"delete":{"operationId":"PosbasketsController_removeCoupon","summary":"Remove an applied Refive coupon from the basket","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Posbasket"}}}}},"tags":["posbaskets"]}},"/v3/posbaskets/{id}/redeem-coupons":{"post":{"operationId":"PosbasketsController_redeemCoupons","summary":"Redeem applied Refive coupons at checkout","parameters":[],"responses":{"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Posbasket"}}}}},"tags":["posbaskets"]}},"/v3/posbaskets/{id}/refive-loyalty/resolve":{"post":{"operationId":"PosbasketsController_resolveRefiveLoyalty","summary":"Resolve a Refive loyalty account from a scan and link it to the basket","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResolveLoyaltyDto"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}}},"tags":["posbaskets"]}},"/v3/identities":{"post":{"operationId":"IdentitiesController_create","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateIdentityDto"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Identity"}}}}},"tags":["identities"]},"get":{"operationId":"IdentitiesController_findAll","parameters":[{"name":"limit","required":false,"in":"query","schema":{"minimum":1,"default":1000,"type":"number"}},{"name":"skip","required":false,"in":"query","schema":{"type":"number"}},{"name":"code","required":false,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Identity"}}}}}},"tags":["identities"]}},"/v3/identities/{id}":{"get":{"operationId":"IdentitiesController_findOne","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}}},"tags":["identities"]},"patch":{"operationId":"IdentitiesController_update","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateIdentityDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}}},"tags":["identities"]},"delete":{"operationId":"IdentitiesController_remove","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}}},"tags":["identities"]}},"/v3/identities/code":{"get":{"operationId":"IdentitiesController_findByCode","summary":"Find identity by code","parameters":[{"name":"code","required":true,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"Returns the identity with the specified code."},"404":{"description":"Identity not found."}},"tags":["identities"]}},"/v3/identities/lookup":{"get":{"operationId":"IdentitiesController_findByCodeOrId","summary":"Find identity by code or _id","parameters":[{"name":"q","required":true,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"Returns the identity with the specified code or _id."},"404":{"description":"Identity not found."}},"tags":["identities"]}},"/v3/identities/{id}/charge":{"post":{"operationId":"IdentitiesController_charge","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LoadIdentityDto"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}}},"tags":["identities"]}},"/v3/identities/{id}/archive":{"post":{"operationId":"IdentitiesController_archive","parameters":[],"responses":{"201":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}}},"tags":["identities"]}},"/v3/identities/{id}/discharge":{"post":{"operationId":"IdentitiesController_discharge","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnloadIdentityDto"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}}},"tags":["identities"]}},"/v3/identities/{id}/status":{"get":{"operationId":"IdentitiesController_status","parameters":[{"name":"date","required":false,"in":"query","schema":{"format":"date-time","type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}}},"tags":["identities"]}},"/v3/transactions":{"post":{"operationId":"TransactionsController_create","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateTransactionDto"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Transaction"}}}}},"tags":["transactions"]},"get":{"operationId":"TransactionsController_findAll","parameters":[{"name":"limit","required":false,"in":"query","schema":{"minimum":1,"default":1000,"type":"number"}},{"name":"skip","required":false,"in":"query","schema":{"type":"number"}},{"name":"identity","required":false,"in":"query","schema":{"type":"string"}},{"name":"index","required":false,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Transaction"}}}}}},"tags":["transactions"]}},"/v3/transactions/active":{"get":{"operationId":"TransactionsController_findActivePayment","parameters":[{"name":"pointofsale","required":true,"in":"query","schema":{"type":"string"}},{"name":"terminal","required":true,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":""}},"tags":["transactions"]}},"/v3/transactions/{id}":{"get":{"operationId":"TransactionsController_findOne","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Transaction"}}}}},"tags":["transactions"]},"patch":{"operationId":"TransactionsController_update","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateTransactionDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}}},"tags":["transactions"]},"delete":{"operationId":"TransactionsController_remove","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}}},"tags":["transactions"]}},"/v3/documents":{"get":{"operationId":"DocumentsController_findAll","summary":"Get all documents","description":"Retrieves a list of documents with optional filtering and pagination.\n    \n## Available Document Types\n- `N` - Angebot (Offer/Quote)\n- `A` - Auftrag (Order)\n- `L` - Lieferschein (Delivery Note)\n- `R` - Rechnung (Invoice)\n- `r` - Einkaufsrechnung (Purchase Invoice)\n- `G` - Gutschrift (Credit Note)\n- `b` - Bestellung (Purchase Order)\n\n## Filtering\nYou can filter documents by:\n- `type` - Document type (N, A, L, R, r, G, b)\n- `pointofsale` - Point of sale ID\n- `businesspartner` - Business partner ID\n- `article` - Article ID (filters documents containing this article)\n- `dateAfter` / `dateBefore` - Date range filter\n\n## Pagination\nUse `limit` and `skip` for pagination. Default limit is 1000.","parameters":[{"name":"limit","required":false,"in":"query","description":"Maximum number of documents to return (default: 1000)","example":100,"schema":{"minimum":1,"default":1000,"type":"number"}},{"name":"skip","required":false,"in":"query","description":"Number of documents to skip for pagination","example":0,"schema":{"type":"number"}},{"name":"pointofsale","required":false,"in":"query","description":"Filter by point of sale ID","example":"507f1f77bcf86cd799439011","schema":{"type":"string"}},{"name":"type","required":false,"in":"query","description":"Filter by document type (N=Offer, A=Order, L=Delivery Note, R=Invoice, G=Credit Note, b=Purchase Order, r=Purchase Invoice)","example":"R","schema":{"type":"string"}},{"name":"paymentStatus","required":false,"in":"query","description":"Filter by payment status, comma-separated (unpaid, partial, pending, failed, lost, succeeded). Open invoices: type=R&paymentStatus=unpaid,partial&visible=true","example":"unpaid,partial","schema":{"type":"string"}},{"name":"article","required":false,"in":"query","description":"Filter documents containing this article ID","example":"507f1f77bcf86cd799439013","schema":{"type":"string"}},{"name":"businesspartner","required":false,"in":"query","description":"Filter by business partner ID","example":"507f1f77bcf86cd799439012","schema":{"type":"string"}},{"name":"visible","required":false,"in":"query","description":"Only visible (true) documents. Converted documents are archived (not visible); open orders: type=A&visible=true","example":true,"schema":{"type":"boolean"}},{"name":"dateBefore","required":false,"in":"query","description":"Filter documents created before this date (ISO 8601 format)","example":"2024-12-31T23:59:59.999Z","schema":{"format":"date-time","type":"string"}},{"name":"dateAfter","required":false,"in":"query","description":"Filter documents created after this date (ISO 8601 format)","example":"2024-01-01T00:00:00.000Z","schema":{"format":"date-time","type":"string"}}],"responses":{"200":{"description":"List of documents matching the filter criteria","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"_id":{"type":"string"},"type":{"type":"string","enum":["N","A","L","R","r","G","b"]},"number":{"type":"string"},"date":{"type":"string","format":"date-time"},"displayName":{"type":"string"},"totalIncVat":{"type":"number"},"totalExVat":{"type":"number"},"locked":{"type":"boolean"},"paid":{"type":"boolean"},"paymentStatus":{"type":"string","enum":["","unpaid","partial","pending","failed","lost","succeeded"]},"businesspartner":{"type":"string"},"billingAddress":{"type":"object","properties":{"company1":{"type":"string"},"street":{"type":"string"},"streetNumber":{"type":"string"},"zipCode":{"type":"string"},"city":{"type":"string"},"country":{"type":"string"}}},"items":{"type":"array","items":{"type":"object","properties":{"_id":{"type":"string"},"title":{"type":"string"},"number":{"type":"string"},"amount":{"type":"number"},"price":{"type":"number"},"taxRate":{"type":"number"},"totalIncVat":{"type":"number"},"totalExVat":{"type":"number"}}}},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}}}},"example":[{"_id":"507f1f77bcf86cd799439011","type":"R","number":"R-2024-00001","date":"2024-01-15T10:30:00.000Z","displayName":"Rechnung R-2024-00001","totalIncVat":119,"totalExVat":100,"locked":true,"paid":false,"paymentStatus":"none","businesspartner":"507f1f77bcf86cd799439012","billingAddress":{"company1":"Musterfirma GmbH","street":"Musterstraße","streetNumber":"123","zipCode":"12345","city":"Berlin","country":"Germany"},"items":[{"_id":"507f1f77bcf86cd799439014","title":"Premium Widget","number":"ART-001","amount":2,"price":50,"taxRate":19,"totalIncVat":119,"totalExVat":100}],"createdAt":"2024-01-15T10:30:00.000Z","updatedAt":"2024-01-15T10:30:00.000Z"},{"_id":"507f1f77bcf86cd799439020","type":"A","number":"A-2024-00015","date":"2024-01-14T09:00:00.000Z","displayName":"Auftrag A-2024-00015","totalIncVat":238,"totalExVat":200,"locked":false,"paid":false,"paymentStatus":"none","businesspartner":"507f1f77bcf86cd799439013","billingAddress":{"company1":"Beispiel AG","street":"Hauptstraße","streetNumber":"42","zipCode":"80331","city":"München","country":"Germany"},"items":[{"_id":"507f1f77bcf86cd799439021","title":"Standard Widget","number":"ART-002","amount":4,"price":50,"taxRate":19,"totalIncVat":238,"totalExVat":200}],"createdAt":"2024-01-14T09:00:00.000Z","updatedAt":"2024-01-14T09:00:00.000Z"}]}}},"401":{"description":"Unauthorized - authentication is missing or invalid."}},"tags":["documents"]},"post":{"operationId":"DocumentsController_fastCreate","summary":"Create a new document","description":"Creates a new document in the system using a simplified creation process. \n    This endpoint allows for the fast creation of various document types like invoices, orders, or quotes \n    with associated items, business partners, and additional metadata.\n    \n    ## Processing Logic\n    1. The system validates the provided data\n    2. Locates the business partner by ID or debitor number\n    3. Finds the specified stock/warehouse\n    4. Generates a document number based on client settings if not provided\n    5. Creates the document with basic information\n    6. Adds the specified items to the document\n    7. Performs tax calculations\n    8. Updates inventory in the specified stock\n    9. Returns the complete document","parameters":[],"requestBody":{"required":true,"description":"Document creation data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FastCreateDocumentDto"},"examples":{"standard":{"summary":"Standard Document","description":"Create a basic invoice with a single item","value":{"businesspartner":"60a2b5e3a1b2c3d4e5f67890","stock":"60a2b5e3a1b2c3d4e5f67891","type":"R","items":[{"ref":"60a2b5e3a1b2c3d4e5f67892","amount":2,"price":99.99}]}},"withAddresses":{"summary":"Document with Custom Addresses","description":"Create a invoice document with custom billing and shipping addresses","value":{"businesspartnerDebitorNumber":"10000","stock":"60a2b5e3a1b2c3d4e5f67891","type":"R","billingAddress":{"company1":"Sample Company GmbH","street":"Main Street","streetNumber":"123","zipCode":"10115","city":"Berlin","country":"Germany"},"shippingAddress":{"company1":"Sample Company GmbH - Warehouse","street":"Warehouse Street","streetNumber":"10","zipCode":"10117","city":"Berlin","country":"Germany"},"items":[{"number":"ART-001","amount":5}]}}}}}},"responses":{"200":{"description":"The document has been successfully created.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Document"}}}},"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Document"}}}},"400":{"description":"Bad request - validation failed for input data."},"401":{"description":"Unauthorized - authentication is missing or invalid."},"404":{"description":"Not Found - business partner or stock not found."}},"tags":["documents"]}},"/v3/documents/{id}":{"get":{"operationId":"DocumentsController_findById","summary":"Get a document by ID","description":"Retrieves a single document by its unique ID.\n    \nThe response includes the complete document structure with all associated data like:\n- Document metadata (number, date, type, status)\n- Billing and shipping addresses\n- All line items with pricing and tax information\n- Payment information and status\n- POS data (if applicable)\n- TSE/fiscal data (for German compliance)","parameters":[{"name":"limit","required":false,"in":"path","schema":{"minimum":1,"default":1000,"type":"number"}},{"name":"skip","required":false,"in":"path","schema":{"type":"number"}},{"name":"id","required":true,"in":"path","description":"The unique ID of the document","example":"507f1f77bcf86cd799439011","schema":{"type":"string"}}],"responses":{"200":{"description":"The document with all its details","schema":{"type":"object","properties":{"_id":{"type":"string","example":"507f1f77bcf86cd799439011"},"type":{"type":"string","enum":["N","A","L","R","r","G","b"],"example":"R","description":"Document type: N=Offer, A=Order, L=Delivery Note, R=Invoice, r=Purchase Invoice, G=Credit Note, b=Purchase Order"},"number":{"type":"string","example":"R-2024-00001","description":"Document number"},"displayName":{"type":"string","example":"Rechnung R-2024-00001","description":"Human-readable document name"},"date":{"type":"string","format":"date-time","example":"2024-01-15T10:30:00.000Z"},"description":{"type":"string","example":"Bestellung vom 15.01.2024"},"locked":{"type":"boolean","example":true,"description":"Whether the document is locked for editing"},"printed":{"type":"boolean","example":false},"sentbymail":{"type":"boolean","example":false},"paid":{"type":"boolean","example":false},"completed":{"type":"boolean","example":true},"paymentStatus":{"type":"string","enum":["","unpaid","partial","pending","failed","lost","succeeded"],"example":"unpaid","description":"Current payment status"},"totalIncVat":{"type":"number","example":119,"description":"Total amount including VAT"},"totalExVat":{"type":"number","example":100,"description":"Total amount excluding VAT"},"totalDue":{"type":"number","example":119,"description":"Amount still due"},"businesspartner":{"type":"string","example":"507f1f77bcf86cd799439012","description":"Business partner ID"},"billingAddress":{"type":"object","description":"Billing address","properties":{"salutation":{"type":"string","example":"Herr"},"company1":{"type":"string","example":"Musterfirma GmbH"},"company2":{"type":"string","example":""},"firstName":{"type":"string","example":"Max"},"lastName":{"type":"string","example":"Mustermann"},"street":{"type":"string","example":"Musterstraße"},"streetNumber":{"type":"string","example":"123"},"zipCode":{"type":"string","example":"12345"},"city":{"type":"string","example":"Berlin"},"country":{"type":"string","example":"Germany"},"vatId":{"type":"string","example":"DE123456789"}}},"shippingAddress":{"type":"object","description":"Shipping address","properties":{"company1":{"type":"string","example":"Musterfirma GmbH"},"street":{"type":"string","example":"Lagerstraße"},"streetNumber":{"type":"string","example":"10"},"zipCode":{"type":"string","example":"12345"},"city":{"type":"string","example":"Berlin"},"country":{"type":"string","example":"Germany"}}},"useBillingAsShipping":{"type":"boolean","example":true},"items":{"type":"array","description":"Document line items","items":{"type":"object","properties":{"_id":{"type":"string","example":"507f1f77bcf86cd799439014"},"type":{"type":"string","enum":["article","text","voucher","bonus","bundlearticle","openDocument","deposit"],"example":"article"},"title":{"type":"string","example":"Artikel 1"},"number":{"type":"string","example":"ART-001"},"ean":{"type":"string","example":"4012345678901"},"description":{"type":"string","example":"Produktbeschreibung"},"amount":{"type":"number","example":2,"description":"Quantity"},"price":{"type":"number","example":50,"description":"Unit price"},"discount":{"type":"number","example":0,"description":"Discount percentage"},"taxRate":{"type":"number","example":19,"description":"Tax rate percentage"},"totalIncVat":{"type":"number","example":119},"totalExVat":{"type":"number","example":100},"ref":{"type":"string","example":"507f1f77bcf86cd799439015","description":"Reference to Article"},"stock":{"type":"string","example":"507f1f77bcf86cd799439016","description":"Stock/Warehouse ID"}}}},"tax":{"type":"array","description":"Tax breakdown by rate","items":{"type":"object","properties":{"rate":{"type":"number","example":19},"tax":{"type":"number","example":19},"exVat":{"type":"number","example":100},"incVat":{"type":"number","example":119}}}},"payments":{"type":"array","description":"List of payments made for this document","items":{"type":"object","properties":{"amount":{"type":"number","example":119},"paidAt":{"type":"string","format":"date-time","example":"2024-01-16T14:00:00.000Z"},"ref":{"type":"string","example":"507f1f77bcf86cd799439017","description":"Payment method ID"},"status":{"type":"string","example":"completed"}}}},"paymentMethod":{"type":"string","example":"507f1f77bcf86cd799439017","description":"Default payment method ID"},"pos":{"type":"object","description":"Point of Sale data (for POS transactions)","properties":{"pointofsale":{"type":"string","example":"507f1f77bcf86cd799439018"},"posjournal":{"type":"string","example":"507f1f77bcf86cd799439019"},"transactionNumber":{"type":"number","example":42},"cachier":{"type":"string","example":"Max Mustermann"},"moneyPaid":{"type":"number","example":120},"moneyBack":{"type":"number","example":1}}},"shipping":{"type":"object","description":"Shipping information","properties":{"date":{"type":"string","format":"date-time","example":"2024-01-17T08:00:00.000Z"},"method":{"type":"string","example":"507f1f77bcf86cd799439020"},"carrierTrackingNo":{"type":"string","example":"DHL123456789"},"trackingUrl":{"type":"string","example":"https://tracking.dhl.de/..."},"price":{"type":"number","example":5.99}}},"status":{"type":"object","description":"Document status flags","properties":{"deleted":{"type":"boolean","example":false},"visible":{"type":"boolean","example":true},"processed":{"type":"boolean","example":false}}},"createdAt":{"type":"string","format":"date-time","example":"2024-01-15T10:30:00.000Z"},"updatedAt":{"type":"string","format":"date-time","example":"2024-01-15T10:30:00.000Z"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Document"}}}},"401":{"description":"Unauthorized - authentication is missing or invalid."},"404":{"description":"Document not found."}},"tags":["documents"]}},"/v3/documents/sold-articles":{"get":{"operationId":"DocumentsController_getSoldArticles","summary":"Get sold articles statistics","description":"Retrieves aggregated sales statistics for all articles within a specified date range.\n    \n## Overview\nThis endpoint provides sales data aggregated by article, including:\n- Total quantity sold\n- Total revenue (excluding VAT)\n- Article details (number, title, EAN, etc.)\n\n## Data Source\nThe data is aggregated from:\n- Invoices (type: R) - counted positively\n- Credit notes (type: G) - counted negatively (returns/refunds)\n\n## Use Cases\n- Sales reports and analytics\n- Inventory planning based on sales history\n- Performance analysis per article\n- Revenue tracking by product","parameters":[{"name":"dateAfter","required":true,"in":"query","description":"Start date for the analysis period (ISO 8601 format)","example":"2024-01-01T00:00:00.000Z","schema":{"format":"date-time","type":"string"}},{"name":"dateBefore","required":true,"in":"query","description":"End date for the analysis period (ISO 8601 format)","example":"2024-12-31T23:59:59.999Z","schema":{"format":"date-time","type":"string"}},{"name":"pointofsale","required":false,"in":"query","description":"Filter by specific point of sale ID","example":"507f1f77bcf86cd799439011","schema":{"type":"string"}}],"responses":{"200":{"description":"List of articles with their sales statistics","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"amount":{"type":"number","description":"Total quantity sold (negative for returns)"},"totalExVat":{"type":"number","description":"Total revenue excluding VAT"},"article":{"type":"string","description":"Article ID"},"type":{"type":"string","description":"Item type (always \"article\")"},"articleRef":{"type":"array","description":"Full article details","items":{"type":"object","properties":{"_id":{"type":"string"},"number":{"type":"string"},"title":{"type":"string"},"ean":{"type":"string"},"manufacturer":{"type":"string"},"manufacturerNumber":{"type":"string"},"sale":{"type":"object","properties":{"price":{"type":"number"}}},"purchase":{"type":"object","properties":{"price":{"type":"number"}}}}}}}}},"example":[{"amount":150,"totalExVat":4500,"article":"507f1f77bcf86cd799439012","type":"article","articleRef":[{"_id":"507f1f77bcf86cd799439012","number":"ART-001","title":"Premium Widget","ean":"4012345678901","manufacturer":"WidgetCorp","manufacturerNumber":"WC-001","sale":{"price":30},"purchase":{"price":15}}]},{"amount":75,"totalExVat":1500,"article":"507f1f77bcf86cd799439013","type":"article","articleRef":[{"_id":"507f1f77bcf86cd799439013","number":"ART-002","title":"Standard Widget","ean":"4012345678902"}]}]}}},"400":{"description":"Bad request - missing required date parameters."},"401":{"description":"Unauthorized - authentication is missing or invalid."}},"tags":["documents"]}},"/v3/documents/topseller":{"get":{"operationId":"DocumentsController_getTopseller","summary":"Get top selling articles","description":"Retrieves the top selling articles ranked by revenue within a specified date range.\n    \n## Overview\nSimilar to sold-articles, but results are sorted by total revenue (descending), making it easy to identify best-selling products.\n\n## Sorting\nResults are automatically sorted by `totalExVat` in descending order, showing the highest revenue articles first.\n\n## Data Source\nThe data is aggregated from:\n- Invoices (type: R) - counted positively\n- Credit notes (type: G) - counted negatively\n\n## Use Cases\n- Identify best-selling products\n- Create top-seller reports for marketing\n- Stock prioritization based on sales performance\n- Product performance dashboards","parameters":[{"name":"dateAfter","required":true,"in":"query","description":"Start date for the analysis period (ISO 8601 format)","example":"2024-01-01T00:00:00.000Z","schema":{"format":"date-time","type":"string"}},{"name":"dateBefore","required":true,"in":"query","description":"End date for the analysis period (ISO 8601 format)","example":"2024-12-31T23:59:59.999Z","schema":{"format":"date-time","type":"string"}},{"name":"pointofsale","required":false,"in":"query","description":"Filter by specific point of sale ID","example":"507f1f77bcf86cd799439011","schema":{"type":"string"}},{"name":"type","required":true,"in":"query","description":"Aggregation type: \"amount\" (by quantity) or \"revenue\" (by total sales)","example":"revenue","schema":{"enum":["amount","revenue"],"type":"string"}}],"responses":{"200":{"description":"List of top selling articles sorted by revenue","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"amount":{"type":"number","description":"Total quantity sold"},"totalExVat":{"type":"number","description":"Total revenue excluding VAT"},"totalIncVat":{"type":"number","description":"Total revenue including VAT"},"article":{"type":"string","description":"Article ID"},"type":{"type":"string","description":"Item type"},"articleRef":{"type":"array","description":"Full article details","items":{"type":"object","properties":{"_id":{"type":"string"},"number":{"type":"string"},"title":{"type":"string"},"ean":{"type":"string"}}}}}}},"example":[{"amount":150,"totalExVat":4500,"totalIncVat":5355,"article":"507f1f77bcf86cd799439012","type":"article","articleRef":[{"_id":"507f1f77bcf86cd799439012","number":"ART-001","title":"Premium Widget (Bestseller)","ean":"4012345678901"}]},{"amount":200,"totalExVat":2000,"totalIncVat":2380,"article":"507f1f77bcf86cd799439013","type":"article","articleRef":[{"_id":"507f1f77bcf86cd799439013","number":"ART-002","title":"Budget Widget","ean":"4012345678902"}]}]}}},"400":{"description":"Bad request - missing required parameters (dateAfter, dateBefore, type)."},"401":{"description":"Unauthorized - authentication is missing or invalid."}},"tags":["documents"]}},"/v3/documents/{id}/add-payment":{"post":{"operationId":"DocumentsController_addPayment","parameters":[],"requestBody":{"required":true,"description":"Payment data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddDocumentPaymentDto"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}}},"tags":["documents"]}},"/v3/documents/{docId}/item/{itemId}/price":{"patch":{"operationId":"DocumentsController_updateItemPrice","summary":"Update item price in document","description":"Updates the price of a specific item within a document. This endpoint allows for modifying the price of an existing item in a document such as an invoice, order, or quote.","parameters":[],"requestBody":{"required":true,"description":"Price update data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateItemPriceDto"}}}},"responses":{"200":{"description":"The item price has been successfully updated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Document"}}}},"400":{"description":"Bad request - validation failed for input data."},"401":{"description":"Unauthorized - authentication is missing or invalid."},"404":{"description":"Not Found - document or item not found."}},"tags":["documents"]}},"/v3/documents/{docId}/item/{itemId}/amount":{"patch":{"operationId":"DocumentsController_updateItemAmount","summary":"Update item quantity in document","description":"Updates the quantity/amount of a specific item within a document. This endpoint allows for modifying the quantity of an existing item in a document such as an invoice, order, or quote.","parameters":[],"requestBody":{"required":true,"description":"Amount update data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateItemAmountDto"}}}},"responses":{"200":{"description":"The item quantity has been successfully updated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Document"}}}},"400":{"description":"Bad request - validation failed for input data."},"401":{"description":"Unauthorized - authentication is missing or invalid."},"404":{"description":"Not Found - document or item not found."}},"tags":["documents"]}},"/v3/documents/{id}/set-item-attribute":{"post":{"operationId":"DocumentsController_setItemAttribute","summary":"Set item attribute","description":"Sets any attribute of a document item by index. This is a comprehensive method that handles special cases like price calculations, bundle articles, and stock updates.","parameters":[],"requestBody":{"required":true,"description":"Item attribute update data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SetItemAttributeDto"}}}},"responses":{"200":{"description":"The item attribute has been successfully updated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Document"}}}},"201":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Bad request - validation failed for input data."},"404":{"description":"Not Found - document or item not found."}},"tags":["documents"]}},"/v3/documents/{id}/set-attribute":{"post":{"operationId":"DocumentsController_setAttribute","summary":"Set document attribute","description":"Sets any attribute of a document. This is a legacy method that handles special cases like payment method updates, SEPA date calculations, and document locking.","parameters":[],"requestBody":{"required":true,"description":"Document attribute update data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SetAttributeDto"},"examples":{"set-businesspartner":{"summary":"Set business partner for document","value":{"attribute":"businesspartner","content":"507f1f77bcf86cd799439011"}},"set-payment-method":{"summary":"Set payment method for document","value":{"attribute":"paymentMethod","content":"507f1f77bcf86cd799439012","sepaDate":"2024-01-15"}},"set-locked":{"summary":"Lock/unlock document","value":{"attribute":"locked","content":true}}}}}},"responses":{"200":{"description":"The document attribute has been successfully updated.","content":{"application/json":{"schema":{"type":"object","description":"Response contains the updated attribute value and any related data like payment details"}}}},"201":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Bad request - validation failed for input data."},"401":{"description":"Unauthorized - authentication is missing or invalid."},"404":{"description":"Not Found - document not found."}},"tags":["documents"]}},"/v3/documents/{id}/add-items":{"post":{"operationId":"DocumentsController_addItems","summary":"Add items to document","description":"Adds items to a document. This endpoint allows for adding new items to an existing document such as an invoice, order, or quote.","parameters":[],"requestBody":{"required":true,"description":"Item data","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/AddItemsDto"}}}}},"responses":{"200":{"description":"The items have been successfully added to the document.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Document"}}}},"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Document"}}}},"400":{"description":"Bad request - validation failed for input data."},"401":{"description":"Unauthorized - authentication is missing or invalid."},"404":{"description":"Not Found - document or item not found."}},"tags":["documents"]}},"/v3/documents/list":{"post":{"operationId":"DocumentsController_list","summary":"Document list with full text search","description":"Paginated document list for the documents overview. Searches document number, customer/supplier number and name, addresses, item numbers/titles and foreign numbers. Void and voided documents are excluded; roles restricted to stocks only see documents of those stocks.","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListDocumentsDto"}}}},"responses":{"200":{"description":"Paginated document list.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SearchResponseDto"}}}},"201":{"description":""},"400":{"description":"Bad request - validation failed for input data."},"503":{"description":"Search index unavailable."}},"tags":["documents"]}},"/v3/documents/{id}/lock":{"post":{"operationId":"DocumentsController_lock","summary":"Lock document","description":"Locks a document. This endpoint allows for locking a document such as an invoice, order, or quote.","parameters":[],"responses":{"200":{"description":"The document has been successfully locked.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Document"}}}},"201":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Bad request - validation failed for input data."},"401":{"description":"Unauthorized - authentication is missing or invalid."},"404":{"description":"Not Found - document not found."}},"tags":["documents"]}},"/v3/documents/convert":{"post":{"operationId":"DocumentsController_convertDocument","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConvertDocumentDto"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}}},"tags":["documents"]}},"/v3/documents/defaults":{"get":{"operationId":"DocumentsController_getDefaults","summary":"Get document defaults from client settings","description":"Retrieves default document settings from the client configuration, such as the default stock.","parameters":[],"responses":{"200":{"description":"Document defaults retrieved successfully.","content":{"application/json":{"schema":{"type":"object","properties":{"defaultStock":{"type":"string","description":"Default stock ID for documents","example":"507f1f77bcf86cd799439011"}}}}}},"401":{"description":"Unauthorized - authentication is missing or invalid."},"404":{"description":"Client not found."}},"tags":["documents"]}},"/v3/documents/{id}/setShippingDate":{"patch":{"operationId":"DocumentsController_setShippingDate","summary":"Set shipping date with optional delivery period","description":"Sets the shipping date of a document and optionally a delivery period (from/to). Triggers price recalculation and tax update.","parameters":[],"requestBody":{"required":true,"description":"Shipping date with optional from/to period","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SetShippingDateDto"}}}},"responses":{"200":{"description":"The shipping date has been successfully set.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Document"}}}},"400":{"description":"Bad request - validation failed for input data."},"401":{"description":"Unauthorized - authentication is missing or invalid."},"404":{"description":"Document not found."}},"tags":["documents"]}},"/v3/documents/{id}/archive":{"post":{"operationId":"DocumentsController_archive","summary":"Archive a document","parameters":[],"responses":{"200":{"description":"The document has been successfully archived.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Document"}}}},"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Document"}}}},"404":{"description":"Document not found."}},"tags":["documents"]}},"/v3/documents/{id}/unarchive":{"post":{"operationId":"DocumentsController_unarchive","summary":"Unarchive a document","parameters":[],"responses":{"200":{"description":"The document has been successfully unarchived.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Document"}}}},"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Document"}}}},"404":{"description":"Document not found."}},"tags":["documents"]}},"/v3/documents/{id}/finalize":{"post":{"operationId":"DocumentsController_finalize","summary":"Finalize and lock a document","description":"Locks a document like the document lock in the web app: a document that is already locked is rejected, a draft number is replaced by the final number first.","parameters":[],"responses":{"200":{"description":"The document has been locked.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Document"}}}},"201":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Bad request - document is already locked."},"404":{"description":"Document not found."}},"tags":["documents"]}},"/v3/documents/{id}/archive-with-stock":{"post":{"operationId":"DocumentsController_archiveWithStock","summary":"Archive a document and remove its stock entries","description":"Archives like the web app does: the stock entries of the document are removed as well.","parameters":[],"responses":{"200":{"description":"The document has been archived.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Document"}}}},"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Document"}}}},"404":{"description":"Document not found."}},"tags":["documents"]}},"/v3/documents/{id}/unarchive-with-stock":{"post":{"operationId":"DocumentsController_unarchiveWithStock","summary":"Unarchive a document and book its stock entries again","description":"Counterpart of archive-with-stock. If booking is refused the document stays unarchived.","parameters":[],"responses":{"200":{"description":"The document has been unarchived.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Document"}}}},"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Document"}}}},"404":{"description":"Document not found."}},"tags":["documents"]}},"/v3/documents/{id}/convert":{"post":{"operationId":"DocumentsController_convertById","summary":"Convert a document addressed by its URL id","description":"Same as POST convert, but the source document is taken from the path, not from the body. Like the legacy Faktura, drafts of clients with documents.useLock, documents of disabled partners and documents with deleted articles are rejected. With `mail` the new document is locked (documents.useLock) and sent with its PDF; the outcome is returned as `mail`, a failed mail does not undo the conversion.","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConvertDocumentByIdDto"}}}},"responses":{"201":{"description":"The document has been converted."},"400":{"description":"Draft (not locked), partner disabled or deleted articles."}},"tags":["documents"]}},"/v3/documents/{id}/send-to-printer":{"post":{"operationId":"DocumentsController_sendToPrinter","summary":"Print a document addressed by its URL id","description":"Same as POST :id/print, but the body does not need to repeat the document id.","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PrintDocumentByIdDto"}}}},"responses":{"201":{"description":"The print job has been sent."}},"tags":["documents"]}},"/v3/documents/{id}/change-businesspartner":{"post":{"operationId":"DocumentsController_changeBusinesspartner","summary":"Assign another business partner to an unlocked document","description":"Changes the business partner like the document editor does: the billing address is taken from the new partner and the shipping address is reset.","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChangeDocumentBusinesspartnerDto"}}}},"responses":{"201":{"description":"The business partner has been changed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Document"}}}},"400":{"description":"Bad request - document is locked."},"404":{"description":"Document or business partner not found."}},"tags":["documents"]}},"/v3/documents/{id}/items-discount":{"post":{"operationId":"DocumentsController_setItemsDiscount","summary":"Set one discount on every article item of an unlocked document","description":"Replaces the discount of all article items that are not cancelled and recalculates the totals.","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SetItemsDiscountDto"}}}},"responses":{"201":{"description":"The discount has been applied.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Document"}}}},"400":{"description":"Bad request - document is locked or has no article items."},"404":{"description":"Document not found."}},"tags":["documents"]}},"/v3/documents/{id}/add-article-item":{"post":{"operationId":"DocumentsController_addArticleItem","summary":"Add an article to an unlocked document","description":"Adds the article like the document editor does: bundle articles are expanded into their components and prices, taxes and payment status are recalculated.","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddDocumentArticleItemDto"}}}},"responses":{"201":{"description":"The article has been added.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Document"}}}},"400":{"description":"Bad request - document is locked or the article needs a serial number."},"404":{"description":"Document or article not found."}},"tags":["documents"]}},"/v3/documents/{id}/remove-item":{"post":{"operationId":"DocumentsController_removeItem","summary":"Remove an item from an unlocked document","description":"Removes the item like the document editor does: bundle components are removed with their bundle article, stock entries are deleted and the totals are recalculated.","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RemoveDocumentItemDto"}}}},"responses":{"201":{"description":"The item has been removed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Document"}}}},"400":{"description":"Bad request - document is locked."},"404":{"description":"Document or item not found."}},"tags":["documents"]}},"/v3/documents/{id}/change-stock":{"post":{"operationId":"DocumentsController_changeStock","summary":"Change the stock of an unlocked document","description":"Sets the default stock of the document and the stock of all of its items, like the document editor does.","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChangeDocumentStockDto"}}}},"responses":{"201":{"description":"The stock has been changed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Document"}}}},"400":{"description":"Bad request - document is locked."},"404":{"description":"Document not found."}},"tags":["documents"]}},"/v3/documents/{id}/xrechnung":{"get":{"operationId":"DocumentsController_getXrechnung","summary":"Create an XRechnung (UBL XML) for an invoice","description":"Returns ready=false with the missing seller (branch) or buyer fields instead of producing an invalid file. When everything is set, url points to the generated XML.","parameters":[{"name":"check","required":false,"in":"query","description":"true: only report missing data, do not create the file.","schema":{"type":"string"}}],"responses":{"200":{"description":"XML URL or the list of missing data."},"400":{"description":"Not an invoice, voided, or generation failed."}},"tags":["documents"]}},"/v3/documents/{id}/pdf":{"get":{"operationId":"DocumentsController_generatePdf","summary":"Generate a PDF for a document using a specified template","description":"Creates a PDF file based on document data and template","parameters":[],"responses":{"200":{"description":"PDF file URL"}},"tags":["documents"]}},"/v3/documents/{id}/void":{"post":{"operationId":"DocumentsController_voidDocument","summary":"Void a document by creating a void document","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VoidDocumentDto"}}}},"responses":{"200":{"description":"Document voided successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Document"}}}},"201":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}}},"tags":["documents"]}},"/v3/documents/{id}/print":{"post":{"operationId":"DocumentsController_printDocument","summary":"Print document using template and printer","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PrintDocumentDto"}}}},"responses":{"200":{"description":"Document printed successfully"},"201":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}}},"tags":["documents"]}},"/v3/document_payments":{"post":{"operationId":"DocumentPaymentsController_create","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateDocumentPaymentDto"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"type":"string"}}}}},"tags":["document_payments"]},"get":{"operationId":"DocumentPaymentsController_findAll","parameters":[{"name":"limit","required":false,"in":"query","schema":{"minimum":1,"default":1000,"type":"number"}},{"name":"skip","required":false,"in":"query","schema":{"type":"number"}},{"name":"paidAt","required":false,"in":"query","schema":{"format":"date-time","type":"string"}},{"name":"currentStatus","required":false,"in":"query","schema":{"type":"string"}},{"name":"source","required":false,"in":"query","schema":{"type":"string"}},{"name":"locked","required":false,"in":"query","schema":{"type":"boolean"}},{"name":"createdAt","required":false,"in":"query","schema":{"format":"date-time","type":"string"}},{"name":"updatedAt","required":false,"in":"query","schema":{"format":"date-time","type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Document_Payment"}}}}}},"tags":["document_payments"]}},"/v3/document_payments/{id}/processDocumentExternalPayments":{"post":{"operationId":"DocumentPaymentsController_processDocumentExternalPayments","parameters":[],"responses":{"201":{"description":""}},"tags":["document_payments"]}},"/v3/document_payments/{id}":{"get":{"operationId":"DocumentPaymentsController_findOne","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}}},"tags":["document_payments"]},"patch":{"operationId":"DocumentPaymentsController_update","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateDocumentPaymentDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"string"}}}}},"tags":["document_payments"]},"delete":{"operationId":"DocumentPaymentsController_remove","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"string"}}}}},"tags":["document_payments"]}},"/v3/taxassignments":{"post":{"operationId":"TaxassignmentsController_create","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateTaxassignmentDto"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Taxassignment"}}}}},"tags":["taxassignments"]},"get":{"operationId":"TaxassignmentsController_findAll","parameters":[{"name":"limit","required":false,"in":"query","schema":{"minimum":1,"default":1000,"type":"number"}},{"name":"skip","required":false,"in":"query","schema":{"type":"number"}},{"name":"name","required":false,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Taxassignment"}}}}}},"tags":["taxassignments"]}},"/v3/taxassignments/{id}":{"get":{"operationId":"TaxassignmentsController_findOne","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Taxassignment"}}}}},"tags":["taxassignments"]},"patch":{"operationId":"TaxassignmentsController_update","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateTaxassignmentDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}}},"tags":["taxassignments"]},"delete":{"operationId":"TaxassignmentsController_remove","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}}},"tags":["taxassignments"]}},"/v3/taxassignments/{id}/duplicate":{"post":{"operationId":"TaxassignmentsController_duplicate","parameters":[],"responses":{"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Taxassignment"}}}}},"tags":["taxassignments"]}},"/v3/currencies":{"post":{"operationId":"CurrenciesController_create","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateCurrencyDto"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Currency"}}}}},"tags":["currencies"]},"get":{"operationId":"CurrenciesController_findAll","parameters":[{"name":"limit","required":false,"in":"query","schema":{"minimum":1,"default":1000,"type":"number"}},{"name":"skip","required":false,"in":"query","schema":{"type":"number"}},{"name":"name","required":true,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Currency"}}}}}},"tags":["currencies"]}},"/v3/currencies/{id}":{"get":{"operationId":"CurrenciesController_findOne","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Currency"}}}}},"tags":["currencies"]},"patch":{"operationId":"CurrenciesController_update","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateCurrencyDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}}},"tags":["currencies"]},"delete":{"operationId":"CurrenciesController_remove","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}}},"tags":["currencies"]}},"/v3/currencies/{id}/duplicate":{"post":{"operationId":"CurrenciesController_duplicate","parameters":[],"responses":{"201":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}}},"tags":["currencies"]}},"/v3/currencies/{id}/archive":{"post":{"operationId":"CurrenciesController_archive","parameters":[],"responses":{"201":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}}},"tags":["currencies"]}},"/v3/pricelists":{"post":{"operationId":"PricelistsController_create","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreatePricelistDto"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Pricelist"}}}}},"tags":["pricelists"]},"get":{"operationId":"PricelistsController_findAll","parameters":[{"name":"limit","required":false,"in":"query","schema":{"minimum":1,"default":1000,"type":"number"}},{"name":"skip","required":false,"in":"query","schema":{"type":"number"}},{"name":"type","required":false,"in":"query","schema":{"type":"string"}},{"name":"name","required":false,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Pricelist"}}}}}},"tags":["pricelists"]}},"/v3/pricelists/{id}":{"get":{"operationId":"PricelistsController_findOne","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Pricelist"}}}}},"tags":["pricelists"]},"patch":{"operationId":"PricelistsController_update","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdatePricelistDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}}},"tags":["pricelists"]},"delete":{"operationId":"PricelistsController_remove","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}}},"tags":["pricelists"]}},"/v3/pricelists/{id}/archive":{"post":{"operationId":"PricelistsController_archive","parameters":[],"responses":{"201":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}}},"tags":["pricelists"]}},"/v3/pricelists/{id}/duplicate":{"post":{"operationId":"PricelistsController_duplicate","parameters":[],"responses":{"201":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}}},"tags":["pricelists"]}},"/v3/taxrevenues":{"post":{"operationId":"TaxrevenuesController_create","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateTaxrevenueDto"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Taxrevenue"}}}}},"tags":["taxrevenues"]},"get":{"operationId":"TaxrevenuesController_findAll","parameters":[{"name":"limit","required":false,"in":"query","schema":{"minimum":1,"default":1000,"type":"number"}},{"name":"skip","required":false,"in":"query","schema":{"type":"number"}},{"name":"name","required":false,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Taxrevenue"}}}}}},"tags":["taxrevenues"]}},"/v3/taxrevenues/{id}":{"get":{"operationId":"TaxrevenuesController_findOne","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Taxrevenue"}}}}},"tags":["taxrevenues"]},"patch":{"operationId":"TaxrevenuesController_update","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateTaxrevenueDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}}},"tags":["taxrevenues"]},"delete":{"operationId":"TaxrevenuesController_remove","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}}},"tags":["taxrevenues"]}},"/v3/groups":{"post":{"operationId":"GroupsController_create","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateGroupDto"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Group"}}}}},"tags":["groups"]},"get":{"operationId":"GroupsController_findAll","parameters":[{"name":"limit","required":false,"in":"query","schema":{"minimum":1,"default":1000,"type":"number"}},{"name":"skip","required":false,"in":"query","schema":{"type":"number"}},{"name":"name","required":true,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Group"}}}}}},"tags":["groups"]}},"/v3/groups/{id}":{"get":{"operationId":"GroupsController_findOne","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Group"}}}}},"tags":["groups"]},"patch":{"operationId":"GroupsController_update","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateGroupDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}}},"tags":["groups"]},"delete":{"operationId":"GroupsController_remove","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}}},"tags":["groups"]}},"/v3/groups/{id}/archive":{"post":{"operationId":"GroupsController_archive","parameters":[],"responses":{"201":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}}},"tags":["groups"]}},"/v3/groups/{id}/duplicate":{"post":{"operationId":"GroupsController_duplicate","parameters":[],"responses":{"201":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}}},"tags":["groups"]}},"/v3/users":{"post":{"operationId":"UsersController_create","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateUserDto"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/User"}}}}},"tags":["users"]},"get":{"operationId":"UsersController_findAll","parameters":[{"name":"limit","required":false,"in":"query","schema":{"minimum":1,"default":1000,"type":"number"}},{"name":"skip","required":false,"in":"query","schema":{"type":"number"}},{"name":"calendarEnabled","required":true,"in":"query","schema":{"type":"string"}},{"name":"calendarAccess","required":true,"in":"query","schema":{"type":"string"}},{"name":"status.visible","required":true,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"type":"object"}}}}}},"tags":["users"]}},"/v3/users/{id}/ypos-pin":{"put":{"operationId":"UsersController_setYposPin","summary":"Set the 6-digit ypos PIN used for the cashier login","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SetYposPinDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/YposPinStatus"}}}}},"tags":["users"]},"delete":{"operationId":"UsersController_clearYposPin","summary":"Remove the ypos PIN of a user","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/YposPinStatus"}}}}},"tags":["users"]}},"/v3/users/{id}":{"get":{"operationId":"UsersController_findOne","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/User"}}}}},"tags":["users"]},"patch":{"operationId":"UsersController_update","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateUserDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}}},"tags":["users"]},"delete":{"operationId":"UsersController_remove","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}}},"tags":["users"]}},"/v3/users/{id}/check-pin":{"post":{"operationId":"UsersController_checkPin","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CheckPinDto"}}}},"responses":{"201":{"description":""}},"tags":["users"]}},"/v3/users/{id}/set-pin":{"post":{"operationId":"UsersController_setPin","summary":"Set or reset the fast-user-switch PIN for a user","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SetPinDto"}}}},"responses":{"200":{"description":"PIN stored successfully"},"201":{"description":""}},"tags":["users"]}},"/v3/articleunits":{"post":{"operationId":"ArticleunitsController_create","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateArticleunitDto"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Articleunit"}}}}},"tags":["articleunits"]},"get":{"operationId":"ArticleunitsController_findAll","parameters":[{"name":"limit","required":false,"in":"query","schema":{"minimum":1,"default":1000,"type":"number"}},{"name":"skip","required":false,"in":"query","schema":{"type":"number"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Articleunit"}}}}}},"tags":["articleunits"]}},"/v3/articleunits/{id}":{"get":{"operationId":"ArticleunitsController_findOne","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Articleunit"}}}}},"tags":["articleunits"]},"patch":{"operationId":"ArticleunitsController_update","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateArticleunitDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}}},"tags":["articleunits"]},"delete":{"operationId":"ArticleunitsController_remove","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}}},"tags":["articleunits"]}},"/v3/bins":{"post":{"operationId":"BinsController_create","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateBinDto"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Bin"}}}}},"tags":["bins"]},"get":{"operationId":"BinsController_findAll","parameters":[{"name":"limit","required":false,"in":"query","schema":{"minimum":1,"default":1000,"type":"number"}},{"name":"skip","required":false,"in":"query","schema":{"type":"number"}},{"name":"name","required":false,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Bin"}}}}}},"tags":["bins"]}},"/v3/bins/{id}/archive":{"post":{"operationId":"BinsController_archive","parameters":[],"responses":{"201":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}}},"tags":["bins"]}},"/v3/bins/{id}/duplicate":{"post":{"operationId":"BinsController_duplicate","parameters":[],"responses":{"201":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}}},"tags":["bins"]}},"/v3/bins/{id}":{"get":{"operationId":"BinsController_findOne","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Bin"}}}}},"tags":["bins"]},"patch":{"operationId":"BinsController_update","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateBinDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}}},"tags":["bins"]},"delete":{"operationId":"BinsController_remove","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}}},"tags":["bins"]}},"/v3/bonus":{"post":{"operationId":"BonusController_create","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateBonusDto"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Bonus"}}}}},"tags":["bonus"]},"get":{"operationId":"BonusController_findAll","parameters":[{"name":"limit","required":false,"in":"query","schema":{"minimum":1,"default":1000,"type":"number"}},{"name":"skip","required":false,"in":"query","schema":{"type":"number"}},{"name":"name","required":false,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Bonus"}}}}}},"tags":["bonus"]}},"/v3/bonus/{id}/archive":{"post":{"operationId":"BonusController_archive","parameters":[],"responses":{"201":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}}},"tags":["bonus"]}},"/v3/bonus/{id}":{"get":{"operationId":"BonusController_findOne","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Bonus"}}}}},"tags":["bonus"]},"patch":{"operationId":"BonusController_update","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateBonusDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}}},"tags":["bonus"]},"delete":{"operationId":"BonusController_remove","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}}},"tags":["bonus"]}},"/v3/timespans":{"post":{"operationId":"TimespansController_create","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateTimespanDto"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Timespan"}}}}},"tags":["timespans"]},"get":{"operationId":"TimespansController_findAll","parameters":[{"name":"limit","required":false,"in":"query","schema":{"minimum":1,"default":1000,"type":"number"}},{"name":"skip","required":false,"in":"query","schema":{"type":"number"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Timespan"}}}}}},"tags":["timespans"]}},"/v3/timespans/{id}":{"get":{"operationId":"TimespansController_findOne","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Timespan"}}}}},"tags":["timespans"]},"patch":{"operationId":"TimespansController_update","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateTimespanDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}}},"tags":["timespans"]},"delete":{"operationId":"TimespansController_remove","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}}},"tags":["timespans"]}},"/v3/timespans/status":{"get":{"operationId":"TimespansController_getStatus","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}}},"tags":["timespans"]}},"/v3/pospayments":{"post":{"operationId":"PospaymentsController_create","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreatePospaymentDto"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Pospayment"}}}}},"tags":["pospayments"]},"get":{"operationId":"PospaymentsController_findAll","parameters":[{"name":"limit","required":false,"in":"query","schema":{"minimum":1,"default":1000,"type":"number"}},{"name":"skip","required":false,"in":"query","schema":{"type":"number"}},{"name":"name","required":false,"in":"query","schema":{"type":"string"}},{"name":"message","required":false,"in":"query","schema":{"type":"string"}},{"name":"mailaddress","required":false,"in":"query","schema":{"type":"string"}},{"name":"type","required":false,"in":"query","schema":{"type":"string"}},{"name":"truncateBasket","required":false,"in":"query","schema":{"type":"boolean"}},{"name":"cashbased","required":false,"in":"query","schema":{"type":"boolean"}},{"name":"doNotCreateProcessPosbasket","required":false,"in":"query","schema":{"type":"boolean"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Pospayment"}}}}}},"tags":["pospayments"]}},"/v3/pospayments/{id}":{"get":{"operationId":"PospaymentsController_findOne","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Pospayment"}}}}},"tags":["pospayments"]},"patch":{"operationId":"PospaymentsController_update","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdatePospaymentDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}}},"tags":["pospayments"]},"delete":{"operationId":"PospaymentsController_remove","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}}},"tags":["pospayments"]}},"/v3/jobs":{"post":{"operationId":"JobsController_create","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateJobDto"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Job"}}}}},"tags":["jobs"]},"get":{"operationId":"JobsController_findAll","parameters":[{"name":"limit","required":false,"in":"query","schema":{"minimum":1,"default":1000,"type":"number"}},{"name":"skip","required":false,"in":"query","schema":{"type":"number"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Job"}}}}}},"tags":["jobs"]}},"/v3/jobs/{id}":{"get":{"operationId":"JobsController_findOne","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Job"}}}}},"tags":["jobs"]},"patch":{"operationId":"JobsController_update","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateJobDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}}},"tags":["jobs"]},"delete":{"operationId":"JobsController_remove","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}}},"tags":["jobs"]}},"/v3/jobs/stop":{"post":{"operationId":"JobsController_stop","parameters":[],"responses":{"201":{"description":""}},"tags":["jobs"]}},"/v3/jobs/force-stop":{"post":{"operationId":"JobsController_forceStop","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForceStopJobDto"}}}},"responses":{"201":{"description":""}},"tags":["jobs"]}},"/v3/jobs/my-past-jobs/{type}":{"get":{"operationId":"JobsController_myPastJobsType","parameters":[{"name":"limit","required":false,"in":"query","schema":{"minimum":1,"default":1000,"type":"number"}},{"name":"skip","required":false,"in":"query","schema":{"type":"number"}},{"name":"type","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":""}},"tags":["jobs"]}},"/v3/jobs/my-past-jobs":{"get":{"operationId":"JobsController_myPastJobs","parameters":[{"name":"limit","required":false,"in":"query","schema":{"minimum":1,"default":1000,"type":"number"}},{"name":"skip","required":false,"in":"query","schema":{"type":"number"}},{"name":"type","required":true,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":""}},"tags":["jobs"]}},"/v3/posjournals":{"post":{"operationId":"PosjournalsController_create","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreatePosjournalDto"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Posjournal"}}}}},"tags":["posjournals"]},"get":{"operationId":"PosjournalsController_findAll","parameters":[{"name":"limit","required":false,"in":"query","schema":{"minimum":1,"default":1000,"type":"number"}},{"name":"skip","required":false,"in":"query","schema":{"type":"number"}},{"name":"number","required":false,"in":"query","schema":{"type":"string"}},{"name":"closedBefore","required":false,"in":"query","schema":{"format":"date-time","type":"string"}},{"name":"closedAfter","required":false,"in":"query","schema":{"format":"date-time","type":"string"}},{"name":"createdBefore","required":false,"in":"query","schema":{"format":"date-time","type":"string"}},{"name":"createdAfter","required":false,"in":"query","schema":{"format":"date-time","type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Posjournal"}}}}}},"tags":["posjournals"]}},"/v3/posjournals/{id}":{"get":{"operationId":"PosjournalsController_findOne","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Posjournal"}}}}},"tags":["posjournals"]},"patch":{"operationId":"PosjournalsController_update","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdatePosjournalDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}}},"tags":["posjournals"]},"delete":{"operationId":"PosjournalsController_remove","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}}},"tags":["posjournals"]}},"/v3/posjournals/{id}/documents":{"get":{"operationId":"PosjournalsController_getDocuments","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/DocumentDto"}}}}}},"tags":["posjournals"]}},"/v3/posjournals/{id}/stats":{"get":{"operationId":"PosjournalsController_getStats","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}}},"tags":["posjournals"]}},"/v3/posjournals/{id}/add-transfer":{"post":{"operationId":"PosjournalsController_addTransfer","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddTransferDto"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}}},"tags":["posjournals"]}},"/v3/posjournals/{id}/print":{"post":{"operationId":"PosjournalsController_printJournal","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PrintJournalDto"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}}},"tags":["posjournals"]}},"/v3/posjournals/{id}/download-a4-pdf":{"post":{"operationId":"PosjournalsController_downloadA4Pdf","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DownloadA4PdfDto"}}}},"responses":{"201":{"description":""}},"tags":["posjournals"]}},"/v3/posjournals/{id}/close":{"post":{"operationId":"PosjournalsController_close","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClosePosjournalDto"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}}},"tags":["posjournals"]}},"/v3/documentgroups":{"post":{"operationId":"DocumentgroupsController_create","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateDocumentgroupDto"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentgroupDto"}}}}},"tags":["documentgroups"]},"get":{"operationId":"DocumentgroupsController_findAll","parameters":[{"name":"limit","required":false,"in":"query","schema":{"minimum":1,"default":1000,"type":"number"}},{"name":"skip","required":false,"in":"query","schema":{"type":"number"}},{"name":"name","required":true,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentgroupDto"}}}}},"tags":["documentgroups"]}},"/v3/documentgroups/{id}/duplicate":{"post":{"operationId":"DocumentgroupsController_duplicate","parameters":[{"name":"id","required":true,"in":"path","description":"Documentgroup ID","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentgroupDto"}}}},"201":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}}},"tags":["documentgroups"]}},"/v3/documentgroups/{id}/archive":{"post":{"operationId":"DocumentgroupsController_archive","parameters":[{"name":"id","required":true,"in":"path","description":"Documentgroup ID","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentgroupDto"}}}},"201":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}}},"tags":["documentgroups"]}},"/v3/documentgroups/{id}":{"get":{"operationId":"DocumentgroupsController_findOne","parameters":[{"name":"id","required":true,"in":"path","description":"Documentgroup ID","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentgroupDto"}}}}},"tags":["documentgroups"]},"patch":{"operationId":"DocumentgroupsController_update","parameters":[{"name":"id","required":true,"in":"path","description":"Documentgroup ID","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateDocumentgroupDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentgroupDto"}}}}},"tags":["documentgroups"]},"delete":{"operationId":"DocumentgroupsController_remove","parameters":[{"name":"id","required":true,"in":"path","description":"Documentgroup ID","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentgroupDto"}}}}},"tags":["documentgroups"]}},"/v3/documentgroups/{id}/nextNumber":{"get":{"operationId":"DocumentgroupsController_nextNumber","parameters":[{"name":"id","required":true,"in":"path","description":"Documentgroup ID","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentgroupDto"}}}}},"tags":["documentgroups"]}},"/v3/stockitementries":{"post":{"operationId":"StockitementriesController_create","summary":"Create a stockitementry","description":"Books a stock delta for an article on one stock and returns the created stockitementry. This is the endpoint for manual +1/-1 bookings; `amount` is a delta (positive = Zugang, negative = Abgang), not an absolute stock level. A stock transfer is two bookings: a negative one on the source stock and a positive one on the destination stock.","parameters":[],"requestBody":{"required":true,"description":"Stockitementry data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateStockitementryDto"},"examples":{"increase-by-one":{"summary":"Book +1 on a stock","value":{"item":"507f1f77bcf86cd799439011","stock":"507f1f77bcf86cd799439012","amount":1,"type":"I","description":"Manueller Zugang"}},"decrease-by-one":{"summary":"Book -1 on a stock","value":{"item":"507f1f77bcf86cd799439011","stock":"507f1f77bcf86cd799439012","amount":-1,"type":"I","description":"Manueller Abgang"}}}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}}},"tags":["stockitementries"]},"get":{"operationId":"StockitementriesController_findAll","parameters":[{"name":"limit","required":false,"in":"query","schema":{"minimum":1,"default":1000,"type":"number"}},{"name":"skip","required":false,"in":"query","schema":{"type":"number"}},{"name":"stocks","required":false,"in":"query","schema":{"type":"array","items":{"type":"string"}}},{"name":"types","required":false,"in":"query","schema":{"type":"array","items":{"type":"string"}}},{"name":"createdBefore","required":false,"in":"query","schema":{"format":"date-time","type":"string"}},{"name":"createdAfter","required":false,"in":"query","schema":{"format":"date-time","type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Stockitementry"}}}}}},"tags":["stockitementries"]}},"/v3/stockitementries/{id}":{"get":{"operationId":"StockitementriesController_findOne","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Stockitementry"}}}}},"tags":["stockitementries"]},"patch":{"operationId":"StockitementriesController_update","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateStockitementryDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}}},"tags":["stockitementries"]},"delete":{"operationId":"StockitementriesController_remove","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}}},"tags":["stockitementries"]}},"/v3/images":{"post":{"operationId":"ImagesController_create","summary":"Upload an image","description":"Uploads an image and returns the created image object. Images can be uploaded with a filepath, url or encoded in base64.","parameters":[],"requestBody":{"required":true,"description":"Image data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UploadImageDto"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}}},"tags":["images"]},"get":{"operationId":"ImagesController_findAll","parameters":[{"name":"limit","required":false,"in":"query","schema":{"minimum":1,"default":1000,"type":"number"}},{"name":"skip","required":false,"in":"query","schema":{"type":"number"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Image"}}}}}},"tags":["images"]}},"/v3/images/{id}":{"get":{"operationId":"ImagesController_findOne","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Image"}}}}},"tags":["images"]},"patch":{"operationId":"ImagesController_update","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateImageDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}}},"tags":["images"]},"delete":{"operationId":"ImagesController_remove","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}}},"tags":["images"]}},"/v3/images/batch":{"delete":{"operationId":"ImagesController_removeBatch","parameters":[],"responses":{"200":{"description":""}},"tags":["images"]}},"/v3/displays":{"post":{"operationId":"DisplaysController_create","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateDisplayDto"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Display"}}}}},"tags":["displays"]},"get":{"operationId":"DisplaysController_findAll","parameters":[{"name":"limit","required":false,"in":"query","schema":{"minimum":1,"default":1000,"type":"number"}},{"name":"skip","required":false,"in":"query","schema":{"type":"number"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Display"}}}}}},"tags":["displays"]}},"/v3/displays/customerdisplay":{"post":{"operationId":"DisplaysController_createCustomerDisplay","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateCustomerDisplayDto"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}}},"tags":["displays"]}},"/v3/displays/{id}":{"get":{"operationId":"DisplaysController_findOne","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Display"}}}}},"tags":["displays"]},"patch":{"operationId":"DisplaysController_update","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateDisplayDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}}},"tags":["displays"]},"delete":{"operationId":"DisplaysController_remove","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}}},"tags":["displays"]}},"/v3/displays/{id}/archive":{"post":{"operationId":"DisplaysController_archive","parameters":[],"responses":{"201":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}}},"tags":["displays"]}},"/v3/displays/{id}/duplicate":{"post":{"operationId":"DisplaysController_duplicate","parameters":[],"responses":{"201":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}}},"tags":["displays"]}},"/v3/statistics":{"post":{"operationId":"StatisticsController_create","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateStatisticDto"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Statistic"}}}}},"tags":["statistics"]},"get":{"operationId":"StatisticsController_findAll","parameters":[{"name":"limit","required":false,"in":"query","schema":{"minimum":1,"default":1000,"type":"number"}},{"name":"skip","required":false,"in":"query","schema":{"type":"number"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Statistic"}}}}}},"tags":["statistics"]}},"/v3/statistics/{id}":{"get":{"operationId":"StatisticsController_findOne","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Statistic"}}}}},"tags":["statistics"]},"patch":{"operationId":"StatisticsController_update","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateStatisticDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}}},"tags":["statistics"]},"delete":{"operationId":"StatisticsController_remove","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}}},"tags":["statistics"]}},"/v3/statistics/document-items":{"post":{"operationId":"StatisticsController_getDocumentItems","summary":"Get document items statistics","parameters":[],"responses":{"200":{"description":"Document items statistics retrieved successfully"},"201":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Bad request - invalid date range or query parameters"}},"tags":["statistics"]}},"/v3/statistics/document-items-topseller":{"post":{"operationId":"StatisticsController_getDocumentItemsTopseller","summary":"Get top-selling articles statistics","parameters":[],"responses":{"200":{"description":"Top-selling articles statistics retrieved successfully"},"201":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Bad request - invalid date range or query parameters"}},"tags":["statistics"]}},"/v3/vouchers":{"post":{"operationId":"VouchersController_create","summary":"Create a new voucher","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateVoucherDto"}}}},"responses":{"201":{"description":"The voucher has been successfully created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Voucher"}}}},"400":{"description":"Invalid input data"},"401":{"description":"Unauthorized"}},"tags":["vouchers"]},"get":{"operationId":"VouchersController_findAll","summary":"Get all vouchers with filtering","parameters":[{"name":"limit","required":false,"in":"query","schema":{"minimum":1,"default":1000,"type":"number"}},{"name":"skip","required":false,"in":"query","schema":{"type":"number"}},{"name":"code","required":false,"in":"query","schema":{"type":"string"}},{"name":"name","required":false,"in":"query","schema":{"type":"string"}},{"required":false,"name":"code","in":"query","schema":{"type":"string"}},{"required":false,"name":"name","in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"List of vouchers","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Voucher"}}}}},"401":{"description":"Unauthorized"}},"tags":["vouchers"]}},"/v3/vouchers/lock-candidates":{"get":{"operationId":"VouchersController_findLockCandidates","summary":"Get expired, unredeemed vouchers that are not locked yet","parameters":[],"responses":{"200":{"description":"List of vouchers that can be locked","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Voucher"}}}}},"401":{"description":"Unauthorized"}},"tags":["vouchers"]}},"/v3/vouchers/lock":{"post":{"operationId":"VouchersController_lock","summary":"Permanently lock expired, unredeemed vouchers for the DATEV write-off","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LockVouchersDto"}}}},"responses":{"201":{"description":"Number of vouchers that have been locked"},"400":{"description":"Invalid input data"},"401":{"description":"Unauthorized"}},"tags":["vouchers"]}},"/v3/vouchers/{id}":{"get":{"operationId":"VouchersController_findOne","summary":"Get a voucher by ID","parameters":[{"name":"id","required":true,"in":"path","description":"Voucher ID","schema":{"type":"string"}}],"responses":{"200":{"description":"The voucher has been found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Voucher"}}}},"401":{"description":"Unauthorized"},"404":{"description":"Voucher not found"}},"tags":["vouchers"]},"patch":{"operationId":"VouchersController_update","summary":"Update a voucher","parameters":[{"name":"id","required":true,"in":"path","description":"Voucher ID","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateVoucherDto"}}}},"responses":{"200":{"description":"The voucher has been successfully updated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Voucher"}}}},"400":{"description":"Invalid input data"},"401":{"description":"Unauthorized"},"404":{"description":"Voucher not found"}},"tags":["vouchers"]},"delete":{"operationId":"VouchersController_remove","summary":"Delete a voucher","parameters":[{"name":"id","required":true,"in":"path","description":"Voucher ID","schema":{"type":"string"}}],"responses":{"200":{"description":"The voucher has been successfully deleted"},"401":{"description":"Unauthorized"},"404":{"description":"Voucher not found"}},"tags":["vouchers"]}},"/v3/vouchers/{id}/archive":{"post":{"operationId":"VouchersController_archive","parameters":[],"responses":{"201":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}}},"tags":["vouchers"]}},"/v3/payments":{"post":{"operationId":"PaymentsController_create","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreatePaymentDto"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Payment"}}}}},"tags":["payments"]},"get":{"operationId":"PaymentsController_findAll","parameters":[{"name":"limit","required":false,"in":"query","schema":{"minimum":1,"default":1000,"type":"number"}},{"name":"skip","required":false,"in":"query","schema":{"type":"number"}},{"name":"name","required":false,"in":"query","schema":{"type":"string"}},{"name":"type","required":false,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Payment"}}}}}},"tags":["payments"]}},"/v3/payments/{id}":{"get":{"operationId":"PaymentsController_findOne","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Payment"}}}}},"tags":["payments"]},"patch":{"operationId":"PaymentsController_update","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdatePaymentDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}}},"tags":["payments"]},"delete":{"operationId":"PaymentsController_remove","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}}},"tags":["payments"]}},"/v3/payments/{id}/is-payment-in-use":{"get":{"operationId":"PaymentsController_isPaymentInUse","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}}},"tags":["payments"]}},"/v3/discountrules":{"post":{"operationId":"DiscountrulesController_create","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateDiscountruleDto"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Discountrule"}}}}},"tags":["discountrules"]},"get":{"operationId":"DiscountrulesController_findAll","parameters":[{"name":"limit","required":false,"in":"query","schema":{"minimum":1,"default":1000,"type":"number"}},{"name":"skip","required":false,"in":"query","schema":{"type":"number"}},{"name":"article","required":false,"in":"query","schema":{"type":"string"}},{"name":"pricelist","required":false,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Discountrule"}}}}}},"tags":["discountrules"]}},"/v3/discountrules/scaledPrice":{"post":{"operationId":"DiscountrulesController_postScaledPrice","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateScaledpriceDto"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}}},"tags":["discountrules"]}},"/v3/discountrules/{id}":{"get":{"operationId":"DiscountrulesController_findOne","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Discountrule"}}}}},"tags":["discountrules"]},"patch":{"operationId":"DiscountrulesController_update","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateDiscountruleDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}}},"tags":["discountrules"]},"delete":{"operationId":"DiscountrulesController_remove","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}}},"tags":["discountrules"]}},"/v3/discountrules/calculate":{"post":{"operationId":"DiscountrulesController_calculateDiscount","summary":"Calculate discounts based on discount rules (legacy compatibility)","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CalculateDiscountDto"}}}},"responses":{"200":{"description":"Discount calculation result","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CalculateDiscountResultDto"}}}},"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CalculateDiscountResultDto"}}}}},"tags":["discountrules"]}},"/v3/comments":{"post":{"operationId":"CommentsController_create","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateCommentDto"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}}},"tags":["comments"]},"get":{"operationId":"CommentsController_findAll","parameters":[{"name":"limit","required":false,"in":"query","schema":{"minimum":1,"default":1000,"type":"number"}},{"name":"skip","required":false,"in":"query","schema":{"type":"number"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Comment"}}}}}},"tags":["comments"]}},"/v3/comments/{id}":{"get":{"operationId":"CommentsController_findOne","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Comment"}}}}},"tags":["comments"]},"patch":{"operationId":"CommentsController_update","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateCommentDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}}},"tags":["comments"]},"delete":{"operationId":"CommentsController_remove","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}}},"tags":["comments"]}},"/v3/comments/{id}/archive":{"post":{"operationId":"CommentsController_archive","parameters":[],"responses":{"201":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}}},"tags":["comments"]}},"/v3/costcentres":{"post":{"operationId":"CostcentresController_create","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateCostcentreDto"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Costcentre"}}}}},"tags":["costcentres"]},"get":{"operationId":"CostcentresController_findAll","parameters":[{"name":"limit","required":false,"in":"query","schema":{"minimum":1,"default":1000,"type":"number"}},{"name":"skip","required":false,"in":"query","schema":{"type":"number"}},{"name":"name","required":false,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Costcentre"}}}}}},"tags":["costcentres"]}},"/v3/costcentres/{id}/duplicate":{"post":{"operationId":"CostcentresController_duplicate","parameters":[],"responses":{"201":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}}},"tags":["costcentres"]}},"/v3/costcentres/{id}/archive":{"post":{"operationId":"CostcentresController_archive","parameters":[],"responses":{"201":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}}},"tags":["costcentres"]}},"/v3/costcentres/{id}":{"get":{"operationId":"CostcentresController_findOne","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Costcentre"}}}}},"tags":["costcentres"]},"patch":{"operationId":"CostcentresController_update","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateCostcentreDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}}},"tags":["costcentres"]},"delete":{"operationId":"CostcentresController_remove","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}}},"tags":["costcentres"]}},"/v3/customattributes":{"post":{"operationId":"CustomattributesController_create","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateCustomattributeDto"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Customattribute"}}}}},"tags":["customattributes"]},"get":{"operationId":"CustomattributesController_findAll","parameters":[{"name":"limit","required":false,"in":"query","schema":{"minimum":1,"default":1000,"type":"number"}},{"name":"skip","required":false,"in":"query","schema":{"type":"number"}},{"name":"name","required":false,"in":"query","schema":{"type":"string"}},{"name":"model","required":false,"in":"query","schema":{"type":"string"}},{"required":false,"name":"visible","in":"query","schema":{"type":"boolean"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Customattribute"}}}}}},"tags":["customattributes"]}},"/v3/customattributes/{id}":{"get":{"operationId":"CustomattributesController_findOne","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Customattribute"}}}}},"tags":["customattributes"]},"patch":{"operationId":"CustomattributesController_update","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateCustomattributeDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}}},"tags":["customattributes"]},"delete":{"operationId":"CustomattributesController_remove","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}}},"tags":["customattributes"]}},"/v3/customattributes/{id}/archive":{"post":{"operationId":"CustomattributesController_archive","parameters":[],"responses":{"201":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}}},"tags":["customattributes"]}},"/v3/customattributes/{id}/duplicate":{"post":{"operationId":"CustomattributesController_duplicate","parameters":[],"responses":{"201":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}}},"tags":["customattributes"]}},"/v3/feeds/newEntrance":{"post":{"operationId":"FeedsController_create","summary":"Create a new feed entry","description":"Creates a new feed entry for real-time notifications and event tracking.\n    \n## Overview\nFeeds are used for real-time communication between the backend and connected clients (e.g., POS terminals, web applications). \nThey act as a notification/event queue that clients can poll and acknowledge.\n\n## Common Event Types\n- `document.created` - A new document was created\n- `document.updated` - A document was modified\n- `order.new` - A new order was received\n- `stock.low` - Stock level is below threshold\n- `payment.received` - A payment was processed\n- `sync.required` - Client should sync data\n\n## Use Cases\n- Real-time POS notifications\n- Order notifications for kitchen displays\n- Stock alerts\n- System events and updates","parameters":[],"requestBody":{"required":true,"description":"Feed entry data","content":{"application/json":{"schema":{"type":"object","required":["event","payload"],"properties":{"event":{"type":"string","description":"Event type identifier","example":"document.created"},"payload":{"type":"object","description":"Event-specific data payload","example":{"documentId":"507f1f77bcf86cd799439011","documentType":"R","documentNumber":"R-2024-00001","total":119}}}},"examples":{"documentCreated":{"summary":"Document Created Event","value":{"event":"document.created","payload":{"documentId":"507f1f77bcf86cd799439011","documentType":"R","documentNumber":"R-2024-00001"}}},"orderNew":{"summary":"New Order Event","value":{"event":"order.new","payload":{"orderId":"507f1f77bcf86cd799439012","table":"Tisch 5","items":3}}},"stockLow":{"summary":"Low Stock Alert","value":{"event":"stock.low","payload":{"articleId":"507f1f77bcf86cd799439013","articleNumber":"ART-001","currentStock":5,"minStock":10}}}}}}},"responses":{"201":{"description":"Feed entry created successfully","content":{"application/json":{"schema":{"type":"object","properties":{"_id":{"type":"string","example":"507f1f77bcf86cd799439014"},"type":{"type":"string","example":"document.created"},"payload":{"type":"object","example":{"documentId":"507f1f77bcf86cd799439011","documentType":"R"}},"client":{"type":"string","example":"507f1f77bcf86cd799439015"},"user":{"type":"string","example":"507f1f77bcf86cd799439016"},"createdAt":{"type":"string","format":"date-time","example":"2024-01-15T10:30:00.000Z"},"updatedAt":{"type":"string","format":"date-time","example":"2024-01-15T10:30:00.000Z"}}}}}},"400":{"description":"Bad request - missing event or payload."},"401":{"description":"Unauthorized - authentication is missing or invalid."}},"tags":["feeds"]}},"/v3/feeds":{"get":{"operationId":"FeedsController_findAll","summary":"Get all pending feeds","description":"Retrieves all pending feed entries for the authenticated client.\n    \n## Overview\nReturns a list of unacknowledged feed entries that the client should process. \nFeeds are typically polled periodically by clients to receive real-time updates.\n\n## Polling Strategy\nClients should:\n1. Poll this endpoint at regular intervals (e.g., every 5-10 seconds)\n2. Process received feeds (display notifications, update UI, etc.)\n3. Acknowledge processed feeds using `POST /feeds/ack`\n\n## Pagination\n- Default limit is 100 entries per request\n- Use `skip` and `limit` for pagination if needed\n\n## Best Practices\n- Keep polling intervals reasonable to avoid server load\n- Always acknowledge processed feeds to prevent re-delivery\n- Handle network errors gracefully with retry logic","parameters":[{"name":"limit","required":false,"in":"query","description":"Maximum number of feeds to return (default: 100)","example":100,"schema":{"minimum":1,"default":1000,"type":"number"}},{"name":"skip","required":false,"in":"query","description":"Number of feeds to skip for pagination","example":0,"schema":{"type":"number"}}],"responses":{"200":{"description":"List of pending feed entries","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"_id":{"type":"string","example":"507f1f77bcf86cd799439014","description":"Feed entry ID (use this for acknowledgment)"},"type":{"type":"string","example":"document.created","description":"Event type"},"ref":{"type":"string","example":"507f1f77bcf86cd799439011","description":"Optional reference ID"},"payload":{"type":"object","description":"Event-specific data","example":{"documentId":"507f1f77bcf86cd799439011","documentType":"R","documentNumber":"R-2024-00001"}},"client":{"type":"string","example":"507f1f77bcf86cd799439015"},"user":{"type":"string","example":"507f1f77bcf86cd799439016"},"createdAt":{"type":"string","format":"date-time","example":"2024-01-15T10:30:00.000Z"},"updatedAt":{"type":"string","format":"date-time","example":"2024-01-15T10:30:00.000Z"}}},"example":[{"_id":"507f1f77bcf86cd799439014","type":"document.created","payload":{"documentId":"507f1f77bcf86cd799439011","documentNumber":"R-2024-00001"},"createdAt":"2024-01-15T10:30:00.000Z"},{"_id":"507f1f77bcf86cd799439017","type":"order.new","payload":{"orderId":"507f1f77bcf86cd799439012","table":"Tisch 5"},"createdAt":"2024-01-15T10:31:00.000Z"}]}}}},"401":{"description":"Unauthorized - authentication is missing or invalid."}},"tags":["feeds"]}},"/v3/feeds/ack":{"post":{"operationId":"FeedsController_acknowledge","summary":"Acknowledge and delete processed feeds","description":"Acknowledges feed entries that have been processed by the client, removing them from the queue.\n    \n## Overview\nAfter a client has processed feed entries (e.g., displayed notifications, updated local data), \nit should acknowledge them to prevent re-delivery on subsequent polls.\n\n## Process Flow\n1. Client polls `GET /feeds` to receive pending feeds\n2. Client processes each feed (updates UI, triggers actions, etc.)\n3. Client calls `POST /feeds/ack` with the IDs of processed feeds\n4. Server deletes acknowledged feeds from the queue\n\n## Important Notes\n- Only send feed IDs that have been fully processed\n- Feeds not acknowledged will be returned again on the next poll\n- Acknowledgment is idempotent - acknowledging already-deleted feeds is safe","parameters":[],"requestBody":{"required":true,"description":"List of feed IDs to acknowledge","content":{"application/json":{"schema":{"type":"object","required":["feeds"],"properties":{"feeds":{"type":"array","description":"Array of feed objects with _id to acknowledge","items":{"type":"object","properties":{"_id":{"type":"string","description":"Feed entry ID to acknowledge"}}}}}},"examples":{"singleFeed":{"summary":"Acknowledge single feed","value":{"feeds":[{"_id":"507f1f77bcf86cd799439014"}]}},"multipleFeeds":{"summary":"Acknowledge multiple feeds","value":{"feeds":[{"_id":"507f1f77bcf86cd799439014"},{"_id":"507f1f77bcf86cd799439017"},{"_id":"507f1f77bcf86cd799439018"}]}}}}}},"responses":{"200":{"description":"Feeds acknowledged and deleted successfully","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","example":"3 deleted","description":"Number of feeds that were deleted"}}}}}},"201":{"description":""},"400":{"description":"Bad request - invalid feed data."},"401":{"description":"Unauthorized - authentication is missing or invalid."}},"tags":["feeds"]}},"/v3/identitycodes":{"post":{"operationId":"IdentitycodesController_create","summary":"Create a new identity code","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateIdentitycodeDto"}}}},"responses":{"201":{"description":"The identity code has been successfully created.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IdentitycodeResponseDto"}}}},"400":{"description":"Bad request, identity code with the same code already exists."}},"tags":["identitycodes"]}},"/v3/identitycodes/identity":{"get":{"operationId":"IdentitycodesController_findByIdentity","summary":"Find identity codes by identity ID","parameters":[{"name":"identity","required":true,"in":"query","description":"The MongoDB ObjectId of the identity to search for","example":"60d21b4667d0d8992e610c85","schema":{"type":"string"}}],"responses":{"200":{"description":"Returns an array of identity codes associated with the specified identity.","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/IdentitycodeResponseDto"}}}}},"400":{"description":"Bad request, invalid identity ID format."}},"tags":["identitycodes"]}},"/v3/identitycodes/code":{"get":{"operationId":"IdentitycodesController_findByCode","summary":"Find identity code by code value","parameters":[{"name":"code","required":true,"in":"query","description":"The unique code to search for","example":"ABC123","schema":{"type":"string"}}],"responses":{"200":{"description":"Returns the identity code with the specified code value.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IdentitycodeResponseDto"}}}},"404":{"description":"Identity code not found."}},"tags":["identitycodes"]}},"/v3/identitycodes/{id}":{"delete":{"operationId":"IdentitycodesController_remove","summary":"Delete an identity code","parameters":[{"name":"id","required":true,"in":"path","description":"Identity code ID","schema":{"type":"string"}}],"responses":{"200":{"description":"The identity code has been successfully deleted."},"404":{"description":"Identity code not found."}},"tags":["identitycodes"]}},"/v3/itemtrackers":{"post":{"operationId":"ItemtrackersController_create","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateItemtrackerDto"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Itemtracker"}}}}},"tags":["itemtrackers"]},"get":{"operationId":"ItemtrackersController_findAll","parameters":[{"name":"limit","required":false,"in":"query","schema":{"minimum":1,"default":1000,"type":"number"}},{"name":"skip","required":false,"in":"query","schema":{"type":"number"}},{"name":"_id","required":false,"in":"query","schema":{"type":"string"}},{"required":false,"name":"type","in":"query","schema":{"type":"string"}},{"name":"document","required":false,"in":"query","schema":{"$ref":"#/components/schemas/ObjectId"}},{"required":false,"name":"createdAt","in":"query","schema":{"format":"date-time","type":"string"}},{"required":false,"name":"updatedAt","in":"query","schema":{"format":"date-time","type":"string"}},{"required":false,"name":"amount","in":"query","schema":{"type":"number"}},{"name":"user","required":false,"in":"query","schema":{"$ref":"#/components/schemas/ObjectId"}},{"name":"createdAt","required":false,"in":"query","schema":{"format":"date-time","type":"string"}},{"name":"updatedAt","required":false,"in":"query","schema":{"format":"date-time","type":"string"}}],"responses":{"200":{"description":"Array of Itemtrackers by filters","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemtrackerDto"}}}}},"tags":["itemtrackers"]}},"/v3/itemtrackers/{id}":{"get":{"operationId":"ItemtrackersController_findOne","parameters":[],"responses":{"200":{"description":"Single Itemtracker","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemtrackerDto"}}}}},"tags":["itemtrackers"]},"patch":{"operationId":"ItemtrackersController_update","parameters":[],"requestBody":{"required":false,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateItemtrackerDto"}}}},"responses":{"200":{"description":"Update single Itemtracker","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemtrackerDto"}}}}},"tags":["itemtrackers"]},"delete":{"operationId":"ItemtrackersController_remove","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Itemtracker"}}}}},"tags":["itemtrackers"]}},"/v3/itemtrackers/{id}/detail":{"get":{"operationId":"ItemtrackersController_findDetail","parameters":[{"name":"limit","required":false,"in":"query","schema":{"minimum":1,"default":1000,"type":"number"}},{"name":"skip","required":false,"in":"query","schema":{"type":"number"}},{"name":"_id","required":false,"in":"query","schema":{"type":"string"}},{"required":false,"name":"type","in":"query","schema":{"type":"string"}},{"name":"document","required":false,"in":"query","schema":{"$ref":"#/components/schemas/ObjectId"}},{"required":false,"name":"createdAt","in":"query","schema":{"format":"date-time","type":"string"}},{"required":false,"name":"updatedAt","in":"query","schema":{"format":"date-time","type":"string"}},{"required":false,"name":"amount","in":"query","schema":{"type":"number"}},{"name":"user","required":false,"in":"query","schema":{"$ref":"#/components/schemas/ObjectId"}},{"name":"createdAt","required":false,"in":"query","schema":{"format":"date-time","type":"string"}},{"name":"updatedAt","required":false,"in":"query","schema":{"format":"date-time","type":"string"}}],"responses":{"200":{"description":"Populated Itemtracker","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ItemtrackerDto"}}}}}},"tags":["itemtrackers"]}},"/v3/kontolinos":{"post":{"operationId":"KontolinosController_create","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateKontolinoDto"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Kontolino"}}}}},"tags":["kontolinos"]},"get":{"operationId":"KontolinosController_findAll","parameters":[{"name":"limit","required":false,"in":"query","schema":{"minimum":1,"default":1000,"type":"number"}},{"name":"skip","required":false,"in":"query","schema":{"type":"number"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Kontolino"}}}}}},"tags":["kontolinos"]}},"/v3/kontolinos/{id}":{"get":{"operationId":"KontolinosController_findOne","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Kontolino"}}}}},"tags":["kontolinos"]},"patch":{"operationId":"KontolinosController_update","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateKontolinoDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}}},"tags":["kontolinos"]},"delete":{"operationId":"KontolinosController_remove","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}}},"tags":["kontolinos"]}},"/v3/kontolinos/submit-posjournal":{"post":{"operationId":"KontolinosController_submitPosjournal","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubmitPosjournalDto"}}}},"responses":{"201":{"description":""}},"tags":["kontolinos"]}},"/v3/labels":{"post":{"operationId":"LabelsController_create","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateLabelDto"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Label"}}}}},"tags":["labels"]},"get":{"operationId":"LabelsController_findAll","parameters":[{"name":"limit","required":false,"in":"query","schema":{"minimum":1,"default":1000,"type":"number"}},{"name":"skip","required":false,"in":"query","schema":{"type":"number"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Label"}}}}}},"tags":["labels"]}},"/v3/labels/{id}":{"get":{"operationId":"LabelsController_findOne","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Label"}}}}},"tags":["labels"]},"patch":{"operationId":"LabelsController_update","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateLabelDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}}},"tags":["labels"]},"delete":{"operationId":"LabelsController_remove","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}}},"tags":["labels"]}},"/v3/labels/{id}/duplicate":{"post":{"operationId":"LabelsController_duplicate","parameters":[],"responses":{"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Label"}}}}},"tags":["labels"]}},"/v3/labels/{id}/pdf":{"post":{"operationId":"LabelsController_pdf","parameters":[],"responses":{"201":{"description":""}},"tags":["labels"]}},"/v3/orders":{"post":{"operationId":"OrdersController_create","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateOrderDto"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Order"}}}}},"tags":["orders"]},"get":{"operationId":"OrdersController_findAll","parameters":[{"name":"limit","required":false,"in":"query","schema":{"minimum":1,"default":1000,"type":"number"}},{"name":"skip","required":false,"in":"query","schema":{"type":"number"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Order"}}}}}},"tags":["orders"]}},"/v3/orders/{id}":{"get":{"operationId":"OrdersController_findOne","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Order"}}}}},"tags":["orders"]},"patch":{"operationId":"OrdersController_update","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateOrderDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}}},"tags":["orders"]},"delete":{"operationId":"OrdersController_remove","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}}},"tags":["orders"]}},"/v3/printers":{"post":{"operationId":"PrintersController_create","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreatePrinterDto"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Printer"}}}}},"tags":["printers"]},"get":{"operationId":"PrintersController_findAll","parameters":[{"name":"limit","required":false,"in":"query","schema":{"minimum":1,"default":1000,"type":"number"}},{"name":"skip","required":false,"in":"query","schema":{"type":"number"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Printer"}}}}}},"tags":["printers"]}},"/v3/printers/{id}/state":{"post":{"operationId":"PrintersController_postState","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StateCupsDto"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Printer"}}}}},"tags":["printers"]}},"/v3/printers/pdfPrinterForApp":{"post":{"operationId":"PrintersController_postAppPrinter","parameters":[],"responses":{"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Printer"}}}}},"tags":["printers"]}},"/v3/printers/{id}":{"get":{"operationId":"PrintersController_findOne","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Printer"}}}}},"tags":["printers"]},"patch":{"operationId":"PrintersController_update","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdatePrinterDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}}},"tags":["printers"]},"delete":{"operationId":"PrintersController_remove","parameters":[{"name":"force","required":true,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}}},"tags":["printers"]}},"/v3/printers/{id}/byAppId":{"delete":{"operationId":"PrintersController_removeByAppId","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}}},"tags":["printers"]}},"/v3/printers/{id}/print":{"post":{"operationId":"PrintersController_executePrintJob","summary":"Execute a print job","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PrintJobDto"}}}},"responses":{"200":{"description":"Print job executed successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PrintJobResponseDto"}}}},"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PrintJobResponseDto"}}}}},"tags":["printers"]}},"/v3/printers/{id}/open-cash-drawer":{"post":{"operationId":"PrintersController_openCashDrawer","summary":"Open cash drawer on specified printer","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CashDrawerDto"}}}},"responses":{"200":{"description":"Cash drawer opened successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PrintJobResponseDto"}}}},"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PrintJobResponseDto"}}}}},"tags":["printers"]}},"/v3/printers/supported-types":{"get":{"operationId":"PrintersController_getSupportedPrinterTypes","summary":"Get all supported printer types","parameters":[],"responses":{"200":{"description":"List of supported printer types"}},"tags":["printers"]}},"/v3/postransfers":{"post":{"operationId":"PostransfersController_create","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreatePostransferDto"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Postransfer"}}}}},"tags":["postransfers"]},"get":{"operationId":"PostransfersController_findAll","parameters":[{"name":"limit","required":false,"in":"query","schema":{"minimum":1,"default":1000,"type":"number"}},{"name":"skip","required":false,"in":"query","schema":{"type":"number"}},{"name":"name","required":false,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Postransfer"}}}}}},"tags":["postransfers"]}},"/v3/postransfers/{id}/duplicate":{"post":{"operationId":"PostransfersController_duplicate","parameters":[],"responses":{"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Postransfer"}}}}},"tags":["postransfers"]}},"/v3/postransfers/{id}":{"get":{"operationId":"PostransfersController_findOne","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Postransfer"}}}}},"tags":["postransfers"]},"patch":{"operationId":"PostransfersController_update","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdatePostransferDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}}},"tags":["postransfers"]},"delete":{"operationId":"PostransfersController_remove","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}}},"tags":["postransfers"]}},"/v3/tasklists":{"post":{"operationId":"TasklistsController_create","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateTasklistDto"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Tasklist"}}}}},"tags":["tasklists"]},"get":{"operationId":"TasklistsController_findAll","parameters":[{"name":"limit","required":false,"in":"query","schema":{"minimum":1,"default":1000,"type":"number"}},{"name":"skip","required":false,"in":"query","schema":{"type":"number"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Tasklist"}}}}}},"tags":["tasklists"]}},"/v3/tasklists/{id}":{"get":{"operationId":"TasklistsController_findOne","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Tasklist"}}}}},"tags":["tasklists"]},"patch":{"operationId":"TasklistsController_update","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateTasklistDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}}},"tags":["tasklists"]},"delete":{"operationId":"TasklistsController_remove","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}}},"tags":["tasklists"]}},"/v3/tasks":{"post":{"operationId":"TasksController_create","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateTaskDto"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Task"}}}}},"tags":["tasks"]},"get":{"operationId":"TasksController_findAll","parameters":[{"name":"limit","required":false,"in":"query","schema":{"minimum":1,"default":1000,"type":"number"}},{"name":"skip","required":false,"in":"query","schema":{"type":"number"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Task"}}}}}},"tags":["tasks"]}},"/v3/tasks/{id}":{"get":{"operationId":"TasksController_findOne","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Task"}}}}},"tags":["tasks"]},"patch":{"operationId":"TasksController_update","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateTaskDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}}},"tags":["tasks"]},"delete":{"operationId":"TasksController_remove","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}}},"tags":["tasks"]}},"/v3/scanners":{"post":{"operationId":"ScannersController_create","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateScannerDto"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Scanner"}}}}},"tags":["scanners"]},"get":{"operationId":"ScannersController_findAll","parameters":[{"name":"limit","required":false,"in":"query","schema":{"minimum":1,"default":1000,"type":"number"}},{"name":"skip","required":false,"in":"query","schema":{"type":"number"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Scanner"}}}}}},"tags":["scanners"]}},"/v3/scanners/{id}":{"get":{"operationId":"ScannersController_findOne","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Scanner"}}}}},"tags":["scanners"]},"patch":{"operationId":"ScannersController_update","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateScannerDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}}},"tags":["scanners"]},"delete":{"operationId":"ScannersController_remove","parameters":[{"name":"force","required":true,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}}},"tags":["scanners"]}},"/v3/scanners/{id}/send-data":{"post":{"operationId":"ScannersController_sendData","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SendScanDataDto"}}}},"responses":{"201":{"description":""}},"tags":["scanners"]}},"/v3/templates":{"post":{"operationId":"TemplatesController_create","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateTemplateDto"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Template"}}}}},"tags":["templates"]},"get":{"operationId":"TemplatesController_findAll","parameters":[{"name":"limit","required":false,"in":"query","schema":{"minimum":1,"default":1000,"type":"number"}},{"name":"skip","required":false,"in":"query","schema":{"type":"number"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Template"}}}}}},"tags":["templates"]}},"/v3/templates/byAppId":{"post":{"operationId":"TemplatesController_createByApp","parameters":[],"responses":{"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Template"}}}}},"tags":["templates"]},"delete":{"operationId":"TemplatesController_removeByApp","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ObjectId"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}}},"tags":["templates"]}},"/v3/templates/{id}":{"get":{"operationId":"TemplatesController_findOne","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Template"}}}}},"tags":["templates"]},"patch":{"operationId":"TemplatesController_update","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateTemplateDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}}},"tags":["templates"]},"delete":{"operationId":"TemplatesController_remove","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}}},"tags":["templates"]}},"/v3/reports":{"post":{"operationId":"ReportsController_create","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateReportDto"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Report"}}}}},"tags":["reports"]},"get":{"operationId":"ReportsController_findAll","parameters":[{"name":"limit","required":false,"in":"query","schema":{"minimum":1,"default":1000,"type":"number"}},{"name":"skip","required":false,"in":"query","schema":{"type":"number"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Report"}}}}}},"tags":["reports"]}},"/v3/reports/{id}":{"get":{"operationId":"ReportsController_findOne","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Report"}}}}},"tags":["reports"]},"patch":{"operationId":"ReportsController_update","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateReportDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}}},"tags":["reports"]},"delete":{"operationId":"ReportsController_remove","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}}},"tags":["reports"]}},"/v3/boilerplates":{"post":{"operationId":"BoilerplatesController_create","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateBoilerplateDto"}}}},"responses":{"200":{"description":"Create Boilerplate","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BoilerplateDto"}}}},"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Boilerplate"}}}}},"tags":["boilerplates"]},"get":{"operationId":"BoilerplatesController_findAll","parameters":[{"name":"limit","required":false,"in":"query","schema":{"minimum":1,"default":1000,"type":"number"}},{"name":"skip","required":false,"in":"query","schema":{"type":"number"}},{"name":"name","required":false,"in":"query","schema":{"type":"string"}},{"name":"section","required":false,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"Array of Boilerplates by filters","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/BoilerplateDto"}}}}}},"tags":["boilerplates"]}},"/v3/boilerplates/{id}/duplicate":{"post":{"operationId":"BoilerplatesController_duplicate","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DupliciateBoilerplateDto"}}}},"responses":{"200":{"description":"Duplicate boilerplate by Id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BoilerplateDto"}}}},"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Boilerplate"}}}}},"tags":["boilerplates"]}},"/v3/boilerplates/{id}":{"get":{"operationId":"BoilerplatesController_findOne","parameters":[],"responses":{"200":{"description":"Find Boilerplate by Id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BoilerplateDto"}}}}},"tags":["boilerplates"]},"patch":{"operationId":"BoilerplatesController_update","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateBoilerplateDto"}}}},"responses":{"200":{"description":"Patch boilerplate","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BoilerplateDto"}}}}},"tags":["boilerplates"]},"delete":{"operationId":"BoilerplatesController_remove","parameters":[],"responses":{"200":{"description":"Delete boilerplate by Id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BoilerplateDto"}}}}},"tags":["boilerplates"]}},"/v3/boilerplates/{id}/archive":{"post":{"operationId":"BoilerplatesController_archive","parameters":[],"responses":{"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Boilerplate"}}}}},"tags":["boilerplates"]}},"/v3/roles":{"post":{"operationId":"RolesController_create","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateRoleDto"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Role"}}}}},"tags":["roles"]},"get":{"operationId":"RolesController_findAll","parameters":[{"name":"limit","required":false,"in":"query","schema":{"minimum":1,"default":1000,"type":"number"}},{"name":"skip","required":false,"in":"query","schema":{"type":"number"}},{"name":"name","required":false,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Role"}}}}}},"tags":["roles"]}},"/v3/roles/{id}":{"get":{"operationId":"RolesController_findOne","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Role"}}}}},"tags":["roles"]},"patch":{"operationId":"RolesController_update","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateRoleDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}}},"tags":["roles"]},"delete":{"operationId":"RolesController_remove","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}}},"tags":["roles"]}},"/v3/taxaccounts":{"post":{"operationId":"TaxaccountsController_create","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateTaxaccountDto"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Taxaccount"}}}}},"tags":["taxaccounts"]},"get":{"operationId":"TaxaccountsController_findAll","parameters":[{"name":"limit","required":false,"in":"query","schema":{"minimum":1,"default":1000,"type":"number"}},{"name":"skip","required":false,"in":"query","schema":{"type":"number"}},{"name":"name","required":false,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Taxaccount"}}}}}},"tags":["taxaccounts"]}},"/v3/taxaccounts/{id}":{"get":{"operationId":"TaxaccountsController_findOne","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Taxaccount"}}}}},"tags":["taxaccounts"]},"put":{"operationId":"TaxaccountsController_update","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateTaxaccountDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}}},"tags":["taxaccounts"]},"delete":{"operationId":"TaxaccountsController_remove","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}}},"tags":["taxaccounts"]}},"/v3/taxkeys":{"post":{"operationId":"TaxkeysController_create","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateTaxkeyDto"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Taxkey"}}}}},"tags":["taxkeys"]},"get":{"operationId":"TaxkeysController_findAll","parameters":[{"name":"limit","required":false,"in":"query","schema":{"minimum":1,"default":1000,"type":"number"}},{"name":"skip","required":false,"in":"query","schema":{"type":"number"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Taxkey"}}}}}},"tags":["taxkeys"]}},"/v3/taxkeys/{id}":{"get":{"operationId":"TaxkeysController_findOne","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Taxkey"}}}}},"tags":["taxkeys"]},"patch":{"operationId":"TaxkeysController_update","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateTaxkeyDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}}},"tags":["taxkeys"]},"delete":{"operationId":"TaxkeysController_remove","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}}},"tags":["taxkeys"]}},"/v3/countries":{"post":{"operationId":"CountriesController_create","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateCountryDto"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Country"}}}}},"tags":["countries"]},"get":{"operationId":"CountriesController_findAll","parameters":[{"name":"limit","required":false,"in":"query","schema":{"minimum":1,"default":1000,"type":"number"}},{"name":"skip","required":false,"in":"query","schema":{"type":"number"}},{"name":"name","required":true,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Country"}}}}}},"tags":["countries"]}},"/v3/countries/{id}":{"get":{"operationId":"CountriesController_findOne","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Country"}}}}},"tags":["countries"]},"patch":{"operationId":"CountriesController_update","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateCountryDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}}},"tags":["countries"]},"delete":{"operationId":"CountriesController_remove","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}}},"tags":["countries"]}},"/v3/countries/{id}/archive":{"post":{"operationId":"CountriesController_archive","parameters":[],"responses":{"201":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}}},"tags":["countries"]}},"/v3/countries/{id}/duplicate":{"post":{"operationId":"CountriesController_duplicate","parameters":[],"responses":{"201":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}}},"tags":["countries"]}},"/v3/absences":{"post":{"operationId":"AbsencesController_create","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateAbsenceDto"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}}},"tags":["absences"]},"get":{"operationId":"AbsencesController_findAll","parameters":[{"name":"limit","required":false,"in":"query","schema":{"minimum":1,"default":1000,"type":"number"}},{"name":"skip","required":false,"in":"query","schema":{"type":"number"}},{"name":"start_gt","required":false,"in":"query","schema":{"format":"date-time","type":"string"}},{"name":"approvalStatus","required":false,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Absence"}}}}}},"tags":["absences"]}},"/v3/absences/branch-requests":{"get":{"operationId":"AbsencesController_findBranchRequests","parameters":[{"name":"approvalStatus","required":false,"in":"query","schema":{"type":"string"}},{"name":"type","required":false,"in":"query","schema":{"type":"string"}},{"name":"search","required":false,"in":"query","schema":{"type":"string"}},{"name":"limit","required":false,"in":"query","schema":{"default":10,"type":"number"}},{"name":"skip","required":false,"in":"query","schema":{"default":0,"type":"number"}}],"responses":{"200":{"description":""}},"tags":["absences"]}},"/v3/absences/{id}/archive":{"post":{"operationId":"AbsencesController_archive","parameters":[],"responses":{"201":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}}},"tags":["absences"]}},"/v3/absences/{id}/approve":{"post":{"operationId":"AbsencesController_approve","parameters":[],"responses":{"201":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}}},"tags":["absences"]}},"/v3/absences/{id}/reject":{"post":{"operationId":"AbsencesController_reject","parameters":[],"responses":{"201":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}}},"tags":["absences"]}},"/v3/absences/{id}/duplicate":{"post":{"operationId":"AbsencesController_duplicate","parameters":[],"responses":{"201":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}}},"tags":["absences"]}},"/v3/absences/{id}":{"get":{"operationId":"AbsencesController_findOne","parameters":[{"name":"limit","required":false,"in":"query","schema":{"minimum":1,"default":1000,"type":"number"}},{"name":"skip","required":false,"in":"query","schema":{"type":"number"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Absence"}}}}},"tags":["absences"]},"patch":{"operationId":"AbsencesController_update","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateAbsenceDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}}},"tags":["absences"]},"delete":{"operationId":"AbsencesController_remove","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}}},"tags":["absences"]}},"/v3/absencetypes":{"post":{"operationId":"AbsencetypesController_create","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateAbsencetypeDto"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Absencetype"}}}}},"tags":["absencetypes"]},"get":{"operationId":"AbsencetypesController_findAll","parameters":[{"name":"limit","required":false,"in":"query","schema":{"minimum":1,"default":1000,"type":"number"}},{"name":"skip","required":false,"in":"query","schema":{"type":"number"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Absencetype"}}}}}},"tags":["absencetypes"]}},"/v3/absencetypes/{id}":{"get":{"operationId":"AbsencetypesController_findOne","parameters":[{"name":"limit","required":false,"in":"query","schema":{"minimum":1,"default":1000,"type":"number"}},{"name":"skip","required":false,"in":"query","schema":{"type":"number"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Absencetype"}}}}},"tags":["absencetypes"]},"patch":{"operationId":"AbsencetypesController_update","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateAbsencetypeDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}}},"tags":["absencetypes"]},"delete":{"operationId":"AbsencetypesController_remove","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}}},"tags":["absencetypes"]}},"/v3/businesspartnergroups":{"post":{"operationId":"BusinesspartnergroupsController_create","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateBusinesspartnergroupDto"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Businesspartnergroup"}}}}},"tags":["businesspartnergroups"]},"get":{"operationId":"BusinesspartnergroupsController_findAll","parameters":[{"name":"limit","required":false,"in":"query","schema":{"minimum":1,"default":1000,"type":"number"}},{"name":"skip","required":false,"in":"query","schema":{"type":"number"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Businesspartnergroup"}}}}}},"tags":["businesspartnergroups"]}},"/v3/businesspartnergroups/{id}":{"get":{"operationId":"BusinesspartnergroupsController_findOne","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Businesspartnergroup"}}}}},"tags":["businesspartnergroups"]},"patch":{"operationId":"BusinesspartnergroupsController_update","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateBusinesspartnergroupDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}}},"tags":["businesspartnergroups"]},"delete":{"operationId":"BusinesspartnergroupsController_remove","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}}},"tags":["businesspartnergroups"]}},"/v3/carriers":{"post":{"operationId":"CarriersController_create","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateCarrierDto"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Carrier"}}}}},"tags":["carriers"]},"get":{"operationId":"CarriersController_findAll","parameters":[{"name":"limit","required":false,"in":"query","schema":{"minimum":1,"default":1000,"type":"number"}},{"name":"skip","required":false,"in":"query","schema":{"type":"number"}},{"name":"name","required":false,"in":"query","schema":{"type":"string"}},{"name":"type","required":false,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Carrier"}}}}}},"tags":["carriers"]}},"/v3/carriers/{id}":{"get":{"operationId":"CarriersController_findOne","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Carrier"}}}}},"tags":["carriers"]},"patch":{"operationId":"CarriersController_update","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateCarrierDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}}},"tags":["carriers"]},"delete":{"operationId":"CarriersController_remove","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}}},"tags":["carriers"]}},"/v3/files":{"post":{"operationId":"FilesController_create","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateFileDto"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/File"}}}}},"tags":["files"]},"get":{"operationId":"FilesController_findAll","parameters":[{"name":"limit","required":false,"in":"query","schema":{"minimum":1,"default":1000,"type":"number"}},{"name":"skip","required":false,"in":"query","schema":{"type":"number"}},{"name":"name","required":true,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/File"}}}}}},"tags":["files"]}},"/v3/files/{id}":{"get":{"operationId":"FilesController_findOne","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/File"}}}}},"tags":["files"]},"patch":{"operationId":"FilesController_update","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateFileDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}}},"tags":["files"]},"delete":{"operationId":"FilesController_remove","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}}},"tags":["files"]}},"/v3/files/{id}/archive":{"post":{"operationId":"FilesController_archive","parameters":[],"responses":{"201":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}}},"tags":["files"]}},"/v3/files/{id}/duplicate":{"post":{"operationId":"FilesController_duplicate","parameters":[],"responses":{"201":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}}},"tags":["files"]}},"/v3/financialaccountingrecords":{"post":{"operationId":"FinancialaccountingrecordsController_create","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateFinancialaccountingrecordDto"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Financialaccountingrecord"}}}}},"tags":["financialaccountingrecords"]},"get":{"operationId":"FinancialaccountingrecordsController_findAll","parameters":[{"name":"limit","required":false,"in":"query","schema":{"minimum":1,"default":1000,"type":"number"}},{"name":"skip","required":false,"in":"query","schema":{"type":"number"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Financialaccountingrecord"}}}}}},"tags":["financialaccountingrecords"]}},"/v3/financialaccountingrecords/{id}":{"get":{"operationId":"FinancialaccountingrecordsController_findOne","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Financialaccountingrecord"}}}}},"tags":["financialaccountingrecords"]}},"/v3/inventories":{"post":{"operationId":"InventoriesController_create","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateInventoryDto"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Inventory"}}}}},"tags":["inventories"]},"get":{"operationId":"InventoriesController_findAll","parameters":[{"name":"limit","required":false,"in":"query","schema":{"minimum":1,"default":1000,"type":"number"}},{"name":"skip","required":false,"in":"query","schema":{"type":"number"}},{"name":"name","required":false,"in":"query","schema":{"type":"string"}},{"name":"open","required":false,"in":"query","schema":{"default":false,"type":"boolean"}},{"name":"locked","required":false,"in":"query","schema":{"default":false,"type":"boolean"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Inventory"}}}}}},"tags":["inventories"]}},"/v3/inventories/{id}":{"get":{"operationId":"InventoriesController_findOne","parameters":[],"responses":{"200":{"description":""}},"tags":["inventories"]},"patch":{"operationId":"InventoriesController_update","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateInventoryDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}}},"tags":["inventories"]},"delete":{"operationId":"InventoriesController_remove","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}}},"tags":["inventories"]}},"/v3/inventories/{id}/simple":{"get":{"operationId":"InventoriesController_findOneSimple","parameters":[{"name":"name","required":false,"in":"query","schema":{"type":"string"}},{"name":"open","required":false,"in":"query","schema":{"default":false,"type":"boolean"}},{"name":"locked","required":false,"in":"query","schema":{"default":false,"type":"boolean"}},{"name":"limit","required":false,"in":"query","schema":{"minimum":1,"default":1000,"type":"number"}},{"name":"skip","required":false,"in":"query","schema":{"type":"number"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"type":"object"}}}}}},"tags":["inventories"]}},"/v3/inventories/simple":{"get":{"operationId":"InventoriesController_findSimple","parameters":[{"name":"name","required":false,"in":"query","schema":{"type":"string"}},{"name":"open","required":false,"in":"query","schema":{"default":false,"type":"boolean"}},{"name":"locked","required":false,"in":"query","schema":{"default":false,"type":"boolean"}},{"name":"limit","required":false,"in":"query","schema":{"minimum":1,"default":1000,"type":"number"}},{"name":"skip","required":false,"in":"query","schema":{"type":"number"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"type":"object"}}}}}},"tags":["inventories"]}},"/v3/inventories/{id}/duplicate":{"post":{"operationId":"InventoriesController_duplicate","parameters":[],"responses":{"201":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}}},"tags":["inventories"]}},"/v3/inventories/{id}/archive":{"post":{"operationId":"InventoriesController_archive","parameters":[],"responses":{"201":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}}},"tags":["inventories"]}},"/v3/lexoffices":{"post":{"operationId":"LexofficesController_create","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateLexofficeDto"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Lexoffice"}}}}},"tags":["lexoffices"]},"get":{"operationId":"LexofficesController_findAll","parameters":[{"name":"limit","required":false,"in":"query","schema":{"minimum":1,"default":1000,"type":"number"}},{"name":"skip","required":false,"in":"query","schema":{"type":"number"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Lexoffice"}}}}}},"tags":["lexoffices"]}},"/v3/lexoffices/{id}":{"get":{"operationId":"LexofficesController_findOne","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Lexoffice"}}}}},"tags":["lexoffices"]},"patch":{"operationId":"LexofficesController_update","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateLexofficeDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}}},"tags":["lexoffices"]},"delete":{"operationId":"LexofficesController_remove","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}}},"tags":["lexoffices"]}},"/v3/notes":{"post":{"operationId":"NotesController_create","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateNoteDto"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Note"}}}}},"tags":["notes"]},"get":{"operationId":"NotesController_findAll","parameters":[{"name":"limit","required":false,"in":"query","schema":{"minimum":1,"default":1000,"type":"number"}},{"name":"skip","required":false,"in":"query","schema":{"type":"number"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Note"}}}}}},"tags":["notes"]}},"/v3/notes/{id}":{"get":{"operationId":"NotesController_findOne","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Note"}}}}},"tags":["notes"]},"patch":{"operationId":"NotesController_update","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateNoteDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}}},"tags":["notes"]},"delete":{"operationId":"NotesController_remove","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}}},"tags":["notes"]}},"/v3/policies":{"post":{"operationId":"PoliciesController_create","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreatePolicyDto"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Policy"}}}}},"tags":["policies"]},"get":{"operationId":"PoliciesController_findAll","parameters":[{"name":"limit","required":false,"in":"query","schema":{"minimum":1,"default":1000,"type":"number"}},{"name":"skip","required":false,"in":"query","schema":{"type":"number"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Policy"}}}}}},"tags":["policies"]}},"/v3/policies/{id}":{"get":{"operationId":"PoliciesController_findOne","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Policy"}}}}},"tags":["policies"]},"patch":{"operationId":"PoliciesController_update","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdatePolicyDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}}},"tags":["policies"]},"delete":{"operationId":"PoliciesController_remove","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}}},"tags":["policies"]}},"/v3/stocktransfers":{"post":{"operationId":"StocktransfersController_create","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateStocktransferDto"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Stocktransfer"}}}}},"tags":["stocktransfers"]},"get":{"operationId":"StocktransfersController_findAll","parameters":[{"name":"limit","required":false,"in":"query","schema":{"minimum":1,"default":1000,"type":"number"}},{"name":"skip","required":false,"in":"query","schema":{"type":"number"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Stocktransfer"}}}}}},"tags":["stocktransfers"]}},"/v3/stocktransfers/{id}":{"get":{"operationId":"StocktransfersController_findOne","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Stocktransfer"}}}}},"tags":["stocktransfers"]},"patch":{"operationId":"StocktransfersController_update","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateStocktransferDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}}},"tags":["stocktransfers"]},"delete":{"operationId":"StocktransfersController_remove","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}}},"tags":["stocktransfers"]}},"/v3/storelogs":{"post":{"operationId":"StorelogsController_create","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateStorelogDto"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Storelog"}}}}},"tags":["storelogs"]},"get":{"operationId":"StorelogsController_findAll","parameters":[{"name":"limit","required":false,"in":"query","schema":{"minimum":1,"default":1000,"type":"number"}},{"name":"skip","required":false,"in":"query","schema":{"type":"number"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Storelog"}}}}}},"tags":["storelogs"]}},"/v3/storelogs/{id}":{"get":{"operationId":"StorelogsController_findOne","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Storelog"}}}}},"tags":["storelogs"]}},"/v3/tses":{"post":{"operationId":"TsesController_create","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateTseDto"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Tse"}}}}},"tags":["tses"]},"get":{"operationId":"TsesController_findAll","parameters":[{"name":"limit","required":false,"in":"query","schema":{"minimum":1,"default":1000,"type":"number"}},{"name":"skip","required":false,"in":"query","schema":{"type":"number"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Tse"}}}}}},"tags":["tses"]}},"/v3/tses/{id}":{"get":{"operationId":"TsesController_findOne","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Tse"}}}}},"tags":["tses"]},"patch":{"operationId":"TsesController_update","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateTseDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}}},"tags":["tses"]},"delete":{"operationId":"TsesController_remove","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}}},"tags":["tses"]}},"/v3/urls":{"post":{"operationId":"UrlsController_create","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateUrlDto"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Url"}}}}},"tags":["urls"]},"get":{"operationId":"UrlsController_findAll","parameters":[{"name":"limit","required":false,"in":"query","schema":{"minimum":1,"default":1000,"type":"number"}},{"name":"skip","required":false,"in":"query","schema":{"type":"number"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Url"}}}}}},"tags":["urls"]}},"/v3/urls/{id}":{"get":{"operationId":"UrlsController_findOne","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Url"}}}}},"tags":["urls"]},"patch":{"operationId":"UrlsController_update","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateUrlDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}}},"tags":["urls"]},"delete":{"operationId":"UrlsController_remove","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}}},"tags":["urls"]}}},"info":{"title":"flour","description":"## Migration Notes (v1/v2 -> v3)\n\n- Ressourcen wurden vervollständigt; die Datenstrukturen sind unverändert geblieben.\n- Bestehende Integrationen müssen lediglich die neuen/aktualisierten Endpunkte in der Dokumentation nachschlagen – Antworten sind jetzt standardisiert und weitestgehend gleich geblieben.\n- Wichtige Änderung: Authentifizierung erfolgt ab sofort über Bearer Token.\n- Die neue Basis-URL lautet: `https://flour.host/v3`\n\n\n### Authentifizierung (neu)\n\n- Sende dein Token in jedem Request als HTTP Header: `Authorization: Bearer <token>`.\n- Rate Limiting bleibt aktiv. Bei Überschreitung wird HTTP 429 zurückgegeben; relevante Header (z. B. X-RateLimit-*) können zur Kontrolle genutzt werden.\n\nBei Fragen oder für die Token-Ausstellung/Key-Administration wende dich bitte an `developer@flour.io`.","version":"3.0","contact":{}},"tags":[{"name":"absences","description":""},{"name":"absencetypes","description":""},{"name":"affiliates","description":""},{"name":"articles","description":""},{"name":"articleunits","description":""},{"name":"bins","description":""},{"name":"boilerplates","description":""},{"name":"bonus","description":""},{"name":"branches","description":""},{"name":"businesspartnergroups","description":""},{"name":"businesspartners","description":""},{"name":"carriers","description":""},{"name":"comments","description":""},{"name":"costcentres","description":""},{"name":"countries","description":""},{"name":"currencies","description":""},{"name":"customattributes","description":""},{"name":"discountrules","description":""},{"name":"displays","description":""},{"name":"document_payments","description":""},{"name":"documentgroups","description":""},{"name":"documents","description":""},{"name":"feeds","description":""},{"name":"files","description":""},{"name":"financialaccountingrecords","description":""},{"name":"groups","description":""},{"name":"identities","description":""},{"name":"identitycodes","description":""},{"name":"images","description":""},{"name":"inventories","description":""},{"name":"itemtrackers","description":""},{"name":"jobs","description":""},{"name":"kontolinos","description":""},{"name":"labels","description":""},{"name":"lexoffices","description":""},{"name":"notes","description":""},{"name":"orders","description":""},{"name":"payments","description":""},{"name":"pointofsales","description":""},{"name":"policies","description":""},{"name":"posbaskets","description":""},{"name":"posjournals","description":""},{"name":"pospayments","description":""},{"name":"postransfers","description":""},{"name":"pricelists","description":""},{"name":"printers","description":""},{"name":"reports","description":""},{"name":"roles","description":""},{"name":"reservationitems","description":""},{"name":"reservations","description":""},{"name":"scanners","description":""},{"name":"statistics","description":""},{"name":"stockitementries","description":""},{"name":"stocks","description":""},{"name":"stocktransfers","description":""},{"name":"storelogs","description":""},{"name":"tags","description":""},{"name":"tasklists","description":""},{"name":"tasks","description":""},{"name":"taxaccounts","description":""},{"name":"taxassignments","description":""},{"name":"taxkeys","description":""},{"name":"taxrevenues","description":""},{"name":"templates","description":""},{"name":"timespans","description":""},{"name":"transactions","description":""},{"name":"tses","description":""},{"name":"urls","description":""},{"name":"users","description":""},{"name":"vouchers","description":""}],"servers":[],"components":{"securitySchemes":{"bearer":{"scheme":"bearer","bearerFormat":"JWT","type":"http"}},"schemas":{"ObjectId":{"type":"object","properties":{}},"CreateAffiliateDto":{"type":"object","properties":{"_id":{"$ref":"#/components/schemas/ObjectId"},"firstName":{"type":"string"},"lastName":{"type":"string"},"company":{"type":"string"},"mail":{"type":"string"},"phone":{"type":"string"},"affiliateFirstName":{"type":"string"},"affiliateLastName":{"type":"string"},"affiliateCompany":{"type":"string"},"affiliateDebitorNumber":{"type":"string"}},"required":["firstName","lastName","company","mail","phone","affiliateFirstName","affiliateLastName"]},"Affiliate":{"type":"object","properties":{}},"Datev":{"type":"object","properties":{"debitor":{"type":"string"},"creditor":{"type":"string"}}},"Document":{"type":"object","properties":{}},"Note":{"type":"object","properties":{}},"BillingAddress":{"type":"object","properties":{"prefix":{"type":"string"},"salutation":{"type":"string"},"company1":{"type":"string"},"company2":{"type":"string"},"company3":{"type":"string"},"firstName":{"type":"string"},"lastName":{"type":"string"},"street":{"type":"string"},"streetNumber":{"type":"string"},"zipCode":{"type":"string"},"city":{"type":"string"},"country":{"type":"string"}}},"ShippingAddress":{"type":"object","properties":{"prefix":{"type":"string"},"salutation":{"type":"string"},"company1":{"type":"string"},"company2":{"type":"string"},"company3":{"type":"string"},"firstName":{"type":"string"},"lastName":{"type":"string"},"street":{"type":"string"},"streetNumber":{"type":"string"},"zipCode":{"type":"string"},"city":{"type":"string"},"country":{"type":"string"},"notes":{"type":"string"},"displayName":{"type":"string"}}},"Tax":{"type":"object","properties":{"vatId":{"type":"string"},"number":{"type":"string"},"office":{"type":"string"},"revenue":{"$ref":"#/components/schemas/ObjectId"},"revenueCreditor":{"$ref":"#/components/schemas/ObjectId"}}},"Communication":{"type":"object","properties":{"phone":{"type":"string"},"fax":{"type":"string"},"email":{"type":"string"},"documentEmail":{"type":"string"},"web":{"type":"string"},"mobile":{"type":"string"}}},"Contact":{"type":"object","properties":{"position":{"type":"string"},"department":{"type":"string"},"competence":{"type":"string"},"salutation":{"type":"string"},"firstName":{"type":"string"},"lastName":{"type":"string"},"phone":{"type":"string"},"mobile":{"type":"string"},"fax":{"type":"string"},"email":{"type":"string"},"web":{"type":"string"},"notes":{"type":"string"}}},"Stripe":{"type":"object","properties":{"source":{"type":"object"},"customer":{"type":"object"},"setup_intents":{"type":"object"}}},"Bank":{"type":"object","properties":{"name":{"type":"string"},"owner":{"type":"string"},"iban":{"type":"string"},"bic":{"type":"string"},"mandate":{"type":"string"},"mandateDate":{"format":"date-time","type":"string"},"statement_descriptor_prefix":{"type":"string"}}},"Customattribute":{"type":"object","properties":{}},"Marketplace":{"type":"object","properties":{"shopwareId":{"$ref":"#/components/schemas/ObjectId"},"shopware":{"type":"object"},"magentoId":{"$ref":"#/components/schemas/ObjectId"},"magento":{"type":"object"}}},"Topix":{"type":"object","properties":{}},"CreateBusinesspartnerDto":{"type":"object","properties":{"_id":{"$ref":"#/components/schemas/ObjectId"},"number":{"type":"string"},"tags":{"type":"array","items":{"type":"object"}},"isDebitor":{"type":"boolean"},"minimumordervalue":{"type":"number"},"isCreditor":{"type":"boolean"},"information":{"type":"string"},"discount":{"type":"number"},"discountFromValue":{"type":"number"},"debitorNumber":{"type":"string"},"datev":{"$ref":"#/components/schemas/Datev"},"documents":{"type":"array","items":{"$ref":"#/components/schemas/Document"}},"creditorNumber":{"type":"string"},"type":{"type":"string"},"group":{"$ref":"#/components/schemas/ObjectId"},"notes":{"type":"array","items":{"$ref":"#/components/schemas/Note"}},"billingAddress":{"$ref":"#/components/schemas/BillingAddress"},"shippingAddress":{"type":"array","items":{"$ref":"#/components/schemas/ShippingAddress"}},"tax":{"$ref":"#/components/schemas/Tax"},"communication":{"$ref":"#/components/schemas/Communication"},"contacts":{"type":"array","items":{"$ref":"#/components/schemas/Contact"}},"contracts":{"type":"array","items":{"$ref":"#/components/schemas/ObjectId"}},"pricelist":{"$ref":"#/components/schemas/ObjectId"},"stripe":{"$ref":"#/components/schemas/Stripe"},"bank":{"$ref":"#/components/schemas/Bank"},"payment":{"$ref":"#/components/schemas/ObjectId"},"customattribute":{"type":"array","items":{"$ref":"#/components/schemas/Customattribute"}},"marketplaces":{"type":"array","items":{"$ref":"#/components/schemas/Marketplace"}},"topix":{"$ref":"#/components/schemas/Topix"},"creditPoints":{"type":"number"},"denyCollectingCreditPoints":{"type":"boolean"},"shopware":{"type":"object"},"epages":{"type":"object"},"woocommerce":{"type":"object"},"shopify":{"type":"object"},"azoo":{"type":"object"},"etermin":{"type":"object"},"orgasoft":{"type":"object"},"metadata":{"type":"object"},"disabled":{"type":"boolean"}}},"Businesspartner":{"type":"object","properties":{}},"BusinesspartnerDefaultsDto":{"type":"object","properties":{"attribute":{"type":"string","description":"Name of the attribute that is set as default","example":"tax.revenue"},"value":{"type":"object","description":"Value of the default attribute","example":"60f1a5c5e6b3f32a8c9b3c5d"}},"required":["attribute","value"]},"SortOptionDto":{"type":"object","properties":{"field":{"type":"string","description":"Field to sort by","example":"createdAt"},"direction":{"default":"asc","enum":["asc","desc"],"type":"string","description":"Sort direction"}}},"BusinesspartnerFiltersDto":{"type":"object","properties":{"queryType":{"default":"fuzzy","enum":["fuzzy","exact"],"type":"string","description":"Type of search. \"exact\" for exact match, \"fuzzy\" for partial match"},"sort":{"description":"Sorting options","allOf":[{"$ref":"#/components/schemas/SortOptionDto"}]},"tags":{"description":"Filter by business partner tags","type":"array","items":{"type":"string"}},"attributes":{"description":"Filter by business partner attributes // not implemented yet","type":"array","items":{"type":"object"}},"ignoreStatus":{"type":"boolean","description":"Ignore status visibility filter","default":false}}},"PaginationDto":{"type":"object","properties":{"pageSize":{"type":"number","default":10,"minimum":1,"description":"Number of results per page"},"pageNumber":{"type":"number","default":1,"minimum":1,"description":"Current page number"}}},"SearchBusinesspartnerDto":{"type":"object","properties":{"query":{"type":"string","description":"Text search term"},"filters":{"description":"Filter options for business partner search","allOf":[{"$ref":"#/components/schemas/BusinesspartnerFiltersDto"}]},"pagination":{"default":{"pageSize":10,"pageNumber":1},"description":"Pagination settings","allOf":[{"$ref":"#/components/schemas/PaginationDto"}]}}},"SearchMetaDto":{"type":"object","properties":{"count":{"type":"number","description":"Total number of results","example":42},"pagination":{"description":"Pagination information","allOf":[{"$ref":"#/components/schemas/PaginationDto"}]},"filters":{"type":"object","description":"Applied filters"}},"required":["count","pagination","filters"]},"SearchResponseDto":{"type":"object","properties":{"meta":{"description":"Search metadata including count, pagination, and applied filters","allOf":[{"$ref":"#/components/schemas/SearchMetaDto"}]},"results":{"description":"Array of results matching the search criteria","type":"array","items":{"type":"array"}}},"required":["meta","results"]},"BusinesspartnerCreditDto":{"type":"object","properties":{"amount":{"type":"number"},"identity":{"type":"string"}},"required":["amount","identity"]},"ArticleSalesLimitCondition":{"type":"object","properties":{"enabled":{"type":"boolean"},"maxCount":{"type":"number"}}},"ArticleSalesLimit":{"type":"object","properties":{"month":{"$ref":"#/components/schemas/ArticleSalesLimitCondition"},"week":{"$ref":"#/components/schemas/ArticleSalesLimitCondition"},"day":{"$ref":"#/components/schemas/ArticleSalesLimitCondition"}}},"PatchDataDto":{"type":"object","properties":{"path":{"type":"string"},"value":{"type":"object"}},"required":["path","value"]},"UpdateBusinesspartnerDto":{"type":"object","properties":{"number":{"type":"string"},"tags":{"type":"array","items":{"type":"object"}},"isDebitor":{"type":"boolean"},"minimumordervalue":{"type":"number"},"isCreditor":{"type":"boolean"},"information":{"type":"string"},"discount":{"type":"number"},"creditLimit":{"type":"number"},"discountFromValue":{"type":"number"},"debitorNumber":{"type":"string"},"datev":{"$ref":"#/components/schemas/Datev"},"documents":{"type":"array","items":{"$ref":"#/components/schemas/Document"}},"creditorNumber":{"type":"string"},"type":{"type":"string"},"group":{"$ref":"#/components/schemas/ObjectId"},"notes":{"type":"array","items":{"$ref":"#/components/schemas/Note"}},"billingAddress":{"$ref":"#/components/schemas/BillingAddress"},"shippingAddress":{"type":"array","items":{"$ref":"#/components/schemas/ShippingAddress"}},"tax":{"$ref":"#/components/schemas/Tax"},"communication":{"$ref":"#/components/schemas/Communication"},"contacts":{"type":"array","items":{"$ref":"#/components/schemas/Contact"}},"contracts":{"type":"array","items":{"$ref":"#/components/schemas/ObjectId"}},"pricelist":{"$ref":"#/components/schemas/ObjectId"},"stripe":{"$ref":"#/components/schemas/Stripe"},"bank":{"$ref":"#/components/schemas/Bank"},"payment":{"$ref":"#/components/schemas/ObjectId"},"customattribute":{"type":"array","items":{"$ref":"#/components/schemas/Customattribute"}},"marketplaces":{"type":"array","items":{"$ref":"#/components/schemas/Marketplace"}},"topix":{"$ref":"#/components/schemas/Topix"},"creditPoints":{"type":"number"},"denyCollectingCreditPoints":{"type":"boolean"},"articleSalesLimit":{"$ref":"#/components/schemas/ArticleSalesLimit"},"shopware":{"type":"object"},"epages":{"type":"object"},"woocommerce":{"type":"object"},"shopify":{"type":"object"},"azoo":{"type":"object"},"etermin":{"type":"object"},"orgasoft":{"type":"object"},"metadata":{"type":"object"},"disabled":{"type":"boolean"},"useCreditorNumberAsId":{"type":"boolean","default":false},"useDebitorNumberAsId":{"type":"boolean","default":false},"data":{"type":"array","items":{"$ref":"#/components/schemas/PatchDataDto"}}}},"UpdateCustomattributeDto":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"type":{"type":"string"},"searchable":{"type":"boolean"},"model":{"type":"string"},"default":{"type":"string"},"position":{"type":"object"},"data":{"type":"array","items":{"$ref":"#/components/schemas/PatchDataDto"}}}},"Shopware":{"type":"object","properties":{"id":{"type":"number"},"parentId":{"type":"number"}}},"CreateTagDto":{"type":"object","properties":{"_id":{"$ref":"#/components/schemas/ObjectId"},"name":{"type":"string"},"section":{"type":"string"},"data":{"type":"object"},"shopware":{"$ref":"#/components/schemas/Shopware"}},"required":["name"]},"Tag":{"type":"object","properties":{}},"UpdateTagDto":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/PatchDataDto"},"name":{"type":"string"},"section":{"type":"string"},"shopware":{"$ref":"#/components/schemas/Shopware"}}},"SetGroupScalePriceDto":{"type":"object","properties":{"name":{"type":"string","description":"Name of the tag to set group scale price for","example":"Premium Customers"},"pricelist":{"type":"string","description":"Pricelist identifier","example":"60d21b4667d0d8992e610c85"},"enabled":{"type":"boolean","description":"Whether the group scale price is enabled","example":true,"default":true}},"required":["name","pricelist"]},"Discountrule":{"type":"object","properties":{}},"AmountDto":{"type":"object","properties":{"out":{"type":"number"},"back":{"type":"number"},"purchased":{"type":"number"}}},"History":{"type":"object","properties":{"type":{"type":"string"},"amount":{"type":"number"},"date":{"format":"date-time","type":"string"}}},"CreateReservationItemDto":{"type":"object","properties":{"_id":{"$ref":"#/components/schemas/ObjectId"},"businesspartner":{"$ref":"#/components/schemas/ObjectId"},"reservation":{"$ref":"#/components/schemas/ObjectId"},"article":{"$ref":"#/components/schemas/ObjectId"},"date":{"format":"date-time","type":"string"},"amount":{"$ref":"#/components/schemas/AmountDto"},"state":{"type":"string"},"totalExVat":{"type":"number"},"totalIncVat":{"type":"number"},"exVat":{"type":"number"},"incVat":{"type":"number"},"price":{"type":"number"},"discount":{"type":"string"},"number":{"type":"string"},"title":{"type":"string"},"ean":{"type":"string"},"history":{"type":"array","items":{"$ref":"#/components/schemas/History"}},"stock":{"$ref":"#/components/schemas/ObjectId"}}},"ReservationItem":{"type":"object","properties":{}},"Amount":{"type":"object","properties":{"out":{"type":"number"},"back":{"type":"number"},"purchased":{"type":"number"}},"required":["out","back","purchased"]},"UpdateReservationItemDto":{"type":"object","properties":{"_id":{"$ref":"#/components/schemas/ObjectId"},"businesspartner":{"type":"string"},"reservation":{"type":"string"},"article":{"type":"string"},"date":{"format":"date-time","type":"string"},"amount":{"$ref":"#/components/schemas/Amount"},"state":{"type":"string"},"totalExVat":{"type":"number"},"totalIncVat":{"type":"number"},"exVat":{"type":"number"},"incVat":{"type":"number"},"price":{"type":"number"},"discount":{"type":"string"},"number":{"type":"string"},"title":{"type":"string"},"history":{"$ref":"#/components/schemas/History"},"ean":{"type":"string"},"stock":{"type":"string"}},"required":["_id","businesspartner","reservation","article","date","amount","state","totalExVat","totalIncVat","exVat","incVat","price","discount","number","title","history","ean","stock"]},"Address":{"type":"object","properties":{"company1":{"type":"string"},"company2":{"type":"string"},"company3":{"type":"string"},"firstName":{"type":"string"},"lastName":{"type":"string"},"street":{"type":"string"},"streetNumber":{"type":"string"},"zipCode":{"type":"string"},"city":{"type":"string"},"country":{"type":"string"},"vatId":{"type":"string"}}},"CreateReservationDto":{"type":"object","properties":{"_id":{"$ref":"#/components/schemas/ObjectId"},"businesspartner":{"$ref":"#/components/schemas/ObjectId"},"date":{"format":"date-time","type":"string"},"dueDate":{"format":"date-time","type":"string"},"state":{"type":"string"},"number":{"type":"number"},"pointofsale":{"$ref":"#/components/schemas/ObjectId"},"stock":{"$ref":"#/components/schemas/ObjectId"},"billingAddress":{"$ref":"#/components/schemas/Address"},"debitorNumber":{"type":"string"}}},"Reservation":{"type":"object","properties":{}},"UpdateReservationDto":{"type":"object","properties":{"businesspartner":{"$ref":"#/components/schemas/ObjectId"},"date":{"format":"date-time","type":"string"},"dueDate":{"format":"date-time","type":"string"},"state":{"type":"string"},"number":{"type":"number"},"pointofsale":{"$ref":"#/components/schemas/ObjectId"},"stock":{"$ref":"#/components/schemas/ObjectId"},"billingAddress":{"$ref":"#/components/schemas/Address"},"debitorNumber":{"type":"string"}}},"Images":{"type":"object","properties":{"name":{"type":"string"},"_id":{"$ref":"#/components/schemas/ObjectId"},"file":{"$ref":"#/components/schemas/ObjectId"},"url":{"type":"string"},"small":{"type":"string"},"medium":{"type":"string"},"cloudinary":{"type":"object"},"oxid":{"type":"object"},"azoo":{"type":"object"},"shopware":{"type":"object"},"ccvshop":{"type":"object"},"magento":{"type":"object"},"epages":{"type":"object"},"woocommerce":{"type":"object"},"ladentheke":{"type":"object"},"shopify":{"type":"object"},"squarespace":{"type":"object"},"wix":{"type":"object"},"gambio":{"type":"object"},"err":{"type":"object"},"billbee":{"type":"object"},"plentymarkets":{"type":"object"},"pixi":{"type":"object"},"xentral":{"type":"object"},"main":{"type":"number"},"image":{"$ref":"#/components/schemas/ObjectId"}}},"Documents":{"type":"object","properties":{"name":{"type":"string"},"file":{"$ref":"#/components/schemas/ObjectId"}}},"Sort":{"type":"object","properties":{"number":{"type":"string"},"title":{"type":"string"}}},"Purchase":{"type":"object","properties":{"supplier":{"$ref":"#/components/schemas/ObjectId"},"supplierName":{"type":"string"},"orderNumber":{"type":"string"},"price":{"type":"number"},"amount":{"type":"number"},"discount":{"type":"number"},"quantityPerUnit":{"type":"number"}}},"Codes":{"type":"object","properties":{"id":{"type":"string"},"text":{"type":"string"}}},"Sale":{"type":"object","properties":{"price":{"type":"number"},"psydoprice":{"type":"number"},"costPrice":{"type":"number"},"grossProfit":{"type":"number"},"surcharge":{"type":"number"},"margin":{"type":"number"},"unit":{"type":"number"},"amount":{"type":"number"},"pricelist":{"type":"object"},"meta":{"type":"object"}}},"Reorder":{"type":"object","properties":{"stocks":{"type":"object"},"total":{"type":"number"}}},"Stock":{"type":"object","properties":{}},"Tradingcosts":{"type":"object","properties":{"ref":{"$ref":"#/components/schemas/ObjectId"},"value":{"type":"object"}}},"POS":{"type":"object","properties":{"taxassignment":{"$ref":"#/components/schemas/ObjectId"},"requestPriceOnSelect":{"type":"boolean"},"requestQuantityOnSelect":{"type":"boolean"},"requestUserOnSelect":{"type":"boolean"},"requestTitle2OnSelect":{"type":"boolean"},"discountable":{"type":"boolean"},"changeTitle":{"type":"boolean"},"commissionable":{"type":"boolean"},"requestTare":{"type":"boolean"}}},"Oxid":{"type":"object","properties":{"id":{"type":"string"}}},"Sage":{"type":"object","properties":{"product_id":{"type":"string"}}},"Plentymarkets":{"type":"object","properties":{"id":{"type":"string"},"variationId":{"type":"string"}}},"Pixi":{"type":"object","properties":{}},"Bundle":{"type":"object","properties":{"article":{"$ref":"#/components/schemas/ObjectId"},"amount":{"type":"number"},"price":{"type":"number"}}},"BundleSettings":{"type":"object","properties":{"mode":{"type":"string"}}},"OptiongroupRef":{"type":"object","properties":{"ref":{"$ref":"#/components/schemas/ObjectId"},"sort":{"type":"number"}}},"OptiongroupSettings":{"type":"object","properties":{"priceMode":{"type":"string"}}},"Variant":{"type":"object","properties":{"name":{"type":"string"},"key":{"type":"string"},"value":{"type":"string"}}},"VariantOption":{"type":"object","properties":{"name":{"type":"string"},"position":{"type":"number"},"values":{"type":"array","items":{"type":"string"}}}},"Scale":{"type":"object","properties":{}},"Status":{"type":"object","properties":{"visible":{"type":"boolean"}}},"ArticleTranslationDto":{"type":"object","properties":{"title":{"type":"string"},"description":{"type":"string"}}},"TranslationsDto":{"type":"object","properties":{"de-DE":{"$ref":"#/components/schemas/ArticleTranslationDto"},"en-GB":{"$ref":"#/components/schemas/ArticleTranslationDto"}}},"Allergens":{"type":"object","properties":{"gluten":{"type":"boolean"},"crustaceans":{"type":"boolean"},"eggs":{"type":"boolean"},"fish":{"type":"boolean"},"peanuts":{"type":"boolean"},"soybeans":{"type":"boolean"},"milk":{"type":"boolean"},"nuts":{"type":"boolean"},"celery":{"type":"boolean"},"mustard":{"type":"boolean"},"sesame":{"type":"boolean"},"sulphites":{"type":"boolean"},"lupins":{"type":"boolean"},"molluscs":{"type":"boolean"}}},"CreateArticleDto":{"type":"object","properties":{"tags":{"description":"Array of tag names or ObjectIds","example":["tag1","tag2","507f1f77bcf86cd799439011"],"type":"array","items":{"type":"string"}},"_id":{"$ref":"#/components/schemas/ObjectId"},"images":{"type":"array","items":{"$ref":"#/components/schemas/Images"}},"documents":{"type":"array","items":{"$ref":"#/components/schemas/Documents"}},"number":{"type":"string"},"sort":{"$ref":"#/components/schemas/Sort"},"title":{"type":"string"},"description":{"type":"string"},"manufacturer":{"type":"string"},"manufacturerNumber":{"type":"string"},"purchase":{"type":"array","items":{"$ref":"#/components/schemas/Purchase"}},"minimumorderquantity":{"type":"number"},"releasedate":{"format":"date-time","type":"string"},"presaledate":{"format":"date-time","type":"string"},"deliverytime":{"type":"number"},"discount":{"type":"string"},"ean":{"type":"string"},"codes":{"type":"array","items":{"$ref":"#/components/schemas/Codes"}},"group":{"$ref":"#/components/schemas/ObjectId"},"sale":{"type":"array","items":{"$ref":"#/components/schemas/Sale"}},"stock":{"$ref":"#/components/schemas/Stock"},"taxassignment":{"$ref":"#/components/schemas/ObjectId"},"tradingcosts":{"type":"array","items":{"$ref":"#/components/schemas/Tradingcosts"}},"pos":{"$ref":"#/components/schemas/POS"},"custom":{"type":"object"},"customattribute":{"type":"array","items":{"$ref":"#/components/schemas/Customattribute"}},"shopware":{"type":"object"},"presta":{"type":"object"},"gambio":{"type":"object"},"magento":{"type":"object"},"ccvshop":{"type":"object"},"woocommerce":{"type":"object"},"epages":{"type":"object"},"squarespace":{"type":"object"},"wix":{"type":"object"},"ladentheke":{"type":"object"},"shopify":{"type":"object"},"billbee":{"type":"object"},"connect":{"type":"object"},"xentral":{"type":"object"},"marketplaces":{"type":"object"},"oxid":{"$ref":"#/components/schemas/Oxid"},"sage":{"$ref":"#/components/schemas/Sage"},"plentymarkets":{"$ref":"#/components/schemas/Plentymarkets"},"pixi":{"$ref":"#/components/schemas/Pixi"},"topix":{"$ref":"#/components/schemas/Topix"},"bundle":{"type":"array","items":{"$ref":"#/components/schemas/Bundle"}},"bundleSettings":{"$ref":"#/components/schemas/BundleSettings"},"optiongroups":{"type":"array","items":{"$ref":"#/components/schemas/OptiongroupRef"}},"optiongroupSettings":{"$ref":"#/components/schemas/OptiongroupSettings"},"customsTariffNumber":{"type":"string"},"service":{"type":"boolean"},"articleSalesLimitRelevant":{"type":"boolean"},"metadata":{"type":"object"},"articleType":{"type":"string"},"variant":{"type":"array","items":{"$ref":"#/components/schemas/Variant"}},"variantOptions":{"type":"array","items":{"$ref":"#/components/schemas/VariantOption"}},"mainArticle":{"$ref":"#/components/schemas/ObjectId"},"searchHash":{"type":"string"},"scale":{"$ref":"#/components/schemas/Scale"},"status":{"$ref":"#/components/schemas/Status"},"translations":{"$ref":"#/components/schemas/TranslationsDto"},"allergens":{"$ref":"#/components/schemas/Allergens"}}},"ArticleDto":{"type":"object","properties":{"_id":{"type":"string","example":"507f1f77bcf86cd799439011","description":"MongoDB ObjectId"},"tags":{"type":"string","example":"507f1f77bcf86cd799439011","description":"MongoDB ObjectId"},"group":{"type":"string","example":"507f1f77bcf86cd799439011","description":"MongoDB ObjectId"},"taxassignment":{"type":"string","example":"507f1f77bcf86cd799439011","description":"MongoDB ObjectId"},"mainArticle":{"type":"string","example":"507f1f77bcf86cd799439011","description":"MongoDB ObjectId"},"user":{"type":"string","example":"507f1f77bcf86cd799439011","description":"MongoDB ObjectId"},"client":{"type":"string","example":"507f1f77bcf86cd799439011","description":"MongoDB ObjectId"},"images":{"type":"array","items":{"$ref":"#/components/schemas/Images"}},"documents":{"type":"array","items":{"$ref":"#/components/schemas/Documents"}},"number":{"type":"string"},"sort":{"$ref":"#/components/schemas/Sort"},"title":{"type":"string"},"description":{"type":"string"},"manufacturer":{"type":"string"},"manufacturerNumber":{"type":"string"},"purchase":{"type":"array","items":{"$ref":"#/components/schemas/Purchase"}},"minimumorderquantity":{"type":"number"},"releasedate":{"format":"date-time","type":"string"},"presaledate":{"format":"date-time","type":"string"},"deliverytime":{"type":"number"},"discount":{"type":"string"},"ean":{"type":"string"},"codes":{"type":"array","items":{"$ref":"#/components/schemas/Codes"}},"sale":{"type":"array","items":{"$ref":"#/components/schemas/Sale"}},"stock":{"$ref":"#/components/schemas/Stock"},"tradingcosts":{"type":"array","items":{"$ref":"#/components/schemas/Customattribute"}},"pos":{"$ref":"#/components/schemas/POS"},"custom":{"type":"object"},"customattribute":{"type":"array","items":{"$ref":"#/components/schemas/Customattribute"}},"shopware":{"type":"object"},"presta":{"type":"object"},"gambio":{"type":"object"},"magento":{"type":"object"},"ccvshop":{"type":"object"},"woocommerce":{"type":"object"},"epages":{"type":"object"},"squarespace":{"type":"object"},"wix":{"type":"object"},"ladentheke":{"type":"object"},"shopify":{"type":"object"},"billbee":{"type":"object"},"connect":{"type":"object"},"xentral":{"type":"object"},"marketplaces":{"type":"object"},"oxid":{"$ref":"#/components/schemas/Oxid"},"sage":{"$ref":"#/components/schemas/Sage"},"plentymarkets":{"$ref":"#/components/schemas/Plentymarkets"},"pixi":{"$ref":"#/components/schemas/Pixi"},"topix":{"$ref":"#/components/schemas/Topix"},"bundle":{"type":"array","items":{"$ref":"#/components/schemas/Bundle"}},"bundleSettings":{"$ref":"#/components/schemas/BundleSettings"},"customsTariffNumber":{"type":"string"},"service":{"type":"boolean"},"metadata":{"type":"object"},"articleType":{"type":"string"},"variant":{"type":"array","items":{"$ref":"#/components/schemas/Variant"}},"searchHash":{"type":"string"},"createdAt":{"format":"date-time","type":"string"},"updatedAt":{"format":"date-time","type":"string"},"status":{"$ref":"#/components/schemas/Status"},"allergens":{"$ref":"#/components/schemas/Allergens"}},"required":["_id","tags","group","taxassignment","mainArticle","user","client","images","documents","number","sort","title","description","manufacturer","manufacturerNumber","purchase","minimumorderquantity","releasedate","presaledate","deliverytime","discount","ean","codes","sale","stock","tradingcosts","pos","custom","customattribute","shopware","presta","gambio","magento","ccvshop","woocommerce","epages","squarespace","wix","ladentheke","shopify","billbee","connect","xentral","marketplaces","oxid","sage","plentymarkets","pixi","topix","bundle","bundleSettings","customsTariffNumber","service","metadata","articleType","variant","searchHash","createdAt","updatedAt","status","allergens"]},"Article":{"type":"object","properties":{}},"GetArticleStockitementryDto":{"type":"object","properties":{"from":{"format":"date-time","type":"string","description":"Only return movements created on or after this date (the time part is set to 00:00:00)","example":"2026-09-01T00:00:00.000Z"},"to":{"format":"date-time","type":"string","description":"Only return movements created before this date (the time part is set to 23:59:59)","example":"2026-09-17T00:00:00.000Z"},"stocks":{"type":"string","description":"Filter by stock: comma-separated list of stock IDs (ObjectId). Filtering only, no stock is booked here.","example":"507f1f77bcf86cd799439012,507f1f77bcf86cd799439013"},"showstock":{"type":"object","description":"Alternative stock filter as a map of stock ID to boolean; only stocks set to true are returned","example":{"507f1f77bcf86cd799439012":true}}}},"SetStockAvailabilityDto":{"type":"object","properties":{"amount":{"type":"number"},"type":{"type":"string"},"stock":{"type":"string"},"description":{"type":"string"}},"required":["amount","type","stock","description"]},"UpdateArticleDto":{"type":"object","properties":{"tags":{"description":"Array of tag names or ObjectIds","example":["tag1","tag2","507f1f77bcf86cd799439011"],"type":"array","items":{"type":"string"}},"data":{"type":"array","items":{"$ref":"#/components/schemas/PatchDataDto"}},"path":{"type":"string"},"value":{"type":"object"},"op":{"type":"string"},"patch":{"type":"object"},"images":{"type":"array","items":{"$ref":"#/components/schemas/Images"}},"documents":{"type":"array","items":{"$ref":"#/components/schemas/Documents"}},"number":{"type":"string"},"sort":{"$ref":"#/components/schemas/Sort"},"title":{"type":"string"},"description":{"type":"string"},"manufacturer":{"type":"string"},"manufacturerNumber":{"type":"string"},"purchase":{"type":"array","items":{"$ref":"#/components/schemas/Purchase"}},"minimumorderquantity":{"type":"number"},"releasedate":{"format":"date-time","type":"string"},"presaledate":{"format":"date-time","type":"string"},"deliverytime":{"type":"number"},"discount":{"type":"string"},"ean":{"type":"string"},"codes":{"type":"array","items":{"$ref":"#/components/schemas/Codes"}},"group":{"$ref":"#/components/schemas/ObjectId"},"sale":{"type":"array","items":{"$ref":"#/components/schemas/Sale"}},"stock":{"$ref":"#/components/schemas/Stock"},"taxassignment":{"$ref":"#/components/schemas/ObjectId"},"tradingcosts":{"type":"array","items":{"$ref":"#/components/schemas/Tradingcosts"}},"pos":{"$ref":"#/components/schemas/POS"},"custom":{"type":"object"},"customattribute":{"type":"array","items":{"$ref":"#/components/schemas/Customattribute"}},"shopware":{"type":"object"},"presta":{"type":"object"},"gambio":{"type":"object"},"magento":{"type":"object"},"ccvshop":{"type":"object"},"woocommerce":{"type":"object"},"epages":{"type":"object"},"squarespace":{"type":"object"},"wix":{"type":"object"},"ladentheke":{"type":"object"},"shopify":{"type":"object"},"billbee":{"type":"object"},"connect":{"type":"object"},"xentral":{"type":"object"},"marketplaces":{"type":"object"},"oxid":{"$ref":"#/components/schemas/Oxid"},"sage":{"$ref":"#/components/schemas/Sage"},"plentymarkets":{"$ref":"#/components/schemas/Plentymarkets"},"pixi":{"$ref":"#/components/schemas/Pixi"},"topix":{"$ref":"#/components/schemas/Topix"},"bundle":{"type":"array","items":{"$ref":"#/components/schemas/Bundle"}},"bundleSettings":{"$ref":"#/components/schemas/BundleSettings"},"optiongroups":{"type":"array","items":{"$ref":"#/components/schemas/OptiongroupRef"}},"optiongroupSettings":{"$ref":"#/components/schemas/OptiongroupSettings"},"customsTariffNumber":{"type":"string"},"service":{"type":"boolean"},"articleSalesLimitRelevant":{"type":"boolean"},"metadata":{"type":"object"},"articleType":{"type":"string"},"variant":{"type":"array","items":{"$ref":"#/components/schemas/Variant"}},"variantOptions":{"type":"array","items":{"$ref":"#/components/schemas/VariantOption"}},"mainArticle":{"$ref":"#/components/schemas/ObjectId"},"searchHash":{"type":"string"},"scale":{"$ref":"#/components/schemas/Scale"},"status":{"$ref":"#/components/schemas/Status"},"translations":{"$ref":"#/components/schemas/TranslationsDto"},"allergens":{"$ref":"#/components/schemas/Allergens"}}},"ArticleItemDto":{"type":"object","properties":{"id":{"type":"string"},"amount":{"type":"string"}},"required":["id"]},"CreateLabelsDto":{"type":"object","properties":{"label":{"type":"string"},"filter":{"type":"object"},"articles":{"type":"array","items":{"$ref":"#/components/schemas/ArticleItemDto"}},"stock":{"type":"string"}},"required":["label"]},"VariantOptionDto":{"type":"object","properties":{"name":{"type":"string","description":"Option group name, e.g. \"Größe\"","example":"Größe"},"position":{"type":"number","minimum":1,"maximum":3,"description":"Position of the option group (1-3, Shopify-compatible)","example":1},"values":{"description":"Values of the option group","example":["S","M","L"],"type":"array","items":{"type":"string"}}},"required":["name","position","values"]},"SetVariantOptionsDto":{"type":"object","properties":{"variantOptions":{"description":"Up to 3 option groups for the main article","type":"array","items":{"$ref":"#/components/schemas/VariantOptionDto"}}},"required":["variantOptions"]},"VariantCombinationValueDto":{"type":"object","properties":{"name":{"type":"string","example":"Größe"},"key":{"type":"string","example":"gro-e"},"value":{"type":"string","example":"S"}},"required":["name","value"]},"GenerateVariantCombinationDto":{"type":"object","properties":{"variant":{"description":"Option values of this combination (must match a cartesian product entry)","example":[{"name":"Größe","key":"gro-e","value":"S"},{"name":"Farbe","key":"farbe","value":"Rot"}],"type":"array","items":{"$ref":"#/components/schemas/VariantCombinationValueDto"}},"title":{"type":"string","description":"Override the auto-generated title","example":"Shirt – S / Rot"},"number":{"type":"string","description":"Override the auto-generated article number","example":"1000-S-ROT"}},"required":["variant"]},"GenerateVariantsDto":{"type":"object","properties":{"preview":{"type":"boolean","description":"Only return the combinations without creating articles","default":false},"deleteOrphaned":{"type":"boolean","description":"Soft-delete existing variants whose combination is no longer produced by the option groups","default":false},"combinations":{"description":"If set, only these combinations are created/updated (from the preview selection). Each entry may override title and number. Combinations not listed are skipped for this run.","type":"array","items":{"$ref":"#/components/schemas/GenerateVariantCombinationDto"}},"deleteCombinations":{"description":"Existing variants matching these combinations are soft-deleted (e.g. deselected in the preview). Only the variant fingerprint is required; title/number are ignored.","type":"array","items":{"$ref":"#/components/schemas/GenerateVariantCombinationDto"}}}},"SyncVariantsDto":{"type":"object","properties":{"fields":{"type":"array","enum":["title","description","taxassignment","sale","purchase","tradingcosts","tags","manufacturer","manufacturerNumber","customattribute","customsTariffNumber","deliverytime","minimumorderquantity","pos","images","allergens","service","articleSalesLimitRelevant","metadata","scale","optiongroups","optiongroupSettings","stock.inward","stock.outward","stock.inventoryManagement","stock.negativeStock","stock.hasSerialNumbers","stock.weight","stock.length","stock.width","stock.height","stock.unit","stock.itemPerUnit","stock.referenceUnit","stock.packUnit"],"description":"Fields of the main article to copy into its variants. Stock settings are addressed as stock.<setting>.","example":["description","stock.inventoryManagement","stock.negativeStock"],"items":{"type":"string","enum":["title","description","taxassignment","sale","purchase","tradingcosts","tags","manufacturer","manufacturerNumber","customattribute","customsTariffNumber","deliverytime","minimumorderquantity","pos","images","allergens","service","articleSalesLimitRelevant","metadata","scale","optiongroups","optiongroupSettings","stock.inward","stock.outward","stock.inventoryManagement","stock.negativeStock","stock.hasSerialNumbers","stock.weight","stock.length","stock.width","stock.height","stock.unit","stock.itemPerUnit","stock.referenceUnit","stock.packUnit"]}},"previousTitle":{"type":"string","description":"Title of the main article before the change. Required to sync \"title\": variant titles starting with it get the new title as prefix, others stay untouched.","example":"Shirt"},"variantIds":{"description":"Limit the sync to these variant ids (default: all variants)","type":"array","items":{"type":"string"}}},"required":["fields"]},"CreateStockDto":{"type":"object","properties":{"name":{"type":"string"},"address":{"$ref":"#/components/schemas/Address"},"useBins":{"type":"boolean"}},"required":["name"]},"StockFiltersDto":{"type":"object","properties":{"queryType":{"default":"fuzzy","enum":["fuzzy","exact"],"type":"string","description":"Type of search. \"exact\" for exact match, \"fuzzy\" for partial match"},"sort":{"description":"Sorting options","allOf":[{"$ref":"#/components/schemas/SortOptionDto"}]}}},"SearchStockDto":{"type":"object","properties":{"query":{"type":"string","description":"Text search term"},"filters":{"description":"Filteroptionen für die Suche","allOf":[{"$ref":"#/components/schemas/StockFiltersDto"}]},"pagination":{"default":{"pageSize":10,"pageNumber":1},"description":"Pagination settings","allOf":[{"$ref":"#/components/schemas/PaginationDto"}]}}},"UpdateStockDto":{"type":"object","properties":{"name":{"type":"string"},"address":{"$ref":"#/components/schemas/Address"},"useBins":{"type":"boolean"}}},"Location":{"type":"object","properties":{"company1":{"type":"string"},"company2":{"type":"string"},"company3":{"type":"string"},"firstName":{"type":"string"},"lastName":{"type":"string"},"street":{"type":"string"},"streetNumber":{"type":"string"},"zipCode":{"type":"string"},"city":{"type":"string"},"country":{"type":"string"}}},"Fiskaly":{"type":"object","properties":{"fiskaly":{"type":"object"}}},"FiskalyAt":{"type":"object","properties":{"fiskaly":{"type":"object"},"fon_user_id":{"type":"object"},"fon_participant_id":{"type":"object"},"fon_user_pin":{"type":"object"},"time_authentication":{"type":"object"}}},"Legal":{"type":"object","properties":{"de":{"$ref":"#/components/schemas/Fiskaly"},"at":{"$ref":"#/components/schemas/FiskalyAt"}}},"Print":{"type":"object","properties":{"header":{"type":"string"},"footer":{"type":"string"},"logoUrl":{"type":"string"},"logoSize":{"type":"number"},"hideBasePrice":{"type":"boolean"},"showBasket":{"type":"boolean"},"showCustomer":{"type":"boolean"},"showItemUser":{"type":"boolean"},"showCustomerDetails":{"type":"boolean"},"showBundleArticles":{"type":"boolean"},"useEanInsteadOfNumber":{"type":"boolean"}}},"PosSettings":{"type":"object","properties":{"print":{"$ref":"#/components/schemas/Print"},"defaultStock":{"$ref":"#/components/schemas/ObjectId"}}},"CreateBranchDto":{"type":"object","properties":{"_id":{"$ref":"#/components/schemas/ObjectId"},"name":{"type":"string"},"location":{"$ref":"#/components/schemas/Location"},"tax":{"$ref":"#/components/schemas/Tax"},"legal":{"$ref":"#/components/schemas/Legal"},"posSettings":{"$ref":"#/components/schemas/PosSettings"},"managePointofsale":{"type":"boolean"}},"required":["name"]},"Branch":{"type":"object","properties":{}},"Xrechnung":{"type":"object","properties":{"phone":{"type":"string"},"email":{"type":"string"},"contactpoint":{"type":"string"},"IBAN":{"type":"string"},"hraNumber":{"type":"string"},"hraName":{"type":"string"}}},"UpdateBranchDto":{"type":"object","properties":{"name":{"type":"string"},"demo":{"type":"boolean"},"location":{"$ref":"#/components/schemas/Location"},"xrechnung":{"$ref":"#/components/schemas/Xrechnung"},"tax":{"$ref":"#/components/schemas/Tax"},"legal":{"$ref":"#/components/schemas/Legal"},"posSettings":{"$ref":"#/components/schemas/PosSettings"},"managePointofsale":{"type":"boolean"},"metadata":{"type":"object"},"data":{"type":"array","items":{"$ref":"#/components/schemas/PatchDataDto"}}}},"UpdateBranchXrechnungDto":{"type":"object","properties":{"company1":{"type":"string","maxLength":200,"description":"Seller name (location.company1)"},"street":{"type":"string","maxLength":200},"streetNumber":{"type":"string","maxLength":20},"zipCode":{"type":"string","maxLength":20},"city":{"type":"string","maxLength":100},"country":{"type":"string","maxLength":100},"vatId":{"type":"string","maxLength":30,"description":"VAT identification number (tax.vatId)"},"taxNumber":{"type":"string","maxLength":30,"description":"Tax number (tax.taxNumber)"},"contactpoint":{"type":"string","maxLength":200,"description":"Seller contact person"},"phone":{"type":"string","maxLength":50},"email":{"type":"string","description":"Seller e-mail, also used as electronic address"},"IBAN":{"type":"string","maxLength":34},"hraNumber":{"type":"string","maxLength":100,"description":"Commercial register number"},"hraName":{"type":"string","maxLength":200,"description":"Registered company name"},"useForDocument":{"type":"boolean","description":"Use this branch as seller for invoices created outside the POS"}}},"Pointofsale":{"type":"object","properties":{}},"Setup":{"type":"object","properties":{"metadata":{"type":"object"},"completed":{"type":"boolean"},"self":{"type":"boolean"}},"required":["metadata","completed","self"]},"Auth":{"type":"object","properties":{"access_token":{"type":"string"},"refresh_token":{"type":"string"},"expires_in":{"type":"number"},"expires_at":{"format":"date-time","type":"string"}},"required":["access_token","refresh_token","expires_in","expires_at"]},"Secucard":{"type":"object","properties":{"active":{"type":"boolean"},"auth":{"$ref":"#/components/schemas/Auth"},"checkins":{"type":"object"},"idents":{"type":"object"}},"required":["active","auth","checkins","idents"]},"Security":{"type":"object","properties":{"allowFrom":{"type":"string"}},"required":["allowFrom"]},"Mixed":{"type":"object","properties":{}},"Pospayments":{"type":"object","properties":{"title":{"type":"string"},"ref":{"$ref":"#/components/schemas/ObjectId"},"type":{"type":"string"},"style":{"type":"string"},"fontSize":{"type":"string"},"backgroundColor":{"type":"string"},"class":{"type":"string"},"directive":{"type":"string"},"link":{"type":"string"},"shortcut":{"type":"string"},"validation":{"type":"string"}},"required":["title","ref","type","style","fontSize","backgroundColor","class","directive","link","shortcut","validation"]},"Poscashiers":{"type":"object","properties":{"name":{"type":"string"},"password":{"type":"string"}},"required":["name","password"]},"Documentgroup":{"type":"object","properties":{"credit":{"$ref":"#/components/schemas/ObjectId"},"abort":{"$ref":"#/components/schemas/ObjectId"}},"required":["credit","abort"]},"Journal":{"type":"object","properties":{"template":{"$ref":"#/components/schemas/ObjectId"},"downloadTemplate":{"$ref":"#/components/schemas/ObjectId"},"printer":{"$ref":"#/components/schemas/ObjectId"}},"required":["template","downloadTemplate","printer"]},"Journalsettings":{"type":"object","properties":{"template":{"$ref":"#/components/schemas/ObjectId"},"downloadTemplate":{"$ref":"#/components/schemas/ObjectId"},"printer":{"$ref":"#/components/schemas/ObjectId"}},"required":["template","downloadTemplate","printer"]},"Printsettings":{"type":"object","properties":{"journal":{"$ref":"#/components/schemas/Journal"},"journalmonthly":{"$ref":"#/components/schemas/Journalsettings"},"documents":{"type":"array","items":{"$ref":"#/components/schemas/Documents"}},"creditDocumentPrinter":{"$ref":"#/components/schemas/ObjectId"}},"required":["journal","journalmonthly","documents","creditDocumentPrinter"]},"Numberformat":{"type":"object","properties":{"prefix":{"type":"string"},"suffix":{"type":"string"},"nextValue":{"type":"number"},"increment":{"type":"number"},"length":{"type":"number"}},"required":["prefix","suffix","nextValue","increment","length"]},"Coinretentionlimit":{"type":"object","properties":{"minCount":{"type":"number"},"maxCount":{"type":"number"}}},"Coinretention":{"type":"object","properties":{"onecent":{"$ref":"#/components/schemas/Coinretentionlimit"},"twocent":{"$ref":"#/components/schemas/Coinretentionlimit"},"fivecent":{"$ref":"#/components/schemas/Coinretentionlimit"},"tencent":{"$ref":"#/components/schemas/Coinretentionlimit"},"twentycent":{"$ref":"#/components/schemas/Coinretentionlimit"},"fiftycent":{"$ref":"#/components/schemas/Coinretentionlimit"},"oneeuro":{"$ref":"#/components/schemas/Coinretentionlimit"},"twoeuro":{"$ref":"#/components/schemas/Coinretentionlimit"}}},"Posjournalsettings":{"type":"object","properties":{"numberFormat":{"$ref":"#/components/schemas/Numberformat"},"hideArticles":{"type":"boolean"},"showUsers":{"type":"boolean"},"showDocuments":{"type":"boolean"},"balanceCashDrawerOnCreate":{"type":"boolean"},"automaticAccountingOnCashDifferences":{"type":"boolean"},"postransferOnPositiveDifference":{"$ref":"#/components/schemas/ObjectId"},"postransferOnNegativeDifference":{"$ref":"#/components/schemas/ObjectId"},"includeCoinsInWithdrawal":{"type":"boolean"},"coinRetention":{"$ref":"#/components/schemas/Coinretention"}},"required":["numberFormat","hideArticles","showUsers","showDocuments","balanceCashDrawerOnCreate","automaticAccountingOnCashDifferences","postransferOnPositiveDifference","postransferOnNegativeDifference"]},"Reservationsettings":{"type":"object","properties":{"numberFormat":{"$ref":"#/components/schemas/Numberformat"}},"required":["numberFormat"]},"Items":{"type":"object","properties":{"position":{"type":"number"},"view":{"type":"string"},"object":{"$ref":"#/components/schemas/ObjectId"},"amount":{"type":"number"},"price":{"type":"number"},"title":{"type":"string"},"backgroundColor":{"type":"string"}},"required":["position","view","object","amount","price","title","backgroundColor"]},"TabsL3":{"type":"object","properties":{"name":{"type":"string"},"default":{"type":"boolean"},"view":{"type":"string"},"backgroundColor":{"type":"string"},"image":{"type":"string"},"items":{"type":"array","items":{"$ref":"#/components/schemas/Items"}},"tags":{"type":"array","items":{"$ref":"#/components/schemas/ObjectId"}}},"required":["name","default","view","backgroundColor","image","items","tags"]},"TabsL2":{"type":"object","properties":{"name":{"type":"string"},"default":{"type":"boolean"},"view":{"type":"string"},"backgroundColor":{"type":"string"},"image":{"type":"string"},"items":{"type":"array","items":{"$ref":"#/components/schemas/Items"}},"tags":{"type":"array","items":{"$ref":"#/components/schemas/ObjectId"}},"tabs":{"type":"array","items":{"$ref":"#/components/schemas/TabsL3"}}},"required":["name","default","view","backgroundColor","image","items","tags","tabs"]},"TabsL1":{"type":"object","properties":{"name":{"type":"string"},"default":{"type":"boolean"},"view":{"type":"string"},"backgroundColor":{"type":"string"},"image":{"type":"string"},"items":{"type":"array","items":{"$ref":"#/components/schemas/Items"}},"tags":{"type":"array","items":{"$ref":"#/components/schemas/ObjectId"}},"tabs":{"type":"array","items":{"$ref":"#/components/schemas/TabsL2"}}},"required":["name","default","view","backgroundColor","image","items","tags","tabs"]},"Vouchers":{"type":"object","properties":{"image":{"type":"string"},"name":{"type":"string"},"value":{"type":"number"}},"required":["image","name","value"]},"Vouchersettings":{"type":"object","properties":{"active":{"type":"boolean"}},"required":["active"]},"Bonus":{"type":"object","properties":{}},"Bonussettings":{"type":"object","properties":{"active":{"type":"boolean"}},"required":["active"]},"Identitycharges":{"type":"object","properties":{"name":{"type":"string"},"value":{"type":"number"},"taxassignment":{"$ref":"#/components/schemas/ObjectId"}},"required":["name","value","taxassignment"]},"Deposit":{"type":"object","properties":{"article":{"$ref":"#/components/schemas/ObjectId"}},"required":["article"]},"Tip":{"type":"object","properties":{"article":{"$ref":"#/components/schemas/ObjectId"},"geschaeftsvorfall":{"type":"string"}},"required":["article","geschaeftsvorfall"]},"PrintSettingsMini":{"type":"object","properties":{"template":{"$ref":"#/components/schemas/ObjectId"}}},"DePrint":{"type":"object","properties":{"qrCode":{"type":"boolean"},"info":{"type":"boolean"}},"required":["qrCode","info"]},"DeFiskalyClient":{"type":"object","properties":{"serial_number":{"type":"string"},"time_creation":{"format":"date-time","type":"string"},"tss_id":{"type":"string"},"metadata":{"type":"object"}},"required":["serial_number","time_creation","tss_id","metadata"]},"DeFiskaly":{"type":"object","properties":{"client":{"$ref":"#/components/schemas/DeFiskalyClient"}},"required":["client"]},"De":{"type":"object","properties":{"print":{"$ref":"#/components/schemas/DePrint"},"tse":{"$ref":"#/components/schemas/ObjectId"},"active":{"type":"boolean"},"fiskaly":{"$ref":"#/components/schemas/DeFiskaly"}},"required":["print","tse","active","fiskaly"]},"AtFiskaly":{"type":"object","properties":{"cashregister":{"type":"object"}},"required":["cashregister"]},"Atrust":{"type":"object","properties":{"sessionid":{"type":"string"},"sessionkey":{"type":"string"},"username":{"type":"string"},"password":{"type":"string"},"Signaturzertifikat":{"type":"string"},"Zertifizierungsstellen":{"type":"array","items":{"type":"string"}},"Zertifikatsseriennummer":{"type":"string"},"ZertifikatsseriennummerHex":{"type":"string"},"alg":{"type":"string"},"expires":{"format":"date-time","type":"string"}},"required":["sessionid","sessionkey","username","password","Signaturzertifikat","Zertifizierungsstellen","Zertifikatsseriennummer","ZertifikatsseriennummerHex","alg","expires"]},"Startbeleg":{"type":"object","properties":{"payload":{"type":"string"},"signature":{"type":"string"},"code":{"type":"string"},"codeEncodeURI":{"type":"string"}},"required":["payload","signature","code","codeEncodeURI"]},"NbDocument":{"type":"object","properties":{"createdAt":{"format":"date-time","type":"string"},"ref":{"$ref":"#/components/schemas/ObjectId"}},"required":["createdAt","ref"]},"Nullbeleg":{"type":"object","properties":{"documents":{"type":"array","items":{"$ref":"#/components/schemas/NbDocument"}},"printer":{"$ref":"#/components/schemas/ObjectId"},"documentgroup":{"$ref":"#/components/schemas/ObjectId"}},"required":["documents","printer","documentgroup"]},"AtArchive":{"type":"object","properties":{"createdAt":{"format":"date-time","type":"string"},"startbeleg":{"$ref":"#/components/schemas/Startbeleg"},"nullbeleg":{"$ref":"#/components/schemas/Nullbeleg"},"pointofsaleId":{"type":"string"},"userKey":{"type":"string"}},"required":["createdAt","startbeleg","nullbeleg","pointofsaleId","userKey"]},"At":{"type":"object","properties":{"fiskaly":{"$ref":"#/components/schemas/AtFiskaly"},"payloadmapping":{"type":"array","items":{"type":"object"}},"atrust":{"$ref":"#/components/schemas/Atrust"},"pointofsaleId":{"type":"string"},"userKey":{"type":"string"},"taxNormal":{"type":"number"},"taxReduced1":{"type":"number"},"taxReduced2":{"type":"number"},"taxNull":{"type":"number"},"taxSpecial":{"type":"number"},"turnOver":{"type":"number"},"previousSignature":{"type":"string"},"active":{"type":"boolean"},"activeSince":{"format":"date-time","type":"string"},"startbeleg":{"$ref":"#/components/schemas/Startbeleg"},"nullbeleg":{"$ref":"#/components/schemas/Nullbeleg"},"archive":{"type":"array","items":{"$ref":"#/components/schemas/AtArchive"}}},"required":["fiskaly","payloadmapping","atrust","pointofsaleId","userKey","taxNormal","taxReduced1","taxReduced2","taxNull","taxSpecial","turnOver","previousSignature","active","activeSince","startbeleg","nullbeleg","archive"]},"Soundfile":{"type":"object","properties":{"file":{"type":"string"},"play":{"type":"boolean"}},"required":["file","play"]},"Sounds":{"type":"object","properties":{"error":{"$ref":"#/components/schemas/Soundfile"},"success":{"$ref":"#/components/schemas/Soundfile"},"warning":{"$ref":"#/components/schemas/Soundfile"}},"required":["error","success","warning"]},"Sendmail":{"type":"object","properties":{"sender":{"type":"string"},"subject":{"type":"string"},"html":{"type":"string"},"documentTemplate":{"$ref":"#/components/schemas/ObjectId"}},"required":["sender","subject","html","documentTemplate"]},"Netix":{"type":"object","properties":{"active":{"type":"boolean"}},"required":["active"]},"Lexoffice":{"type":"object","properties":{}},"Editions":{"type":"object","properties":{"netix":{"$ref":"#/components/schemas/Netix"},"lexoffice":{"$ref":"#/components/schemas/Lexoffice"}},"required":["netix","lexoffice"]},"Kontolino":{"type":"object","properties":{}},"Anybill":{"type":"object","properties":{"storeId":{"type":"string"}},"required":["storeId"]},"Avs":{"type":"object","properties":{"username":{"type":"string"},"password":{"type":"string"},"terminalId":{"type":"string"},"hostUrl":{"type":"string"},"article":{"$ref":"#/components/schemas/ObjectId"}},"required":["username","password","terminalId","hostUrl","article"]},"CreatePointofsaleDto":{"type":"object","properties":{"metadata":{"type":"object"},"demo":{"type":"boolean"},"setup":{"$ref":"#/components/schemas/Setup"},"app":{"$ref":"#/components/schemas/ObjectId"},"name":{"type":"string"},"inUse":{"type":"boolean"},"inUseUser":{"$ref":"#/components/schemas/ObjectId"},"cleared":{"type":"boolean"},"journalRecipients":{"type":"string"},"sendJournalOnlyIfDifferences":{"type":"boolean"},"createSumupPaymentMethod":{"type":"boolean"},"createDemoData":{"type":"boolean"},"createBox":{"type":"boolean"},"createStock":{"type":"boolean"},"stockName":{"type":"string"},"createPosjournal":{"type":"boolean"},"trial":{"type":"boolean"},"createBranch":{"type":"boolean"},"branchName":{"type":"string"},"branchManaged":{"type":"boolean"},"xpayment":{"type":"object"},"secucard":{"$ref":"#/components/schemas/Secucard"},"security":{"$ref":"#/components/schemas/Security"},"defaultTab":{"type":"string"},"defaultBusinesspartner":{"$ref":"#/components/schemas/ObjectId"},"defaultBasket":{"$ref":"#/components/schemas/ObjectId"},"defaultstock":{"$ref":"#/components/schemas/ObjectId"},"baskets":{"type":"array","items":{"$ref":"#/components/schemas/ObjectId"}},"posbasket":{"type":"object","properties":{"alerts":{"type":"object","properties":{"noUpdate":{"required":true,"type":"number"}}}}},"paymentMethods":{"$ref":"#/components/schemas/Mixed"},"employees":{"type":"array","items":{"$ref":"#/components/schemas/ObjectId"}},"branch":{"$ref":"#/components/schemas/ObjectId"},"posJournal":{"$ref":"#/components/schemas/ObjectId"},"lastPosjournal":{"$ref":"#/components/schemas/ObjectId"},"pricelist":{"$ref":"#/components/schemas/ObjectId"},"tax":{"$ref":"#/components/schemas/Tax"},"posJournalFinalValue":{"type":"number"},"currentBasket":{"$ref":"#/components/schemas/ObjectId"},"currentUser":{"$ref":"#/components/schemas/ObjectId"},"posPayments":{"type":"array","items":{"$ref":"#/components/schemas/Pospayments"}},"posPaymentsView":{"type":"string"},"hideTogo":{"type":"boolean"},"posCashiers":{"type":"array","items":{"$ref":"#/components/schemas/Poscashiers"}},"documentgroup":{"$ref":"#/components/schemas/Documentgroup"},"scanner":{"$ref":"#/components/schemas/ObjectId"},"taxaccount":{"$ref":"#/components/schemas/ObjectId"},"printSettings":{"$ref":"#/components/schemas/Printsettings"},"posjournalSettings":{"$ref":"#/components/schemas/Posjournalsettings"},"reservationSettings":{"$ref":"#/components/schemas/Reservationsettings"},"tabView":{"type":"string"},"tabLevels":{"type":"string"},"items":{"type":"array","items":{"$ref":"#/components/schemas/Items"}},"tabs":{"type":"array","items":{"$ref":"#/components/schemas/TabsL1"}},"checkbasketitems":{"type":"boolean"},"print":{"$ref":"#/components/schemas/Print"},"vouchers":{"type":"array","items":{"$ref":"#/components/schemas/Vouchers"}},"voucherSettings":{"$ref":"#/components/schemas/Vouchersettings"},"bonus":{"type":"array","items":{"$ref":"#/components/schemas/Bonus"}},"bonusSettings":{"$ref":"#/components/schemas/Bonussettings"},"identityCharges":{"type":"array","items":{"$ref":"#/components/schemas/Identitycharges"}},"deposit":{"$ref":"#/components/schemas/Deposit"},"tip":{"$ref":"#/components/schemas/Tip"},"css":{"type":"string"},"multiUserMode":{"type":"boolean"},"printSettingsMini":{"$ref":"#/components/schemas/PrintSettingsMini"},"setCurrentBasketInMultiUserMode":{"type":"boolean"},"currentBaskets":{"type":"object"},"customerdisplay":{"$ref":"#/components/schemas/ObjectId"},"defaultCurrency":{"$ref":"#/components/schemas/ObjectId"},"legal":{"type":"string"},"displayName":{"type":"string"},"de":{"$ref":"#/components/schemas/De"},"at":{"$ref":"#/components/schemas/At"},"terminal":{"$ref":"#/components/schemas/ObjectId"},"timeoutBarcodeInput":{"type":"number"},"openCashDrawerPin":{"type":"string"},"openCashDrawerWithUserPin":{"type":"boolean"},"actions":{"type":"object","properties":{"documentView":{"required":true,"type":"object"}}},"sounds":{"$ref":"#/components/schemas/Sounds"},"sendmail":{"$ref":"#/components/schemas/Sendmail"},"editions":{"$ref":"#/components/schemas/Editions"},"kontolino":{"$ref":"#/components/schemas/Kontolino"},"orderTSE":{"type":"boolean"},"activateTSE":{"type":"boolean"},"scannerModification":{"type":"string"},"anybill":{"$ref":"#/components/schemas/Anybill"},"avs":{"$ref":"#/components/schemas/Avs"},"mode":{"type":"string"},"allowCustomDocumentNumber":{"type":"boolean"},"language":{"type":"string"},"createdAt":{"format":"date-time","type":"string"},"updatedAt":{"format":"date-time","type":"string"},"user":{"$ref":"#/components/schemas/ObjectId"},"client":{"$ref":"#/components/schemas/ObjectId"},"calendars":{"type":"array","items":{"$ref":"#/components/schemas/ObjectId"}},"status":{"type":"object"}},"required":["metadata","demo","setup","app","name","inUse","inUseUser","cleared","journalRecipients","sendJournalOnlyIfDifferences","createSumupPaymentMethod","createDemoData","createBox","createStock","stockName","createPosjournal","trial","createBranch","branchName","branchManaged","xpayment","secucard","security","defaultTab","defaultBusinesspartner","defaultBasket","defaultstock","baskets","posbasket","paymentMethods","employees","branch","posJournal","lastPosjournal","pricelist","tax","posJournalFinalValue","currentBasket","currentUser","posPayments","posPaymentsView","hideTogo","posCashiers","documentgroup","scanner","taxaccount","printSettings","posjournalSettings","reservationSettings","tabView","tabLevels","items","tabs","checkbasketitems","print","vouchers","voucherSettings","bonus","bonusSettings","identityCharges","deposit","tip","css","multiUserMode","setCurrentBasketInMultiUserMode","currentBaskets","customerdisplay","defaultCurrency","legal","displayName","de","at","terminal","timeoutBarcodeInput","openCashDrawerPin","openCashDrawerWithUserPin","actions","sounds","sendmail","editions","kontolino","orderTSE","activateTSE","scannerModification","anybill","avs","mode","allowCustomDocumentNumber","createdAt","updatedAt","user","client","status"]},"UpdatePointofsaleDto":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/PatchDataDto"}},"metadata":{"type":"object"},"demo":{"type":"boolean"},"setup":{"$ref":"#/components/schemas/Setup"},"app":{"$ref":"#/components/schemas/ObjectId"},"name":{"type":"string"},"inUse":{"type":"boolean"},"inUseUser":{"$ref":"#/components/schemas/ObjectId"},"cleared":{"type":"boolean"},"journalRecipients":{"type":"string"},"sendJournalOnlyIfDifferences":{"type":"boolean"},"createSumupPaymentMethod":{"type":"boolean"},"createDemoData":{"type":"boolean"},"createBox":{"type":"boolean"},"createStock":{"type":"boolean"},"stockName":{"type":"string"},"createPosjournal":{"type":"boolean"},"trial":{"type":"boolean"},"createBranch":{"type":"boolean"},"branchName":{"type":"string"},"branchManaged":{"type":"boolean"},"xpayment":{"type":"object"},"secucard":{"$ref":"#/components/schemas/Secucard"},"security":{"$ref":"#/components/schemas/Security"},"defaultTab":{"type":"string"},"defaultBusinesspartner":{"$ref":"#/components/schemas/ObjectId"},"defaultBasket":{"$ref":"#/components/schemas/ObjectId"},"defaultstock":{"$ref":"#/components/schemas/ObjectId"},"baskets":{"type":"array","items":{"$ref":"#/components/schemas/ObjectId"}},"posbasket":{"type":"object","properties":{"alerts":{"type":"object","properties":{"noUpdate":{"required":true,"type":"number"}}}}},"paymentMethods":{"$ref":"#/components/schemas/Mixed"},"employees":{"type":"array","items":{"$ref":"#/components/schemas/ObjectId"}},"branch":{"$ref":"#/components/schemas/ObjectId"},"posJournal":{"$ref":"#/components/schemas/ObjectId"},"lastPosjournal":{"$ref":"#/components/schemas/ObjectId"},"pricelist":{"$ref":"#/components/schemas/ObjectId"},"tax":{"$ref":"#/components/schemas/Tax"},"posJournalFinalValue":{"type":"number"},"currentBasket":{"$ref":"#/components/schemas/ObjectId"},"currentUser":{"$ref":"#/components/schemas/ObjectId"},"posPayments":{"type":"array","items":{"$ref":"#/components/schemas/Pospayments"}},"posPaymentsView":{"type":"string"},"hideTogo":{"type":"boolean"},"posCashiers":{"type":"array","items":{"$ref":"#/components/schemas/Poscashiers"}},"documentgroup":{"$ref":"#/components/schemas/Documentgroup"},"scanner":{"$ref":"#/components/schemas/ObjectId"},"taxaccount":{"$ref":"#/components/schemas/ObjectId"},"printSettings":{"$ref":"#/components/schemas/Printsettings"},"posjournalSettings":{"$ref":"#/components/schemas/Posjournalsettings"},"reservationSettings":{"$ref":"#/components/schemas/Reservationsettings"},"tabView":{"type":"string"},"tabLevels":{"type":"string"},"items":{"type":"array","items":{"$ref":"#/components/schemas/Items"}},"tabs":{"type":"array","items":{"$ref":"#/components/schemas/TabsL1"}},"checkbasketitems":{"type":"boolean"},"print":{"$ref":"#/components/schemas/Print"},"vouchers":{"type":"array","items":{"$ref":"#/components/schemas/Vouchers"}},"voucherSettings":{"$ref":"#/components/schemas/Vouchersettings"},"bonus":{"type":"array","items":{"$ref":"#/components/schemas/Bonus"}},"bonusSettings":{"$ref":"#/components/schemas/Bonussettings"},"identityCharges":{"type":"array","items":{"$ref":"#/components/schemas/Identitycharges"}},"deposit":{"$ref":"#/components/schemas/Deposit"},"tip":{"$ref":"#/components/schemas/Tip"},"css":{"type":"string"},"multiUserMode":{"type":"boolean"},"printSettingsMini":{"$ref":"#/components/schemas/PrintSettingsMini"},"setCurrentBasketInMultiUserMode":{"type":"boolean"},"currentBaskets":{"type":"object"},"customerdisplay":{"$ref":"#/components/schemas/ObjectId"},"defaultCurrency":{"$ref":"#/components/schemas/ObjectId"},"legal":{"type":"string"},"displayName":{"type":"string"},"de":{"$ref":"#/components/schemas/De"},"at":{"$ref":"#/components/schemas/At"},"terminal":{"$ref":"#/components/schemas/ObjectId"},"timeoutBarcodeInput":{"type":"number"},"openCashDrawerPin":{"type":"string"},"openCashDrawerWithUserPin":{"type":"boolean"},"actions":{"type":"object","properties":{"documentView":{"required":true,"type":"object"}}},"sounds":{"$ref":"#/components/schemas/Sounds"},"sendmail":{"$ref":"#/components/schemas/Sendmail"},"editions":{"$ref":"#/components/schemas/Editions"},"kontolino":{"$ref":"#/components/schemas/Kontolino"},"orderTSE":{"type":"boolean"},"activateTSE":{"type":"boolean"},"scannerModification":{"type":"string"},"anybill":{"$ref":"#/components/schemas/Anybill"},"avs":{"$ref":"#/components/schemas/Avs"},"mode":{"type":"string"},"allowCustomDocumentNumber":{"type":"boolean"},"language":{"type":"string"},"calendars":{"type":"array","items":{"$ref":"#/components/schemas/ObjectId"}}},"required":["posbasket","actions"]},"Cronjob":{"type":"object","properties":{}},"SetAutomaticClosingDto":{"type":"object","properties":{"active":{"type":"boolean"},"hour":{"type":"number","minimum":0,"maximum":23},"minute":{"type":"number","minimum":0,"maximum":59},"repeatInterval":{"type":"string","enum":["daily","weekly","monthly"],"default":"daily"},"dayOfWeek":{"type":"number","minimum":0,"maximum":6},"dayOfMonth":{"type":"number","minimum":1,"maximum":31}},"required":["active","hour","minute"]},"DSFINVK":{"type":"object","properties":{"vatId":{"type":"number"},"vatRate":{"type":"number"},"geschaeftsvorfall":{"type":"string"}}},"Taxkey":{"type":"object","properties":{}},"Weight":{"type":"object","properties":{"gross":{"type":"number"},"net":{"type":"number"},"tare":{"type":"number"},"type":{"type":"string"}}},"Item":{"type":"object","properties":{"metadata":{"type":"object"},"title":{"type":"string"},"title2":{"type":"string"},"number":{"type":"string"},"ean":{"type":"string"},"price":{"type":"number"},"priceref":{"type":"number"},"userHasChangedPrice":{"type":"boolean"},"discount":{"type":"number"},"imageUrl":{"type":"string"},"description":{"type":"string"},"course":{"type":"string"},"amount":{"type":"number"},"quantityPerUnit":{"type":"number"},"unit":{"type":"number"},"stockUnit":{"type":"string"},"ref":{"$ref":"#/components/schemas/ObjectId"},"reservationItem":{"$ref":"#/components/schemas/ObjectId"},"refVoucher":{"$ref":"#/components/schemas/ObjectId"},"refBonus":{"$ref":"#/components/schemas/ObjectId"},"datevAccountNumber":{"type":"string"},"datevTaxAuto":{"type":"boolean"},"datevTaxKey":{"type":"string"},"datevCostcentre1":{"type":"string"},"datevCostcentre2":{"type":"string"},"dsfinvk":{"$ref":"#/components/schemas/DSFINVK"},"differentialTaxation":{"type":"boolean"},"noTax":{"type":"boolean"},"taxKey":{"$ref":"#/components/schemas/Taxkey"},"taxRate":{"type":"number"},"taxType":{"type":"string"},"totalExVat":{"type":"number"},"totalIncVat":{"type":"number"},"printed":{"type":"boolean"},"printedAmount":{"type":"number"},"hasCustomPrice":{"type":"boolean"},"customPrice":{"type":"number"},"hasCustomDiscount":{"type":"boolean"},"manualDiscount":{"type":"number"},"stock":{"$ref":"#/components/schemas/ObjectId"},"bin":{"$ref":"#/components/schemas/ObjectId"},"notice":{"type":"string"},"type":{"type":"string"},"stockitementry":{"$ref":"#/components/schemas/ObjectId"},"document":{"$ref":"#/components/schemas/ObjectId"},"documentItemId":{"$ref":"#/components/schemas/ObjectId"},"deposit":{"$ref":"#/components/schemas/ObjectId"},"openDocument":{"$ref":"#/components/schemas/ObjectId"},"bundle":{"$ref":"#/components/schemas/ObjectId"},"shippingdate":{"format":"date-time","type":"string"},"order":{"type":"boolean"},"itemtracker":{"$ref":"#/components/schemas/ObjectId"},"itemtrackerDocumentb":{"$ref":"#/components/schemas/ObjectId"},"user":{"$ref":"#/components/schemas/ObjectId"},"totalIncVatRaw":{"type":"number"},"totalExVatRaw":{"type":"number"},"autoPriceCalc":{"type":"boolean"},"identity":{"$ref":"#/components/schemas/ObjectId"},"identityMaxCredit":{"type":"boolean"},"weight":{"$ref":"#/components/schemas/Weight"},"hasSerialNumber":{"type":"boolean"},"serialNumber":{"type":"string"},"bestBeforeDate":{"format":"date-time","type":"string"},"batchNumber":{"type":"string"},"serviceDate":{"format":"date-time","type":"string"},"points":{"type":"number"},"fulfillment":{"type":"string"},"cancelled":{"type":"boolean"},"project":{"$ref":"#/components/schemas/ObjectId"},"locked":{"type":"boolean"}}},"Payments":{"type":"object","properties":{"amount":{"type":"number"},"ref":{"$ref":"#/components/schemas/ObjectId"},"paidAt":{"format":"date-time","type":"string"},"details":{"type":"object"},"info1":{"type":"string"},"info2":{"type":"string"},"info3":{"type":"string"},"transaction":{"$ref":"#/components/schemas/ObjectId"},"document":{"$ref":"#/components/schemas/ObjectId"},"source":{"type":"string"}}},"Reference":{"type":"object","properties":{"number":{"type":"string"},"name":{"type":"string"}}},"Meta":{"type":"object","properties":{"businesspartner":{"$ref":"#/components/schemas/ObjectId"},"foreignNumber":{"type":"string"},"origin":{"type":"string"},"info1":{"type":"string"}}},"Receipts":{"type":"object","properties":{"title":{"type":"string"},"rows":{"type":"array","items":{"type":"string"}}}},"Pickup":{"type":"object","properties":{"requestedDate":{"format":"date-time","type":"string"},"confirmedDate":{"format":"date-time","type":"string"}}},"Currency":{"type":"object","properties":{}},"CreatePosbasketDto":{"type":"object","properties":{"_id":{"$ref":"#/components/schemas/ObjectId"},"name":{"type":"string"},"tseTx":{"$ref":"#/components/schemas/ObjectId"},"metadata":{"type":"object"},"dsfinvktxID":{"$ref":"#/components/schemas/ObjectId"},"totalIncVat":{"type":"number"},"totalExVat":{"type":"number"},"totalIncVatRaw":{"type":"number"},"totalExVatRaw":{"type":"number"},"totalDue":{"type":"number"},"totalItemsCount":{"type":"number"},"items":{"type":"array","items":{"$ref":"#/components/schemas/Item"}},"tax":{"type":"array","items":{"$ref":"#/components/schemas/Tax"}},"owner":{"$ref":"#/components/schemas/ObjectId"},"businesspartner":{"$ref":"#/components/schemas/ObjectId"},"defaultBusinesspartner":{"$ref":"#/components/schemas/ObjectId"},"clearBusinesspartnerOnDefault":{"type":"boolean"},"bontypeOnDefault":{"type":"string"},"bontype":{"type":"string"},"type":{"type":"string"},"temp":{"type":"boolean"},"rounding":{"type":"string"},"pointofsale":{"$ref":"#/components/schemas/ObjectId"},"document":{"$ref":"#/components/schemas/ObjectId"},"shippingdate":{"format":"date-time","type":"string"},"order":{"type":"boolean"},"secucard":{"$ref":"#/components/schemas/Secucard"},"settings":{"type":"object"},"payments":{"type":"array","items":{"$ref":"#/components/schemas/Payments"}},"reference":{"$ref":"#/components/schemas/Reference"},"setStockOnAddArticle":{"type":"boolean"},"showAvailability":{"type":"boolean"},"showShippingdate":{"type":"boolean"},"showStock":{"type":"boolean"},"meta":{"$ref":"#/components/schemas/Meta"},"billingAddressChanged":{"type":"boolean"},"billingAddress":{"$ref":"#/components/schemas/Address"},"shippingAddressChanged":{"type":"boolean"},"shippingAddress":{"$ref":"#/components/schemas/Address"},"locked":{"type":"boolean"},"onAddItem":{"type":"string"},"warnIfItemPriceZero":{"type":"boolean"},"assignDescriptionOnAddArticle":{"type":"boolean"},"receipts":{"type":"array","items":{"$ref":"#/components/schemas/Receipts"}},"paymentInProgress":{"type":"boolean"},"paymentStarted":{"type":"boolean"},"paymentStatus":{"type":"string"},"pickup":{"$ref":"#/components/schemas/Pickup"},"logId":{"type":"string"},"project":{"$ref":"#/components/schemas/ObjectId"},"defaultProject":{"$ref":"#/components/schemas/ObjectId"},"currency":{"$ref":"#/components/schemas/Currency"}}},"Posbasket":{"type":"object","properties":{}},"OptionSelectionItem":{"type":"object","properties":{"optiongroup":{"description":"Optiongroup ID this selection belongs to","allOf":[{"$ref":"#/components/schemas/ObjectId"}]},"article":{"description":"Selected sub-article ID","allOf":[{"$ref":"#/components/schemas/ObjectId"}]},"surcharge":{"type":"number","description":"Surcharge (Aufpreis) added for this option","default":0},"amount":{"type":"number","description":"Quantity of this option","default":1}},"required":["article"]},"AddArticleItem":{"type":"object","properties":{"search":{"type":"string","description":"Search term for finding articles by various criteria"},"id":{"description":"Article ID (ObjectId as string)","allOf":[{"$ref":"#/components/schemas/ObjectId"}]},"ref":{"description":"Article reference ID (ObjectId as string)","allOf":[{"$ref":"#/components/schemas/ObjectId"}]},"number":{"type":"string","description":"Article number for lookup"},"ean":{"type":"string","description":"EAN/barcode for article lookup"},"amount":{"type":"number","description":"Quantity/amount of the article","default":1},"price":{"type":"number","description":"Custom price for the article"},"discount":{"type":"number","description":"Discount percentage (0-100)"},"title":{"type":"string","description":"Custom title for the article"},"title2":{"type":"string","description":"Secondary title/description"},"notice":{"type":"string","description":"Additional notice/comment for the item"},"course":{"type":"string","description":"Hospitality kitchen course"},"user":{"description":"User ID responsible for this item","allOf":[{"$ref":"#/components/schemas/ObjectId"}]},"serviceDate":{"format":"date-time","type":"string","description":"Service date for the article"},"weight":{"description":"Weight information for weighted articles","allOf":[{"$ref":"#/components/schemas/Weight"}]},"stock":{"description":"Stock location ID","allOf":[{"$ref":"#/components/schemas/ObjectId"}]},"bin":{"description":"Bin location ID","allOf":[{"$ref":"#/components/schemas/ObjectId"}]},"serialNumber":{"type":"string","description":"Serial number for serialized articles"},"stockitementry":{"description":"Stock item entry ID for inventory tracking","allOf":[{"$ref":"#/components/schemas/ObjectId"}]},"document":{"description":"Related document ID","allOf":[{"$ref":"#/components/schemas/ObjectId"}]},"documentItemId":{"description":"Document item ID for linking to document items","allOf":[{"$ref":"#/components/schemas/ObjectId"}]},"documentType":{"type":"string","description":"Document type (L, R, l, etc.)"},"deposit":{"description":"Deposit document ID","allOf":[{"$ref":"#/components/schemas/ObjectId"}]},"openDocument":{"description":"Open document ID","allOf":[{"$ref":"#/components/schemas/ObjectId"}]},"bundle":{"description":"Bundle ID for grouped articles","allOf":[{"$ref":"#/components/schemas/ObjectId"}]},"optionSelections":{"description":"Selected optiongroup options to add as a menu bundle","type":"array","items":{"$ref":"#/components/schemas/OptionSelectionItem"}},"userHasChangedPrice":{"type":"boolean","description":"Whether user has manually changed the price"},"itemtracker":{"description":"Item tracker ID for tracking purposes","allOf":[{"$ref":"#/components/schemas/ObjectId"}]},"fulfillment":{"type":"string","description":"Fulfillment method/status"},"project":{"description":"Project ID for project-based items","allOf":[{"$ref":"#/components/schemas/ObjectId"}]},"order":{"type":"boolean","description":"Whether this is an order item"},"type":{"type":"string","description":"Item type (article, bundlearticle, etc.)","default":"article"},"metadata":{"type":"object","description":"Additional metadata for the item"}}},"PosbasketAddItemDto":{"type":"object","properties":{"item":{"description":"Item to add. With `search` the value is interpreted as scanner input: articles (name, number, EAN), vouchers, bonus codes and identity cards are tried in this order. Without `search` use `id`/`ref`/`number`/`ean` to add a specific article.","allOf":[{"$ref":"#/components/schemas/AddArticleItem"}]}},"required":["item"]},"PosbasketAddArticleDto":{"type":"object","properties":{"item":{"description":"Article to add to the basket","allOf":[{"$ref":"#/components/schemas/AddArticleItem"}]}},"required":["item"]},"SetAttributeDto":{"type":"object","properties":{"attribute":{"type":"string","description":"Attribute name to update (businesspartner, paymentMethod, locked, etc.)"},"content":{"type":"object","description":"New value for the attribute"},"sepaDate":{"type":"string","description":"SEPA date for payment method updates"}},"required":["attribute","content"]},"SetIdentityMaxChargeDto":{"type":"object","properties":{"itemId":{"type":"string","description":"The ID of the posbasket item to set identity max charge for","example":"507f1f77bcf86cd799439011"},"updateNotification":{"type":"boolean","default":true,"description":"Whether to send update notifications"}},"required":["itemId"]},"LegacyAddPaymentDto":{"type":"object","properties":{"amount":{"type":"number"},"payment":{"$ref":"#/components/schemas/ObjectId"},"pospayment":{"$ref":"#/components/schemas/ObjectId"},"paidAt":{"format":"date-time","type":"string"},"terminalResponse":{"type":"object"},"transaction":{"$ref":"#/components/schemas/ObjectId"},"source":{"type":"string"},"document":{"$ref":"#/components/schemas/ObjectId"},"info1":{"type":"string"},"info2":{"type":"string"},"info3":{"type":"string"},"updateNotification":{"type":"boolean"}},"required":["amount"]},"UpdatePosbasketDto":{"type":"object","properties":{"_id":{"$ref":"#/components/schemas/ObjectId"},"name":{"type":"string"},"tseTx":{"$ref":"#/components/schemas/ObjectId"},"metadata":{"type":"object"},"dsfinvktxID":{"$ref":"#/components/schemas/ObjectId"},"totalIncVat":{"type":"number"},"totalExVat":{"type":"number"},"totalIncVatRaw":{"type":"number"},"totalExVatRaw":{"type":"number"},"totalDue":{"type":"number"},"totalItemsCount":{"type":"number"},"items":{"type":"array","items":{"$ref":"#/components/schemas/Item"}},"tax":{"type":"array","items":{"$ref":"#/components/schemas/Tax"}},"owner":{"$ref":"#/components/schemas/ObjectId"},"businesspartner":{"$ref":"#/components/schemas/ObjectId"},"defaultBusinesspartner":{"$ref":"#/components/schemas/ObjectId"},"clearBusinesspartnerOnDefault":{"type":"boolean"},"bontypeOnDefault":{"type":"string"},"bontype":{"type":"string"},"type":{"type":"string"},"temp":{"type":"boolean"},"rounding":{"type":"string"},"pointofsale":{"$ref":"#/components/schemas/ObjectId"},"document":{"$ref":"#/components/schemas/ObjectId"},"shippingdate":{"format":"date-time","type":"string"},"order":{"type":"boolean"},"secucard":{"$ref":"#/components/schemas/Secucard"},"settings":{"type":"object"},"payments":{"type":"array","items":{"$ref":"#/components/schemas/Payments"}},"reference":{"$ref":"#/components/schemas/Reference"},"setStockOnAddArticle":{"type":"boolean"},"showAvailability":{"type":"boolean"},"showShippingdate":{"type":"boolean"},"showStock":{"type":"boolean"},"meta":{"$ref":"#/components/schemas/Meta"},"billingAddressChanged":{"type":"boolean"},"billingAddress":{"$ref":"#/components/schemas/Address"},"shippingAddressChanged":{"type":"boolean"},"shippingAddress":{"$ref":"#/components/schemas/Address"},"locked":{"type":"boolean"},"onAddItem":{"type":"string"},"warnIfItemPriceZero":{"type":"boolean"},"assignDescriptionOnAddArticle":{"type":"boolean"},"receipts":{"type":"array","items":{"$ref":"#/components/schemas/Receipts"}},"paymentInProgress":{"type":"boolean"},"paymentStarted":{"type":"boolean"},"paymentStatus":{"type":"string"},"pickup":{"$ref":"#/components/schemas/Pickup"},"logId":{"type":"string"},"project":{"$ref":"#/components/schemas/ObjectId"},"defaultProject":{"$ref":"#/components/schemas/ObjectId"},"currency":{"$ref":"#/components/schemas/Currency"},"data":{"$ref":"#/components/schemas/PatchDataDto"}}},"ItemAttribute":{"type":"object","properties":{"index":{"type":"number","description":"Index of the item in the posbasket items array"},"attribute":{"type":"string","enum":["discount","price","amount","notice","course","shippingdate","title","bin","stock","user","project","itemtracker","itemtrackerDocumentb","document","documentItemId"],"description":"Attribute name to update (discount, price, amount, notice, course, shippingdate, title, bin, stock, user, project, itemtracker, itemtrackerDocumentb, document, documentItemId, etc.)"},"content":{"type":"object","description":"New value for the attribute"},"notice":{"type":"string","description":"Additional notice for the item"}},"required":["index","attribute","content"]},"SetItemAttributesDto":{"type":"object","properties":{"attributes":{"description":"Array of item attributes to update","type":"array","items":{"$ref":"#/components/schemas/ItemAttribute"}},"updateNotification":{"type":"boolean","description":"Whether to send update notifications","default":true},"userHasChangedPrice":{"type":"boolean","description":"Whether user has changed the price manually"},"allowPaymentInProgress":{"type":"boolean","description":"Allow item updates while payment is in progress","default":false}},"required":["attributes"]},"SetItemAttributeDto":{"type":"object","properties":{"index":{"type":"number","minimum":0,"example":0,"description":"Index of the item in the document items array"},"attribute":{"type":"string","example":"discount","description":"Attribute name to update","enum":["discount","price","amount","stock","serviceDate","title","description","notice","serialNumber","course"]},"content":{"example":15,"description":"Content/value for the attribute. Type depends on attribute type.","oneOf":[{"type":"number"},{"type":"string"}]},"notice":{"type":"string","example":"Additional notice for the item","description":"Optional notice to add to the item"}},"required":["index","attribute","content"]},"CreateDocumentFromPosbasketDto":{"type":"object","properties":{"documentType":{"type":"string"},"documentGroup":{"type":"string"},"payment":{"type":"object"},"locked":{"type":"boolean"},"credit":{"type":"boolean"},"moneyPaid":{"type":"number"},"moneyBack":{"type":"number"},"pospaymentId":{"type":"string"},"terminalResponse":{"type":"object"},"secucard_receipt":{"type":"string"},"printed":{"type":"boolean"},"sentbymail":{"type":"boolean"},"accounted":{"type":"boolean"},"paymentMethod":{"type":"string"},"stock":{"type":"string"},"meta":{"type":"object"},"metadata":{"type":"object"},"tags":{"type":"array","items":{"type":"object"}},"expiresIn":{"type":"number"}},"required":["documentType"]},"MergePosbasketDto":{"type":"object","properties":{"targetId":{"type":"string","description":"ID of the target posbasket that receives the items","example":"507f1f77bcf86cd799439011"},"updateNotification":{"type":"boolean","default":true,"description":"Whether to send update notifications"}},"required":["targetId"]},"AddCouponDto":{"type":"object","properties":{"code":{"type":"string","description":"Refive coupon code to apply to the basket","example":"WELCOME10"}},"required":["code"]},"ResolveLoyaltyDto":{"type":"object","properties":{"scanValue":{"type":"string"},"email":{"type":"string"},"phone":{"type":"string"},"loyaltyAccountId":{"type":"string"},"customerIdentifier":{"type":"string"}}},"Creditreserved":{"type":"object","properties":{"value":{"type":"number"},"posbasket":{"$ref":"#/components/schemas/ObjectId"},"type":{"type":"string"}}},"CreateIdentityDto":{"type":"object","properties":{"_id":{"$ref":"#/components/schemas/ObjectId"},"title":{"type":"string"},"businesspartner":{"$ref":"#/components/schemas/ObjectId"},"employee":{"$ref":"#/components/schemas/ObjectId"},"code":{"type":"string"},"points":{"type":"number"},"useAsCreditCard":{"type":"boolean"},"allowNegativeCredit":{"type":"boolean"},"credit":{"type":"number"},"creditReserved":{"type":"array","items":{"$ref":"#/components/schemas/Creditreserved"}},"datevAccountNumber":{"type":"string"},"datevTaxAuto":{"type":"boolean"},"datevTaxKey":{"type":"string"},"taxRate":{"type":"number"},"taxassignment":{"$ref":"#/components/schemas/ObjectId"}}},"Identity":{"type":"object","properties":{}},"UpdateIdentityDto":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/PatchDataDto"}},"title":{"type":"string"},"businesspartner":{"$ref":"#/components/schemas/ObjectId"},"employee":{"$ref":"#/components/schemas/ObjectId"},"code":{"type":"string"},"points":{"type":"number"},"useAsCreditCard":{"type":"boolean"},"allowNegativeCredit":{"type":"boolean"},"credit":{"type":"number"},"creditReserved":{"type":"array","items":{"$ref":"#/components/schemas/Creditreserved"}},"datevAccountNumber":{"type":"string"},"datevTaxAuto":{"type":"boolean"},"datevTaxKey":{"type":"string"},"taxRate":{"type":"number"},"taxassignment":{"$ref":"#/components/schemas/ObjectId"}}},"LoadIdentityDto":{"type":"object","properties":{"amount":{"type":"number"},"notice":{"type":"string"}},"required":["amount"]},"UnloadIdentityDto":{"type":"object","properties":{"amount":{"type":"number"},"notice":{"type":"string"}},"required":["amount"]},"Payment":{"type":"object","properties":{}},"TSE":{"type":"object","properties":{"request":{"type":"object"},"response":{"type":"object"}}},"CreateTransactionDto":{"type":"object","properties":{"_id":{"$ref":"#/components/schemas/ObjectId"},"type":{"type":"string"},"state":{"type":"string"},"index":{"type":"string"},"identity":{"$ref":"#/components/schemas/ObjectId"},"value":{"type":"number"},"document":{"type":"string"},"documentItem":{"$ref":"#/components/schemas/ObjectId"},"businesspartner":{"$ref":"#/components/schemas/ObjectId"},"notice":{"type":"string"},"cardPayment":{"$ref":"#/components/schemas/Payment"},"reconciliationWithClosure":{"$ref":"#/components/schemas/Payment"},"pointofsale":{"$ref":"#/components/schemas/ObjectId"},"terminal":{"$ref":"#/components/schemas/ObjectId"},"posjournal":{"$ref":"#/components/schemas/ObjectId"},"number":{"type":"number"},"transactionCounter":{"$ref":"#/components/schemas/ObjectId"},"uuid":{"type":"string"},"logId":{"type":"string"},"metadata":{"type":"object"},"tse":{"$ref":"#/components/schemas/TSE"},"history":{"type":"array","items":{"type":"object"}},"createdAt":{"format":"date-time","type":"string"},"updatedAt":{"format":"date-time","type":"string"},"client":{"$ref":"#/components/schemas/ObjectId"},"user":{"$ref":"#/components/schemas/ObjectId"}}},"Transaction":{"type":"object","properties":{}},"UpdateTransactionDto":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/PatchDataDto"}},"type":{"type":"string"},"state":{"type":"string"},"index":{"type":"string"},"identity":{"$ref":"#/components/schemas/ObjectId"},"value":{"type":"number"},"document":{"type":"string"},"documentItem":{"$ref":"#/components/schemas/ObjectId"},"businesspartner":{"$ref":"#/components/schemas/ObjectId"},"notice":{"type":"string"},"cardPayment":{"$ref":"#/components/schemas/Payment"},"reconciliationWithClosure":{"$ref":"#/components/schemas/Payment"},"pointofsale":{"$ref":"#/components/schemas/ObjectId"},"terminal":{"$ref":"#/components/schemas/ObjectId"},"posjournal":{"$ref":"#/components/schemas/ObjectId"},"number":{"type":"number"},"transactionCounter":{"$ref":"#/components/schemas/ObjectId"},"uuid":{"type":"string"},"logId":{"type":"string"},"metadata":{"type":"object"},"tse":{"$ref":"#/components/schemas/TSE"},"history":{"type":"array","items":{"type":"object"}}}},"DocumentItemDsfinvkDto":{"type":"object","properties":{"geschaeftsvorfall":{"type":"string","enum":["TrinkgeldAN","TrinkgeldAG"]}},"required":["geschaeftsvorfall"]},"DocumentArticleItemDto":{"type":"object","properties":{"ref":{"type":"string"},"number":{"type":"string"},"depositDocument":{"type":"string"},"refVoucher":{"type":"string"},"redeem":{"type":"boolean"},"title":{"type":"string"},"title2":{"type":"string"},"description":{"type":"string"},"metadata":{"type":"object"},"dsfinvk":{"$ref":"#/components/schemas/DocumentItemDsfinvkDto"},"amount":{"type":"number"},"price":{"type":"number"},"hasCustomPrice":{"type":"boolean"},"customPrice":{"type":"number"},"priceref":{"type":"number"},"taxRate":{"type":"number"},"noTax":{"type":"boolean"},"datevAccountNumber":{"type":"string"},"datevTaxAuto":{"type":"boolean"},"datevTaxKey":{"type":"string"},"datevCostcentre1":{"type":"string"},"datevCostcentre2":{"type":"string"},"differentialTaxation":{"type":"boolean"},"externalTaxCal":{"type":"boolean"},"taxType":{"type":"string"},"type":{"type":"string"},"serviceDate":{"format":"date-time","type":"string"},"cancelled":{"type":"boolean"},"inHouse":{"type":"boolean"},"course":{"type":"string","maxLength":64}}},"Shipping":{"type":"object","properties":{"date":{"format":"date-time","type":"string"}}},"FastCreateDocumentDto":{"type":"object","properties":{"businesspartner":{"type":"string"},"businesspartnerDebitorNumber":{"type":"string"},"stock":{"type":"string"},"type":{"enum":["N","A","L","l","R","r","G","b","Belegabbruch","hospitalityOrder"],"type":"string"},"items":{"type":"array","items":{"$ref":"#/components/schemas/DocumentArticleItemDto"}},"documentNumber":{"type":"string"},"bonId":{"type":"string","maxLength":64},"receiptNumber":{"type":"number","minimum":1},"billingAddress":{"$ref":"#/components/schemas/Address"},"shippingAddress":{"$ref":"#/components/schemas/Address"},"paymentMethod":{"type":"string"},"metadata":{"type":"object"},"meta":{"$ref":"#/components/schemas/Meta"},"locked":{"type":"boolean","default":false},"date":{"format":"date-time","type":"string"},"tags":{"type":"array","items":{"type":"object"}},"logId":{"type":"string"},"totalDue":{"type":"number"},"totalIncVat":{"type":"number"},"project":{"$ref":"#/components/schemas/ObjectId"},"shipping":{"$ref":"#/components/schemas/Shipping"},"pointofsale":{"type":"string"},"posjournal":{"type":"string"},"inHouse":{"type":"boolean"},"cashier":{"type":"string"},"startedAt":{"type":"string"}},"required":["type","items"]},"PaymentDto":{"type":"object","properties":{"amount":{"type":"number"},"ref":{"$ref":"#/components/schemas/ObjectId"},"status":{"type":"string"},"history":{"type":"array","items":{"type":"object"}},"_id":{"$ref":"#/components/schemas/ObjectId"},"paidAt":{"format":"date-time","type":"string"},"info1":{"type":"string"},"info2":{"type":"string"},"info3":{"type":"string"},"details":{"type":"object"},"currentStatus":{"type":"string"},"transaction":{"$ref":"#/components/schemas/ObjectId"},"document":{"$ref":"#/components/schemas/ObjectId"},"businesspartner":{"$ref":"#/components/schemas/ObjectId"},"sourceDocument":{"$ref":"#/components/schemas/ObjectId"},"source":{"type":"string"},"metadata":{"type":"object"},"locked":{"type":"boolean"}},"required":["amount","ref"]},"AddDocumentPaymentDto":{"type":"object","properties":{"payment":{"$ref":"#/components/schemas/PaymentDto"}},"required":["payment"]},"UpdateItemPriceDto":{"type":"object","properties":{"price":{"type":"number","example":5.99,"description":"Item price"}},"required":["price"]},"UpdateItemAmountDto":{"type":"object","properties":{"amount":{"type":"number","example":5,"description":"Item amount"}},"required":["amount"]},"AddItemsDto":{"type":"object","properties":{"type":{"type":"string","default":"article","enum":["article","text"]},"item":{"oneOf":[{"$ref":"#/components/schemas/DocumentArticleItemDto","example":{"ref":"articleId","number":"10000","title":"1kg bag of flour","description":"Article description","metadata":{},"amount":2,"price":"5.99"},"description":"Either ref or number must be set to identify the article"},{"title":"DocumentTextDto","$ref":"#/components/schemas/DocumentTextDto","example":{"text":"Example text","metadata":{}}}]}},"required":["type","item"]},"DocumentListFilterDto":{"type":"object","properties":{"queryType":{"default":"fuzzy","enum":["fuzzy","exact"],"type":"string","description":"Type of search. \"exact\" for exact match, \"fuzzy\" for partial match"},"sort":{"description":"Sorting options","allOf":[{"$ref":"#/components/schemas/SortOptionDto"}]},"types":{"type":"array","enum":["N","A","L","R","G","E","b","l","r","g"],"description":"Document types (N, A, L, R, G, E outgoing; b, l, r, g incoming). Empty = all types.","items":{"type":"string","enum":["N","A","L","R","G","E","b","l","r","g"]}},"archived":{"type":"boolean","description":"true = only archived documents, false/omitted = only active documents"},"dateFrom":{"type":"string","description":"Document date from (inclusive, ISO 8601)"},"dateTo":{"type":"string","description":"Document date to (inclusive, ISO 8601)"},"paymentStatus":{"type":"array","enum":["","unpaid","succeeded","partial","pending","failed","lost"],"description":"Payment status values (\"\" = no payment status)","items":{"type":"string","enum":["","unpaid","succeeded","partial","pending","failed","lost"]}},"locked":{"type":"boolean","description":"Filter by locked flag"},"printed":{"type":"boolean","description":"Filter by printed flag"},"sentbymail":{"type":"boolean","description":"Filter by sent-by-mail flag"},"tags":{"description":"Document tag ids. A document must carry all of them.","type":"array","items":{"type":"string"}},"fakturaOnly":{"type":"boolean","description":"true = only documents not created at a point of sale"},"pointofsale":{"type":"string","description":"Only documents created at this point of sale"}}},"ListDocumentsDto":{"type":"object","properties":{"query":{"type":"string","maxLength":200,"description":"Free text: document number, customer/supplier number or name, address, item number/title, foreign number, tag name. A date in DD.MM.YYYY matches that day."},"filters":{"description":"Filters. Sort fields: date, number, totalIncVat","allOf":[{"$ref":"#/components/schemas/DocumentListFilterDto"}]},"pagination":{"description":"Pagination (pageSize max 500)","allOf":[{"$ref":"#/components/schemas/PaginationDto"}]}}},"ConvertDocumentItemDto":{"type":"object","properties":{"documentItemId":{"type":"string","description":"Document item ID to convert"},"amount":{"type":"number","description":"Amount to convert"},"price":{"type":"number","description":"Price for the converted item"},"bundle":{"type":"string","description":"Bundle ID for bundle articles"}},"required":["documentItemId","amount","price"]},"ConvertDocumentDto":{"type":"object","properties":{"id":{"type":"string","description":"Document ID to convert"},"client":{"description":"Client ID","allOf":[{"$ref":"#/components/schemas/ObjectId"}]},"user":{"description":"User ID","allOf":[{"$ref":"#/components/schemas/ObjectId"}]},"items":{"enum":["all"],"description":"Items to convert or \"all\"","oneOf":[{"type":"string","enum":["all"],"example":"all"},{"type":"array","items":{"$ref":"#/components/schemas/ConvertDocumentItemDto"},"example":[{"documentItemId":"507f1f77bcf86cd799439011","amount":1,"price":9.99}]}]},"type":{"enum":["N","A","L","l","R","r","G","b","Belegabbruch","hospitalityOrder"],"type":"string","description":"Target document type"},"businesspartner":{"description":"Business partner ID for the new document","allOf":[{"$ref":"#/components/schemas/ObjectId"}]},"createTargetDocument":{"type":"boolean","description":"Whether to create a new target document","default":true},"createNewBaseDocument":{"type":"boolean","description":"Whether to create a new base document","default":true},"stock":{"description":"Stock ID for the new document","allOf":[{"$ref":"#/components/schemas/ObjectId"}]},"takeShippingDate":{"type":"boolean","description":"Keep the source document delivery date. False sets today.","default":true},"shippingDate":{"type":"string","description":"Delivery date applied when takeShippingDate is false. Defaults to now."},"updatePayment":{"type":"boolean","description":"Whether to update payment details"},"sepaDate":{"type":"string","description":"SEPA date for payment processing"}},"required":["id","client","user","items","type"]},"SetShippingDateDto":{"type":"object","properties":{"date":{"format":"date-time","type":"string","example":"2025-04-17T15:11:28+02:00","description":"Lieferdatum"},"from":{"format":"date-time","type":"string","example":"2025-04-17T08:00:00+02:00","description":"Lieferzeitraum Start (Von)"},"to":{"format":"date-time","type":"string","example":"2025-04-17T18:00:00+02:00","description":"Lieferzeitraum Ende (Bis)"}},"required":["date"]},"ConvertDocumentMailDto":{"type":"object","properties":{"to":{"type":"string","example":"kunde@example.com","description":"Recipient of the converted document"},"cc":{"type":"string","maxLength":500,"description":"CC recipients, comma separated"},"bcc":{"type":"string","maxLength":500,"description":"BCC recipients, comma separated. Defaults to the client mail setting."},"template":{"type":"string","example":"507f1f77bcf86cd799439011","description":"Template used for the PDF attachment"},"subject":{"type":"string","maxLength":300,"description":"Mail subject"},"text":{"type":"string","maxLength":50000,"description":"Mail body (HTML)"}},"required":["to","template"]},"ConvertDocumentByIdDto":{"type":"object","properties":{"items":{"enum":["all"],"description":"Items to convert or \"all\"","oneOf":[{"type":"string","enum":["all"],"example":"all"},{"type":"array","items":{"$ref":"#/components/schemas/ConvertDocumentItemDto"},"example":[{"documentItemId":"507f1f77bcf86cd799439011","amount":1,"price":9.99}]}]},"type":{"enum":["N","A","L","l","R","r","G","b","Belegabbruch","hospitalityOrder"],"type":"string","description":"Target document type"},"businesspartner":{"description":"Business partner ID for the new document","allOf":[{"$ref":"#/components/schemas/ObjectId"}]},"createTargetDocument":{"type":"boolean","description":"Whether to create a new target document","default":true},"createNewBaseDocument":{"type":"boolean","description":"Whether to create a new base document","default":true},"stock":{"description":"Stock ID for the new document","allOf":[{"$ref":"#/components/schemas/ObjectId"}]},"takeShippingDate":{"type":"boolean","description":"Keep the source document delivery date. False sets today.","default":true},"shippingDate":{"type":"string","description":"Delivery date applied when takeShippingDate is false. Defaults to now."},"updatePayment":{"type":"boolean","description":"Whether to update payment details"},"sepaDate":{"type":"string","description":"SEPA date for payment processing"},"mail":{"description":"Send the new document by mail. With documents.useLock it is locked first, like in the legacy convert page.","allOf":[{"$ref":"#/components/schemas/ConvertDocumentMailDto"}]}},"required":["items","type"]},"PrintDocumentByIdDto":{"type":"object","properties":{"template":{"$ref":"#/components/schemas/ObjectId"},"printer":{"$ref":"#/components/schemas/ObjectId"},"openCashDrawer":{"type":"boolean"},"printVouchers":{"type":"boolean"}},"required":["template","printer"]},"ChangeDocumentBusinesspartnerDto":{"type":"object","properties":{"businesspartner":{"type":"string","example":"507f1f77bcf86cd799439011","description":"Business partner to assign"}},"required":["businesspartner"]},"SetItemsDiscountDto":{"type":"object","properties":{"discount":{"type":"number","minimum":0,"maximum":100,"example":10,"description":"Discount percentage (0-100) applied to every article item"}},"required":["discount"]},"AddDocumentArticleItemDto":{"type":"object","properties":{"article":{"type":"string","example":"507f1f77bcf86cd799439011","description":"Article to add"},"amount":{"type":"number","example":1,"description":"Quantity, defaults to 1"}},"required":["article"]},"RemoveDocumentItemDto":{"type":"object","properties":{"item":{"type":"string","example":"507f1f77bcf86cd799439011","description":"Item to remove"}},"required":["item"]},"ChangeDocumentStockDto":{"type":"object","properties":{"stock":{"type":"string","example":"507f1f77bcf86cd799439011","description":"Stock assigned to the document and all of its items"}},"required":["stock"]},"VoidDocumentDto":{"type":"object","properties":{"pointofsale":{"type":"string","description":"Pointofsale ID"},"posjournal":{"type":"string","description":"Posjournal ID"},"documentGroup":{"type":"string","description":"Documentgroup ID"},"description":{"type":"string","description":"Description"},"metadata":{"type":"object","description":"Metadata"},"auto":{"type":"boolean","description":"Auto flag"}}},"PrintDocumentDto":{"type":"object","properties":{"template":{"$ref":"#/components/schemas/ObjectId"},"printer":{"$ref":"#/components/schemas/ObjectId"},"id":{"$ref":"#/components/schemas/ObjectId"},"openCashDrawer":{"type":"boolean"},"printVouchers":{"type":"boolean"},"client":{"type":"string"},"user":{"type":"string"}},"required":["template","printer","id"]},"CreateDocumentPaymentDto":{"type":"object","properties":{"_id":{"$ref":"#/components/schemas/ObjectId"},"amount":{"type":"number"},"ref":{"$ref":"#/components/schemas/ObjectId"},"paidAt":{"format":"date-time","type":"string"},"info1":{"type":"string"},"info2":{"type":"string"},"info3":{"type":"string"},"details":{"type":"object"},"currentStatus":{"type":"string"},"transaction":{"$ref":"#/components/schemas/ObjectId"},"document":{"$ref":"#/components/schemas/ObjectId"},"businesspartner":{"$ref":"#/components/schemas/ObjectId"},"sourceDocument":{"$ref":"#/components/schemas/ObjectId"},"source":{"type":"string"},"metadata":{"type":"object"},"locked":{"type":"boolean"}}},"Document_Payment":{"type":"object","properties":{}},"UpdateDocumentPaymentDto":{"type":"object","properties":{"amount":{"type":"number"},"ref":{"$ref":"#/components/schemas/ObjectId"},"paidAt":{"format":"date-time","type":"string"},"info1":{"type":"string"},"info2":{"type":"string"},"info3":{"type":"string"},"details":{"type":"object"},"currentStatus":{"type":"string"},"transaction":{"$ref":"#/components/schemas/ObjectId"},"document":{"$ref":"#/components/schemas/ObjectId"},"businesspartner":{"$ref":"#/components/schemas/ObjectId"},"sourceDocument":{"$ref":"#/components/schemas/ObjectId"},"source":{"type":"string"},"metadata":{"type":"object"},"locked":{"type":"boolean"}}},"Assignment":{"type":"object","properties":{"taxRevenue":{"$ref":"#/components/schemas/ObjectId"},"taxKey":{"$ref":"#/components/schemas/ObjectId"},"taxRate":{"type":"string"},"taxAccount":{"$ref":"#/components/schemas/ObjectId"},"costcentre1":{"$ref":"#/components/schemas/ObjectId"},"costcentre2":{"$ref":"#/components/schemas/ObjectId"},"default":{"type":"boolean"},"validFrom":{"format":"date-time","type":"string"}}},"TimespanAssignment":{"type":"object","properties":{"taxRevenue":{"$ref":"#/components/schemas/ObjectId"},"taxKey":{"type":"string"},"datevTaxKey":{"type":"string"},"taxRate":{"type":"string"},"taxAccount":{"$ref":"#/components/schemas/ObjectId"},"costcentre1":{"$ref":"#/components/schemas/ObjectId"},"costcentre2":{"$ref":"#/components/schemas/ObjectId"},"default":{"type":"boolean"},"validFrom":{"format":"date-time","type":"string"},"differentialTaxation":{"type":"boolean"},"noTax":{"type":"boolean"}}},"Timespan":{"type":"object","properties":{}},"CreateTaxassignmentDto":{"type":"object","properties":{"_id":{"$ref":"#/components/schemas/ObjectId"},"name":{"type":"string"},"number":{"type":"string"},"assignments":{"type":"array","items":{"$ref":"#/components/schemas/Assignment"}},"timespans":{"type":"array","items":{"$ref":"#/components/schemas/Timespan"}}},"required":["name"]},"Taxassignment":{"type":"object","properties":{}},"UpdateTaxassignmentDto":{"type":"object","properties":{"name":{"type":"string"},"number":{"type":"string"},"assignments":{"type":"array","items":{"$ref":"#/components/schemas/Assignment"}},"timespans":{"type":"array","items":{"$ref":"#/components/schemas/Timespan"}}}},"CreateCurrencyDto":{"type":"object","properties":{"_id":{"$ref":"#/components/schemas/ObjectId"},"name":{"type":"string"},"iso":{"type":"string"},"symbol":{"type":"string"},"smallSymbol":{"type":"string"},"symbolposition":{"type":"string"},"standard":{"type":"boolean"},"factor":{"type":"number"}}},"UpdateCurrencyDto":{"type":"object","properties":{"name":{"type":"string"},"iso":{"type":"string"},"symbol":{"type":"string"},"smallSymbol":{"type":"string"},"symbolposition":{"type":"string"},"standard":{"type":"boolean"},"factor":{"type":"number"},"data":{"type":"array","items":{"$ref":"#/components/schemas/PatchDataDto"}}}},"CreatePricelistDto":{"type":"object","properties":{"_id":{"$ref":"#/components/schemas/ObjectId"},"name":{"type":"string"},"showInSearchResult":{"type":"boolean"},"type":{"type":"string"},"currency":{"$ref":"#/components/schemas/ObjectId"}},"required":["name"]},"Pricelist":{"type":"object","properties":{}},"UpdatePricelistDto":{"type":"object","properties":{"_id":{"$ref":"#/components/schemas/ObjectId"},"name":{"type":"string"},"showInSearchResult":{"type":"boolean"},"type":{"type":"string"},"currency":{"$ref":"#/components/schemas/ObjectId"},"data":{"$ref":"#/components/schemas/PatchDataDto"}}},"CreateTaxrevenueDto":{"type":"object","properties":{"_id":{"$ref":"#/components/schemas/ObjectId"},"name":{"type":"string"},"type":{"type":"string"},"countryType":{"type":"string"}},"required":["name","type"]},"Taxrevenue":{"type":"object","properties":{}},"UpdateTaxrevenueDto":{"type":"object","properties":{"name":{"type":"string"},"type":{"type":"string"},"countryType":{"type":"string"},"data":{"type":"array","items":{"$ref":"#/components/schemas/PatchDataDto"}}}},"CreateGroupDto":{"type":"object","properties":{"_id":{"$ref":"#/components/schemas/ObjectId"},"name":{"type":"string"},"users":{"type":"array","items":{"$ref":"#/components/schemas/ObjectId"}},"policies":{"type":"array","items":{"$ref":"#/components/schemas/ObjectId"}},"branches":{"type":"array","items":{"$ref":"#/components/schemas/ObjectId"}}},"required":["name"]},"Group":{"type":"object","properties":{}},"UpdateGroupDto":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/PatchDataDto"}},"name":{"type":"string"},"users":{"type":"array","items":{"$ref":"#/components/schemas/ObjectId"}},"policies":{"type":"array","items":{"$ref":"#/components/schemas/ObjectId"}},"branches":{"type":"array","items":{"$ref":"#/components/schemas/ObjectId"}}}},"SearchQuery":{"type":"object","properties":{"query":{"type":"object"},"searchName":{"type":"object"}}},"Search":{"type":"object","properties":{"name":{"type":"string"},"data":{"type":"object"}}},"Settings":{"type":"object","properties":{"searches":{"type":"array","items":{"$ref":"#/components/schemas/Search"}},"saleStatisticIncVat":{"type":"boolean"},"stockCalculationName":{"type":"string"}}},"CreateUserDto":{"type":"object","properties":{"_id":{"$ref":"#/components/schemas/ObjectId"},"firstName":{"type":"string"},"lastName":{"type":"string"},"clientAdmin":{"type":"boolean"},"language":{"type":"string"},"displayName":{"type":"string"},"email":{"type":"string"},"telephone":{"type":"string"},"username":{"type":"string"},"password":{"type":"string"},"fastUserSwitchPassword":{"type":"string"},"salt":{"type":"string"},"newPassword":{"type":"string"},"provider":{"type":"string"},"providerData":{"type":"object"},"additionalProvidersData":{"type":"object"},"redirectAfterLogin":{"type":"string"},"reorderNotification":{"type":"boolean"},"searchQueries":{"type":"array","items":{"$ref":"#/components/schemas/SearchQuery"}},"searchFavorites":{"type":"object"},"role":{"$ref":"#/components/schemas/ObjectId"},"rbac":{"type":"object"},"individualPlan":{"type":"object"},"settings":{"type":"array","items":{"$ref":"#/components/schemas/Settings"}},"shortName":{"type":"string"},"sessionID":{"type":"array","items":{"type":"string"}},"alwaysOn":{"type":"boolean"},"remoteUser":{"$ref":"#/components/schemas/ObjectId"},"remoteUserAdmin":{"$ref":"#/components/schemas/ObjectId"},"isAvailable":{"type":"boolean"},"signature":{"type":"string"},"gender":{"type":"string"},"userflowActive":{"type":"boolean"},"affiliate":{"$ref":"#/components/schemas/Affiliate"},"app":{"$ref":"#/components/schemas/ObjectId"},"created":{"format":"date-time","type":"string"},"updated":{"format":"date-time","type":"string"}}},"User":{"type":"object","properties":{}},"SetYposPinDto":{"type":"object","properties":{"pin":{"type":"string","pattern":"/^\\d{6}$/","example":"123456","description":"Exactly 6 digits"}},"required":["pin"]},"YposPinStatus":{"type":"object","properties":{"_id":{"type":"string"},"yposEmployeeNumber":{"type":"number","nullable":true},"hasYposPin":{"type":"boolean"}},"required":["_id","yposEmployeeNumber","hasYposPin"]},"UpdateUserDto":{"type":"object","properties":{"firstName":{"type":"string"},"lastName":{"type":"string"},"clientAdmin":{"type":"boolean"},"language":{"type":"string"},"displayName":{"type":"string"},"email":{"type":"string"},"telephone":{"type":"string"},"username":{"type":"string"},"password":{"type":"string"},"fastUserSwitchPassword":{"type":"string"},"salt":{"type":"string"},"newPassword":{"type":"string"},"provider":{"type":"string"},"secret":{"type":"string"},"providerData":{"type":"object"},"additionalProvidersData":{"type":"object"},"redirectAfterLogin":{"type":"string"},"searchQueries":{"type":"array","items":{"$ref":"#/components/schemas/SearchQuery"}},"searchFavorites":{"type":"object"},"role":{"$ref":"#/components/schemas/ObjectId"},"rbac":{"type":"object"},"individualPlan":{"type":"object"},"reorderNotification":{"type":"boolean"},"settings":{"type":"array","items":{"$ref":"#/components/schemas/Settings"}},"shortName":{"type":"string"},"sessionID":{"type":"array","items":{"type":"string"}},"alwaysOn":{"type":"boolean"},"remoteUser":{"$ref":"#/components/schemas/ObjectId"},"remoteUserAdmin":{"$ref":"#/components/schemas/ObjectId"},"isAvailable":{"type":"boolean"},"signature":{"type":"string"},"gender":{"type":"string"},"userflowActive":{"type":"boolean"},"affiliate":{"$ref":"#/components/schemas/Affiliate"},"app":{"$ref":"#/components/schemas/ObjectId"},"created":{"format":"date-time","type":"string"},"updated":{"format":"date-time","type":"string"},"color":{"type":"string"},"calendarEnabled":{"type":"boolean"},"calendarColor":{"type":"string"},"calendarAccess":{"type":"array","items":{"$ref":"#/components/schemas/ObjectId"}},"calendarAvailability":{"type":"object","properties":{"monday":{"type":"object","properties":{"start":{"required":false,"type":"string"},"end":{"required":false,"type":"string"},"enabled":{"required":false,"type":"boolean"}}},"tuesday":{"type":"object","properties":{"start":{"required":false,"type":"string"},"end":{"required":false,"type":"string"},"enabled":{"required":false,"type":"boolean"}}},"wednesday":{"type":"object","properties":{"start":{"required":false,"type":"string"},"end":{"required":false,"type":"string"},"enabled":{"required":false,"type":"boolean"}}},"thursday":{"type":"object","properties":{"start":{"required":false,"type":"string"},"end":{"required":false,"type":"string"},"enabled":{"required":false,"type":"boolean"}}},"friday":{"type":"object","properties":{"start":{"required":false,"type":"string"},"end":{"required":false,"type":"string"},"enabled":{"required":false,"type":"boolean"}}},"saturday":{"type":"object","properties":{"start":{"required":false,"type":"string"},"end":{"required":false,"type":"string"},"enabled":{"required":false,"type":"boolean"}}},"sunday":{"type":"object","properties":{"start":{"required":false,"type":"string"},"end":{"required":false,"type":"string"},"enabled":{"required":false,"type":"boolean"}}}}}},"required":["calendarAvailability"]},"CheckPinDto":{"type":"object","properties":{"pin":{"type":"string","description":"User PIN for verification","example":"1234"}},"required":["pin"]},"SetPinDto":{"type":"object","properties":{"pin":{"type":"string","pattern":"/^\\d*$/","description":"Numeric PIN for fast user switching. Empty string removes the PIN.","example":"1234"}}},"CreateArticleunitDto":{"type":"object","properties":{"_id":{"$ref":"#/components/schemas/ObjectId"},"name":{"type":"string"}}},"Articleunit":{"type":"object","properties":{}},"UpdateArticleunitDto":{"type":"object","properties":{"name":{"type":"string"}}},"CreateBinDto":{"type":"object","properties":{"_id":{"$ref":"#/components/schemas/ObjectId"},"name":{"type":"string"},"stock":{"$ref":"#/components/schemas/ObjectId"},"sort":{"type":"number"}},"required":["name"]},"Bin":{"type":"object","properties":{}},"UpdateBinDto":{"type":"object","properties":{"name":{"type":"string"},"stock":{"$ref":"#/components/schemas/ObjectId"},"sort":{"type":"number"},"data":{"type":"array","items":{"$ref":"#/components/schemas/PatchDataDto"}}}},"CreateBonusDto":{"type":"object","properties":{"_id":{"$ref":"#/components/schemas/ObjectId"},"name":{"type":"string"},"code":{"type":"string"},"value":{"type":"object"},"minimumcharge":{"type":"object"},"valid":{"type":"boolean"},"validFrom":{"format":"date-time","type":"string"},"validTo":{"format":"date-time","type":"string"},"units":{"type":"object"},"taxassignment":{"$ref":"#/components/schemas/ObjectId"},"cashed":{"type":"boolean"},"pointofsale":{"$ref":"#/components/schemas/ObjectId"},"inuse":{"type":"boolean"},"redeem":{"type":"boolean"},"redeemAt":{"format":"date-time","type":"string"},"redeemDocument":{"$ref":"#/components/schemas/ObjectId"},"saleDocument":{"$ref":"#/components/schemas/ObjectId"}},"required":["name"]},"UpdateBonusDto":{"type":"object","properties":{"name":{"type":"string"},"code":{"type":"string"},"value":{"type":"object"},"minimumcharge":{"type":"object"},"valid":{"type":"boolean"},"validFrom":{"format":"date-time","type":"string"},"validTo":{"format":"date-time","type":"string"},"units":{"type":"object"},"taxassignment":{"$ref":"#/components/schemas/ObjectId"},"cashed":{"type":"boolean"},"pointofsale":{"$ref":"#/components/schemas/ObjectId"},"inuse":{"type":"boolean"},"redeem":{"type":"boolean"},"redeemAt":{"format":"date-time","type":"string"},"redeemDocument":{"$ref":"#/components/schemas/ObjectId"},"saleDocument":{"$ref":"#/components/schemas/ObjectId"},"data":{"type":"array","items":{"$ref":"#/components/schemas/PatchDataDto"}}}},"Sum":{"type":"object","properties":{"present":{"type":"number"},"pause":{"type":"number"},"total":{"type":"number"}}},"CreateTimespanDto":{"type":"object","properties":{"_id":{"$ref":"#/components/schemas/ObjectId"},"startsAt":{"format":"date-time","type":"string"},"endsAt":{"format":"date-time","type":"string"},"startLocation":{"$ref":"#/components/schemas/Location"},"endLocation":{"$ref":"#/components/schemas/Location"},"type":{"type":"string"},"branch":{"$ref":"#/components/schemas/ObjectId"},"ref":{"$ref":"#/components/schemas/ObjectId"},"sum":{"$ref":"#/components/schemas/Sum"},"employee":{"$ref":"#/components/schemas/ObjectId"}}},"UpdateTimespanDto":{"type":"object","properties":{"startsAt":{"format":"date-time","type":"string"},"endsAt":{"format":"date-time","type":"string"},"startLocation":{"$ref":"#/components/schemas/Location"},"endLocation":{"$ref":"#/components/schemas/Location"},"type":{"type":"string"},"branch":{"type":"string"},"ref":{"type":"string"},"sum":{"$ref":"#/components/schemas/Sum"},"employee":{"type":"string"}},"required":["startsAt","endsAt","startLocation","endLocation","type","branch","ref","sum","employee"]},"CreatePospaymentDto":{"type":"object","properties":{"_id":{"$ref":"#/components/schemas/ObjectId"},"name":{"type":"string"},"message":{"type":"string"},"mailaddress":{"type":"string"},"steps":{"type":"object"},"document":{"$ref":"#/components/schemas/Document"},"type":{"type":"string"},"print":{"type":"array","items":{"$ref":"#/components/schemas/Print"}},"truncateBasket":{"type":"boolean"},"cashbased":{"type":"boolean"},"doNotCreateProcessPosbasket":{"type":"boolean"},"payment":{"$ref":"#/components/schemas/ObjectId"},"pointofsale":{"$ref":"#/components/schemas/ObjectId"}},"required":["name"]},"Pospayment":{"type":"object","properties":{}},"UpdatePospaymentDto":{"type":"object","properties":{"_id":{"$ref":"#/components/schemas/ObjectId"},"name":{"type":"string"},"message":{"type":"string"},"mailaddress":{"type":"string"},"steps":{"type":"object"},"document":{"$ref":"#/components/schemas/Document"},"type":{"type":"string"},"print":{"type":"array","items":{"$ref":"#/components/schemas/Print"}},"truncateBasket":{"type":"boolean"},"cashbased":{"type":"boolean"},"doNotCreateProcessPosbasket":{"type":"boolean"},"payment":{"$ref":"#/components/schemas/ObjectId"},"pointofsale":{"$ref":"#/components/schemas/ObjectId"}}},"From":{"type":"object","properties":{"name":{"type":"string"},"email":{"type":"string"},"user":{"$ref":"#/components/schemas/ObjectId"},"client":{"$ref":"#/components/schemas/ObjectId"}}},"CreateJobDto":{"type":"object","properties":{"_id":{"$ref":"#/components/schemas/ObjectId"},"type":{"type":"string"},"title":{"type":"string"},"data":{"type":"object"},"result":{"type":"object"},"target":{"type":"string"},"history":{"type":"array","items":{"$ref":"#/components/schemas/History"}},"state":{"type":"string"},"priority":{"type":"number"},"executeAt":{"format":"date-time","type":"string"}}},"Job":{"type":"object","properties":{}},"UpdateJobDto":{"type":"object","properties":{"type":{"type":"string"},"title":{"type":"string"},"data":{"type":"object"},"result":{"type":"object"},"target":{"type":"string"},"history":{"type":"array","items":{"$ref":"#/components/schemas/History"}},"state":{"type":"string"},"priority":{"type":"number"},"executeAt":{"format":"date-time","type":"string"}}},"ForceStopJobDto":{"type":"object","properties":{"id":{"$ref":"#/components/schemas/ObjectId"},"type":{"type":"string"}}},"Company":{"type":"object","properties":{"name":{"type":"string"},"tax_number":{"type":"string"},"vat_id_number":{"type":"string"},"address":{"$ref":"#/components/schemas/Address"},"location":{"$ref":"#/components/schemas/Location"}}},"Dsfinvk":{"type":"object","properties":{"company":{"$ref":"#/components/schemas/Company"},"startId":{"type":"string"},"currentId":{"type":"string"},"sumTotal":{"type":"number"},"sumTotalCash":{"type":"number"},"cannotDetermineVat":{"type":"string"},"brand":{"type":"string"},"model":{"type":"string"},"serialNumber":{"type":"string"},"swBrand":{"type":"string"},"swVersion":{"type":"string"},"currency":{"type":"string"}}},"Signature":{"type":"object","properties":{"algorithm":{"type":"string"},"counter":{"type":"number"},"public_key":{"type":"string"},"value":{"type":"string"}}},"Errordetail":{"type":"object","properties":{"message":{"type":"string"},"detail":{"type":"object"}}},"DE":{"type":"object","properties":{"signature":{"$ref":"#/components/schemas/Signature"},"time_start":{"type":"string"},"time_end":{"type":"string"},"number":{"type":"number"},"timestamp_format":{"type":"string"},"certificate_serial":{"type":"string"},"tss_serial_number":{"type":"string"},"client_serial_number":{"type":"string"},"qr_code_data":{"type":"string"},"_version":{"type":"string"},"error":{"type":"boolean"},"errorDetail":{"$ref":"#/components/schemas/Errordetail"}}},"Businesscase":{"type":"object","properties":{"business_case":{"type":"string"}}},"Postransfer":{"type":"object","properties":{}},"Withdrawal":{"type":"object","properties":{"onecent":{"type":"number"},"twocent":{"type":"number"},"fivecent":{"type":"number"},"tencent":{"type":"number"},"twentycent":{"type":"number"},"fiftycent":{"type":"number"},"oneeuro":{"type":"number"},"twoeuro":{"type":"number"},"fiveeuro":{"type":"number"},"teneuro":{"type":"number"},"twentyeuro":{"type":"number"},"fiftyeuro":{"type":"number"},"hundredeuro":{"type":"number"},"twohundredeuro":{"type":"number"},"fivehundredeuro":{"type":"number"}}},"CreatePosjournalDto":{"type":"object","properties":{"_id":{"$ref":"#/components/schemas/ObjectId"},"number":{"type":"string"},"noCash":{"type":"boolean"},"initialValue":{"type":"number"},"finalValue":{"type":"number"},"difference":{"type":"number"},"startDifference":{"type":"number"},"inUse":{"type":"boolean"},"xPayment":{"type":"boolean"},"dsfinvk":{"$ref":"#/components/schemas/Dsfinvk"},"documents":{"type":"array","items":{"$ref":"#/components/schemas/ObjectId"}},"postransfers":{"type":"array","items":{"$ref":"#/components/schemas/Postransfer"}},"tseTxStart":{"$ref":"#/components/schemas/ObjectId"},"pointofsale":{"$ref":"#/components/schemas/ObjectId"},"money":{"type":"object"},"initialMoney":{"type":"object"},"withdrawal":{"$ref":"#/components/schemas/Withdrawal"},"withdrawalTotal":{"type":"number"},"closed":{"type":"boolean"},"userclosed":{"$ref":"#/components/schemas/ObjectId"},"closedAt":{"format":"date-time","type":"string"},"currency":{"$ref":"#/components/schemas/Currency"},"startTransactionNumber":{"type":"number"},"startTransaction":{"$ref":"#/components/schemas/ObjectId"}}},"Posjournal":{"type":"object","properties":{}},"Dispatch":{"type":"object","properties":{"type":{"$ref":"#/components/schemas/ObjectId"},"address":{"$ref":"#/components/schemas/ObjectId"},"date":{"format":"date-time","type":"string"}},"required":["type","address","date"]},"Credit":{"type":"object","properties":{"amount":{"type":"number"},"ref":{"$ref":"#/components/schemas/ObjectId"},"creditAt":{"format":"date-time","type":"string"},"details":{"type":"object"}},"required":["amount","ref","creditAt","details"]},"PaymentDetails":{"type":"object","properties":{"name":{"type":"string"},"iban":{"type":"string"},"bic":{"type":"string"},"mandate":{"type":"string"},"sepaDate":{"format":"date-time","type":"string"}},"required":["name","iban","bic","mandate","sepaDate"]},"Pos":{"type":"object","properties":{"pointofsale":{"$ref":"#/components/schemas/ObjectId"},"pospayment":{"$ref":"#/components/schemas/ObjectId"},"cachier":{"type":"string"},"posjournal":{"$ref":"#/components/schemas/ObjectId"},"posbasket":{"$ref":"#/components/schemas/ObjectId"},"moneyPaid":{"type":"number"},"moneyBack":{"type":"number"},"transactionNumber":{"type":"number"},"transaction":{"$ref":"#/components/schemas/ObjectId"}},"required":["pointofsale","pospayment","cachier","posjournal","posbasket","moneyPaid","moneyBack","transactionNumber","transaction"]},"DocumentDto":{"type":"object","properties":{"type":{"type":"string"},"tseTx":{"$ref":"#/components/schemas/ObjectId"},"version":{"type":"number"},"dsfinvktxID":{"$ref":"#/components/schemas/ObjectId"},"tags":{"type":"array","items":{"$ref":"#/components/schemas/ObjectId"}},"number":{"type":"string"},"description":{"type":"string"},"credit":{"type":"boolean"},"prepayment":{"type":"boolean"},"completed":{"type":"boolean"},"printed":{"type":"boolean"},"sentbymail":{"type":"boolean"},"accounted":{"type":"boolean"},"locked":{"type":"boolean"},"date":{"format":"date-time","type":"string"},"info1":{"type":"string"},"info2":{"type":"string"},"info3":{"type":"string"},"businessYear":{"$ref":"#/components/schemas/ObjectId"},"businessPartner":{"$ref":"#/components/schemas/Businesspartner"},"businesspartner":{"$ref":"#/components/schemas/ObjectId"},"meta":{"$ref":"#/components/schemas/Meta"},"billingAddress":{"$ref":"#/components/schemas/Address"},"shippingAddress":{"$ref":"#/components/schemas/Address"},"shipping":{"$ref":"#/components/schemas/Shipping"},"dispatch":{"$ref":"#/components/schemas/Dispatch"},"payments":{"type":"array","items":{"$ref":"#/components/schemas/Payment"}},"credits":{"type":"array","items":{"$ref":"#/components/schemas/Credit"}},"paymentMethod":{"$ref":"#/components/schemas/ObjectId"},"paymentStatus":{"type":"string","enum":["","unpaid","succeeded","partial","pending","failed","lost"]},"paymentDetails":{"$ref":"#/components/schemas/PaymentDetails"},"stock":{"$ref":"#/components/schemas/Stock"},"contact":{"$ref":"#/components/schemas/Contact"},"items":{"type":"array","items":{"$ref":"#/components/schemas/Item"}},"totalIncVat":{"type":"number"},"totalExVat":{"type":"number"},"totalDue":{"type":"number"},"tax":{"type":"array","items":{"$ref":"#/components/schemas/Tax"}},"taxType":{"type":"string"},"pos":{"$ref":"#/components/schemas/Pos"},"group":{"$ref":"#/components/schemas/ObjectId"},"prints":{"type":"array","items":{"type":"object"}},"currency":{"$ref":"#/components/schemas/Currency"},"at":{"$ref":"#/components/schemas/At"},"de":{"$ref":"#/components/schemas/De"},"createdAt":{"format":"date-time","type":"string"},"updatedAt":{"format":"date-time","type":"string"},"user":{"$ref":"#/components/schemas/ObjectId"},"client":{"$ref":"#/components/schemas/ObjectId"},"paid":{"type":"boolean"},"order":{"type":"boolean"},"hasCustomNumber":{"type":"boolean"},"metadata":{"$ref":"#/components/schemas/Mixed"},"publishToken":{"$ref":"#/components/schemas/Mixed"},"anybill":{"type":"string"},"inHouse":{"type":"boolean"},"logId":{"type":"string"},"project":{"$ref":"#/components/schemas/ObjectId"},"isVoided":{"type":"boolean"},"voidedDocumentId":{"$ref":"#/components/schemas/ObjectId"},"isVoid":{"type":"boolean"},"originalDocumentId":{"$ref":"#/components/schemas/ObjectId"},"status":{"type":"object"}},"required":["type","tseTx","version","dsfinvktxID","tags","number","description","credit","prepayment","completed","printed","sentbymail","accounted","locked","date","info1","info2","info3","businessYear","businessPartner","businesspartner","meta","billingAddress","shippingAddress","shipping","dispatch","payments","credits","paymentMethod","paymentStatus","paymentDetails","stock","contact","items","totalIncVat","totalExVat","totalDue","tax","taxType","pos","group","prints","currency","at","de","createdAt","updatedAt","user","client","paid","order","hasCustomNumber","metadata","publishToken","anybill","inHouse","logId","project","isVoided","voidedDocumentId","isVoid","originalDocumentId","status"]},"AddTransferDto":{"type":"object","properties":{"postransfer":{"type":"string","description":"Postransfer ID"},"pointofsale":{"type":"string","description":"Pointofsale ID"},"amount":{"type":"number","description":"Transfer amount"},"description":{"type":"string","description":"Transfer description"},"createdAt":{"format":"date-time","type":"string","description":"Actual booking time from the till (offline-capable). Defaults to server now."},"bonId":{"type":"string","maxLength":64,"description":"Till receipt id. Resubmitting the same bonId on this journal returns the existing transfer."},"receiptNumber":{"type":"number","minimum":1,"description":"Gapless receipt number of the till (DSFinV-K BON_ID). Replaces the backend transaction counter for this transfer."},"print":{"type":"boolean","description":"Whether to print a transfer receipt. Defaults to true.","default":true}},"required":["postransfer","pointofsale","amount"]},"PrintJournalDto":{"type":"object","properties":{"resourceUrl":{"type":"string"},"pointofsale":{"type":"string"}}},"DownloadA4PdfDto":{"type":"object","properties":{"resourceUrl":{"type":"string"}}},"ClosePosjournalDto":{"type":"object","properties":{"finalValue":{"type":"number"},"money":{"type":"object"},"difference":{"type":"number"},"resourceUrl":{"type":"string"},"pointofsale":{"type":"string"}}},"UpdatePosjournalDto":{"type":"object","properties":{"_id":{"$ref":"#/components/schemas/ObjectId"},"number":{"type":"string"},"noCash":{"type":"boolean"},"initialValue":{"type":"number"},"finalValue":{"type":"number"},"difference":{"type":"number"},"startDifference":{"type":"number"},"inUse":{"type":"boolean"},"xPayment":{"type":"boolean"},"dsfinvk":{"$ref":"#/components/schemas/Dsfinvk"},"documents":{"type":"array","items":{"$ref":"#/components/schemas/ObjectId"}},"postransfers":{"type":"array","items":{"$ref":"#/components/schemas/Postransfer"}},"tseTxStart":{"$ref":"#/components/schemas/ObjectId"},"pointofsale":{"$ref":"#/components/schemas/ObjectId"},"money":{"type":"object"},"initialMoney":{"type":"object"},"withdrawal":{"$ref":"#/components/schemas/Withdrawal"},"withdrawalTotal":{"type":"number"},"closed":{"type":"boolean"},"userclosed":{"$ref":"#/components/schemas/ObjectId"},"closedAt":{"format":"date-time","type":"string"},"currency":{"$ref":"#/components/schemas/Currency"},"startTransactionNumber":{"type":"number"},"startTransaction":{"$ref":"#/components/schemas/ObjectId"},"data":{"type":"array","items":{"$ref":"#/components/schemas/PatchDataDto"}}}},"NumberFormat":{"type":"object","properties":{"prefix":{"type":"string"},"suffix":{"type":"string"},"length":{"type":"object"},"nextValue":{"type":"object"},"increment":{"type":"object"}}},"CreateDocumentgroupDto":{"type":"object","properties":{"name":{"type":"string"},"type":{"type":"string"},"numberFormat":{"$ref":"#/components/schemas/NumberFormat"}},"required":["name"]},"DocumentgroupDto":{"type":"object","properties":{"name":{"type":"string"},"type":{"type":"string"},"numberFormat":{"$ref":"#/components/schemas/NumberFormat"},"metadata":{"type":"object"},"createdAt":{"format":"date-time","type":"string"},"updatedAt":{"format":"date-time","type":"string"},"client":{"type":"string"},"user":{"type":"string"},"status":{"$ref":"#/components/schemas/Status"}},"required":["name","type","numberFormat","metadata","createdAt","updatedAt","client","user","status"]},"UpdateDocumentgroupDto":{"type":"object","properties":{"name":{"type":"string"},"type":{"type":"string"},"numberFormat":{"$ref":"#/components/schemas/NumberFormat"},"metadata":{"type":"object"}}},"CreateStockitementryDto":{"type":"object","properties":{"item":{"type":"string","description":"Article ID (ObjectId) the booking belongs to","example":"507f1f77bcf86cd799439011"},"amount":{"type":"number","description":"Delta to book. Positive values increase the stock (Zugang), negative values decrease it (Abgang). This is a delta, not an absolute stock level.","example":1},"type":{"type":"string","enum":["I"],"description":"Booking type. Use \"I\" for manual corrections/inventory bookings; the amount is then counted with its own sign. Document driven types (N, A, L, R, G, b, l, r, M, O, U, u) are written by the system and must not be sent here.","example":"I"},"stock":{"type":"string","description":"Stock/warehouse ID (ObjectId) the booking is made on","example":"507f1f77bcf86cd799439012"},"description":{"type":"string","description":"Free text shown in the stock movement list","example":"Korrekturbuchung Inventur"},"bin":{"type":"string","description":"Bin/storage location ID (ObjectId) inside the stock","example":"507f1f77bcf86cd799439013"},"serialNumber":{"type":"string","description":"Serial number for serialized articles","example":"SN-000123"}},"required":["item","amount","type","stock"]},"Stockitementry":{"type":"object","properties":{}},"UpdateStockitementryDto":{"type":"object","properties":{"stock":{"$ref":"#/components/schemas/ObjectId"},"bin":{"$ref":"#/components/schemas/ObjectId"},"item":{"$ref":"#/components/schemas/ObjectId"},"amount":{"type":"number"},"date":{"format":"date-time","type":"string"},"type":{"type":"string"},"serialNumber":{"type":"string"},"bestBeforeDate":{"format":"date-time","type":"string"},"batchNumber":{"type":"string"},"document":{"$ref":"#/components/schemas/ObjectId"},"order":{"type":"boolean"},"orderId":{"$ref":"#/components/schemas/ObjectId"},"orderItemId":{"$ref":"#/components/schemas/ObjectId"},"description":{"type":"string"}}},"Base64":{"type":"object","properties":{"name":{"type":"string"},"content":{"type":"string"}}},"UploadImageDto":{"type":"object","properties":{"filename":{"type":"string"},"path":{"type":"string"},"url":{"type":"string"},"base64":{"$ref":"#/components/schemas/Base64"}}},"Image":{"type":"object","properties":{}},"S3":{"type":"object","properties":{"bucket":{"type":"string"},"key":{"type":"string"}}},"Source":{"type":"object","properties":{"url":{"type":"string"}}},"UpdateImageDto":{"type":"object","properties":{"name":{"type":"string"},"filename":{"type":"string"},"format":{"type":"string"},"width":{"type":"number"},"height":{"type":"number"},"storage":{"type":"string"},"s3":{"$ref":"#/components/schemas/S3"},"source":{"$ref":"#/components/schemas/Source"}}},"SelfcheckoutStart":{"type":"object","properties":{"title":{"type":"string"},"subtitle":{"type":"string"},"text":{"type":"string"},"buttonText":{"type":"string"}}},"SelfcheckoutPages":{"type":"object","properties":{"start":{"$ref":"#/components/schemas/SelfcheckoutStart"}}},"FontSize":{"type":"object","properties":{"large":{"type":"number"},"medium":{"type":"number"},"small":{"type":"number"}}},"Selfcheckout":{"type":"object","properties":{"defaultBusinesspartnerId":{"$ref":"#/components/schemas/ObjectId"},"pointofsaleId":{"$ref":"#/components/schemas/ObjectId"},"printerId":{"$ref":"#/components/schemas/ObjectId"},"terminalId":{"$ref":"#/components/schemas/ObjectId"},"documentgroupId":{"$ref":"#/components/schemas/ObjectId"},"paymentId":{"$ref":"#/components/schemas/ObjectId"},"templateId":{"$ref":"#/components/schemas/ObjectId"},"mode":{"type":"string"},"locale":{"type":"string"},"currency":{"type":"string"},"apikey":{"type":"string"},"documentType":{"type":"object"},"colors":{"type":"object"},"logoUrl":{"type":"object"},"voucherImageUrl":{"type":"object"},"sessionTimeout":{"type":"number"},"paymentMethods":{"type":"object"},"skipPageOverview":{"type":"boolean"},"allowCreditPurchase":{"type":"boolean"},"pages":{"$ref":"#/components/schemas/SelfcheckoutPages"},"fontSize":{"$ref":"#/components/schemas/FontSize"},"headerImageUrl":{"type":"string"}}},"TimeWindow":{"type":"object","properties":{"startHour":{"type":"number","minimum":0,"maximum":23},"startMinute":{"type":"number","minimum":0,"maximum":59},"endHour":{"type":"number","minimum":0,"maximum":23},"endMinute":{"type":"number","minimum":0,"maximum":59}}},"DateRange":{"type":"object","properties":{"startDate":{"type":"string","pattern":"/^\\d{4}-\\d{2}-\\d{2}$/"},"endDate":{"type":"string","pattern":"/^\\d{4}-\\d{2}-\\d{2}$/"}}},"Recurring":{"type":"object","properties":{"dayOfMonth":{"type":"array","items":{"type":"number"}},"dayOfWeek":{"type":"array","items":{"type":"number"}},"month":{"type":"array","items":{"type":"number"}}}},"DateWindow":{"type":"object","properties":{"dateRange":{"$ref":"#/components/schemas/DateRange"},"recurring":{"$ref":"#/components/schemas/Recurring"}}},"Advertisement":{"type":"object","properties":{"type":{"type":"object"},"url":{"type":"string"},"duration":{"type":"number"},"timeWindow":{"$ref":"#/components/schemas/TimeWindow"},"dateWindow":{"$ref":"#/components/schemas/DateWindow"}},"required":["type","url"]},"CreateDisplayDto":{"type":"object","properties":{"_id":{"$ref":"#/components/schemas/ObjectId"},"name":{"type":"string"},"password":{"type":"string"},"mode":{"type":"string"},"code":{"type":"string"},"selfcheckout":{"$ref":"#/components/schemas/Selfcheckout"},"app":{"$ref":"#/components/schemas/ObjectId"},"advertisements":{"type":"array","items":{"$ref":"#/components/schemas/Advertisement"}}},"required":["name"]},"Display":{"type":"object","properties":{}},"CreateCustomerDisplayDto":{"type":"object","properties":{"_id":{"$ref":"#/components/schemas/ObjectId"},"name":{"type":"string"},"password":{"type":"string"},"mode":{"type":"string"},"code":{"type":"string"},"selfcheckout":{"$ref":"#/components/schemas/Selfcheckout"},"app":{"$ref":"#/components/schemas/ObjectId"},"advertisements":{"type":"array","items":{"$ref":"#/components/schemas/Advertisement"}},"pointofsale":{"$ref":"#/components/schemas/ObjectId"}},"required":["name","pointofsale"]},"UpdateDisplayDto":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/PatchDataDto"}},"name":{"type":"string"},"password":{"type":"string"},"mode":{"type":"string"},"code":{"type":"string"},"selfcheckout":{"$ref":"#/components/schemas/Selfcheckout"},"app":{"$ref":"#/components/schemas/ObjectId"},"advertisements":{"type":"array","items":{"$ref":"#/components/schemas/Advertisement"}}}},"CreateStatisticDto":{"type":"object","properties":{"_id":{"$ref":"#/components/schemas/ObjectId"},"key":{"type":"string"},"content":{"type":"object"},"meta":{"type":"object"}}},"Statistic":{"type":"object","properties":{}},"UpdateStatisticDto":{"type":"object","properties":{"key":{"type":"string"},"content":{"type":"object"},"meta":{"type":"object"}},"required":["key","content","meta"]},"CreateVoucherDto":{"type":"object","properties":{"_id":{"$ref":"#/components/schemas/ObjectId"},"name":{"type":"string"},"code":{"type":"string"},"value":{"type":"number"},"minimumcharge":{"type":"number"},"valid":{"type":"boolean"},"validFrom":{"format":"date-time","type":"string"},"validTo":{"format":"date-time","type":"string"},"units":{"type":"number"},"taxassignment":{"$ref":"#/components/schemas/ObjectId"},"cashed":{"type":"boolean"},"pointofsale":{"$ref":"#/components/schemas/ObjectId"},"printPointofsale":{"type":"boolean"},"inuse":{"type":"boolean"},"redeem":{"type":"boolean"},"redeemAt":{"format":"date-time","type":"string"},"redeemDocument":{"$ref":"#/components/schemas/ObjectId"},"saleDocument":{"$ref":"#/components/schemas/ObjectId"},"woocommerceId":{"type":"number"}},"required":["name"]},"Voucher":{"type":"object","properties":{}},"LockVouchersDto":{"type":"object","properties":{"ids":{"description":"IDs of expired, unredeemed vouchers to lock permanently","example":["684802dfa0f1f66ed66012d8"],"type":"array","items":{"type":"string"}}},"required":["ids"]},"UpdateVoucherDto":{"type":"object","properties":{"name":{"type":"string"},"code":{"type":"string"},"value":{"type":"number"},"minimumcharge":{"type":"number"},"valid":{"type":"boolean"},"validFrom":{"format":"date-time","type":"string"},"validTo":{"format":"date-time","type":"string"},"units":{"type":"number"},"taxassignment":{"$ref":"#/components/schemas/ObjectId"},"cashed":{"type":"boolean"},"pointofsale":{"$ref":"#/components/schemas/ObjectId"},"printPointofsale":{"type":"boolean"},"inuse":{"type":"boolean"},"redeem":{"type":"boolean"},"redeemAt":{"format":"date-time","type":"string"},"redeemDocument":{"$ref":"#/components/schemas/ObjectId"},"saleDocument":{"$ref":"#/components/schemas/ObjectId"},"woocommerceId":{"type":"number"},"data":{"type":"array","items":{"$ref":"#/components/schemas/PatchDataDto"}}}},"Payable":{"type":"object","properties":{"time":{"type":"number"},"discount":{"type":"number"}}},"CreatePaymentDto":{"type":"object","properties":{"_id":{"$ref":"#/components/schemas/ObjectId"},"name":{"type":"string"},"type":{"type":"string"},"isPosPayment":{"type":"boolean"},"text":{"type":"string"},"payable":{"type":"array","items":{"$ref":"#/components/schemas/Payable"}},"taxaccount":{"$ref":"#/components/schemas/ObjectId"}},"required":["name"]},"UpdatePaymentDto":{"type":"object","properties":{"name":{"type":"string"},"type":{"type":"string"},"isPosPayment":{"type":"boolean"},"text":{"type":"string"},"payable":{"type":"array","items":{"$ref":"#/components/schemas/Payable"}},"taxaccount":{"$ref":"#/components/schemas/ObjectId"},"data":{"type":"array","items":{"$ref":"#/components/schemas/PatchDataDto"}}}},"CreateDiscountruleDto":{"type":"object","properties":{"_id":{"$ref":"#/components/schemas/ObjectId"},"name":{"type":"string"},"type":{"type":"string"},"targetType":{"type":"object"},"targets":{"type":"object"},"pricelist":{"type":"object"},"switchPricelist":{"type":"object"},"rules":{"type":"object"},"useTagBasedScaledPrices":{"type":"boolean"},"enabled":{"type":"boolean"},"validFrom":{"format":"date-time","type":"string","nullable":true},"validTo":{"format":"date-time","type":"string","nullable":true},"weekdays":{"type":"array","items":{"type":"number","maximum":7,"minimum":1}},"timeFrom":{"type":"string"},"timeTo":{"type":"string"}}},"ScaledPriceRules":{"type":"object","properties":{"price":{"type":"number"},"amount":{"type":"number"},"type":{"type":"string"}},"required":["price","amount","type"]},"CreateScaledpriceDto":{"type":"object","properties":{"article":{"type":"string"},"pricelist":{"type":"string"},"rules":{"type":"array","items":{"$ref":"#/components/schemas/ScaledPriceRules"}},"overwrite":{"type":"boolean","default":false}},"required":["article","pricelist","rules","overwrite"]},"UpdateDiscountruleDto":{"type":"object","properties":{"name":{"type":"string"},"type":{"type":"string"},"targetType":{"type":"object"},"targets":{"type":"object"},"pricelist":{"type":"object"},"switchPricelist":{"type":"object"},"rules":{"type":"object"},"useTagBasedScaledPrices":{"type":"boolean"},"enabled":{"type":"boolean"},"validFrom":{"format":"date-time","type":"string","nullable":true},"validTo":{"format":"date-time","type":"string","nullable":true},"weekdays":{"type":"array","items":{"type":"number","maximum":7,"minimum":1}},"timeFrom":{"type":"string"},"timeTo":{"type":"string"}}},"CalculateDiscountItemDto":{"type":"object","properties":{"_id":{"type":"string"},"type":{"type":"string"},"ref":{"type":"object","properties":{"_id":{"required":false,"$ref":"#/components/schemas/ObjectId"},"tags":{"required":false,"type":"array","items":{"type":"string"}},"pos":{"type":"object","properties":{"discountable":{"required":false,"type":"boolean"}}}}},"amount":{"type":"number"},"price":{"type":"number"},"title":{"type":"string"},"totalExVat":{"type":"number"},"totalIncVat":{"type":"number"}},"required":["_id","type","ref"]},"CalculateDiscountDto":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/CalculateDiscountItemDto"}},"pricelist":{"type":"string"},"discountCodes":{"type":"array","items":{"type":"string"}}},"required":["items"]},"DiscountResultItemDto":{"type":"object","properties":{"_id":{"type":"string"},"id":{"type":"string"},"matchingDiscountRules":{"type":"array","items":{"type":"string"}},"discount":{"type":"number"},"newPrice":{"type":"number"},"title":{"type":"string"},"amount":{"type":"number"},"price":{"type":"number"},"totalNetto":{"type":"number"},"tags":{"type":"array","items":{"type":"string"}}},"required":["_id","id"]},"NextTimeDiscountDto":{"type":"object","properties":{"type":{"type":"string"},"exclusive":{"type":"boolean"},"status":{"type":"object","properties":{"valid":{"required":true,"type":"boolean"},"visible":{"required":true,"type":"boolean"},"deleted":{"required":true,"type":"boolean"}}},"code":{"type":"string"},"rules":{"type":"array","items":{"type":"object"}}},"required":["type","exclusive","status","code","rules"]},"GiftDto":{"type":"object","properties":{"matchingDiscountRule":{"type":"string"},"type":{"type":"string"},"value":{"type":"string"}},"required":["matchingDiscountRule","type","value"]},"CalculateDiscountResultDto":{"type":"object","properties":{"discounts":{"type":"object","properties":{"items":{"required":true,"type":"array","items":{"$ref":"#/components/schemas/DiscountResultItemDto"}},"nextTimeDiscounts":{"required":true,"type":"array","items":{"$ref":"#/components/schemas/NextTimeDiscountDto"}},"gifts":{"required":true,"type":"array","items":{"$ref":"#/components/schemas/GiftDto"}}}},"items":{"type":"array","items":{"type":"object"}},"success":{"type":"string"},"message":{"type":"string"}},"required":["discounts","items","success"]},"CreateCommentDto":{"type":"object","properties":{"_id":{"$ref":"#/components/schemas/ObjectId"},"body":{"type":"string"},"conversation":{"$ref":"#/components/schemas/ObjectId"},"attachments":{"type":"array","items":{"type":"string"}}}},"Comment":{"type":"object","properties":{}},"UpdateCommentDto":{"type":"object","properties":{"body":{"type":"string"},"conversation":{"$ref":"#/components/schemas/ObjectId"},"attachments":{"type":"array","items":{"type":"string"}},"data":{"type":"array","items":{"$ref":"#/components/schemas/PatchDataDto"}}}},"CreateCostcentreDto":{"type":"object","properties":{"name":{"type":"string"},"datevCostcentre":{"type":"string"}}},"Costcentre":{"type":"object","properties":{}},"UpdateCostcentreDto":{"type":"object","properties":{"name":{"type":"string"},"datevCostcentre":{"type":"string"},"data":{"type":"array","items":{"$ref":"#/components/schemas/PatchDataDto"}}}},"CreateCustomattributeDto":{"type":"object","properties":{"_id":{"$ref":"#/components/schemas/ObjectId"},"name":{"type":"string"},"description":{"type":"string"},"type":{"type":"string"},"searchable":{"type":"boolean"},"model":{"type":"string"},"default":{"type":"string"},"position":{"type":"object"}},"required":["name"]},"CreateIdentitycodeDto":{"type":"object","properties":{"_id":{"$ref":"#/components/schemas/ObjectId"},"name":{"type":"string"},"code":{"type":"string"},"identity":{"$ref":"#/components/schemas/ObjectId"}},"required":["name","code","identity"]},"StatusDto":{"type":"object","properties":{"visible":{"type":"boolean","example":true},"deleted":{"type":"boolean","example":false}},"required":["visible","deleted"]},"IdentitycodeResponseDto":{"type":"object","properties":{"_id":{"type":"string","example":"60d21b4667d0d8992e610c85"},"code":{"type":"string","example":"ABC123"},"name":{"type":"string","example":"Main Branch Code"},"description":{"type":"string","example":"This is the code for the main branch"},"identity":{"type":"string","example":"60d21b4667d0d8992e610c85"},"client":{"type":"string","example":"60d21b4667d0d8992e610c85"},"createdBy":{"type":"string","example":"60d21b4667d0d8992e610c85"},"status":{"$ref":"#/components/schemas/StatusDto"},"metadata":{"type":"object","example":{"key":"value"}},"createdAt":{"format":"date-time","type":"string","example":"2023-01-01T00:00:00.000Z"},"updatedAt":{"format":"date-time","type":"string","example":"2023-01-01T00:00:00.000Z"}},"required":["_id","code","name","description","identity","client","createdBy","status","metadata","createdAt","updatedAt"]},"CreateItemtrackerDto":{"type":"object","properties":{"_id":{"$ref":"#/components/schemas/ObjectId"},"documents":{"type":"array","items":{"$ref":"#/components/schemas/Document"}},"item":{"$ref":"#/components/schemas/ObjectId"}}},"Itemtracker":{"type":"object","properties":{}},"ItemtrackerDto":{"type":"object","properties":{"documents":{"type":"array","items":{"$ref":"#/components/schemas/Document"}},"item":{"$ref":"#/components/schemas/ObjectId"},"createdAt":{"format":"date-time","type":"string"},"updatedAt":{"format":"date-time","type":"string"},"client":{"type":"string"},"user":{"type":"string"}},"required":["documents","item","createdAt","updatedAt","client","user"]},"UpdateItemtrackerDto":{"type":"object","properties":{"documents":{"type":"array","items":{"$ref":"#/components/schemas/Document"}},"item":{"$ref":"#/components/schemas/ObjectId"}}},"CreateKontolinoDto":{"type":"object","properties":{"_id":{"$ref":"#/components/schemas/ObjectId"},"apiKey":{"type":"string"},"username":{"type":"string"},"url":{"type":"string"},"name":{"type":"string"},"errormail":{"type":"string"},"disabled":{"type":"boolean"}}},"UpdateKontolinoDto":{"type":"object","properties":{"apiKey":{"type":"string"},"username":{"type":"string"},"url":{"type":"string"},"name":{"type":"string"},"errormail":{"type":"string"},"disabled":{"type":"boolean"}}},"SubmitPosjournalDto":{"type":"object","properties":{"posjournal":{"type":"string"}},"required":["posjournal"]},"CreateLabelDto":{"type":"object","properties":{"_id":{"$ref":"#/components/schemas/ObjectId"},"name":{"type":"string"},"height":{"type":"string"},"width":{"type":"string"},"margintop":{"type":"string"},"marginright":{"type":"string"},"marginleft":{"type":"string"},"marginbottom":{"type":"string"},"templatecode":{"type":"string"},"type":{"type":"string"},"app":{"$ref":"#/components/schemas/ObjectId"}},"required":["name"]},"Label":{"type":"object","properties":{}},"UpdateLabelDto":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/PatchDataDto"}},"name":{"type":"string"},"height":{"type":"string"},"width":{"type":"string"},"margintop":{"type":"string"},"marginright":{"type":"string"},"marginleft":{"type":"string"},"marginbottom":{"type":"string"},"templatecode":{"type":"string"},"type":{"type":"string"},"app":{"$ref":"#/components/schemas/ObjectId"}}},"UnknownPayment":{"type":"object","properties":{"amount":{"type":"number"},"payment_method":{"type":"string"},"paidAt":{"format":"date-time","type":"string"},"info1":{"type":"string"},"details":{"type":"object"}}},"CreateOrderDto":{"type":"object","properties":{"_id":{"$ref":"#/components/schemas/ObjectId"},"name":{"type":"string"},"stock":{"$ref":"#/components/schemas/ObjectId"},"data":{"type":"object"},"orderData":{"type":"object"},"paymentDetails":{"type":"object"},"paymentMethod":{"$ref":"#/components/schemas/ObjectId"},"payments":{"type":"array","items":{"$ref":"#/components/schemas/Payment"}},"unknownPayments":{"type":"array","items":{"$ref":"#/components/schemas/UnknownPayment"}},"documentmerge":{"type":"object"},"articles":{"type":"array","items":{"$ref":"#/components/schemas/Article"}},"shipping":{"type":"object"},"billing":{"type":"object"},"flourMarketplaceRef":{"type":"string"},"possibleBusinesspartners":{"type":"array","items":{"$ref":"#/components/schemas/ObjectId"}},"documentType":{"type":"string"},"shop":{"type":"string"},"orderstate":{"type":"number"},"document":{"$ref":"#/components/schemas/ObjectId"},"missingArticles":{"type":"array","items":{"type":"object"}},"businesspartnerfound":{"type":"object"},"businesspartner":{"$ref":"#/components/schemas/ObjectId"},"presta":{"$ref":"#/components/schemas/Marketplace"},"epages":{"$ref":"#/components/schemas/Marketplace"},"woocommerce":{"$ref":"#/components/schemas/Marketplace"},"shopify":{"$ref":"#/components/schemas/Marketplace"},"shopware":{"$ref":"#/components/schemas/Marketplace"},"azoo":{"$ref":"#/components/schemas/Marketplace"}},"required":["name"]},"Order":{"type":"object","properties":{}},"UpdateOrderDto":{"type":"object","properties":{"name":{"type":"string"},"stock":{"$ref":"#/components/schemas/ObjectId"},"data":{"type":"object"},"orderData":{"type":"object"},"paymentDetails":{"type":"object"},"paymentMethod":{"$ref":"#/components/schemas/ObjectId"},"payments":{"type":"array","items":{"$ref":"#/components/schemas/Payment"}},"unknownPayments":{"type":"array","items":{"$ref":"#/components/schemas/UnknownPayment"}},"documentmerge":{"type":"object"},"articles":{"type":"array","items":{"$ref":"#/components/schemas/Article"}},"shipping":{"type":"object"},"billing":{"type":"object"},"flourMarketplaceRef":{"type":"string"},"possibleBusinesspartners":{"type":"array","items":{"$ref":"#/components/schemas/ObjectId"}},"documentType":{"type":"string"},"shop":{"type":"string"},"orderstate":{"type":"number"},"document":{"$ref":"#/components/schemas/ObjectId"},"missingArticles":{"type":"array","items":{"type":"object"}},"businesspartnerfound":{"type":"object"},"businesspartner":{"$ref":"#/components/schemas/ObjectId"},"presta":{"$ref":"#/components/schemas/Marketplace"},"epages":{"$ref":"#/components/schemas/Marketplace"},"woocommerce":{"$ref":"#/components/schemas/Marketplace"},"shopify":{"$ref":"#/components/schemas/Marketplace"},"shopware":{"$ref":"#/components/schemas/Marketplace"},"azoo":{"$ref":"#/components/schemas/Marketplace"}}},"Statusmonitor":{"type":"object","properties":{"at":{"format":"date-time","type":"string"},"asbstatus":{"type":"string"}}},"Epson":{"type":"object","properties":{"deviceid":{"type":"string"},"statusmonitor":{"$ref":"#/components/schemas/Statusmonitor"}}},"Esc":{"type":"object","properties":{"interface":{"type":"string"},"columns":{"type":"number"}}},"Media":{"type":"object","properties":{"name":{"type":"string"},"width":{"type":"string"},"height":{"type":"string"},"id":{"type":"string"}}},"Cups":{"type":"object","properties":{"media":{"$ref":"#/components/schemas/Media"}}},"OperationAttributes":{"type":"object","properties":{"name":{"type":"string"},"type":{"type":"string"},"max":{"type":"number"},"value":{"type":"string"}}},"JobAttributes":{"type":"object","properties":{"name":{"type":"string"},"value":{"type":"string"}}},"StateCupsDto":{"type":"object","properties":{"queueLength":{"type":"number"},"status":{"type":"string"},"statusSince":{"type":"string"},"statusMessage":{"type":"string"},"action":{"type":"string"}}},"State":{"type":"object","properties":{"cups":{"$ref":"#/components/schemas/StateCupsDto"}}},"CreatePrinterDto":{"type":"object","properties":{"_id":{"$ref":"#/components/schemas/ObjectId"},"name":{"type":"string"},"url":{"type":"string"},"epson":{"$ref":"#/components/schemas/Epson"},"type":{"type":"string"},"connection":{"type":"string"},"esc":{"$ref":"#/components/schemas/Esc"},"cups":{"$ref":"#/components/schemas/Cups"},"operationAttributes":{"type":"array","items":{"$ref":"#/components/schemas/OperationAttributes"}},"jobAttributes":{"type":"array","items":{"$ref":"#/components/schemas/JobAttributes"}},"state":{"$ref":"#/components/schemas/State"}},"required":["name"]},"Printer":{"type":"object","properties":{}},"UpdatePrinterDto":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/PatchDataDto"}},"path":{"type":"string"},"value":{"type":"object"},"op":{"type":"string"},"patch":{"type":"object"},"name":{"type":"string"},"url":{"type":"string"},"epson":{"$ref":"#/components/schemas/Epson"},"type":{"type":"string"},"connection":{"type":"string"},"esc":{"$ref":"#/components/schemas/Esc"},"cups":{"$ref":"#/components/schemas/Cups"},"operationAttributes":{"type":"array","items":{"$ref":"#/components/schemas/OperationAttributes"}},"jobAttributes":{"type":"array","items":{"$ref":"#/components/schemas/JobAttributes"}},"state":{"$ref":"#/components/schemas/State"}}},"TemplateSettingsDto":{"type":"object","properties":{"marginTop":{"type":"string","description":"Margin top"},"marginBottom":{"type":"string","description":"Margin bottom"},"marginLeft":{"type":"string","description":"Margin left"},"marginRight":{"type":"string","description":"Margin right"},"width":{"type":"string","description":"Page width"},"height":{"type":"string","description":"Page height"},"headerHtml":{"type":"string","description":"Header HTML"},"footerHtml":{"type":"string","description":"Footer HTML"},"pageWidth":{"type":"string","description":"Page width"},"pageHeight":{"type":"string","description":"Page height"},"encoding":{"type":"string","description":"encoding"}}},"OperationAttributeDto":{"type":"object","properties":{"name":{"type":"string","description":"Attribute name"},"value":{"type":"string","description":"Attribute value"},"type":{"type":"string","description":"Attribute type"},"max":{"type":"number","description":"Maximum value"}},"required":["name","value"]},"JobAttributeDto":{"type":"object","properties":{"name":{"type":"string","description":"Attribute name"},"value":{"type":"string","description":"Attribute value"},"type":{"type":"string","description":"Attribute type"},"max":{"type":"number","description":"Maximum value"}},"required":["name","value"]},"PrintJobDto":{"type":"object","properties":{"content":{"type":"string","description":"HTML content to print"},"document":{"type":"string","description":"Document ID"},"template":{"type":"string","description":"Template ID"},"openCashDrawer":{"type":"boolean","description":"Whether to open cash drawer"},"templateSettings":{"description":"Template settings","allOf":[{"$ref":"#/components/schemas/TemplateSettingsDto"}]},"engine":{"type":"string","description":"PDF engine to use"},"logId":{"type":"string","description":"Log ID for tracking"},"printer":{"type":"object","properties":{"_id":{"required":true,"type":"string"},"name":{"required":true,"type":"string"},"type":{"required":true,"type":"string"},"url":{"required":true,"type":"string"},"connection":{"required":false,"type":"string"},"epson":{"type":"object","properties":{"deviceid":{"required":false,"type":"string"},"statusmonitor":{"type":"object","properties":{"at":{"format":"date-time","required":false,"type":"string"},"asbstatus":{"required":false,"type":"string"}}}}},"esc":{"type":"object","properties":{"interface":{"required":false,"type":"string"},"columns":{"required":false,"type":"number"}}},"cups":{"type":"object","properties":{"media":{"type":"object","properties":{"name":{"required":false,"type":"string"},"width":{"required":false,"type":"string"},"height":{"required":false,"type":"string"},"id":{"required":false,"type":"string"}}}}},"operationAttributes":{"required":false,"type":"array","items":{"$ref":"#/components/schemas/OperationAttributeDto"}},"jobAttributes":{"required":false,"type":"array","items":{"$ref":"#/components/schemas/JobAttributeDto"}},"displayName":{"required":false,"type":"string"},"state":{"type":"object","properties":{"cups":{"type":"object","properties":{"queueLength":{"required":false,"type":"number"},"status":{"required":false,"type":"string"},"statusSince":{"required":false,"type":"string"},"statusMessage":{"required":false,"type":"string"},"action":{"required":false,"type":"string"}}}}},"app":{"required":false,"type":"string"},"createdAt":{"format":"date-time","required":false,"type":"string"},"updatedAt":{"format":"date-time","required":false,"type":"string"},"client":{"required":false,"type":"string"},"user":{"required":false,"type":"string"},"status":{"required":false,"type":"object"},"age":{"required":false,"type":"number"}}}},"required":["content","printer"]},"PrintJobResponseDto":{"type":"object","properties":{"message":{"type":"string","description":"Success message"},"__log":{"type":"object","properties":{"box":{"required":false,"type":"number"},"convert":{"required":false,"type":"number"},"sendMessage":{"required":false,"type":"number"},"box_end":{"required":false,"type":"number"},"convert_end":{"required":false,"type":"number"},"sendMessage_end":{"required":false,"type":"number"}}},"output":{"type":"string","description":"Output file URL (for PDF printers)"},"file":{"type":"string","description":"Output file URL (for Flutter printers)"},"type":{"type":"string","description":"Output type (for PDF printers)"},"wait":{"type":"boolean","description":"Wait flag (for Adyen printers)"}},"required":["message","__log"]},"CashDrawerDto":{"type":"object","properties":{"printer":{"type":"object","properties":{"_id":{"required":true,"type":"string"},"name":{"required":true,"type":"string"},"type":{"required":true,"type":"string"},"url":{"required":true,"type":"string"},"connection":{"required":false,"type":"string"},"epson":{"type":"object","properties":{"deviceid":{"required":false,"type":"string"},"statusmonitor":{"type":"object","properties":{"at":{"format":"date-time","required":false,"type":"string"},"asbstatus":{"required":false,"type":"string"}}}}},"esc":{"type":"object","properties":{"interface":{"required":false,"type":"string"},"columns":{"required":false,"type":"number"}}},"cups":{"type":"object","properties":{"media":{"type":"object","properties":{"name":{"required":false,"type":"string"},"width":{"required":false,"type":"string"},"height":{"required":false,"type":"string"},"id":{"required":false,"type":"string"}}}}},"operationAttributes":{"required":false,"type":"array","items":{"$ref":"#/components/schemas/OperationAttributeDto"}},"jobAttributes":{"required":false,"type":"array","items":{"$ref":"#/components/schemas/JobAttributeDto"}},"displayName":{"required":false,"type":"string"},"state":{"type":"object","properties":{"cups":{"type":"object","properties":{"queueLength":{"required":false,"type":"number"},"status":{"required":false,"type":"string"},"statusSince":{"required":false,"type":"string"},"statusMessage":{"required":false,"type":"string"},"action":{"required":false,"type":"string"}}}}},"app":{"required":false,"type":"string"},"createdAt":{"format":"date-time","required":false,"type":"string"},"updatedAt":{"format":"date-time","required":false,"type":"string"},"client":{"required":false,"type":"string"},"user":{"required":false,"type":"string"},"status":{"required":false,"type":"object"},"age":{"required":false,"type":"number"}}}},"required":["printer"]},"CreatePostransferDto":{"type":"object","properties":{"_id":{"$ref":"#/components/schemas/ObjectId"},"name":{"type":"string"},"type":{"type":"string","enum":["in","out"]},"taxaccount":{"$ref":"#/components/schemas/ObjectId"},"taxkey":{"$ref":"#/components/schemas/ObjectId"},"pointofsale":{"$ref":"#/components/schemas/ObjectId"},"costcentre1":{"$ref":"#/components/schemas/ObjectId"},"costcentre2":{"$ref":"#/components/schemas/ObjectId"},"lexoffice":{"$ref":"#/components/schemas/Lexoffice"},"dsfinvk":{"$ref":"#/components/schemas/Dsfinvk"},"metadata":{"type":"object"},"signatureField":{"type":"boolean"}},"required":["name"]},"UpdatePostransferDto":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/PatchDataDto"}},"name":{"type":"string"},"type":{"type":"string","enum":["in","out"]},"taxaccount":{"$ref":"#/components/schemas/ObjectId"},"taxkey":{"$ref":"#/components/schemas/ObjectId"},"pointofsale":{"$ref":"#/components/schemas/ObjectId"},"costcentre1":{"$ref":"#/components/schemas/ObjectId"},"costcentre2":{"$ref":"#/components/schemas/ObjectId"},"lexoffice":{"$ref":"#/components/schemas/Lexoffice"},"dsfinvk":{"$ref":"#/components/schemas/Dsfinvk"},"metadata":{"type":"object"},"signatureField":{"type":"boolean"}}},"Taskdefault":{"type":"object","properties":{"responsiblegroups":{"type":"array","items":{"$ref":"#/components/schemas/ObjectId"}},"responsibles":{"type":"array","items":{"$ref":"#/components/schemas/ObjectId"}},"followers":{"type":"array","items":{"$ref":"#/components/schemas/ObjectId"}}}},"CreateTasklistDto":{"type":"object","properties":{"_id":{"$ref":"#/components/schemas/ObjectId"},"name":{"type":"string"},"taskDefaults":{"$ref":"#/components/schemas/Taskdefault"},"sortNumber":{"type":"number"},"template":{"type":"boolean"},"project_id":{"$ref":"#/components/schemas/ObjectId"},"tasks0":{"type":"array","items":{"$ref":"#/components/schemas/ObjectId"}},"tasks1":{"type":"array","items":{"$ref":"#/components/schemas/ObjectId"}},"tasks2":{"type":"array","items":{"$ref":"#/components/schemas/ObjectId"}},"users":{"type":"array","items":{"$ref":"#/components/schemas/ObjectId"}}},"required":["name"]},"Tasklist":{"type":"object","properties":{}},"UpdateTasklistDto":{"type":"object","properties":{"name":{"type":"string"},"taskDefaults":{"$ref":"#/components/schemas/Taskdefault"},"sortNumber":{"type":"number"},"template":{"type":"boolean"},"project_id":{"$ref":"#/components/schemas/ObjectId"},"tasks0":{"type":"array","items":{"$ref":"#/components/schemas/ObjectId"}},"tasks1":{"type":"array","items":{"$ref":"#/components/schemas/ObjectId"}},"tasks2":{"type":"array","items":{"$ref":"#/components/schemas/ObjectId"}},"users":{"type":"array","items":{"$ref":"#/components/schemas/ObjectId"}}}},"File":{"type":"object","properties":{}},"CreateTaskDto":{"type":"object","properties":{"_id":{"$ref":"#/components/schemas/ObjectId"},"name":{"type":"string"},"comments":{"type":"array","items":{"$ref":"#/components/schemas/Comment"}},"title":{"type":"string"},"description":{"type":"string"},"priority":{"type":"number"},"employees":{"$ref":"#/components/schemas/ObjectId"},"responsibles":{"$ref":"#/components/schemas/ObjectId"},"responsiblegroups":{"$ref":"#/components/schemas/ObjectId"},"state":{"type":"string"},"followers":{"$ref":"#/components/schemas/ObjectId"},"businesspartner":{"$ref":"#/components/schemas/ObjectId"},"tags":{"$ref":"#/components/schemas/ObjectId"},"tasklists":{"type":"array","items":{"$ref":"#/components/schemas/ObjectId"}},"project":{"$ref":"#/components/schemas/ObjectId"},"starred":{"type":"boolean"},"tasklist_id":{"$ref":"#/components/schemas/ObjectId"},"dueAt":{"format":"date-time","type":"string"},"documents":{"type":"array","items":{"$ref":"#/components/schemas/File"}},"attachments":{"type":"array","items":{"$ref":"#/components/schemas/File"}}}},"Task":{"type":"object","properties":{}},"UpdateTaskDto":{"type":"object","properties":{"name":{"type":"string"},"comments":{"type":"array","items":{"$ref":"#/components/schemas/Comment"}},"title":{"type":"string"},"description":{"type":"string"},"priority":{"type":"number"},"employees":{"$ref":"#/components/schemas/ObjectId"},"responsibles":{"$ref":"#/components/schemas/ObjectId"},"responsiblegroups":{"$ref":"#/components/schemas/ObjectId"},"state":{"type":"string"},"followers":{"$ref":"#/components/schemas/ObjectId"},"businesspartner":{"$ref":"#/components/schemas/ObjectId"},"tags":{"$ref":"#/components/schemas/ObjectId"},"tasklists":{"$ref":"#/components/schemas/ObjectId"},"project":{"$ref":"#/components/schemas/ObjectId"},"starred":{"type":"boolean"},"tasklist_id":{"$ref":"#/components/schemas/ObjectId"},"dueAt":{"format":"date-time","type":"string"},"documents":{"type":"array","items":{"$ref":"#/components/schemas/File"}},"attachments":{"type":"array","items":{"$ref":"#/components/schemas/File"}},"data":{"type":"array","items":{"$ref":"#/components/schemas/PatchDataDto"}}}},"AddLeadingZeros":{"type":"object","properties":{"ean13":{"type":"boolean"}}},"Targets":{"type":"object","properties":{"pointofsale":{"$ref":"#/components/schemas/ObjectId"},"inventory":{"$ref":"#/components/schemas/ObjectId"}}},"sysproRFID":{"type":"object","properties":{"username":{"type":"string"},"passsword":{"type":"string"},"domain":{"type":"string"},"workstation":{"type":"string"},"apiUrl":{"type":"string"}}},"CreateScannerDto":{"type":"object","properties":{"_id":{"$ref":"#/components/schemas/ObjectId"},"name":{"type":"string"},"path":{"type":"string"},"epson":{"$ref":"#/components/schemas/Epson"},"addLeadingZeros":{"$ref":"#/components/schemas/AddLeadingZeros"},"removeUnprintableCharacters":{"type":"boolean"},"target":{"type":"string"},"targets":{"$ref":"#/components/schemas/Targets"},"sysproRFID":{"$ref":"#/components/schemas/sysproRFID"},"type":{"type":"string"},"mode":{"type":"string"},"trim":{"type":"boolean"},"modification":{"type":"string"}},"required":["name"]},"Scanner":{"type":"object","properties":{}},"UpdateScannerDto":{"type":"object","properties":{"name":{"type":"string"},"path":{"type":"string"},"epson":{"$ref":"#/components/schemas/Epson"},"addLeadingZeros":{"$ref":"#/components/schemas/AddLeadingZeros"},"removeUnprintableCharacters":{"type":"boolean"},"target":{"type":"string"},"targets":{"$ref":"#/components/schemas/Targets"},"sysproRFID":{"$ref":"#/components/schemas/sysproRFID"},"type":{"type":"string"},"mode":{"type":"string"},"trim":{"type":"boolean"},"modification":{"type":"string"}},"required":["name","path","epson","addLeadingZeros","removeUnprintableCharacters","target","targets","sysproRFID","type","mode","trim","modification"]},"SendScanDataDto":{"type":"object","properties":{"data":{"type":"string"},"price":{"type":"number"},"metadata":{"type":"object"}},"required":["data"]},"Background":{"type":"object","properties":{"name":{"type":"string"},"file":{"$ref":"#/components/schemas/ObjectId"}}},"Appendpages":{"type":"object","properties":{"template":{"$ref":"#/components/schemas/ObjectId"},"uri":{"type":"string"}}},"CreateTemplateDto":{"type":"object","properties":{"_id":{"$ref":"#/components/schemas/ObjectId"},"name":{"type":"string"},"path":{"type":"string"},"content":{"type":"string"},"header":{"type":"string"},"footer":{"type":"string"},"height":{"type":"string"},"width":{"type":"string"},"margintop":{"type":"string"},"marginright":{"type":"string"},"marginleft":{"type":"string"},"marginbottom":{"type":"string"},"headerleft":{"type":"string"},"headercenter":{"type":"string"},"headerright":{"type":"string"},"headerfontsize":{"type":"string"},"headerfontname":{"type":"string"},"headerspacing":{"type":"string"},"headerhtml":{"type":"string"},"footerleft":{"type":"string"},"footercenter":{"type":"string"},"footerright":{"type":"string"},"footerfontsize":{"type":"string"},"footerfontname":{"type":"string"},"footerspacing":{"type":"string"},"footerhtml":{"type":"string"},"background":{"$ref":"#/components/schemas/Background"},"section":{"type":"string"},"images":{"type":"array","items":{"$ref":"#/components/schemas/ObjectId"}},"files":{"type":"array","items":{"$ref":"#/components/schemas/ObjectId"}},"v2":{"type":"boolean"},"settings":{"type":"object"},"appendPages":{"type":"array","items":{"$ref":"#/components/schemas/Appendpages"}},"engine":{"type":"string"},"app":{"$ref":"#/components/schemas/ObjectId"}}},"Template":{"type":"object","properties":{}},"UpdateTemplateDto":{"type":"object","properties":{"name":{"type":"string"},"path":{"type":"string"},"content":{"type":"string"},"header":{"type":"string"},"footer":{"type":"string"},"height":{"type":"string"},"width":{"type":"string"},"margintop":{"type":"string"},"marginright":{"type":"string"},"marginleft":{"type":"string"},"marginbottom":{"type":"string"},"headerleft":{"type":"string"},"headercenter":{"type":"string"},"headerright":{"type":"string"},"headerfontsize":{"type":"string"},"headerfontname":{"type":"string"},"headerspacing":{"type":"string"},"headerhtml":{"type":"string"},"footerleft":{"type":"string"},"footercenter":{"type":"string"},"footerright":{"type":"string"},"footerfontsize":{"type":"string"},"footerfontname":{"type":"string"},"footerspacing":{"type":"string"},"footerhtml":{"type":"string"},"background":{"$ref":"#/components/schemas/Background"},"section":{"type":"string"},"images":{"type":"array","items":{"$ref":"#/components/schemas/ObjectId"}},"files":{"type":"array","items":{"$ref":"#/components/schemas/ObjectId"}},"v2":{"type":"boolean"},"settings":{"type":"object"},"appendPages":{"type":"array","items":{"$ref":"#/components/schemas/Appendpages"}},"engine":{"type":"string"}}},"Input":{"type":"object","properties":{"attrName":{"type":"string"},"attrTitle":{"type":"string"},"attrType":{"type":"string"},"attrDefault":{"type":"string"}}},"CreateReportDto":{"type":"object","properties":{"_id":{"$ref":"#/components/schemas/ObjectId"},"name":{"type":"string"},"app":{"$ref":"#/components/schemas/ObjectId"},"code":{"type":"string"},"input":{"type":"array","items":{"$ref":"#/components/schemas/Input"}},"variables":{"type":"object"},"variableCode":{"type":"string"},"codeBlock":{"type":"string"},"createdAt":{"format":"date-time","type":"string"},"updatedAt":{"format":"date-time","type":"string"}},"required":["name"]},"Report":{"type":"object","properties":{}},"UpdateReportDto":{"type":"object","properties":{"_id":{"$ref":"#/components/schemas/ObjectId"},"name":{"type":"string"},"app":{"$ref":"#/components/schemas/ObjectId"},"code":{"type":"string"},"input":{"type":"array","items":{"$ref":"#/components/schemas/Input"}},"variables":{"type":"object"},"variableCode":{"type":"string"},"codeBlock":{"type":"string"}},"required":["_id"]},"CreateBoilerplateDto":{"type":"object","properties":{"_id":{"$ref":"#/components/schemas/ObjectId"},"name":{"type":"string"},"documents":{"type":"array","items":{"$ref":"#/components/schemas/Document"}},"text":{"type":"string"},"from":{"$ref":"#/components/schemas/From"},"subject":{"type":"string"},"section":{"type":"string"}},"required":["name"]},"BoilerplateDto":{"type":"object","properties":{"name":{"type":"string"},"documents":{"type":"array","items":{"$ref":"#/components/schemas/Document"}},"text":{"type":"string"},"from":{"$ref":"#/components/schemas/From"},"subject":{"type":"string"},"section":{"type":"string"},"user":{"type":"string"},"client":{"type":"string"}},"required":["name","documents","text","from","subject","section","user","client"]},"Boilerplate":{"type":"object","properties":{}},"DupliciateBoilerplateDto":{"type":"object","properties":{"name":{"type":"string"}}},"UpdateBoilerplateDto":{"type":"object","properties":{"name":{"type":"string"},"documents":{"type":"array","items":{"$ref":"#/components/schemas/Document"}},"text":{"type":"string"},"from":{"$ref":"#/components/schemas/From"},"subject":{"type":"string"},"section":{"type":"string"},"data":{"type":"array","items":{"$ref":"#/components/schemas/PatchDataDto"}}}},"CreateRoleDto":{"type":"object","properties":{"_id":{"$ref":"#/components/schemas/ObjectId"},"name":{"type":"string"},"rbac":{"type":"object"},"pointofsales":{"type":"array","items":{"$ref":"#/components/schemas/ObjectId"}},"stocks":{"type":"array","items":{"$ref":"#/components/schemas/ObjectId"}},"viewStocks":{"type":"array","items":{"$ref":"#/components/schemas/ObjectId"}}},"required":["name"]},"Role":{"type":"object","properties":{}},"UpdateRoleDto":{"type":"object","properties":{"name":{"type":"string"},"rbac":{"type":"object"},"pointofsales":{"type":"array","items":{"$ref":"#/components/schemas/ObjectId"}},"stocks":{"type":"array","items":{"$ref":"#/components/schemas/ObjectId"}},"viewStocks":{"type":"array","items":{"$ref":"#/components/schemas/ObjectId"}}}},"CreateTaxaccountDto":{"type":"object","properties":{"_id":{"$ref":"#/components/schemas/ObjectId"},"name":{"type":"string"},"number":{"type":"string"},"type":{"type":"string"},"datevAccountNumber":{"type":"string"},"datevTaxAuto":{"type":"boolean"}},"required":["name"]},"Taxaccount":{"type":"object","properties":{}},"UpdateTaxaccountDto":{"type":"object","properties":{"name":{"type":"string"},"number":{"type":"string"},"type":{"type":"string"},"datevAccountNumber":{"type":"string"},"datevTaxAuto":{"type":"boolean"}}},"CreateTaxkeyDto":{"type":"object","properties":{"_id":{"$ref":"#/components/schemas/ObjectId"},"name":{"type":"string"},"taxRate":{"type":"number"},"datevTaxKey":{"type":"string"},"dsfinvk":{"$ref":"#/components/schemas/Dsfinvk"},"differentialTaxation":{"type":"boolean"}},"required":["name"]},"UpdateTaxkeyDto":{"type":"object","properties":{"name":{"type":"string"},"taxRate":{"type":"number"},"datevTaxKey":{"type":"string"},"dsfinvk":{"$ref":"#/components/schemas/Dsfinvk"},"differentialTaxation":{"type":"boolean"}}},"CreateCountryDto":{"type":"object","properties":{"_id":{"$ref":"#/components/schemas/ObjectId"},"name":{"type":"string"},"internationalname":{"type":"string"},"iso":{"type":"string"},"iso3":{"type":"string"}}},"Country":{"type":"object","properties":{}},"UpdateCountryDto":{"type":"object","properties":{"name":{"type":"string"},"internationalname":{"type":"string"},"iso":{"type":"string"},"iso3":{"type":"string"},"data":{"type":"array","items":{"$ref":"#/components/schemas/PatchDataDto"}}}},"CreateAbsenceDto":{"type":"object","properties":{"daysCount":{"examples":[1,"date"],"oneOf":[{"type":"number"},{"type":"string"}]},"_id":{"$ref":"#/components/schemas/ObjectId"},"title":{"type":"string"},"type":{"type":"string"},"description":{"type":"string"},"start":{"format":"date-time","type":"string"},"end":{"format":"date-time","type":"string"},"employee":{"$ref":"#/components/schemas/ObjectId"},"approver":{"$ref":"#/components/schemas/ObjectId"},"approvalStatus":{"type":"string"},"rejectComment":{"type":"string"}}},"Absence":{"type":"object","properties":{}},"UpdateAbsenceDto":{"type":"object","properties":{"title":{"type":"string"},"type":{"type":"string"},"description":{"type":"string"},"startsAt":{"format":"date-time","type":"string"},"endsAt":{"format":"date-time","type":"string"},"daysCount":{"type":"number"},"employee":{"$ref":"#/components/schemas/ObjectId"},"approver":{"$ref":"#/components/schemas/ObjectId"},"data":{"type":"array","items":{"$ref":"#/components/schemas/PatchDataDto"}}},"required":["title","type","description","startsAt","endsAt","daysCount","employee","approver"]},"CreateAbsencetypeDto":{"type":"object","properties":{"_id":{"$ref":"#/components/schemas/ObjectId"},"title":{"type":"string"},"type":{"type":"string"},"createdAt":{"format":"date-time","type":"string"},"updatedAt":{"format":"date-time","type":"string"},"client":{"$ref":"#/components/schemas/ObjectId"},"user":{"$ref":"#/components/schemas/ObjectId"}}},"Absencetype":{"type":"object","properties":{}},"UpdateAbsencetypeDto":{"type":"object","properties":{"title":{"type":"string"},"type":{"type":"string"}}},"CreateBusinesspartnergroupDto":{"type":"object","properties":{"_id":{"$ref":"#/components/schemas/ObjectId"},"name":{"type":"string"},"numberFormat":{"$ref":"#/components/schemas/NumberFormat"}}},"Businesspartnergroup":{"type":"object","properties":{}},"UpdateBusinesspartnergroupDto":{"type":"object","properties":{"name":{"type":"string"},"numberFormat":{"$ref":"#/components/schemas/NumberFormat"}}},"Shipcloud":{"type":"object","properties":{"display_name":{"type":"string"},"services":{"type":"array","items":{"type":"object"}},"package_types":{"type":"array","items":{"type":"object"}},"name":{"type":"string"}}},"Package":{"type":"object","properties":{"weight":{"type":"number"},"length":{"type":"number"},"width":{"type":"number"},"height":{"type":"number"}}},"CreateCarrierDto":{"type":"object","properties":{"_id":{"$ref":"#/components/schemas/ObjectId"},"name":{"type":"string"},"shipcloud":{"$ref":"#/components/schemas/Shipcloud"},"packages":{"type":"array","items":{"$ref":"#/components/schemas/Package"}},"type":{"type":"string"}},"required":["name"]},"Carrier":{"type":"object","properties":{}},"UpdateCarrierDto":{"type":"object","properties":{"name":{"type":"string"},"shipcloud":{"$ref":"#/components/schemas/Shipcloud"},"packages":{"type":"array","items":{"$ref":"#/components/schemas/Package"}},"type":{"type":"string"},"data":{"type":"array","items":{"$ref":"#/components/schemas/PatchDataDto"}}}},"CreateFileDto":{"type":"object","properties":{"_id":{"$ref":"#/components/schemas/ObjectId"},"name":{"type":"string"},"path":{"type":"string"},"type":{"type":"string"},"size":{"type":"string"},"storage":{"type":"string"},"s3":{"$ref":"#/components/schemas/S3"}},"required":["name"]},"UpdateFileDto":{"type":"object","properties":{"name":{"type":"string"},"path":{"type":"string"},"type":{"type":"string"},"size":{"type":"string"},"storage":{"type":"string"},"s3":{"$ref":"#/components/schemas/S3"},"data":{"type":"array","items":{"$ref":"#/components/schemas/PatchDataDto"}}}},"CreateFinancialaccountingrecordDto":{"type":"object","properties":{"_id":{"$ref":"#/components/schemas/ObjectId"},"reconcile":{"type":"boolean"},"key":{"type":"string"},"source":{"type":"string"},"sourceType":{"type":"string"},"umsatz":{"type":"number"},"kennzeichen":{"type":"string"},"iso":{"type":"string"},"konto":{"type":"string"},"gegenkonto":{"type":"string"},"buschluessel":{"type":"string"},"belegdatum":{"format":"date-time","type":"string"},"belegfeld1":{"type":"string"},"belegfeld2":{"type":"string"},"buchungstext":{"type":"string"},"beleginfoart1":{"type":"string"},"beleginfoinhalt1":{"type":"string"},"kost1":{"type":"string"},"kost2":{"type":"string"},"vatId":{"type":"string"},"leistungsdatum":{"format":"date-time","type":"string"},"steuerperiode":{"format":"date-time","type":"string"},"export":{"type":"string"}}},"Financialaccountingrecord":{"type":"object","properties":{}},"Aggregate":{"type":"object","properties":{"ref":{"$ref":"#/components/schemas/ObjectId"},"items":{"type":"array","items":{"$ref":"#/components/schemas/ObjectId"}},"total":{"type":"number"},"number":{"type":"string"},"ean":{"type":"string"},"title":{"type":"string"},"purchase":{"$ref":"#/components/schemas/Purchase"},"stockitementry":{"$ref":"#/components/schemas/ObjectId"}}},"CreateInventoryDto":{"type":"object","properties":{"name":{"type":"string"},"_id":{"$ref":"#/components/schemas/ObjectId"},"startAt":{"format":"date-time","type":"string"},"closedAt":{"format":"date-time","type":"string"},"stockDate":{"format":"date-time","type":"string"},"stock":{"$ref":"#/components/schemas/ObjectId"},"items":{"type":"array","items":{"$ref":"#/components/schemas/Item"}},"aggregate":{"type":"array","items":{"$ref":"#/components/schemas/Aggregate"}},"locked":{"type":"boolean"},"ignored":{"type":"array","items":{"$ref":"#/components/schemas/ObjectId"}},"settings":{"$ref":"#/components/schemas/Settings"}},"required":["name","items","aggregate"]},"Inventory":{"type":"object","properties":{}},"UpdateInventoryDto":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/PatchDataDto"},"name":{"type":"string"},"startAt":{"format":"date-time","type":"string"},"closedAt":{"format":"date-time","type":"string"},"stockDate":{"format":"date-time","type":"string"},"stock":{"$ref":"#/components/schemas/ObjectId"},"items":{"type":"array","items":{"$ref":"#/components/schemas/Item"}},"aggregate":{"type":"array","items":{"$ref":"#/components/schemas/Aggregate"}},"locked":{"type":"boolean"},"ignored":{"type":"array","items":{"$ref":"#/components/schemas/ObjectId"}},"settings":{"$ref":"#/components/schemas/Settings"}}},"CreateLexofficeDto":{"type":"object","properties":{"_id":{"$ref":"#/components/schemas/ObjectId"},"access_token":{"type":"string"},"refresh_token":{"type":"string"},"expiresAt":{"format":"date-time","type":"string"},"expires_in":{"type":"number"}}},"UpdateLexofficeDto":{"type":"object","properties":{"access_token":{"type":"string"},"refresh_token":{"type":"string"},"expiresAt":{"format":"date-time","type":"string"},"expires_in":{"type":"number"}}},"Public":{"type":"object","properties":{"read":{"type":"boolean"},"write":{"type":"boolean"}}},"CreateNoteDto":{"type":"object","properties":{"_id":{"$ref":"#/components/schemas/ObjectId"},"title":{"type":"string"},"content":{"type":"string"},"public":{"$ref":"#/components/schemas/Public"}},"required":["title"]},"UpdateNoteDto":{"type":"object","properties":{"title":{"type":"string"},"content":{"type":"string"},"public":{"$ref":"#/components/schemas/Public"}}},"Permission":{"type":"object","properties":{"resource":{"type":"string"},"actions":{"type":"array","items":{"type":"string"}},"effect":{"type":"boolean"}}},"CreatePolicyDto":{"type":"object","properties":{"_id":{"$ref":"#/components/schemas/ObjectId"},"name":{"type":"string"},"permissions":{"type":"array","items":{"$ref":"#/components/schemas/Permission"}}}},"Policy":{"type":"object","properties":{}},"UpdatePolicyDto":{"type":"object","properties":{"_id":{"$ref":"#/components/schemas/ObjectId"},"name":{"type":"string"},"permissions":{"type":"array","items":{"$ref":"#/components/schemas/Permission"}}}},"InOut":{"type":"object","properties":{"date":{"format":"date-time","type":"string"},"items":{"type":"array","items":{"$ref":"#/components/schemas/Items"}},"stock":{"$ref":"#/components/schemas/ObjectId"}}},"CreateStocktransferDto":{"type":"object","properties":{"_id":{"$ref":"#/components/schemas/ObjectId"},"name":{"type":"string"},"mode":{"type":"string"},"order":{"$ref":"#/components/schemas/Order"},"out":{"$ref":"#/components/schemas/InOut"},"in":{"$ref":"#/components/schemas/InOut"}},"required":["name"]},"Stocktransfer":{"type":"object","properties":{}},"UpdateStocktransferDto":{"type":"object","properties":{"name":{"type":"string"},"mode":{"type":"string"},"order":{"$ref":"#/components/schemas/Order"},"out":{"$ref":"#/components/schemas/InOut"},"in":{"$ref":"#/components/schemas/InOut"}}},"CreateStorelogDto":{"type":"object","properties":{"_id":{"$ref":"#/components/schemas/ObjectId"},"controller":{"type":"string"},"article":{"$ref":"#/components/schemas/ObjectId"},"document":{"type":"string"},"request":{"type":"object"},"response":{"type":"object"}}},"Storelog":{"type":"object","properties":{}},"CreateTseDto":{"type":"object","properties":{"_id":{"$ref":"#/components/schemas/ObjectId"},"name":{"type":"string"},"provider":{"type":"string"},"fiskaly":{"$ref":"#/components/schemas/Fiskaly"},"metadata":{"type":"object"},"counter":{"type":"number"}}},"Tse":{"type":"object","properties":{}},"UpdateTseDto":{"type":"object","properties":{"name":{"type":"string"},"provider":{"type":"string"},"fiskaly":{"$ref":"#/components/schemas/Fiskaly"},"metadata":{"type":"object"},"counter":{"type":"number"}}},"CreateUrlDto":{"type":"object","properties":{"_id":{"$ref":"#/components/schemas/ObjectId"},"title":{"type":"string"},"token":{"type":"string"},"data":{"type":"object"},"actions":{"type":"object"}}},"Url":{"type":"object","properties":{}},"UpdateUrlDto":{"type":"object","properties":{"title":{"type":"string"},"token":{"type":"string"},"data":{"type":"object"},"actions":{"type":"object"}},"required":["title","token","data","actions"]}}},"security":[{"bearer":[]}]}