# Create an order (widget) **POST /widget/orders** will create and assign an order ## Servers - https://domain.tld/api/v2: https://domain.tld/api/v2 () ## Authentication methods - Bearer token ## Parameters ### Body: application/json (object) - **id_popliste** (integer) - **order_id** (string) - **source** (string) - **total_amount** (number) - **products** (array[object]) - **id_affiliate** (integer) - **id_ambassador_post** (integer) - **order_status** (string) - **total_ws** (number) - **order_type** (string) ## Responses ### 201 Order created successfully #### Body: application/json (object) - **id_order** (integer(int32)) - **id_order_external** (string(nullable)) - **total_amount** (number(float)) - **total_paid** (number(float)) - **total_ws** (number(float)) - **id_popliste** (integer(int32)) - **source** (string) - **last_status** (string) - **id_meeting** (integer(int32)) - **id_meeting_external** (string(nullable)) - **customer_id** (string) - **order_info** (string) - **currency** (string) - **date_order** (string) - **type** (string) - **id_chat_segment** (integer(int32)) - **id_chatroom** (integer(int32)) - **date_insert** (string) - **date_update** (string) - **assignment** (string) ### 401 Unauthorized. #### Body: application/json (object) - **message** (string) ### 403 Forbidden - You don't have permission to access this route ### 409 Conflict - The order already exists ### 422 Unprocessable Content #### Body: application/json (object) - **message** (string) Error message. - **errors** (object) [Powered by Bump.sh](https://bump.sh)