Authenticate configuration
injected API use to handle user related operations
injected API use to handle catalog related operations
injected API use to handle organization related operations
injected service use to handle order related operations
tax rate in decimal
injected logger use to handle logging
request context [headers, body, params, query].
201 Status Create
This handler is used to create order by applying the following steps in sequence:
Get userId from authorization token
Validates that the organization exists
Checks that the provided products and variants exist for this organization
Creates the order (orderService.createOrder)
Fetches the order (orderService.getOneOrder)
Return order data (expand if any)
400 NBError Bad Request
500 NBError Internal Server Error
Generated using TypeDoc
Create order handler