openapi: 3.1.0 info: title: AI E-Commerce Backend version: 0.1.0 paths: /api/v1/auth/register: post: tags: - auth summary: Register operationId: register_api_v1_auth_register_post requestBody: content: application/json: schema: $ref: '#/components/schemas/RegisterIn' required: true responses: '201': description: Successful Response content: application/json: schema: {} '422': description: Validation Error content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' /api/v1/auth/verify-otp: post: tags: - auth summary: Verify Otp operationId: verify_otp_api_v1_auth_verify_otp_post requestBody: content: application/json: schema: $ref: '#/components/schemas/VerifyOtpIn' required: true responses: '200': description: Successful Response content: application/json: schema: {} '422': description: Validation Error content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' /api/v1/auth/login: post: tags: - auth summary: Login operationId: login_api_v1_auth_login_post requestBody: content: application/json: schema: $ref: '#/components/schemas/LoginIn' required: true responses: '200': description: Successful Response content: application/json: schema: {} '422': description: Validation Error content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' /api/v1/auth/refresh: post: tags: - auth summary: Refresh operationId: refresh_api_v1_auth_refresh_post requestBody: content: application/json: schema: $ref: '#/components/schemas/RefreshIn' required: true responses: '200': description: Successful Response content: application/json: schema: {} '422': description: Validation Error content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' /api/v1/auth/logout: post: tags: - auth summary: Logout operationId: logout_api_v1_auth_logout_post requestBody: content: application/json: schema: $ref: '#/components/schemas/LogoutIn' required: true responses: '200': description: Successful Response content: application/json: schema: {} '422': description: Validation Error content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' /api/v1/auth/forgot-password: post: tags: - auth summary: Forgot Password operationId: forgot_password_api_v1_auth_forgot_password_post requestBody: content: application/json: schema: $ref: '#/components/schemas/ForgotPasswordIn' required: true responses: '200': description: Successful Response content: application/json: schema: {} '422': description: Validation Error content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' /api/v1/auth/reset-password: post: tags: - auth summary: Reset Password operationId: reset_password_api_v1_auth_reset_password_post requestBody: content: application/json: schema: $ref: '#/components/schemas/ResetPasswordIn' required: true responses: '200': description: Successful Response content: application/json: schema: {} '422': description: Validation Error content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' /api/v1/users/me: get: tags: - buyer summary: Get Me operationId: get_me_api_v1_users_me_get responses: '200': description: Successful Response content: application/json: schema: {} security: - OAuth2PasswordBearer: [] put: tags: - buyer summary: Update Me operationId: update_me_api_v1_users_me_put requestBody: content: application/json: schema: $ref: '#/components/schemas/UpdateMeIn' required: true responses: '200': description: Successful Response content: application/json: schema: {} '422': description: Validation Error content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' security: - OAuth2PasswordBearer: [] /api/v1/categories: get: tags: - buyer summary: List Categories operationId: list_categories_api_v1_categories_get responses: '200': description: Successful Response content: application/json: schema: {} /api/v1/products: get: tags: - buyer summary: List Products operationId: list_products_api_v1_products_get parameters: - name: keyword in: query required: false schema: anyOf: - type: string - type: 'null' title: Keyword - name: q in: query required: false schema: anyOf: - type: string - type: 'null' title: Q - name: search_type in: query required: false schema: type: string default: keyword title: Search Type - name: category_id in: query required: false schema: anyOf: - type: integer - type: 'null' title: Category Id - name: shop_id in: query required: false schema: anyOf: - type: integer - type: 'null' title: Shop Id - name: min_price in: query required: false schema: anyOf: - type: number - type: 'null' title: Min Price - name: max_price in: query required: false schema: anyOf: - type: number - type: 'null' title: Max Price - name: sort in: query required: false schema: anyOf: - type: string - type: 'null' title: Sort - name: page in: query required: false schema: type: integer default: 1 title: Page - name: page_size in: query required: false schema: type: integer default: 20 title: Page Size responses: '200': description: Successful Response content: application/json: schema: {} '422': description: Validation Error content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' /api/v1/products/intent-search: post: tags: - buyer summary: Intent Search operationId: intent_search_api_v1_products_intent_search_post requestBody: content: application/json: schema: $ref: '#/components/schemas/IntentSearchIn' required: true responses: '200': description: Successful Response content: application/json: schema: {} '422': description: Validation Error content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' /api/v1/products/recommend: get: tags: - buyer summary: Recommend Products operationId: recommend_products_api_v1_products_recommend_get parameters: - name: page in: query required: false schema: type: integer default: 1 title: Page - name: page_size in: query required: false schema: type: integer default: 20 title: Page Size responses: '200': description: Successful Response content: application/json: schema: {} '422': description: Validation Error content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' /api/v1/products/{id}/reviews: get: tags: - buyer summary: List Product Reviews operationId: list_product_reviews_api_v1_products__id__reviews_get parameters: - name: id in: path required: true schema: type: integer title: Id responses: '200': description: Successful Response content: application/json: schema: {} '422': description: Validation Error content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' /api/v1/shops/{id}: get: tags: - buyer summary: Get Shop Public operationId: get_shop_public_api_v1_shops__id__get parameters: - name: id in: path required: true schema: type: integer title: Id responses: '200': description: Successful Response content: application/json: schema: {} '422': description: Validation Error content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' /api/v1/seller-requests/me: get: tags: - buyer summary: My Seller Request operationId: my_seller_request_api_v1_seller_requests_me_get responses: '200': description: Successful Response content: application/json: schema: {} security: - OAuth2PasswordBearer: [] /api/v1/seller-requests: post: tags: - buyer summary: Create Seller Request operationId: create_seller_request_api_v1_seller_requests_post requestBody: content: application/json: schema: $ref: '#/components/schemas/SellerRequestIn' required: true responses: '201': description: Successful Response content: application/json: schema: {} '422': description: Validation Error content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' security: - OAuth2PasswordBearer: [] /api/v1/reports: post: tags: - buyer summary: Create Report operationId: create_report_api_v1_reports_post requestBody: content: application/json: schema: $ref: '#/components/schemas/ReportIn' required: true responses: '201': description: Successful Response content: application/json: schema: {} '422': description: Validation Error content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' security: - OAuth2PasswordBearer: [] /api/v1/notifications: get: tags: - buyer summary: List Notifications operationId: list_notifications_api_v1_notifications_get responses: '200': description: Successful Response content: application/json: schema: {} security: - OAuth2PasswordBearer: [] /api/v1/notifications/{id}/read: patch: tags: - buyer summary: Mark Notification Read operationId: mark_notification_read_api_v1_notifications__id__read_patch security: - OAuth2PasswordBearer: [] parameters: - name: id in: path required: true schema: type: integer title: Id requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/NotificationReadIn' responses: '200': description: Successful Response content: application/json: schema: {} '422': description: Validation Error content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' /api/v1/notifications/read-all: patch: tags: - buyer summary: Mark All Notifications Read operationId: mark_all_notifications_read_api_v1_notifications_read_all_patch responses: '200': description: Successful Response content: application/json: schema: {} security: - OAuth2PasswordBearer: [] /api/v1/chat/conversations: get: tags: - buyer summary: List Conversations operationId: list_conversations_api_v1_chat_conversations_get responses: '200': description: Successful Response content: application/json: schema: {} security: - OAuth2PasswordBearer: [] post: tags: - buyer summary: Create Conversation operationId: create_conversation_api_v1_chat_conversations_post requestBody: content: application/json: schema: $ref: '#/components/schemas/ConversationIn' required: true responses: '201': description: Successful Response content: application/json: schema: {} '422': description: Validation Error content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' security: - OAuth2PasswordBearer: [] /api/v1/chat/conversations/{conversation_id}/messages: get: tags: - buyer summary: List Messages operationId: list_messages_api_v1_chat_conversations__conversation_id__messages_get security: - OAuth2PasswordBearer: [] parameters: - name: conversation_id in: path required: true schema: type: integer title: Conversation Id responses: '200': description: Successful Response content: application/json: schema: {} '422': description: Validation Error content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' post: tags: - buyer summary: Send Message operationId: send_message_api_v1_chat_conversations__conversation_id__messages_post security: - OAuth2PasswordBearer: [] parameters: - name: conversation_id in: path required: true schema: type: integer title: Conversation Id requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/MessageIn' responses: '201': description: Successful Response content: application/json: schema: {} '422': description: Validation Error content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' /api/v1/chat/conversations/{conversation_id}/read: patch: tags: - buyer summary: Read Conversation operationId: read_conversation_api_v1_chat_conversations__conversation_id__read_patch security: - OAuth2PasswordBearer: [] parameters: - name: conversation_id in: path required: true schema: type: integer title: Conversation Id responses: '200': description: Successful Response content: application/json: schema: {} '422': description: Validation Error content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' /api/v1/products/{id}: get: tags: - buyer summary: Get Product operationId: get_product_api_v1_products__id__get parameters: - name: id in: path required: true schema: type: integer title: Id responses: '200': description: Successful Response content: application/json: schema: {} '422': description: Validation Error content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' /api/v1/cart: get: tags: - buyer summary: Get Cart operationId: get_cart_api_v1_cart_get responses: '200': description: Successful Response content: application/json: schema: {} security: - OAuth2PasswordBearer: [] /api/v1/cart/items: post: tags: - buyer summary: Add Cart operationId: add_cart_api_v1_cart_items_post requestBody: content: application/json: schema: $ref: '#/components/schemas/CartAddIn' required: true responses: '201': description: Successful Response content: application/json: schema: {} '422': description: Validation Error content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' security: - OAuth2PasswordBearer: [] /api/v1/cart/items/{item_id}: put: tags: - buyer summary: Update Cart operationId: update_cart_api_v1_cart_items__item_id__put security: - OAuth2PasswordBearer: [] parameters: - name: item_id in: path required: true schema: type: integer title: Item Id requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/CartUpdateIn' responses: '200': description: Successful Response content: application/json: schema: {} '422': description: Validation Error content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' delete: tags: - buyer summary: Delete Cart operationId: delete_cart_api_v1_cart_items__item_id__delete security: - OAuth2PasswordBearer: [] parameters: - name: item_id in: path required: true schema: type: integer title: Item Id responses: '204': description: Successful Response '422': description: Validation Error content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' /api/v1/orders: post: tags: - buyer summary: Create Order operationId: create_order_api_v1_orders_post requestBody: content: application/json: schema: $ref: '#/components/schemas/CreateOrderIn' required: true responses: '201': description: Successful Response content: application/json: schema: {} '422': description: Validation Error content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' security: - OAuth2PasswordBearer: [] /api/v1/orders/my: get: tags: - buyer summary: List My Orders operationId: list_my_orders_api_v1_orders_my_get security: - OAuth2PasswordBearer: [] parameters: - name: status in: query required: false schema: anyOf: - type: string - type: 'null' title: Status - name: from_date in: query required: false schema: anyOf: - type: string - type: 'null' title: From Date - name: to_date in: query required: false schema: anyOf: - type: string - type: 'null' title: To Date - name: page in: query required: false schema: type: integer default: 1 title: Page - name: page_size in: query required: false schema: type: integer default: 20 title: Page Size responses: '200': description: Successful Response content: application/json: schema: {} '422': description: Validation Error content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' /api/v1/orders/{id}: get: tags: - buyer summary: Get Order operationId: get_order_api_v1_orders__id__get security: - OAuth2PasswordBearer: [] parameters: - name: id in: path required: true schema: type: integer title: Id responses: '200': description: Successful Response content: application/json: schema: {} '422': description: Validation Error content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' /api/v1/orders/{id}/cancel: post: tags: - buyer summary: Cancel Order operationId: cancel_order_api_v1_orders__id__cancel_post security: - OAuth2PasswordBearer: [] parameters: - name: id in: path required: true schema: type: integer title: Id responses: '200': description: Successful Response content: application/json: schema: {} '422': description: Validation Error content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' /api/v1/payments/{order_id}/pay: post: tags: - buyer summary: Pay Order operationId: pay_order_api_v1_payments__order_id__pay_post security: - OAuth2PasswordBearer: [] parameters: - name: order_id in: path required: true schema: type: integer title: Order Id - name: x-idempotency-key in: header required: false schema: anyOf: - type: string - type: 'null' title: X-Idempotency-Key responses: '200': description: Successful Response content: application/json: schema: {} '422': description: Validation Error content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' /api/v1/payments/{order_id}: get: tags: - buyer summary: Get Payment operationId: get_payment_api_v1_payments__order_id__get security: - OAuth2PasswordBearer: [] parameters: - name: order_id in: path required: true schema: type: integer title: Order Id responses: '200': description: Successful Response content: application/json: schema: {} '422': description: Validation Error content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' /api/v1/reviews: post: tags: - buyer summary: Create Review operationId: create_review_api_v1_reviews_post requestBody: content: application/json: schema: $ref: '#/components/schemas/ReviewIn' required: true responses: '201': description: Successful Response content: application/json: schema: {} '422': description: Validation Error content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' security: - OAuth2PasswordBearer: [] /api/v1/seller/shop: get: tags: - seller summary: Get Shop operationId: get_shop_api_v1_seller_shop_get responses: '200': description: Successful Response content: application/json: schema: {} security: - OAuth2PasswordBearer: [] put: tags: - seller summary: Update Shop operationId: update_shop_api_v1_seller_shop_put requestBody: content: application/json: schema: $ref: '#/components/schemas/ShopIn' required: true responses: '200': description: Successful Response content: application/json: schema: {} '422': description: Validation Error content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' security: - OAuth2PasswordBearer: [] /api/v1/seller/products: get: tags: - seller summary: List Seller Products operationId: list_seller_products_api_v1_seller_products_get security: - OAuth2PasswordBearer: [] parameters: - name: page in: query required: false schema: type: integer default: 1 title: Page - name: page_size in: query required: false schema: type: integer default: 20 title: Page Size responses: '200': description: Successful Response content: application/json: schema: {} '422': description: Validation Error content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' post: tags: - seller summary: Create Product operationId: create_product_api_v1_seller_products_post security: - OAuth2PasswordBearer: [] requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/ProductIn' responses: '201': description: Successful Response content: application/json: schema: {} '422': description: Validation Error content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' /api/v1/seller/products/{id}: put: tags: - seller summary: Update Product operationId: update_product_api_v1_seller_products__id__put security: - OAuth2PasswordBearer: [] parameters: - name: id in: path required: true schema: type: integer title: Id requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/ProductIn' responses: '200': description: Successful Response content: application/json: schema: {} '422': description: Validation Error content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' delete: tags: - seller summary: Delete Product operationId: delete_product_api_v1_seller_products__id__delete security: - OAuth2PasswordBearer: [] parameters: - name: id in: path required: true schema: type: integer title: Id responses: '204': description: Successful Response '422': description: Validation Error content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' /api/v1/seller/products/{id}/images: post: tags: - seller summary: Add Product Image operationId: add_product_image_api_v1_seller_products__id__images_post security: - OAuth2PasswordBearer: [] parameters: - name: id in: path required: true schema: type: integer title: Id - name: url in: query required: true schema: type: string title: Url - name: is_primary in: query required: false schema: type: boolean default: false title: Is Primary responses: '201': description: Successful Response content: application/json: schema: {} '422': description: Validation Error content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' /api/v1/seller/products/images/{id}: delete: tags: - seller summary: Delete Product Image operationId: delete_product_image_api_v1_seller_products_images__id__delete security: - OAuth2PasswordBearer: [] parameters: - name: id in: path required: true schema: type: integer title: Id responses: '204': description: Successful Response '422': description: Validation Error content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' /api/v1/seller/orders: get: tags: - seller summary: List Orders operationId: list_orders_api_v1_seller_orders_get security: - OAuth2PasswordBearer: [] parameters: - name: page in: query required: false schema: type: integer default: 1 title: Page - name: page_size in: query required: false schema: type: integer default: 20 title: Page Size responses: '200': description: Successful Response content: application/json: schema: {} '422': description: Validation Error content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' /api/v1/seller/orders/{id}: get: tags: - seller summary: Get Order operationId: get_order_api_v1_seller_orders__id__get security: - OAuth2PasswordBearer: [] parameters: - name: id in: path required: true schema: type: integer title: Id responses: '200': description: Successful Response content: application/json: schema: {} '422': description: Validation Error content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' patch: tags: - seller summary: Update Order Status operationId: update_order_status_api_v1_seller_orders__id__patch security: - OAuth2PasswordBearer: [] parameters: - name: id in: path required: true schema: type: integer title: Id requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/OrderStatusIn' responses: '200': description: Successful Response content: application/json: schema: {} '422': description: Validation Error content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' /api/v1/seller/orders/{id}/shipping: patch: tags: - seller summary: Update Shipping operationId: update_shipping_api_v1_seller_orders__id__shipping_patch security: - OAuth2PasswordBearer: [] parameters: - name: id in: path required: true schema: type: integer title: Id requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/ShippingIn' responses: '200': description: Successful Response content: application/json: schema: {} '422': description: Validation Error content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' /api/v1/seller/chatbot-config: get: tags: - seller summary: Get Chatbot Config operationId: get_chatbot_config_api_v1_seller_chatbot_config_get responses: '200': description: Successful Response content: application/json: schema: {} security: - OAuth2PasswordBearer: [] patch: tags: - seller summary: Patch Chatbot Config operationId: patch_chatbot_config_api_v1_seller_chatbot_config_patch requestBody: content: application/json: schema: $ref: '#/components/schemas/ChatbotConfigIn' required: true responses: '200': description: Successful Response content: application/json: schema: {} '422': description: Validation Error content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' security: - OAuth2PasswordBearer: [] /api/v1/seller/stats: get: tags: - seller summary: Get Stats operationId: get_stats_api_v1_seller_stats_get security: - OAuth2PasswordBearer: [] parameters: - name: from_date in: query required: false schema: anyOf: - type: string - type: 'null' title: From Date - name: to_date in: query required: false schema: anyOf: - type: string - type: 'null' title: To Date responses: '200': description: Successful Response content: application/json: schema: {} '422': description: Validation Error content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' /api/v1/admin/users: get: tags: - admin summary: List Users operationId: list_users_api_v1_admin_users_get security: - OAuth2PasswordBearer: [] parameters: - name: role in: query required: false schema: anyOf: - type: string - type: 'null' title: Role - name: status in: query required: false schema: anyOf: - type: string - type: 'null' title: Status - name: keyword in: query required: false schema: anyOf: - type: string - type: 'null' title: Keyword - name: page in: query required: false schema: type: integer default: 1 title: Page - name: page_size in: query required: false schema: type: integer default: 20 title: Page Size responses: '200': description: Successful Response content: application/json: schema: {} '422': description: Validation Error content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' /api/v1/admin/users/{id}: patch: tags: - admin summary: Patch User operationId: patch_user_api_v1_admin_users__id__patch security: - OAuth2PasswordBearer: [] parameters: - name: id in: path required: true schema: type: integer title: Id requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/PatchUserIn' responses: '200': description: Successful Response content: application/json: schema: {} '422': description: Validation Error content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' /api/v1/admin/seller-requests: get: tags: - admin summary: List Seller Requests operationId: list_seller_requests_api_v1_admin_seller_requests_get responses: '200': description: Successful Response content: application/json: schema: {} security: - OAuth2PasswordBearer: [] /api/v1/admin/seller-requests/{id}: patch: tags: - admin summary: Patch Seller Request operationId: patch_seller_request_api_v1_admin_seller_requests__id__patch security: - OAuth2PasswordBearer: [] parameters: - name: id in: path required: true schema: type: integer title: Id requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/PatchSellerRequestIn' responses: '200': description: Successful Response content: application/json: schema: {} '422': description: Validation Error content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' /api/v1/admin/reports: get: tags: - admin summary: List Reports operationId: list_reports_api_v1_admin_reports_get responses: '200': description: Successful Response content: application/json: schema: {} security: - OAuth2PasswordBearer: [] /api/v1/admin/reports/{id}: patch: tags: - admin summary: Patch Report operationId: patch_report_api_v1_admin_reports__id__patch security: - OAuth2PasswordBearer: [] parameters: - name: id in: path required: true schema: type: integer title: Id requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/PatchReportIn' responses: '200': description: Successful Response content: application/json: schema: {} '422': description: Validation Error content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' /api/v1/admin/audit-logs: get: tags: - admin summary: Audit Logs operationId: audit_logs_api_v1_admin_audit_logs_get responses: '200': description: Successful Response content: application/json: schema: {} security: - OAuth2PasswordBearer: [] /api/v1/admin/metrics: get: tags: - admin summary: Metrics operationId: metrics_api_v1_admin_metrics_get responses: '200': description: Successful Response content: application/json: schema: {} security: - OAuth2PasswordBearer: [] /api/v1/admin/logs: get: tags: - admin summary: Logs operationId: logs_api_v1_admin_logs_get responses: '200': description: Successful Response content: application/json: schema: {} security: - OAuth2PasswordBearer: [] /health: get: summary: Health Check operationId: health_check_health_get responses: '200': description: Successful Response content: application/json: schema: {} components: schemas: CartAddIn: properties: product_id: type: integer title: Product Id quantity: type: integer title: Quantity type: object required: - product_id - quantity title: CartAddIn CartUpdateIn: properties: quantity: type: integer title: Quantity type: object required: - quantity title: CartUpdateIn ChatbotConfigIn: properties: api_key: type: string title: Api Key prompt: type: string title: Prompt default: '' template: type: string title: Template default: '' is_enabled: type: boolean title: Is Enabled default: false type: object required: - api_key title: ChatbotConfigIn ConversationIn: properties: seller_id: type: integer title: Seller Id type: object required: - seller_id title: ConversationIn CreateOrderIn: properties: shipping_address: type: string title: Shipping Address type: object required: - shipping_address title: CreateOrderIn ForgotPasswordIn: properties: email: type: string format: email title: Email type: object required: - email title: ForgotPasswordIn HTTPValidationError: properties: detail: items: $ref: '#/components/schemas/ValidationError' type: array title: Detail type: object title: HTTPValidationError IntentSearchIn: properties: query: type: string title: Query page: type: integer title: Page default: 1 page_size: type: integer title: Page Size default: 20 type: object required: - query title: IntentSearchIn LoginIn: properties: email: type: string format: email title: Email password: type: string title: Password type: object required: - email - password title: LoginIn LogoutIn: properties: refresh_token: type: string title: Refresh Token type: object required: - refresh_token title: LogoutIn MessageIn: properties: content: type: string title: Content type: object required: - content title: MessageIn NotificationReadIn: properties: is_read: type: boolean title: Is Read default: true type: object title: NotificationReadIn OrderStatusIn: properties: status: type: string title: Status type: object required: - status title: OrderStatusIn PatchReportIn: properties: status: type: string title: Status type: object required: - status title: PatchReportIn PatchSellerRequestIn: properties: action: type: string title: Action reason: type: string title: Reason default: '' type: object required: - action title: PatchSellerRequestIn PatchUserIn: properties: status: anyOf: - type: string - type: 'null' title: Status role: anyOf: - type: string - type: 'null' title: Role type: object title: PatchUserIn ProductIn: properties: name: type: string title: Name description: type: string title: Description default: '' price: type: number title: Price stock: type: integer title: Stock category_id: anyOf: - type: integer - type: 'null' title: Category Id type: object required: - name - price - stock title: ProductIn RefreshIn: properties: refresh_token: type: string title: Refresh Token type: object required: - refresh_token title: RefreshIn RegisterIn: properties: email: type: string format: email title: Email password: type: string title: Password full_name: type: string title: Full Name type: object required: - email - password - full_name title: RegisterIn ReportIn: properties: target_type: type: string title: Target Type target_id: type: integer title: Target Id reason: type: string title: Reason type: object required: - target_type - target_id - reason title: ReportIn ResetPasswordIn: properties: email: type: string format: email title: Email otp: type: string title: Otp new_password: type: string title: New Password type: object required: - email - otp - new_password title: ResetPasswordIn ReviewIn: properties: product_id: type: integer title: Product Id rating: type: integer title: Rating comment: type: string title: Comment default: '' type: object required: - product_id - rating title: ReviewIn SellerRequestIn: properties: shop_name: type: string title: Shop Name description: type: string title: Description contact: type: string title: Contact type: object required: - shop_name - description - contact title: SellerRequestIn ShippingIn: properties: shipping_status: type: string title: Shipping Status shipping_note: type: string title: Shipping Note default: '' type: object required: - shipping_status title: ShippingIn ShopIn: properties: name: type: string title: Name description: type: string title: Description default: '' type: object required: - name title: ShopIn UpdateMeIn: properties: full_name: type: string title: Full Name type: object required: - full_name title: UpdateMeIn ValidationError: properties: loc: items: anyOf: - type: string - type: integer type: array title: Location msg: type: string title: Message type: type: string title: Error Type type: object required: - loc - msg - type title: ValidationError VerifyOtpIn: properties: email: type: string format: email title: Email otp: type: string title: Otp type: object required: - email - otp title: VerifyOtpIn securitySchemes: OAuth2PasswordBearer: type: oauth2 flows: password: scopes: {} tokenUrl: /api/v1/auth/login