post https://api.bewe.io/v1/tickets/
Creates a new ticket in the system using the provided transaction details.
The request body must include the client, items (products or treatments), payment method, ticket type, and optional discounts or commerce references. Upon successful creation, the endpoint returns the newly created ticket with all calculated fields and identifiers. This endpoint is typically used to register new sales, receipts, or orders, and supports both single and mixed payment methods.
items is an array of objects containing the ID of the item being purchased, type, quantity, and discount (if applicable). The name of the item ID property varies depending on the type being described:
For product: idProduct, for treat (Service): idTreatment, for discount: idDiscount