{"openapi":"3.1.0","info":{"title":"FastAPI","version":"0.1.0"},"paths":{"/api/users/admin":{"get":{"tags":["users"],"summary":"Get All Users","operationId":"get_all_users_api_users_admin_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/UserAdminResponse"},"type":"array","title":"Response Get All Users Api Users Admin Get"}}}}}}},"/api/users/admin/{user_id}":{"get":{"tags":["users"],"summary":"Get User By Id","operationId":"get_user_by_id_api_users_admin__user_id__get","parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"integer","title":"User Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserAdminResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/users/me":{"get":{"tags":["users"],"summary":"Get Current User","operationId":"get_current_user_api_users_me_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserProfileResponse"}}}}}},"put":{"tags":["users"],"summary":"Update Current User","operationId":"update_current_user_api_users_me_put","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserProfileUpdate"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserProfileResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/auth/signup":{"post":{"tags":["auth"],"summary":"Signup","operationId":"signup_api_auth_signup_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserCreate"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/auth/signin":{"post":{"tags":["auth"],"summary":"Signin","operationId":"signin_api_auth_signin_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SignInRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SignInResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/auth/token":{"get":{"tags":["auth"],"summary":"Get Tokens","operationId":"get_tokens_api_auth_token_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/auth/signout":{"post":{"tags":["auth"],"summary":"Signout","operationId":"signout_api_auth_signout_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/auth/forgot-password":{"post":{"tags":["auth"],"summary":"Forgot Password","operationId":"forgot_password_api_auth_forgot_password_post","parameters":[{"name":"email","in":"query","required":true,"schema":{"type":"string","title":"Email"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/auth/reset-password":{"post":{"tags":["auth"],"summary":"Reset Password","operationId":"reset_password_api_auth_reset_password_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PasswordResetRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/auth/store-access":{"post":{"tags":["auth"],"summary":"Verify Store Access","operationId":"verify_store_access_api_auth_store_access_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StoreAccessRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/auth/store-access/check":{"get":{"tags":["auth"],"summary":"Check Store Access","operationId":"check_store_access_api_auth_store_access_check_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/product/categories":{"get":{"tags":["product"],"summary":"Get All Categories","operationId":"get_all_categories_api_product_categories_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/CategoryResponse"},"type":"array","title":"Response Get All Categories Api Product Categories Get"}}}}}},"post":{"tags":["product"],"summary":"Create Category","operationId":"create_category_api_product_categories_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CategoryCreate"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/product/tags":{"get":{"tags":["product"],"summary":"Get All Tags","operationId":"get_all_tags_api_product_tags_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/TagResponse"},"type":"array","title":"Response Get All Tags Api Product Tags Get"}}}}}}},"/api/product/new":{"get":{"tags":["product"],"summary":"Get New Products","operationId":"get_new_products_api_product_new_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/ProductResponse"},"type":"array","title":"Response Get New Products Api Product New Get"}}}}}}},"/api/product/special-deals":{"get":{"tags":["product"],"summary":"Get Special Offers","operationId":"get_special_offers_api_product_special_deals_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/ProductResponse"},"type":"array","title":"Response Get Special Offers Api Product Special Deals Get"}}}}}}},"/api/product/":{"get":{"tags":["product"],"summary":"Get All Products","operationId":"get_all_products_api_product__get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Number of products to return","default":10,"title":"Limit"},"description":"Number of products to return"},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"description":"Number of products to skip","default":0,"title":"Offset"},"description":"Number of products to skip"},{"name":"sortBy","in":"query","required":false,"schema":{"type":"string","pattern":"^(id|name|price)-(asc|desc)$","description":"Sort by field","default":"id-asc","title":"Sortby"},"description":"Sort by field"},{"name":"category","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"Filter by category ID","title":"Category"},"description":"Filter by category ID"},{"name":"tag","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"integer"}},{"type":"null"}],"description":"Filter by tag ID","title":"Tag"},"description":"Filter by tag ID"},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Search by product name or description","title":"Search"},"description":"Search by product name or description"},{"name":"is_new","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"description":"Filter by new products","title":"Is New"},"description":"Filter by new products"},{"name":"special_deals","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"description":"Filter by special deals","title":"Special Deals"},"description":"Filter by special deals"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProductListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["product"],"summary":"Create Product","operationId":"create_product_api_product__post","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProductCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/product/api/all":{"get":{"tags":["product"],"summary":"Get All Products Api","description":"Fetch all active products for external applications (WPF, mobile apps, etc.).\nRequires a valid API key in the X-API-Key header.\nReturns simplified product data without relationships.","operationId":"get_all_products_api_api_product_api_all_get","parameters":[{"name":"x-api-key","in":"header","required":true,"schema":{"type":"string","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ProductApiResponse"},"title":"Response Get All Products Api Api Product Api All Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/product/{product_id}":{"get":{"tags":["product"],"summary":"Get Product","operationId":"get_product_api_product__product_id__get","parameters":[{"name":"product_id","in":"path","required":true,"schema":{"type":"integer","title":"Product Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProductResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["product"],"summary":"Update Product","operationId":"update_product_api_product__product_id__put","parameters":[{"name":"product_id","in":"path","required":true,"schema":{"type":"integer","title":"Product Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProductUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProductResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/product/{product_id}/similar":{"get":{"tags":["product"],"summary":"Get Similar Products","operationId":"get_similar_products_api_product__product_id__similar_get","parameters":[{"name":"product_id","in":"path","required":true,"schema":{"type":"integer","title":"Product Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":20,"minimum":1,"default":8,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ProductResponse"},"title":"Response Get Similar Products Api Product  Product Id  Similar Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/product/categories/{category_id}":{"put":{"tags":["product"],"summary":"Update Category","operationId":"update_category_api_product_categories__category_id__put","parameters":[{"name":"category_id","in":"path","required":true,"schema":{"type":"integer","title":"Category Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CategoryCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["product"],"summary":"Delete Category","operationId":"delete_category_api_product_categories__category_id__delete","parameters":[{"name":"category_id","in":"path","required":true,"schema":{"type":"integer","title":"Category Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/cart/":{"get":{"tags":["cart"],"summary":"Get Active Cart","operationId":"get_active_cart_api_cart__get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ActiveCartResponse"}}}}}},"post":{"tags":["cart"],"summary":"Add To Cart","operationId":"add_to_cart_api_cart__post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddToCartRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ActiveCartResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["cart"],"summary":"Clear Cart","operationId":"clear_cart_api_cart__delete","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ActiveCartResponse"}}}}}}},"/api/cart/{product_id}":{"put":{"tags":["cart"],"summary":"Update Cart Item","operationId":"update_cart_item_api_cart__product_id__put","parameters":[{"name":"product_id","in":"path","required":true,"schema":{"type":"integer","title":"Product Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateCartItemRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ActiveCartResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["cart"],"summary":"Remove Cart Item","operationId":"remove_cart_item_api_cart__product_id__delete","parameters":[{"name":"product_id","in":"path","required":true,"schema":{"type":"integer","title":"Product Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ActiveCartResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/order/":{"get":{"tags":["order"],"summary":"Get All Orders","operationId":"get_all_orders_api_order__get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/OrderAdminResponse"},"type":"array","title":"Response Get All Orders Api Order  Get"}}}}}},"post":{"tags":["order"],"summary":"Create Order","operationId":"create_order_api_order__post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrderCreate"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrderCheckoutResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/order/history":{"get":{"tags":["order"],"summary":"Get User Orders","operationId":"get_user_orders_api_order_history_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/OrderResponse"},"type":"array","title":"Response Get User Orders Api Order History Get"}}}}}}},"/api/order/{order_id}/confirm":{"put":{"tags":["order"],"summary":"Confirm Order","operationId":"confirm_order_api_order__order_id__confirm_put","parameters":[{"name":"order_id","in":"path","required":true,"schema":{"type":"integer","title":"Order Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrderAdminResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/order/{order_id}/complete":{"put":{"tags":["order"],"summary":"Complete Order","operationId":"complete_order_api_order__order_id__complete_put","parameters":[{"name":"order_id","in":"path","required":true,"schema":{"type":"integer","title":"Order Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrderAdminResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/order/{order_id}":{"delete":{"tags":["order"],"summary":"Delete Order","description":"Soft delete an order","operationId":"delete_order_api_order__order_id__delete","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"}}}}}},"get":{"tags":["order"],"summary":"Get Order By Id","operationId":"get_order_by_id_api_order__order_id__get","parameters":[{"name":"order_id","in":"path","required":true,"schema":{"type":"integer","title":"Order Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrderAdminResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/order/{order_id}/invoice":{"get":{"tags":["order"],"summary":"Generate Order Invoice","description":"Generate PDF invoice for an order.\nReturns a downloadable PDF file.","operationId":"generate_order_invoice_api_order__order_id__invoice_get","parameters":[{"name":"order_id","in":"path","required":true,"schema":{"type":"integer","title":"Order Id"}}],"responses":{"200":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/advertise/send-promo-email":{"post":{"tags":["advertise"],"summary":"Send Promo Email","operationId":"send_promo_email_api_advertise_send_promo_email_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/coupon/validate":{"post":{"tags":["coupon"],"summary":"Validate Coupon","operationId":"validate_coupon_api_coupon_validate_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CouponRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ActiveCartResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/coupon/remove":{"post":{"tags":["coupon"],"summary":"Remove Coupon","operationId":"remove_coupon_api_coupon_remove_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ActiveCartResponse"}}}}}}},"/api/coupon/":{"get":{"tags":["coupon"],"summary":"List Coupons","operationId":"list_coupons_api_coupon__get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/CouponAdminResponse"},"type":"array","title":"Response List Coupons Api Coupon  Get"}}}}}},"post":{"tags":["coupon"],"summary":"Create Coupon","operationId":"create_coupon_api_coupon__post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CouponCreate"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CouponAdminResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/coupon/{coupon_id}":{"put":{"tags":["coupon"],"summary":"Update Coupon","operationId":"update_coupon_api_coupon__coupon_id__put","parameters":[{"name":"coupon_id","in":"path","required":true,"schema":{"type":"integer","title":"Coupon Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CouponUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CouponAdminResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["coupon"],"summary":"Delete Coupon","operationId":"delete_coupon_api_coupon__coupon_id__delete","parameters":[{"name":"coupon_id","in":"path","required":true,"schema":{"type":"integer","title":"Coupon Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["coupon"],"summary":"Get Coupon","operationId":"get_coupon_api_coupon__coupon_id__get","parameters":[{"name":"coupon_id","in":"path","required":true,"schema":{"type":"integer","title":"Coupon Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CouponAdminResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/notification/":{"get":{"tags":["notification"],"summary":"Get Notifications","description":"Get notifications for the current user.","operationId":"get_notifications_api_notification__get","parameters":[{"name":"skip","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Skip"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"default":20,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/NotificationResponse"},"title":"Response Get Notifications Api Notification  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/notification/{notification_id}/read":{"patch":{"tags":["notification"],"summary":"Mark Notification As Read","description":"Mark a specific notification as read.","operationId":"mark_notification_as_read_api_notification__notification_id__read_patch","parameters":[{"name":"notification_id","in":"path","required":true,"schema":{"type":"integer","title":"Notification Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotificationResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/notification/mark-all-read":{"post":{"tags":["notification"],"summary":"Mark All Notifications As Read","description":"Mark all notifications for the current user as read.","operationId":"mark_all_notifications_as_read_api_notification_mark_all_read_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/NotificationResponse"},"type":"array","title":"Response Mark All Notifications As Read Api Notification Mark All Read Post"}}}}}}},"/api/address/":{"get":{"tags":["address"],"summary":"Get User Addresses","operationId":"get_user_addresses_api_address__get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/AddressResponse"},"type":"array","title":"Response Get User Addresses Api Address  Get"}}}}}},"post":{"tags":["address"],"summary":"Create User Address","operationId":"create_user_address_api_address__post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddressCreate"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddressResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/address/{address_id}":{"delete":{"tags":["address"],"summary":"Delete User Address","operationId":"delete_user_address_api_address__address_id__delete","parameters":[{"name":"address_id","in":"path","required":true,"schema":{"type":"integer","title":"Address Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["address"],"summary":"Update User Address","operationId":"update_user_address_api_address__address_id__put","parameters":[{"name":"address_id","in":"path","required":true,"schema":{"type":"integer","title":"Address Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddressUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddressResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/api-keys/":{"get":{"tags":["api-keys"],"summary":"List Api Keys","description":"List all API keys. Only accessible by superusers.\nThe actual key values are NOT returned for security.","operationId":"list_api_keys_api_api_keys__get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/APIKeyResponse"},"type":"array","title":"Response List Api Keys Api Api Keys  Get"}}}}}},"post":{"tags":["api-keys"],"summary":"Create Api Key","description":"Create a new API key. Only accessible by superusers.\nThe generated key is returned in the response - store it securely!","operationId":"create_api_key_api_api_keys__post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIKeyCreate"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIKeyCreatedResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/api-keys/{api_key_id}/revoke":{"patch":{"tags":["api-keys"],"summary":"Revoke Api Key","description":"Revoke (deactivate) an API key. Only accessible by superusers.","operationId":"revoke_api_key_api_api_keys__api_key_id__revoke_patch","parameters":[{"name":"api_key_id","in":"path","required":true,"schema":{"type":"integer","title":"Api Key Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIKeyResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/api-keys/{api_key_id}/activate":{"patch":{"tags":["api-keys"],"summary":"Activate Api Key","description":"Reactivate a previously revoked API key. Only accessible by superusers.","operationId":"activate_api_key_api_api_keys__api_key_id__activate_patch","parameters":[{"name":"api_key_id","in":"path","required":true,"schema":{"type":"integer","title":"Api Key Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIKeyResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/api-keys/{api_key_id}":{"delete":{"tags":["api-keys"],"summary":"Delete Api Key","description":"Permanently delete an API key. Only accessible by superusers.","operationId":"delete_api_key_api_api_keys__api_key_id__delete","parameters":[{"name":"api_key_id","in":"path","required":true,"schema":{"type":"integer","title":"Api Key Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/api-keys/ping":{"get":{"tags":["api-keys"],"summary":"Ping Api Key","description":"Test if an API key is valid and active.\nReturns basic info about the key without sensitive data.","operationId":"ping_api_key_api_api_keys_ping_get","parameters":[{"name":"x-api-key","in":"header","required":true,"schema":{"type":"string","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Ping Api Key Api Api Keys Ping Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/import/upload":{"post":{"tags":["import"],"summary":"Upload Legacy Db","description":"Upload a zip file containing the legacy baze2017 database.\nExtracts roba.dbf and LAGER.dbf, then upserts products in the background.\nA row is inserted into import_runs (status='running') before the background\ntask is scheduled, so the status endpoint always sees the current run.","operationId":"upload_legacy_db_api_import_upload_post","requestBody":{"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_upload_legacy_db_api_import_upload_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/import/status":{"get":{"tags":["import"],"summary":"Get Last Import Status","description":"Return the most recent import run, or null if none exist.","operationId":"get_last_import_status_api_import_status_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ImportRunOut"},{"type":"null"}],"title":"Response Get Last Import Status Api Import Status Get"}}}}}}},"/api/sales/summary":{"get":{"tags":["sales"],"summary":"Get Summary","description":"Totals over an optional year/month window.","operationId":"get_summary_api_sales_summary_get","parameters":[{"name":"year","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","maximum":2100,"minimum":1990},{"type":"null"}],"title":"Year"}},{"name":"month","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","maximum":12,"minimum":1},{"type":"null"}],"title":"Month"}},{"name":"include_unprinted","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Include Unprinted"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SummaryOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/sales/monthly":{"get":{"tags":["sales"],"summary":"Get Monthly","description":"12 month points for a given year. Missing months are zero-filled.","operationId":"get_monthly_api_sales_monthly_get","parameters":[{"name":"year","in":"query","required":true,"schema":{"type":"integer","maximum":2100,"minimum":1990,"title":"Year"}},{"name":"include_unprinted","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Include Unprinted"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/MonthPointOut"},"title":"Response Get Monthly Api Sales Monthly Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/sales/daily":{"get":{"tags":["sales"],"summary":"Get Daily","description":"Daily revenue / bill-count / units series for one calendar month.","operationId":"get_daily_api_sales_daily_get","parameters":[{"name":"year","in":"query","required":true,"schema":{"type":"integer","maximum":2100,"minimum":1990,"title":"Year"}},{"name":"month","in":"query","required":true,"schema":{"type":"integer","maximum":12,"minimum":1,"title":"Month"}},{"name":"include_unprinted","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Include Unprinted"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DailyMonthOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/sales/compare-daily":{"get":{"tags":["sales"],"summary":"Get Compare Daily","description":"Two daily series for side-by-side month-over-month comparison.","operationId":"get_compare_daily_api_sales_compare_daily_get","parameters":[{"name":"year_a","in":"query","required":true,"schema":{"type":"integer","maximum":2100,"minimum":1990,"title":"Year A"}},{"name":"month_a","in":"query","required":true,"schema":{"type":"integer","maximum":12,"minimum":1,"title":"Month A"}},{"name":"year_b","in":"query","required":true,"schema":{"type":"integer","maximum":2100,"minimum":1990,"title":"Year B"}},{"name":"month_b","in":"query","required":true,"schema":{"type":"integer","maximum":12,"minimum":1,"title":"Month B"}},{"name":"include_unprinted","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Include Unprinted"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompareDailyOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/sales/yearly":{"get":{"tags":["sales"],"summary":"Get Yearly","description":"Per-year totals. Drives the year picker and year-over-year selector.","operationId":"get_yearly_api_sales_yearly_get","parameters":[{"name":"include_unprinted","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Include Unprinted"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/YearTotalOut"},"title":"Response Get Yearly Api Sales Yearly Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/sales/compare":{"get":{"tags":["sales"],"summary":"Get Compare","description":"Two monthly series for side-by-side year-over-year comparison.","operationId":"get_compare_api_sales_compare_get","parameters":[{"name":"year_a","in":"query","required":true,"schema":{"type":"integer","maximum":2100,"minimum":1990,"title":"Year A"}},{"name":"year_b","in":"query","required":true,"schema":{"type":"integer","maximum":2100,"minimum":1990,"title":"Year B"}},{"name":"include_unprinted","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Include Unprinted"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompareOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/sales/top-products":{"get":{"tags":["sales"],"summary":"Get Top Products","description":"Best sellers in a date range, ordered by revenue or units.\nProduct name falls back to the frozen naziv_robe snapshot if the product\nno longer exists in the roba catalog.","operationId":"get_top_products_api_sales_top_products_get","parameters":[{"name":"from","in":"query","required":true,"schema":{"type":"string","format":"date","title":"From"}},{"name":"to","in":"query","required":true,"schema":{"type":"string","format":"date","title":"To"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":20,"title":"Limit"}},{"name":"by","in":"query","required":false,"schema":{"type":"string","pattern":"^(revenue|units)$","default":"revenue","title":"By"}},{"name":"include_unprinted","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Include Unprinted"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/TopProductOut"},"title":"Response Get Top Products Api Sales Top Products Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/sales/product-price-history":{"get":{"tags":["sales"],"summary":"Get Product Price History","description":"Weighted average sale price per year for one product.\nWeighted means SUM(iznos) / SUM(kolicina) — reflects what customers\nactually paid on average, not a flat AVG(cena).","operationId":"get_product_price_history_api_sales_product_price_history_get","parameters":[{"name":"sifra_ro","in":"query","required":true,"schema":{"type":"integer","minimum":0,"title":"Sifra Ro"}},{"name":"include_unprinted","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Include Unprinted"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProductPriceHistoryOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/sales/current-month":{"get":{"tags":["sales"],"summary":"Get Current Month","description":"Month-to-date totals for the server's current calendar month, plus an\nis_in_progress flag. Flag is true iff the latest bill date in DB falls\ninside the current calendar month — i.e. the month is still being filled in.","operationId":"get_current_month_api_sales_current_month_get","parameters":[{"name":"include_unprinted","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Include Unprinted"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CurrentMonthOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}}},"components":{"schemas":{"APIKeyCreate":{"properties":{"name":{"type":"string","maxLength":100,"minLength":1,"title":"Name","description":"Name/identifier for this API key"},"description":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Description","description":"Optional description"},"expires_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Expires At","description":"Expiration date/time (None = never expires)"}},"type":"object","required":["name"],"title":"APIKeyCreate"},"APIKeyCreatedResponse":{"properties":{"id":{"type":"integer","title":"Id"},"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"key":{"type":"string","title":"Key"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"expires_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Expires At"}},"type":"object","required":["id","name","description","key","created_at","expires_at"],"title":"APIKeyCreatedResponse","description":"Response when creating a new API key - includes the actual key"},"APIKeyResponse":{"properties":{"id":{"type":"integer","title":"Id"},"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"is_active":{"type":"boolean","title":"Is Active"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"last_used_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Used At"},"expires_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Expires At"}},"type":"object","required":["id","name","description","is_active","created_at","last_used_at","expires_at"],"title":"APIKeyResponse"},"ActiveCartResponse":{"properties":{"items":{"anyOf":[{"items":{"$ref":"#/components/schemas/CartItemResponse"},"type":"array"},{"type":"null"}],"title":"Items","default":[]},"coupon":{"anyOf":[{"$ref":"#/components/schemas/CouponResponse"},{"type":"null"}]},"total_price":{"type":"number","title":"Total Price","readOnly":true},"final_price":{"type":"number","title":"Final Price","description":"Final price after applying coupon (if any).","readOnly":true}},"type":"object","required":["total_price","final_price"],"title":"ActiveCartResponse"},"AddToCartRequest":{"properties":{"product_id":{"type":"integer","title":"Product Id"},"quantity":{"type":"integer","maximum":100.0,"exclusiveMinimum":0.0,"title":"Quantity"}},"type":"object","required":["product_id","quantity"],"title":"AddToCartRequest"},"AddressCreate":{"properties":{"label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Label"},"street":{"type":"string","title":"Street"},"city":{"type":"string","title":"City"},"is_default":{"type":"boolean","title":"Is Default","default":false}},"type":"object","required":["street","city"],"title":"AddressCreate"},"AddressResponse":{"properties":{"label":{"anyOf":[{"type":"string","maxLength":30},{"type":"null"}],"title":"Label"},"street":{"type":"string","maxLength":100,"title":"Street"},"city":{"type":"string","maxLength":50,"title":"City"},"is_default":{"type":"boolean","title":"Is Default","description":"Indicates if this is the default address","default":false},"id":{"type":"integer","title":"Id"},"user_id":{"type":"integer","title":"User Id"}},"type":"object","required":["street","city","id","user_id"],"title":"AddressResponse"},"AddressSchema":{"properties":{"street":{"type":"string","title":"Street"},"city":{"type":"string","title":"City"}},"type":"object","required":["street","city"],"title":"AddressSchema"},"AddressUpdate":{"properties":{"label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Label"},"street":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Street"},"city":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"City"},"is_default":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Default"}},"type":"object","title":"AddressUpdate"},"Body_upload_legacy_db_api_import_upload_post":{"properties":{"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File"}},"type":"object","required":["file"],"title":"Body_upload_legacy_db_api_import_upload_post"},"CartItemResponse":{"properties":{"id":{"type":"integer","title":"Id"},"product_id":{"type":"integer","title":"Product Id"},"quantity":{"type":"integer","title":"Quantity"},"unit_price":{"type":"number","title":"Unit Price"},"total_price":{"type":"number","title":"Total Price"},"product":{"anyOf":[{"$ref":"#/components/schemas/ProductResponse"},{"type":"null"}]}},"type":"object","required":["id","product_id","quantity","unit_price","total_price"],"title":"CartItemResponse"},"CategoryCreate":{"properties":{"name":{"type":"string","title":"Name"}},"type":"object","required":["name"],"title":"CategoryCreate"},"CategoryResponse":{"properties":{"id":{"type":"integer","title":"Id"},"name":{"type":"string","title":"Name"}},"type":"object","required":["id","name"],"title":"CategoryResponse"},"CompareDailyOut":{"properties":{"a":{"$ref":"#/components/schemas/DailyMonthOut"},"b":{"$ref":"#/components/schemas/DailyMonthOut"}},"type":"object","required":["a","b"],"title":"CompareDailyOut","description":"Two daily series for side-by-side month comparison."},"CompareOut":{"properties":{"year_a":{"type":"integer","title":"Year A"},"year_b":{"type":"integer","title":"Year B"},"series_a":{"items":{"$ref":"#/components/schemas/MonthPointOut"},"type":"array","title":"Series A"},"series_b":{"items":{"$ref":"#/components/schemas/MonthPointOut"},"type":"array","title":"Series B"}},"type":"object","required":["year_a","year_b","series_a","series_b"],"title":"CompareOut"},"CouponAdminResponse":{"properties":{"id":{"type":"integer","title":"Id"},"code":{"type":"string","title":"Code"},"discount_type":{"$ref":"#/components/schemas/CouponType"},"discount_value":{"type":"number","title":"Discount Value"},"max_uses":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Uses"},"current_uses":{"type":"integer","title":"Current Uses"},"is_active":{"type":"boolean","title":"Is Active"},"expires_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Expires At"},"soft_deleted":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Soft Deleted","default":false}},"type":"object","required":["id","code","discount_type","discount_value","current_uses","is_active"],"title":"CouponAdminResponse"},"CouponCreate":{"properties":{"code":{"type":"string","title":"Code"},"discount_type":{"$ref":"#/components/schemas/CouponType"},"discount_value":{"type":"number","title":"Discount Value"},"max_uses":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Uses"},"is_active":{"type":"boolean","title":"Is Active","default":false},"expires_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Expires At"}},"type":"object","required":["code","discount_type","discount_value"],"title":"CouponCreate"},"CouponRequest":{"properties":{"code":{"type":"string","title":"Code"}},"type":"object","required":["code"],"title":"CouponRequest"},"CouponResponse":{"properties":{"code":{"type":"string","title":"Code"},"discount_type":{"$ref":"#/components/schemas/CouponType"},"discount_value":{"type":"number","title":"Discount Value"}},"type":"object","required":["code","discount_type","discount_value"],"title":"CouponResponse"},"CouponType":{"type":"string","enum":["percentage","fixed_amount"],"title":"CouponType"},"CouponUpdate":{"properties":{"code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Code"},"discount_type":{"anyOf":[{"$ref":"#/components/schemas/CouponType"},{"type":"null"}]},"discount_value":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Discount Value"},"max_uses":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Uses","description":"Set to null to remove limit"},"is_active":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Active"},"expires_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Expires At","description":"Set to null to make never expire"}},"type":"object","title":"CouponUpdate"},"CurrentMonthOut":{"properties":{"year":{"type":"integer","title":"Year"},"month":{"type":"integer","title":"Month"},"revenue":{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","title":"Revenue"},"bill_count":{"type":"integer","title":"Bill Count"},"is_in_progress":{"type":"boolean","title":"Is In Progress"},"last_imported_bill_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Last Imported Bill Date"}},"type":"object","required":["year","month","revenue","bill_count","is_in_progress","last_imported_bill_date"],"title":"CurrentMonthOut"},"DailyMonthOut":{"properties":{"year":{"type":"integer","title":"Year"},"month":{"type":"integer","title":"Month"},"points":{"items":{"$ref":"#/components/schemas/DayPointOut"},"type":"array","title":"Points"}},"type":"object","required":["year","month","points"],"title":"DailyMonthOut","description":"Daily series for a given (year, month). Missing days are zero-filled."},"DayPointOut":{"properties":{"year":{"type":"integer","title":"Year"},"month":{"type":"integer","title":"Month"},"day":{"type":"integer","title":"Day"},"revenue":{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","title":"Revenue"},"bill_count":{"type":"integer","title":"Bill Count"},"units_sold":{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","title":"Units Sold"}},"type":"object","required":["year","month","day","revenue","bill_count","units_sold"],"title":"DayPointOut"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"ImportRunOut":{"properties":{"id":{"type":"integer","title":"Id"},"filename":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Filename"},"status":{"type":"string","title":"Status"},"started_at":{"type":"string","format":"date-time","title":"Started At"},"finished_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Finished At"},"error_message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error Message"},"stats":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Stats"}},"type":"object","required":["id","filename","status","started_at","finished_at","error_message","stats"],"title":"ImportRunOut"},"MonthPointOut":{"properties":{"year":{"type":"integer","title":"Year"},"month":{"type":"integer","title":"Month"},"revenue":{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","title":"Revenue"},"bill_count":{"type":"integer","title":"Bill Count"},"units_sold":{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","title":"Units Sold"}},"type":"object","required":["year","month","revenue","bill_count","units_sold"],"title":"MonthPointOut"},"NotificationResponse":{"properties":{"title":{"type":"string","title":"Title"},"message":{"type":"string","title":"Message"},"is_read":{"type":"boolean","title":"Is Read","default":false},"id":{"type":"integer","title":"Id"},"user_id":{"type":"integer","title":"User Id"},"type":{"type":"string","title":"Type"},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"},"updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated At"}},"type":"object","required":["title","message","id","user_id","type"],"title":"NotificationResponse"},"OrderAdminResponse":{"properties":{"id":{"type":"integer","title":"Id"},"user_id":{"type":"integer","title":"User Id"},"cart_id":{"type":"integer","title":"Cart Id"},"coupon_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Coupon Id"},"status":{"$ref":"#/components/schemas/OrderStatus"},"total_amount":{"type":"number","title":"Total Amount"},"discount_amount":{"type":"number","title":"Discount Amount"},"final_amount":{"type":"number","title":"Final Amount"},"note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Note"},"customer_name":{"type":"string","title":"Customer Name"},"customer_street":{"type":"string","title":"Customer Street"},"customer_city":{"type":"string","title":"Customer City"},"customer_phone":{"type":"string","title":"Customer Phone"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["id","user_id","cart_id","status","total_amount","discount_amount","final_amount","customer_name","customer_street","customer_city","customer_phone","created_at","updated_at"],"title":"OrderAdminResponse"},"OrderCheckoutResponse":{"properties":{"id":{"type":"integer","title":"Id"},"final_amount":{"type":"number","title":"Final Amount"}},"type":"object","required":["id","final_amount"],"title":"OrderCheckoutResponse"},"OrderCreate":{"properties":{"customer_name":{"type":"string","title":"Customer Name"},"customer_address":{"$ref":"#/components/schemas/AddressSchema"},"customer_phone":{"type":"string","title":"Customer Phone"},"note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Note"}},"type":"object","required":["customer_name","customer_address","customer_phone"],"title":"OrderCreate"},"OrderResponse":{"properties":{"id":{"type":"integer","title":"Id"},"customer_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Customer Name"},"customer_street":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Customer Street"},"customer_city":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Customer City"},"customer_phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Customer Phone"},"total_amount":{"type":"number","title":"Total Amount"},"discount_amount":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Discount Amount"},"final_amount":{"type":"number","title":"Final Amount"},"status":{"$ref":"#/components/schemas/OrderStatus"},"note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Note"},"order_number":{"type":"integer","title":"Order Number"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","total_amount","final_amount","status","order_number","created_at"],"title":"OrderResponse"},"OrderStatus":{"type":"string","enum":["pending","completed","cancelled","confirmed"],"title":"OrderStatus"},"PasswordResetRequest":{"properties":{"token":{"type":"string","title":"Token"},"new_password":{"type":"string","title":"New Password"}},"type":"object","required":["token","new_password"],"title":"PasswordResetRequest"},"PricePointOut":{"properties":{"year":{"type":"integer","title":"Year"},"avg_price":{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","title":"Avg Price"},"units_sold":{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","title":"Units Sold"}},"type":"object","required":["year","avg_price","units_sold"],"title":"PricePointOut"},"ProductApiResponse":{"properties":{"id":{"type":"integer","title":"Id"},"name":{"type":"string","title":"Name"},"serbian_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Serbian Name"},"price":{"type":"number","title":"Price"},"sale_price":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Sale Price"},"unit_type":{"$ref":"#/components/schemas/UnitType"},"pack_quantity":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Pack Quantity"},"is_active":{"type":"boolean","title":"Is Active","default":true},"sifra_ro":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Sifra Ro"},"stopa":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Stopa"},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"},"updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated At"}},"type":"object","required":["id","name","price","unit_type"],"title":"ProductApiResponse","description":"Simplified response for API key protected endpoints"},"ProductCreate":{"properties":{"name":{"type":"string","title":"Name"},"serbian_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Serbian Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"long_description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Long Description"},"price":{"type":"number","title":"Price"},"sale_price":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Sale Price"},"category_id":{"type":"integer","title":"Category Id"},"unit_type":{"$ref":"#/components/schemas/UnitType"},"pack_quantity":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Pack Quantity"},"is_new":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is New","default":false},"is_active":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Active","default":true}},"type":"object","required":["name","price","category_id","unit_type"],"title":"ProductCreate"},"ProductImageResponse":{"properties":{"id":{"type":"integer","title":"Id"},"url":{"type":"string","title":"Url"},"is_main":{"type":"boolean","title":"Is Main"}},"type":"object","required":["id","url","is_main"],"title":"ProductImageResponse"},"ProductListResponse":{"properties":{"products":{"items":{"$ref":"#/components/schemas/ProductResponse"},"type":"array","title":"Products"},"total":{"type":"integer","title":"Total"}},"type":"object","required":["products","total"],"title":"ProductListResponse","description":"Paginated product list response with total count"},"ProductPriceHistoryOut":{"properties":{"sifra_ro":{"type":"integer","title":"Sifra Ro"},"naziv":{"type":"string","title":"Naziv"},"points":{"items":{"$ref":"#/components/schemas/PricePointOut"},"type":"array","title":"Points"}},"type":"object","required":["sifra_ro","naziv","points"],"title":"ProductPriceHistoryOut"},"ProductResponse":{"properties":{"id":{"type":"integer","title":"Id"},"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"long_description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Long Description"},"price":{"type":"number","title":"Price"},"sale_price":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Sale Price"},"thumbnail":{"anyOf":[{"$ref":"#/components/schemas/ProductImageResponse"},{"type":"null"}]},"images":{"anyOf":[{"items":{"$ref":"#/components/schemas/ProductImageResponse"},"type":"array"},{"type":"null"}],"title":"Images","default":[]},"tags":{"anyOf":[{"items":{"$ref":"#/components/schemas/TagResponse"},"type":"array"},{"type":"null"}],"title":"Tags","default":[]},"category":{"$ref":"#/components/schemas/CategoryResponse"},"unit_type":{"$ref":"#/components/schemas/UnitType"},"pack_quantity":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Pack Quantity"},"sku":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sku"},"slug":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Slug"},"is_new":{"type":"boolean","title":"Is New","default":false},"is_active":{"type":"boolean","title":"Is Active","default":true},"serbian_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Serbian Name"},"sifra_ro":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Sifra Ro"},"stopa":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Stopa"},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"},"updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated At"}},"type":"object","required":["id","name","price","category","unit_type"],"title":"ProductResponse"},"ProductUpdate":{"properties":{"id":{"type":"integer","title":"Id"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"serbian_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Serbian Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"long_description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Long Description"},"price":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Price"},"sale_price":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Sale Price"},"category_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Category Id"},"unit_type":{"anyOf":[{"$ref":"#/components/schemas/UnitType"},{"type":"null"}]},"pack_quantity":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Pack Quantity"},"is_new":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is New"},"is_active":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Active"}},"type":"object","required":["id"],"title":"ProductUpdate"},"SignInRequest":{"properties":{"email":{"type":"string","format":"email","title":"Email"},"password":{"type":"string","title":"Password"}},"type":"object","required":["email","password"],"title":"SignInRequest"},"SignInResponse":{"properties":{"email":{"anyOf":[{"type":"string","format":"email"},{"type":"null"}],"title":"Email"},"id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Id"},"token":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Token"},"is_superuser":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Superuser","default":false},"is_active":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Active","default":false},"fullname":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Fullname"},"phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone"}},"type":"object","title":"SignInResponse"},"StoreAccessRequest":{"properties":{"password":{"type":"string","title":"Password"}},"type":"object","required":["password"],"title":"StoreAccessRequest"},"SummaryOut":{"properties":{"revenue":{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","title":"Revenue"},"bill_count":{"type":"integer","title":"Bill Count"},"line_count":{"type":"integer","title":"Line Count"},"avg_basket":{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","title":"Avg Basket"},"first_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"First Date"},"last_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Last Date"}},"type":"object","required":["revenue","bill_count","line_count","avg_basket","first_date","last_date"],"title":"SummaryOut"},"TagResponse":{"properties":{"id":{"type":"integer","title":"Id"},"name":{"type":"string","title":"Name"}},"type":"object","required":["id","name"],"title":"TagResponse"},"TopProductOut":{"properties":{"sifra_ro":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Sifra Ro"},"naziv":{"type":"string","title":"Naziv"},"units_sold":{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","title":"Units Sold"},"revenue":{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","title":"Revenue"},"bill_count":{"type":"integer","title":"Bill Count"}},"type":"object","required":["sifra_ro","naziv","units_sold","revenue","bill_count"],"title":"TopProductOut"},"UnitType":{"type":"string","enum":["unit","pack"],"title":"UnitType"},"UpdateCartItemRequest":{"properties":{"quantity":{"type":"integer","maximum":100.0,"exclusiveMinimum":0.0,"title":"Quantity"}},"type":"object","required":["quantity"],"title":"UpdateCartItemRequest"},"UserAdminResponse":{"properties":{"id":{"type":"integer","title":"Id"},"username":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Username"},"email":{"type":"string","format":"email","title":"Email"},"fullname":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Fullname"},"is_active":{"type":"boolean","title":"Is Active"},"is_superuser":{"type":"boolean","title":"Is Superuser"},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"},"updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated At"}},"type":"object","required":["id","email","is_active","is_superuser"],"title":"UserAdminResponse"},"UserCreate":{"properties":{"email":{"type":"string","format":"email","title":"Email"},"password":{"type":"string","title":"Password"}},"type":"object","required":["email","password"],"title":"UserCreate"},"UserProfileResponse":{"properties":{"email":{"type":"string","format":"email","title":"Email"},"fullname":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Fullname"},"phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone"}},"type":"object","required":["email"],"title":"UserProfileResponse"},"UserProfileUpdate":{"properties":{"fullname":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Fullname"},"phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone"},"email":{"anyOf":[{"type":"string","format":"email"},{"type":"null"}],"title":"Email"}},"type":"object","title":"UserProfileUpdate"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"},"input":{"title":"Input"},"ctx":{"type":"object","title":"Context"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"},"YearTotalOut":{"properties":{"year":{"type":"integer","title":"Year"},"revenue":{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","title":"Revenue"},"bill_count":{"type":"integer","title":"Bill Count"}},"type":"object","required":["year","revenue","bill_count"],"title":"YearTotalOut"}}}}