{"openapi":"3.1.0","info":{"title":"Affiliate Recommendation Service","version":"0.1.0"},"paths":{"/api/v1/auth/keycloak":{"get":{"tags":["auth"],"summary":"Get Keycloak Config","operationId":"get_keycloak_config_api_v1_auth_keycloak_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/KeycloakConfigResponse"}}}}}}},"/api/v1/health":{"get":{"tags":["health"],"summary":"Health","operationId":"health_api_v1_health_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":{"type":"string"},"type":"object","title":"Response Health Api V1 Health Get"}}}}}}},"/api/v1/dashboard":{"get":{"tags":["dashboard"],"summary":"Get Dashboard Report","operationId":"get_dashboard_report_api_v1_dashboard_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"started_at","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Started At"}},{"name":"ended_at","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Ended At"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DashboardReportResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/advertisers":{"get":{"tags":["advertisers"],"summary":"List Advertisers","description":"List advertisers for authenticated console and portal clients.","operationId":"list_advertisers_api_v1_advertisers_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"network","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Network"}},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Search"}},{"name":"category_l1","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by English L1 category name (category_l1_en). AND-ed with l2.","title":"Category L1"},"description":"Filter by English L1 category name (category_l1_en). AND-ed with l2."},{"name":"category_l2","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by English L2 category name (category_l2_en). AND-ed with l1.","title":"Category L2"},"description":"Filter by English L2 category name (category_l2_en). AND-ed with l1."},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdvertiserListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/advertisers/{advertiser_id}/block":{"post":{"tags":["advertisers"],"summary":"Block Advertiser","operationId":"block_advertiser_api_v1_advertisers__advertiser_id__block_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"advertiser_id","in":"path","required":true,"schema":{"type":"string","minLength":1,"title":"Advertiser Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Advertiser"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/advertisers/{advertiser_id}/unblock":{"post":{"tags":["advertisers"],"summary":"Unblock Advertiser","operationId":"unblock_advertiser_api_v1_advertisers__advertiser_id__unblock_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"advertiser_id","in":"path","required":true,"schema":{"type":"string","minLength":1,"title":"Advertiser Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Advertiser"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/user/agents":{"post":{"tags":["user-agents"],"summary":"Create User Agent","operationId":"create_user_agent_api_v1_user_agents_post","security":[{"HTTPBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserAgentCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserAgentResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["user-agents"],"summary":"List User Agents","operationId":"list_user_agents_api_v1_user_agents_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserAgentListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/user/agents/report":{"get":{"tags":["user-agents"],"summary":"Get User Agent Report","operationId":"get_user_agent_report_api_v1_user_agents_report_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"started_at","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Started At"}},{"name":"ended_at","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Ended At"}},{"name":"previous_started_at","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Previous Started At"}},{"name":"previous_ended_at","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Previous Ended At"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserAgentReportResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/user/agents/{user_agent_id}":{"get":{"tags":["user-agents"],"summary":"Get User Agent","operationId":"get_user_agent_api_v1_user_agents__user_agent_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"user_agent_id","in":"path","required":true,"schema":{"type":"string","title":"User Agent Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserAgentResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["user-agents"],"summary":"Update User Agent","operationId":"update_user_agent_api_v1_user_agents__user_agent_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"user_agent_id","in":"path","required":true,"schema":{"type":"string","title":"User Agent Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserAgentUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserAgentResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/user/clicks":{"get":{"tags":["user-clicks"],"summary":"List User Clicks","operationId":"list_user_clicks_api_v1_user_clicks_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}},{"name":"agent_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","minLength":1,"maxLength":120},{"type":"null"}],"title":"Agent Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserClickListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/user/commissions":{"get":{"tags":["user-commissions"],"summary":"List User Commissions","operationId":"list_user_commissions_api_v1_user_commissions_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserCommissionListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/user/withdrawals/balance":{"get":{"tags":["user-withdrawals"],"summary":"Get User Withdrawal Balance","operationId":"get_user_withdrawal_balance_api_v1_user_withdrawals_balance_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"currency","in":"query","required":false,"schema":{"type":"string","minLength":3,"maxLength":3,"default":"USD","title":"Currency"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserWithdrawalBalanceResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/user/withdrawals/stripe-balance":{"get":{"tags":["user-withdrawals"],"summary":"Get User Stripe Balance","operationId":"get_user_stripe_balance_api_v1_user_withdrawals_stripe_balance_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserStripeBalanceResponse"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/user/withdrawals":{"get":{"tags":["user-withdrawals"],"summary":"List User Withdrawals","operationId":"list_user_withdrawals_api_v1_user_withdrawals_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserWithdrawalListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["user-withdrawals"],"summary":"Create User Withdrawal","operationId":"create_user_withdrawal_api_v1_user_withdrawals_post","security":[{"HTTPBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserWithdrawalCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserWithdrawalResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/user/withdrawals/payout-account":{"get":{"tags":["user-withdrawals"],"summary":"Get User Payout Account","operationId":"get_user_payout_account_api_v1_user_withdrawals_payout_account_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserPayoutAccountResponse"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/user/withdrawals/payout-account/onboarding-link":{"post":{"tags":["user-withdrawals"],"summary":"Create User Payout Account Onboarding Link","operationId":"create_user_payout_account_onboarding_link_api_v1_user_withdrawals_payout_account_onboarding_link_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserPayoutOnboardingLinkCreate"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserPayoutOnboardingLinkResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/user/withdrawals/payout-account/login-link":{"post":{"tags":["user-withdrawals"],"summary":"Create User Payout Account Login Link","operationId":"create_user_payout_account_login_link_api_v1_user_withdrawals_payout_account_login_link_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserPayoutLoginLinkResponse"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/recommendations/search":{"post":{"tags":["recommendations"],"summary":"Search Recommendations","operationId":"search_recommendations_api_v1_recommendations_search_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecommendationSearchRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecommendationResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/recommendations/{offer_id}/resolve-link":{"post":{"tags":["recommendations"],"summary":"Resolve Offer Link","operationId":"resolve_offer_link_api_v1_recommendations__offer_id__resolve_link_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"offer_id","in":"path","required":true,"schema":{"type":"string","title":"Offer Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResolveOfferLinkRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResolveOfferLinkResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/recommend/product/search":{"post":{"tags":["product-recommendations"],"summary":"Search Products","operationId":"search_products_api_v1_recommend_product_search_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecommendationSearchRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecommendationResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/shopping/search":{"post":{"tags":["shopping-search"],"summary":"Search","description":"Search shopping products and get ranked recommendations. Each result's ``affiliate_url`` is\nalready a ready-to-use trackable buy link (minted + redirect-wrapped inline) — there is no\nseparate resolve-link step.","operationId":"search_api_v1_shopping_search_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ShoppingSearchRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecommendationResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/shopping/categories":{"get":{"tags":["shopping-search"],"summary":"Categories","description":"List the commerce taxonomy (l1/l2/commerce_category + short description) so downstream\nknows the valid values for `commerce_l1s` / `commerce_l2s`. Static per deploy.","operationId":"categories_api_v1_shopping_categories_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Categories Api V1 Shopping Categories Get"}}}}}}},"/api/v1/travel/search":{"post":{"tags":["travel-search"],"summary":"Search","description":"Search travel offers by ``type`` + ``city`` and get trackable links (grouped by type). Each\nlink's ``buy_url`` is a ready-to-use trackable link (CJ sid + redirect-wrapped) — hand it to the\ntraveler directly. ``type=hotel`` runs a live Trip.com search; other types (or a failed hotel\nsearch) return that type's default links (``status=\"fallback\"``, see ``reason``).","operationId":"search_api_v1_travel_search_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TravelSearchRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TravelSearchResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/travel/categories":{"get":{"tags":["travel-search"],"summary":"Categories","description":"List the travel product ``type`` values (code + label). Static per deploy:\nhotel / flights / bundle / airport_transfer / car_rental.","operationId":"categories_api_v1_travel_categories_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Categories Api V1 Travel Categories Get"}}}}}}},"/api/v1/travel/cities":{"get":{"tags":["travel-search"],"summary":"Cities","description":"List the supported cities (with an upstream Trip.com city id) that hotel search accepts as\nthe request ``city``. Static per deploy (data/trip_city_ids.csv).","operationId":"cities_api_v1_travel_cities_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TripCityListResponse"}}}}}}},"/api/v1/events":{"post":{"tags":["events"],"summary":"Create Event","operationId":"create_event_api_v1_events_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EventCreate"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EventAcceptedResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/events/click":{"post":{"tags":["events"],"summary":"Report Click","description":"Record a clicked URL and resolve its Agent attribution server-side.","operationId":"report_click_api_v1_events_click_post","parameters":[{"name":"X-Click-Report-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Click-Report-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClickReportCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClickReportAcceptedResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/events/search":{"post":{"tags":["event-search"],"summary":"Search","description":"Search ticketing/events and get ranked event bundles. Only ``query`` is required. Each\nresult's ``sessions[]`` (and ``matched_sessions[]`` when a date filter was given) carries a\nper-date ``buy_url`` — a ready-to-use trackable link (CJ sid + redirect-wrapped) — hand it to\nthe buyer directly. ``landing_url`` is the plain event page.","operationId":"search_api_v1_events_search_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EventSearchRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EventSearchResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/events/categories":{"get":{"tags":["event-search"],"summary":"Categories","description":"List the event categories (L1 with L2 children + counts) so a caller knows the valid values\nfor the ``categories`` filter. Live facet over the ``events`` index; falls back to the known\nL1 list when ES is unavailable.","operationId":"categories_api_v1_events_categories_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Categories Api V1 Events Categories Get"}}}}}}},"/api/v1/affiliate-conversions":{"post":{"tags":["conversions"],"summary":"Create Conversion","operationId":"create_conversion_api_v1_affiliate_conversions_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConversionCreate"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConversionAcceptedResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/stripe/connect/webhook":{"post":{"tags":["stripe-webhooks"],"summary":"Handle Stripe Connect Webhook","operationId":"handle_stripe_connect_webhook_api_v1_stripe_connect_webhook_post","parameters":[{"name":"Stripe-Signature","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Stripe-Signature"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Handle Stripe Connect Webhook Api V1 Stripe Connect Webhook Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/platform/api/v1/click-records":{"get":{"tags":["platform"],"summary":"List Click Records","operationId":"list_click_records_platform_api_v1_click_records_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"click_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Click Id"}},{"name":"agent_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Agent Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserClickListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/platform/api/v1/withdrawals":{"get":{"tags":["platform"],"summary":"List Withdrawals","operationId":"list_withdrawals_platform_api_v1_withdrawals_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlatformWithdrawalListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/platform/api/v1/withdrawals/{withdrawal_id}/manual-paid":{"post":{"tags":["platform"],"summary":"Mark Withdrawal Paid Manually","operationId":"mark_withdrawal_paid_manually_platform_api_v1_withdrawals__withdrawal_id__manual_paid_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"withdrawal_id","in":"path","required":true,"schema":{"type":"string","minLength":1,"title":"Withdrawal Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlatformWithdrawalResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/platform/api/v1/click-callers":{"get":{"tags":["platform"],"summary":"List Click Callers","operationId":"list_click_callers_platform_api_v1_click_callers_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"click_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Click Id"}},{"name":"network_code","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Network Code"}},{"name":"agent_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Agent Id"}},{"name":"developer_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Developer Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClickCallerRelationListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/platform/api/v1/advertisers":{"get":{"tags":["platform"],"summary":"List Advertisers","operationId":"list_advertisers_platform_api_v1_advertisers_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"network","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Network"}},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Search"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdvertiserListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/platform/api/v1/advertisers/{advertiser_id}/block":{"post":{"tags":["platform"],"summary":"Block Advertiser","operationId":"block_advertiser_platform_api_v1_advertisers__advertiser_id__block_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"advertiser_id","in":"path","required":true,"schema":{"type":"string","minLength":1,"title":"Advertiser Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Advertiser"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/platform/api/v1/advertisers/{advertiser_id}/unblock":{"post":{"tags":["platform"],"summary":"Unblock Advertiser","operationId":"unblock_advertiser_platform_api_v1_advertisers__advertiser_id__unblock_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"advertiser_id","in":"path","required":true,"schema":{"type":"string","minLength":1,"title":"Advertiser Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Advertiser"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/platform/api/v1/advertisers/syncs/active":{"get":{"tags":["platform"],"summary":"Get Active Advertiser Sync","operationId":"get_active_advertiser_sync_platform_api_v1_advertisers_syncs_active_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"network","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Network"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdvertiserSyncActiveResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/platform/api/v1/advertisers/syncs":{"get":{"tags":["platform"],"summary":"List Advertiser Syncs","operationId":"list_advertiser_syncs_platform_api_v1_advertisers_syncs_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"network","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Network"}},{"name":"active_only","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Active Only"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":20,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdvertiserSyncJobListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/platform/api/v1/cj/advertisers/sync":{"post":{"tags":["platform"],"summary":"Sync Cj Advertisers","operationId":"sync_cj_advertisers_platform_api_v1_cj_advertisers_sync_post","requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/CjAdvertiserSyncRequest"},{"type":"null"}],"title":"Payload"}}}},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdvertiserSyncJob"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/platform/api/v1/partnerboost/advertisers/sync":{"post":{"tags":["platform"],"summary":"Sync Partnerboost Advertisers","operationId":"sync_partnerboost_advertisers_platform_api_v1_partnerboost_advertisers_sync_post","requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/PartnerBoostAdvertiserSyncRequest"},{"type":"null"}],"title":"Payload"}}}},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdvertiserSyncJob"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/platform/api/v1/cj/commissions/by-click-id/{click_id}":{"get":{"tags":["platform"],"summary":"Get Cj Commissions By Click Id","operationId":"get_cj_commissions_by_click_id_platform_api_v1_cj_commissions_by_click_id__click_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"click_id","in":"path","required":true,"schema":{"type":"string","minLength":1,"title":"Click Id"}},{"name":"since_event_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Since Event Date"}},{"name":"before_event_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Before Event Date"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CjCommissionByClickIdResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/platform/api/v1/cj/commissions/sync":{"post":{"tags":["platform"],"summary":"Sync Cj Commissions","operationId":"sync_cj_commissions_platform_api_v1_cj_commissions_sync_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"since_event_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Since Event Date"}},{"name":"before_event_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Before Event Date"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CjCommissionSyncResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/platform/api/v1/partnerboost/commissions/sync":{"post":{"tags":["platform"],"summary":"Sync Partnerboost Commissions","operationId":"sync_partnerboost_commissions_platform_api_v1_partnerboost_commissions_sync_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"since_event_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Since Event Date"}},{"name":"before_event_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Before Event Date"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PartnerBoostCommissionSyncResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/platform/api/v1/cj/product-feeds":{"get":{"tags":["platform"],"summary":"List Cj Product Feeds","operationId":"list_cj_product_feeds_platform_api_v1_cj_product_feeds_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Search"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":1000,"minimum":1,"default":50,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CjProductFeedListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/platform/api/v1/cj/product-feeds/imports/active":{"get":{"tags":["platform"],"summary":"Get Active Cj Product Feed Import","operationId":"get_active_cj_product_feed_import_platform_api_v1_cj_product_feeds_imports_active_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CjProductFeedActiveImportResponse"}}}}},"security":[{"HTTPBearer":[]}]}},"/platform/api/v1/cj/product-feeds/imports":{"get":{"tags":["platform"],"summary":"List Cj Product Feed Imports","operationId":"list_cj_product_feed_imports_platform_api_v1_cj_product_feeds_imports_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"active_only","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Active Only"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":20,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CjProductFeedImportListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["platform"],"summary":"Start Cj Product Feed Import","operationId":"start_cj_product_feed_import_platform_api_v1_cj_product_feeds_imports_post","security":[{"HTTPBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CjProductFeedImportStartRequest"}}}},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CjProductFeedImportJob"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/platform/api/v1/cj/products/imports":{"post":{"tags":["platform"],"summary":"Start Cj Product Import","operationId":"start_cj_product_import_platform_api_v1_cj_products_imports_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CjProductImportStartRequest"}}},"required":true},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CjProductFeedImportJob"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/platform/api/v1/partnerboost/products/imports/active":{"get":{"tags":["platform"],"summary":"Get Active Partnerboost Product Import","operationId":"get_active_partnerboost_product_import_platform_api_v1_partnerboost_products_imports_active_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PartnerBoostProductActiveImportResponse"}}}}},"security":[{"HTTPBearer":[]}]}},"/platform/api/v1/partnerboost/products/imports":{"get":{"tags":["platform"],"summary":"List Partnerboost Product Imports","operationId":"list_partnerboost_product_imports_platform_api_v1_partnerboost_products_imports_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"active_only","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Active Only"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":20,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PartnerBoostProductImportListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["platform"],"summary":"Start Partnerboost Product Import","operationId":"start_partnerboost_product_import_platform_api_v1_partnerboost_products_imports_post","security":[{"HTTPBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PartnerBoostProductImportStartRequest"}}}},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PartnerBoostProductImportJob"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/platform/api/v1/product-imports/{import_job_id}/fail":{"post":{"tags":["platform"],"summary":"Mark Product Import Failed","operationId":"mark_product_import_failed_platform_api_v1_product_imports__import_job_id__fail_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"import_job_id","in":"path","required":true,"schema":{"type":"string","minLength":1,"title":"Import Job Id"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ProductImportFailRequest"},{"type":"null"}],"title":"Payload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CjProductFeedImportJob"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/platform/api/v1/commission-share-config/global":{"get":{"tags":["platform"],"summary":"Get Global Commission Share Config","operationId":"get_global_commission_share_config_platform_api_v1_commission_share_config_global_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommissionShareConfigResponse"}}}}},"security":[{"HTTPBearer":[]}]},"put":{"tags":["platform"],"summary":"Update Global Commission Share Config","operationId":"update_global_commission_share_config_platform_api_v1_commission_share_config_global_put","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommissionShareConfigUpdate"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommissionShareConfigResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/platform/api/v1/commission-share-config/users/{owner_user_id}":{"get":{"tags":["platform"],"summary":"Get User Commission Share Config","operationId":"get_user_commission_share_config_platform_api_v1_commission_share_config_users__owner_user_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"owner_user_id","in":"path","required":true,"schema":{"type":"string","minLength":1,"title":"Owner User Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommissionShareConfigResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["platform"],"summary":"Update User Commission Share Config","operationId":"update_user_commission_share_config_platform_api_v1_commission_share_config_users__owner_user_id__put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"owner_user_id","in":"path","required":true,"schema":{"type":"string","minLength":1,"title":"Owner User Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommissionShareConfigUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommissionShareConfigResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/job/api/v1/cj/commissions/sync":{"post":{"tags":["job"],"summary":"Sync Cj Commissions","operationId":"sync_cj_commissions_job_api_v1_cj_commissions_sync_post","parameters":[{"name":"since_event_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Since Event Date"}},{"name":"before_event_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Before Event Date"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CjCommissionSyncResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/job/api/v1/partnerboost/commissions/sync":{"post":{"tags":["job"],"summary":"Sync Partnerboost Commissions","operationId":"sync_partnerboost_commissions_job_api_v1_partnerboost_commissions_sync_post","parameters":[{"name":"since_event_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Since Event Date"}},{"name":"before_event_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Before Event Date"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PartnerBoostCommissionSyncResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/":{"get":{"tags":["root"],"summary":"Root","operationId":"root__get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":{"type":"string"},"type":"object","title":"Response Root  Get"}}}}}}}},"components":{"schemas":{"Advertiser":{"properties":{"id":{"type":"string","title":"Id"},"network":{"type":"string","title":"Network"},"advertiser_id":{"type":"string","title":"Advertiser Id"},"advertiser_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Advertiser Name"},"status":{"type":"string","title":"Status"},"blocked":{"type":"boolean","title":"Blocked","default":false},"blocked_globally":{"type":"boolean","title":"Blocked Globally","default":false},"blocked_by_user":{"type":"boolean","title":"Blocked By User","default":false},"source":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source"},"platform":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Platform"},"country":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Country"},"currency":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Currency"},"language":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Language"},"support_region":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Support Region"},"business_detail":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Business Detail"},"product_feed_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Product Feed Name"},"product_feed_product_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Product Feed Product Count"},"product_feed_last_updated":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Product Feed Last Updated"},"category_l1":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Category L1"},"category_l1_en":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Category L1 En"},"category_l2":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Category L2"},"category_l2_en":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Category L2 En"},"category_restricted":{"type":"boolean","title":"Category Restricted","default":false},"category_needs_review":{"type":"boolean","title":"Category Needs Review","default":false},"source_category":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Category"},"epc_3m":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Epc 3M"},"has_product_feed":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Has Product Feed"},"last_synced_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Synced At"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["id","network","advertiser_id","status","created_at","updated_at"],"title":"Advertiser"},"AdvertiserListResponse":{"properties":{"items":{"items":{"$ref":"#/components/schemas/Advertiser"},"type":"array","title":"Items"},"limit":{"type":"integer","title":"Limit"},"offset":{"type":"integer","title":"Offset"},"count":{"type":"integer","title":"Count"},"total":{"type":"integer","title":"Total"}},"type":"object","required":["limit","offset","count","total"],"title":"AdvertiserListResponse"},"AdvertiserSyncActiveResponse":{"properties":{"active_sync":{"anyOf":[{"$ref":"#/components/schemas/AdvertiserSyncJob"},{"type":"null"}]}},"type":"object","title":"AdvertiserSyncActiveResponse"},"AdvertiserSyncJob":{"properties":{"sync_job_id":{"type":"string","title":"Sync Job Id"},"network":{"type":"string","title":"Network"},"status":{"type":"string","title":"Status"},"requested_by_user_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Requested By User Id"},"requested_page_size":{"type":"integer","title":"Requested Page Size"},"requested_max_pages":{"type":"integer","title":"Requested Max Pages"},"total_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Total Count"},"pages_fetched":{"type":"integer","title":"Pages Fetched"},"fetched_count":{"type":"integer","title":"Fetched Count"},"created_count":{"type":"integer","title":"Created Count"},"updated_count":{"type":"integer","title":"Updated Count"},"skipped_count":{"type":"integer","title":"Skipped Count"},"error_message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error Message"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"started_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Started At"},"finished_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Finished At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["sync_job_id","network","status","requested_page_size","requested_max_pages","pages_fetched","fetched_count","created_count","updated_count","skipped_count","created_at","updated_at"],"title":"AdvertiserSyncJob"},"AdvertiserSyncJobListResponse":{"properties":{"items":{"items":{"$ref":"#/components/schemas/AdvertiserSyncJob"},"type":"array","title":"Items"},"count":{"type":"integer","title":"Count"}},"type":"object","required":["count"],"title":"AdvertiserSyncJobListResponse"},"Attribution":{"properties":{"attribution_id":{"type":"string","title":"Attribution Id"},"click_id":{"type":"string","title":"Click Id"},"agent_id":{"type":"string","title":"Agent Id"},"developer_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Developer Id"},"developer_account_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Developer Account Id"},"revenue_share_policy_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Revenue Share Policy Id"},"settlement_status":{"$ref":"#/components/schemas/SettlementStatus","default":"pending_click"}},"type":"object","required":["attribution_id","click_id","agent_id"],"title":"Attribution"},"BankAccountHolderType":{"type":"string","enum":["individual","company"],"title":"BankAccountHolderType"},"BankAccountInput":{"properties":{"country":{"type":"string","maxLength":2,"minLength":2,"title":"Country"},"account_number":{"type":"string","maxLength":64,"minLength":1,"title":"Account Number"},"routing_number":{"anyOf":[{"type":"string","maxLength":64,"minLength":1},{"type":"null"}],"title":"Routing Number"},"account_holder_name":{"anyOf":[{"type":"string","maxLength":160},{"type":"null"}],"title":"Account Holder Name"},"account_holder_type":{"anyOf":[{"$ref":"#/components/schemas/BankAccountHolderType"},{"type":"null"}]}},"type":"object","required":["country","account_number"],"title":"BankAccountInput"},"Caller":{"properties":{"agent_id":{"type":"string","title":"Agent Id"},"developer_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Developer Id"},"agent_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Agent Name"},"agent_version":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Agent Version"},"developer_account_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Developer Account Id"},"app_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"App Id"},"integration_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Integration Id"}},"type":"object","required":["agent_id"],"title":"Caller"},"CjAdvertiserSyncRequest":{"properties":{"page_size":{"type":"integer","maximum":1000.0,"minimum":1.0,"title":"Page Size","default":1000},"max_pages":{"type":"integer","maximum":1000.0,"minimum":1.0,"title":"Max Pages","default":10}},"type":"object","title":"CjAdvertiserSyncRequest"},"CjCommissionByClickIdResponse":{"properties":{"click_id":{"type":"string","title":"Click Id"},"source":{"type":"string","title":"Source","default":"cj"},"queried_at":{"type":"string","format":"date-time","title":"Queried At"},"since_event_date":{"type":"string","format":"date-time","title":"Since Event Date"},"before_event_date":{"type":"string","format":"date-time","title":"Before Event Date"},"payload_complete":{"type":"boolean","title":"Payload Complete"},"upstream_count":{"type":"integer","title":"Upstream Count"},"max_commission_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Max Commission Id"},"items":{"items":{"$ref":"#/components/schemas/CjCommissionRecord"},"type":"array","title":"Items"},"count":{"type":"integer","title":"Count"}},"type":"object","required":["click_id","queried_at","since_event_date","before_event_date","payload_complete","upstream_count","count"],"title":"CjCommissionByClickIdResponse"},"CjCommissionRecord":{"properties":{"network":{"type":"string","title":"Network","default":"cj"},"click_id":{"type":"string","title":"Click Id"},"commission_id":{"type":"string","title":"Commission Id"},"sid":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sid"},"shopper_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Shopper Id"},"advertiser_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Advertiser Id"},"advertiser_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Advertiser Name"},"publisher_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Publisher Id"},"publisher_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Publisher Name"},"website_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Website Id"},"website_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Website Name"},"order_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Order Id"},"action_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Action Status"},"action_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Action Type"},"original":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Original"},"commission_amount_pub_currency":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Commission Amount Pub Currency"},"commission_amount_usd":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Commission Amount Usd"},"sale_amount_pub_currency":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Sale Amount Pub Currency"},"sale_amount_usd":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Sale Amount Usd"},"event_date":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Event Date"},"posting_date":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Posting Date"},"locking_date":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Locking Date"},"click_date":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Click Date"},"source":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source"},"raw_payload":{"additionalProperties":true,"type":"object","title":"Raw Payload"}},"type":"object","required":["click_id","commission_id"],"title":"CjCommissionRecord"},"CjCommissionSyncItem":{"properties":{"commission_id":{"type":"string","title":"Commission Id"},"click_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Click Id"},"conversion_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Conversion Id"},"attribution_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Attribution Id"},"owner_user_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Owner User Id"},"commission_amount":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Commission Amount"},"currency":{"type":"string","title":"Currency","default":"USD"},"status":{"type":"string","title":"Status"},"result":{"type":"string","title":"Result"}},"type":"object","required":["commission_id","status","result"],"title":"CjCommissionSyncItem"},"CjCommissionSyncResponse":{"properties":{"source":{"type":"string","title":"Source","default":"cj"},"queried_at":{"type":"string","format":"date-time","title":"Queried At"},"since_event_date":{"type":"string","format":"date-time","title":"Since Event Date"},"before_event_date":{"type":"string","format":"date-time","title":"Before Event Date"},"payload_complete":{"type":"boolean","title":"Payload Complete"},"upstream_count":{"type":"integer","title":"Upstream Count"},"fetched_count":{"type":"integer","title":"Fetched Count"},"synced_count":{"type":"integer","title":"Synced Count"},"updated_count":{"type":"integer","title":"Updated Count","default":0},"existing_count":{"type":"integer","title":"Existing Count"},"skipped_count":{"type":"integer","title":"Skipped Count"},"unmatched_count":{"type":"integer","title":"Unmatched Count"},"ledger_count":{"type":"integer","title":"Ledger Count"},"items":{"items":{"$ref":"#/components/schemas/CjCommissionSyncItem"},"type":"array","title":"Items"}},"type":"object","required":["queried_at","since_event_date","before_event_date","payload_complete","upstream_count","fetched_count","synced_count","existing_count","skipped_count","unmatched_count","ledger_count"],"title":"CjCommissionSyncResponse"},"CjProductFeedActiveImportResponse":{"properties":{"source":{"type":"string","title":"Source","default":"cj"},"active_import":{"anyOf":[{"$ref":"#/components/schemas/CjProductFeedImportJob"},{"type":"null"}]}},"type":"object","title":"CjProductFeedActiveImportResponse"},"CjProductFeedAdvertiser":{"properties":{"network":{"type":"string","title":"Network","default":"cj"},"ad_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ad Id"},"advertiser_id":{"type":"string","title":"Advertiser Id"},"advertiser_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Advertiser Name"},"feed_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Feed Name"},"feed_language":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Feed Language"},"feed_currency":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Feed Currency"},"feed_target_country":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Feed Target Country"},"feed_product_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Feed Product Count"},"feed_last_updated":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Feed Last Updated"},"raw_payload":{"additionalProperties":true,"type":"object","title":"Raw Payload"}},"type":"object","required":["advertiser_id"],"title":"CjProductFeedAdvertiser"},"CjProductFeedImportJob":{"properties":{"import_job_id":{"type":"string","title":"Import Job Id"},"network":{"type":"string","title":"Network"},"status":{"type":"string","title":"Status"},"advertiser_id":{"type":"string","title":"Advertiser Id"},"advertiser_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Advertiser Name"},"feed_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Feed Name"},"requested_by_user_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Requested By User Id"},"requested_page_size":{"type":"integer","title":"Requested Page Size"},"requested_max_pages":{"type":"integer","title":"Requested Max Pages"},"total_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Total Count"},"imported_count":{"type":"integer","title":"Imported Count"},"skipped_count":{"type":"integer","title":"Skipped Count"},"phase":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phase"},"phase_current":{"type":"integer","title":"Phase Current","default":0},"phase_total":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Phase Total"},"error_message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error Message"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"started_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Started At"},"finished_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Finished At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["import_job_id","network","status","advertiser_id","requested_page_size","requested_max_pages","imported_count","skipped_count","created_at","updated_at"],"title":"CjProductFeedImportJob"},"CjProductFeedImportListResponse":{"properties":{"source":{"type":"string","title":"Source","default":"cj"},"items":{"items":{"$ref":"#/components/schemas/CjProductFeedImportJob"},"type":"array","title":"Items"},"count":{"type":"integer","title":"Count"}},"type":"object","required":["count"],"title":"CjProductFeedImportListResponse"},"CjProductFeedImportStartRequest":{"properties":{"advertiser_id":{"type":"string","minLength":1,"title":"Advertiser Id"},"advertiser_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Advertiser Name"},"feed_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Feed Name"},"page_size":{"anyOf":[{"type":"integer","maximum":1000.0,"minimum":1.0},{"type":"null"}],"title":"Page Size"},"max_pages":{"anyOf":[{"type":"integer","maximum":1000.0,"minimum":1.0},{"type":"null"}],"title":"Max Pages"}},"type":"object","required":["advertiser_id"],"title":"CjProductFeedImportStartRequest"},"CjProductFeedListResponse":{"properties":{"source":{"type":"string","title":"Source","default":"cj"},"queried_at":{"type":"string","format":"date-time","title":"Queried At"},"total_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Total Count"},"count":{"type":"integer","title":"Count"},"limit":{"type":"integer","title":"Limit"},"offset":{"type":"integer","title":"Offset"},"items":{"items":{"$ref":"#/components/schemas/CjProductFeedAdvertiser"},"type":"array","title":"Items"}},"type":"object","required":["queried_at","count","limit","offset"],"title":"CjProductFeedListResponse"},"CjProductImportStartRequest":{"properties":{"advertiser_id":{"type":"string","minLength":1,"title":"Advertiser Id"},"advertiser_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Advertiser Name"},"page_size":{"anyOf":[{"type":"integer","maximum":10000.0,"minimum":1.0},{"type":"null"}],"title":"Page Size"},"max_pages":{"anyOf":[{"type":"integer","maximum":1000.0,"minimum":1.0},{"type":"null"}],"title":"Max Pages"}},"additionalProperties":false,"type":"object","required":["advertiser_id"],"title":"CjProductImportStartRequest"},"ClickCallerRelation":{"properties":{"click_id":{"type":"string","title":"Click Id"},"attribution_id":{"type":"string","title":"Attribution Id"},"request_id":{"type":"string","title":"Request Id"},"network_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Network Code"},"owner_user_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Owner User Id"},"agent_id":{"type":"string","title":"Agent Id"},"developer_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Developer Id"},"agent_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Agent Name"},"agent_version":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Agent Version"},"developer_account_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Developer Account Id"},"app_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"App Id"},"integration_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Integration Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["click_id","attribution_id","request_id","agent_id","created_at"],"title":"ClickCallerRelation"},"ClickCallerRelationListResponse":{"properties":{"items":{"items":{"$ref":"#/components/schemas/ClickCallerRelation"},"type":"array","title":"Items"},"limit":{"type":"integer","title":"Limit"},"offset":{"type":"integer","title":"Offset"},"count":{"type":"integer","title":"Count"}},"type":"object","required":["limit","offset","count"],"title":"ClickCallerRelationListResponse"},"ClickReportAcceptedResponse":{"properties":{"event_id":{"type":"string","title":"Event Id"},"accepted":{"type":"boolean","title":"Accepted","default":true},"url":{"type":"string","minLength":1,"format":"uri","title":"Url"},"attributed":{"type":"boolean","title":"Attributed"},"click_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Click Id"},"attribution_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Attribution Id"},"agent_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Agent Id"}},"type":"object","required":["event_id","url","attributed"],"title":"ClickReportAcceptedResponse"},"ClickReportCreate":{"properties":{"url":{"type":"string","minLength":1,"format":"uri","title":"Url","description":"The URL the end user clicked."},"channel":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Channel","default":"web"},"agent_session_id_hash":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Agent Session Id Hash"},"end_user_id_hash":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"End User Id Hash"},"properties":{"additionalProperties":true,"type":"object","title":"Properties"},"occurred_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Occurred At"}},"type":"object","required":["url"],"title":"ClickReportCreate"},"CommissionShareConfigResponse":{"properties":{"config_id":{"type":"string","title":"Config Id"},"scope_type":{"type":"string","title":"Scope Type"},"scope_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Scope Id"},"user_share_bps":{"type":"integer","maximum":10000.0,"minimum":0.0,"title":"User Share Bps"},"platform_share_bps":{"type":"integer","maximum":10000.0,"minimum":0.0,"title":"Platform Share Bps"},"user_share_percent":{"type":"number","title":"User Share Percent"},"platform_share_percent":{"type":"number","title":"Platform Share Percent"},"is_active":{"type":"boolean","title":"Is Active"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["config_id","scope_type","user_share_bps","platform_share_bps","user_share_percent","platform_share_percent","is_active","created_at","updated_at"],"title":"CommissionShareConfigResponse"},"CommissionShareConfigUpdate":{"properties":{"user_share_percent":{"type":"number","maximum":100.0,"minimum":0.0,"title":"User Share Percent"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"}},"type":"object","required":["user_share_percent"],"title":"CommissionShareConfigUpdate"},"ConversionAcceptedResponse":{"properties":{"conversion_id":{"type":"string","title":"Conversion Id"},"accepted":{"type":"boolean","title":"Accepted","default":true}},"type":"object","required":["conversion_id"],"title":"ConversionAcceptedResponse"},"ConversionCreate":{"properties":{"network":{"type":"string","title":"Network"},"network_transaction_id":{"type":"string","title":"Network Transaction Id"},"click_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Click Id"},"attribution_token":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Attribution Token"},"request_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Request Id"},"offer_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Offer Id"},"upstream_advertiser_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Upstream Advertiser Id"},"upstream_advertiser_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Upstream Advertiser Name"},"upstream_offer_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Upstream Offer Id"},"order_amount":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Order Amount"},"commission_amount":{"type":"number","title":"Commission Amount"},"currency":{"type":"string","title":"Currency"},"conversion_status":{"$ref":"#/components/schemas/ConversionStatus","default":"pending"},"converted_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Converted At"},"raw_payload":{"additionalProperties":true,"type":"object","title":"Raw Payload"}},"type":"object","required":["network","network_transaction_id","commission_amount","currency"],"title":"ConversionCreate"},"ConversionStatus":{"type":"string","enum":["pending","approved","locked","rejected","cancelled","adjusted","paid"],"title":"ConversionStatus"},"Coupon":{"properties":{"code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Code"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"expires_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Expires At"},"requires_manual_entry":{"type":"boolean","title":"Requires Manual Entry","default":false}},"type":"object","title":"Coupon"},"Coverage":{"properties":{"claim":{"type":"string","title":"Claim"},"networks":{"items":{"type":"string"},"type":"array","title":"Networks"},"source_count":{"type":"integer","title":"Source Count","default":0},"offer_count":{"type":"integer","title":"Offer Count","default":0},"freshness_seconds":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Freshness Seconds"},"limitations":{"items":{"type":"string"},"type":"array","title":"Limitations"}},"type":"object","required":["claim"],"title":"Coverage"},"DashboardRecentCommission":{"properties":{"ledger_entry_id":{"type":"string","title":"Ledger Entry Id"},"advertiser_name":{"type":"string","title":"Advertiser Name"},"amount":{"type":"number","title":"Amount"},"currency":{"type":"string","title":"Currency"},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["ledger_entry_id","advertiser_name","amount","currency","created_at"],"title":"DashboardRecentCommission"},"DashboardReportResponse":{"properties":{"commission_income_amount":{"type":"number","title":"Commission Income Amount","default":0},"commission_currency":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Commission Currency"},"attributed_conversions":{"type":"integer","title":"Attributed Conversions","default":0},"active_advertisers":{"type":"integer","title":"Active Advertisers","default":0},"total_advertisers":{"type":"integer","title":"Total Advertisers","default":0},"registered_ai_channels":{"type":"integer","title":"Registered Ai Channels","default":0},"top_advertisers":{"items":{"$ref":"#/components/schemas/DashboardTopAdvertiser"},"type":"array","title":"Top Advertisers"},"recent_commissions":{"items":{"$ref":"#/components/schemas/DashboardRecentCommission"},"type":"array","title":"Recent Commissions"}},"type":"object","title":"DashboardReportResponse"},"DashboardTopAdvertiser":{"properties":{"advertiser_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Advertiser Id"},"advertiser_name":{"type":"string","title":"Advertiser Name"},"category":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Category"},"commission_amount":{"type":"number","title":"Commission Amount","default":0},"recommendation_count":{"type":"integer","title":"Recommendation Count","default":0},"currency":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Currency"}},"type":"object","required":["advertiser_name"],"title":"DashboardTopAdvertiser"},"EventAcceptedResponse":{"properties":{"event_id":{"type":"string","title":"Event Id"},"accepted":{"type":"boolean","title":"Accepted","default":true}},"type":"object","required":["event_id"],"title":"EventAcceptedResponse"},"EventCreate":{"properties":{"event_type":{"$ref":"#/components/schemas/EventType"},"url":{"anyOf":[{"type":"string","minLength":1,"format":"uri"},{"type":"null"}],"title":"Url","description":"The URL the end user clicked."},"click_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Click Id"},"request_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Request Id"},"result_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Result Id"},"attribution_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Attribution Id"},"affiliate_link_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Affiliate Link Id"},"agent_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Agent Id"},"developer_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Developer Id"},"developer_account_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Developer Account Id"},"channel":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Channel"},"agent_session_id_hash":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Agent Session Id Hash"},"end_user_id_hash":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"End User Id Hash"},"properties":{"additionalProperties":true,"type":"object","title":"Properties"},"occurred_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Occurred At"}},"type":"object","required":["event_type"],"title":"EventCreate"},"EventResult":{"properties":{"bundle_id":{"type":"string","title":"Bundle Id"},"title":{"type":"string","title":"Title"},"performers":{"items":{"type":"string"},"type":"array","title":"Performers"},"category_path":{"items":{"type":"string"},"type":"array","title":"Category Path"},"category_l1":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Category L1"},"category_l2":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Category L2"},"venue_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Venue Name"},"city":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"City"},"state":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"State"},"country":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Country"},"next_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Next Date"},"date_from":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Date From"},"date_to":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Date To"},"price_min":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Price Min"},"price_max":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Price Max"},"currency":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Currency"},"session_count":{"type":"integer","title":"Session Count","default":0},"sessions":{"items":{"$ref":"#/components/schemas/EventSession"},"type":"array","title":"Sessions"},"matched_sessions":{"items":{"$ref":"#/components/schemas/EventSession"},"type":"array","title":"Matched Sessions"},"why":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Why"},"score":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Score"}},"type":"object","required":["bundle_id","title"],"title":"EventResult","description":"One event bundle (a show run at a venue/city), with per-date ``sessions``."},"EventSearchRequest":{"properties":{"query":{"type":"string","minLength":1,"title":"Query","description":"Natural-language intent, e.g. 'taylor swift concert near LA this summer'."},"keywords":{"items":{"type":"string"},"type":"array","title":"Keywords","description":"Exact terms — performer / team / show / venue. Signals a precise lookup (BM25-leaning). Prefer a specific noun phrase over a bare generic word."},"categories":{"items":{"type":"string"},"type":"array","title":"Categories","description":"Category filter, e.g. 'Concerts' / 'Sports' / 'Theater' (L1) or a full category-path level. Read GET /events/categories for valid values."},"city":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"City","description":"City name, e.g. 'Los Angeles'."},"state":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"State","description":"US state abbreviation, e.g. 'CA'."},"country":{"type":"string","title":"Country","default":"US"},"date_from":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Date From","description":"Earliest event date (YYYY-MM-DD)."},"date_to":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Date To","description":"Latest event date (YYYY-MM-DD)."},"when":{"anyOf":[{"$ref":"#/components/schemas/EventWhen"},{"type":"null"}],"description":"Fuzzy-time helper expanded to a date window when date_from/to are omitted."},"min_price":{"anyOf":[{"type":"number","minimum":0.0},{"type":"null"}],"title":"Min Price"},"max_price":{"anyOf":[{"type":"number","minimum":0.0},{"type":"null"}],"title":"Max Price"},"sort":{"$ref":"#/components/schemas/EventSort","default":"relevance"},"caller":{"$ref":"#/components/schemas/Caller"},"tracking":{"$ref":"#/components/schemas/TrackingContext"},"limit":{"type":"integer","maximum":50.0,"minimum":1.0,"title":"Limit","default":10}},"type":"object","required":["query","caller"],"title":"EventSearchRequest","description":"Event search request. Only ``query`` is required; the rest narrows recall/filtering."},"EventSearchResponse":{"properties":{"request_id":{"type":"string","title":"Request Id"},"status":{"type":"string","title":"Status"},"query":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Query"},"results":{"items":{"$ref":"#/components/schemas/EventResult"},"type":"array","title":"Results"},"best":{"anyOf":[{"$ref":"#/components/schemas/EventResult"},{"type":"null"}]},"total_found":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Total Found"},"attribution":{"anyOf":[{"$ref":"#/components/schemas/Attribution"},{"type":"null"}]},"agent_message":{"type":"string","title":"Agent Message"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"},"errors":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Errors"}},"type":"object","required":["request_id","status","agent_message"],"title":"EventSearchResponse","description":"Event search response. ``status`` is \"ok\" for results, \"no_results\" when nothing matched,\n\"error\" for a rejected agent / backend failure (see ``errors``)."},"EventSession":{"properties":{"date":{"type":"string","format":"date","title":"Date"},"price_amount":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Price Amount"},"buy_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Buy Url"},"landing_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Landing Url"},"source_event_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Event Id"}},"type":"object","required":["date"],"title":"EventSession","description":"One per-date listing within a bundle. ``buy_url`` is the ready-to-use trackable link (hand it\nto the buyer); ``landing_url`` is the plain event page."},"EventSort":{"type":"string","enum":["relevance","soonest","cheapest"],"title":"EventSort","description":"Result ordering. ``relevance`` (default) is text-match first with a soonest tie-break;\n``soonest`` sorts by the next upcoming date; ``cheapest`` by the lowest 'from' price."},"EventType":{"type":"string","enum":["recommendation_shown","recommendation_clicked","coupon_copied","link_resolve_failed","conversion_synced"],"title":"EventType"},"EventWhen":{"type":"string","enum":["this_weekend","this_week","this_month","next_7_days","next_30_days"],"title":"EventWhen","description":"Fuzzy-time helper. Expanded server-side to a ``date_from``/``date_to`` window (explicit\n``date_from``/``date_to`` always win). Weeks are Mon–Sun; all windows start no earlier than\ntoday (the feed only holds upcoming events)."},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"KeycloakConfigResponse":{"properties":{"enabled":{"type":"boolean","title":"Enabled"},"issuer":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Issuer"},"authorization_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization Url"},"token_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Token Url"},"jwks_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Jwks Url"},"client_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Client Id"},"realm":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Realm"},"required_roles":{"items":{"type":"string"},"type":"array","title":"Required Roles"}},"type":"object","required":["enabled"],"title":"KeycloakConfigResponse"},"Market":{"properties":{"country":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Country"},"currency":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Currency"},"language":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Language"}},"type":"object","title":"Market"},"Offer":{"properties":{"offer_id":{"type":"string","title":"Offer Id"},"title":{"type":"string","title":"Title"},"source":{"$ref":"#/components/schemas/SourceSnapshot"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"effective_price":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Effective Price"},"currency":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Currency"},"affiliate_url":{"anyOf":[{"type":"string","maxLength":2083,"minLength":1,"format":"uri"},{"type":"null"}],"title":"Affiliate Url"},"brand":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Brand"},"category":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Category"},"product_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Product Type"},"product_highlight":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Product Highlight"},"product_condition":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Product Condition"},"image_url":{"anyOf":[{"type":"string","maxLength":2083,"minLength":1,"format":"uri"},{"type":"null"}],"title":"Image Url"},"additional_image_link":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Additional Image Link"},"mobile_url":{"anyOf":[{"type":"string","maxLength":2083,"minLength":1,"format":"uri"},{"type":"null"}],"title":"Mobile Url"},"price":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Price"},"sale_price":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Sale Price"},"list_price":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"List Price"},"discount_amount":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Discount Amount"},"discount_percent":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Discount Percent"},"commission_rate":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Commission Rate"},"rating":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Rating"},"review_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Review Count"},"shipping_estimate":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Shipping Estimate"},"tax_estimate":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Tax Estimate"},"availability":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Availability"},"coupon":{"anyOf":[{"$ref":"#/components/schemas/Coupon"},{"type":"null"}]},"destination_url":{"anyOf":[{"type":"string","maxLength":2083,"minLength":1,"format":"uri"},{"type":"null"}],"title":"Destination Url"},"target_country":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Target Country"},"advertiser_country":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Advertiser Country"},"serviceable_areas":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Serviceable Areas"},"link_expires_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Link Expires At"},"price_updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Price Updated At"},"score":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Score"},"confidence":{"type":"number","maximum":1.0,"minimum":0.0,"title":"Confidence","default":0},"why":{"items":{"type":"string"},"type":"array","title":"Why"},"warnings":{"items":{"type":"string"},"type":"array","title":"Warnings"}},"type":"object","required":["offer_id","title","source"],"title":"Offer"},"PartnerBoostAdvertiserSyncRequest":{"properties":{"brand_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Brand Type"},"brand_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Brand Id"},"mcid":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Mcid"},"keywords":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Keywords"},"price_range":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Price Range"},"min_discount":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Min Discount"},"page_size":{"type":"integer","maximum":100.0,"minimum":1.0,"title":"Page Size","default":100},"max_pages":{"type":"integer","maximum":1000.0,"minimum":1.0,"title":"Max Pages","default":10}},"additionalProperties":false,"type":"object","title":"PartnerBoostAdvertiserSyncRequest"},"PartnerBoostCommissionSyncItem":{"properties":{"transaction_id":{"type":"string","title":"Transaction Id"},"order_id":{"type":"string","title":"Order Id"},"click_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Click Id"},"conversion_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Conversion Id"},"attribution_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Attribution Id"},"owner_user_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Owner User Id"},"commission_amount":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Commission Amount"},"currency":{"type":"string","title":"Currency","default":"USD"},"status":{"type":"string","title":"Status"},"result":{"type":"string","title":"Result"}},"type":"object","required":["transaction_id","order_id","status","result"],"title":"PartnerBoostCommissionSyncItem"},"PartnerBoostCommissionSyncResponse":{"properties":{"source":{"type":"string","title":"Source","default":"partnerboost"},"queried_at":{"type":"string","format":"date-time","title":"Queried At"},"since_event_date":{"type":"string","format":"date-time","title":"Since Event Date"},"before_event_date":{"type":"string","format":"date-time","title":"Before Event Date"},"payload_complete":{"type":"boolean","title":"Payload Complete"},"upstream_count":{"type":"integer","title":"Upstream Count"},"fetched_count":{"type":"integer","title":"Fetched Count"},"synced_count":{"type":"integer","title":"Synced Count"},"updated_count":{"type":"integer","title":"Updated Count","default":0},"existing_count":{"type":"integer","title":"Existing Count"},"skipped_count":{"type":"integer","title":"Skipped Count"},"unmatched_count":{"type":"integer","title":"Unmatched Count"},"ledger_count":{"type":"integer","title":"Ledger Count"},"items":{"items":{"$ref":"#/components/schemas/PartnerBoostCommissionSyncItem"},"type":"array","title":"Items"}},"type":"object","required":["queried_at","since_event_date","before_event_date","payload_complete","upstream_count","fetched_count","synced_count","existing_count","skipped_count","unmatched_count","ledger_count"],"title":"PartnerBoostCommissionSyncResponse"},"PartnerBoostProductActiveImportResponse":{"properties":{"source":{"type":"string","title":"Source","default":"partnerboost"},"active_import":{"anyOf":[{"$ref":"#/components/schemas/PartnerBoostProductImportJob"},{"type":"null"}]}},"type":"object","title":"PartnerBoostProductActiveImportResponse"},"PartnerBoostProductImportJob":{"properties":{"import_job_id":{"type":"string","title":"Import Job Id"},"network":{"type":"string","title":"Network"},"status":{"type":"string","title":"Status"},"platform":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Platform"},"advertiser_id":{"type":"string","title":"Advertiser Id"},"advertiser_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Advertiser Name"},"feed_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Feed Name"},"requested_by_user_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Requested By User Id"},"requested_page_size":{"type":"integer","title":"Requested Page Size"},"requested_max_pages":{"type":"integer","title":"Requested Max Pages"},"total_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Total Count"},"imported_count":{"type":"integer","title":"Imported Count"},"skipped_count":{"type":"integer","title":"Skipped Count"},"phase":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phase"},"phase_current":{"type":"integer","title":"Phase Current","default":0},"phase_total":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Phase Total"},"error_message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error Message"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"started_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Started At"},"finished_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Finished At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["import_job_id","network","status","advertiser_id","requested_page_size","requested_max_pages","imported_count","skipped_count","created_at","updated_at"],"title":"PartnerBoostProductImportJob"},"PartnerBoostProductImportListResponse":{"properties":{"source":{"type":"string","title":"Source","default":"partnerboost"},"items":{"items":{"$ref":"#/components/schemas/PartnerBoostProductImportJob"},"type":"array","title":"Items"},"count":{"type":"integer","title":"Count"}},"type":"object","required":["count"],"title":"PartnerBoostProductImportListResponse"},"PartnerBoostProductImportStartRequest":{"properties":{"brand_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Brand Type"},"brand_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Brand Id"},"mcid":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Mcid"},"keywords":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Keywords"},"price_range":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Price Range"},"min_discount":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Min Discount"},"page_size":{"anyOf":[{"type":"integer","maximum":200.0,"minimum":1.0},{"type":"null"}],"title":"Page Size"},"max_pages":{"anyOf":[{"type":"integer","maximum":10000.0,"minimum":0.0},{"type":"null"}],"title":"Max Pages"},"platform":{"type":"string","title":"Platform","default":"amazon"},"country_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Country Code"},"relationship":{"anyOf":[{"type":"integer","maximum":2.0,"minimum":0.0},{"type":"null"}],"title":"Relationship"},"tagging_max_products":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Tagging Max Products"}},"additionalProperties":false,"type":"object","title":"PartnerBoostProductImportStartRequest"},"PlatformWithdrawalListResponse":{"properties":{"items":{"items":{"$ref":"#/components/schemas/PlatformWithdrawalResponse"},"type":"array","title":"Items"},"count":{"type":"integer","title":"Count"},"limit":{"type":"integer","title":"Limit"},"offset":{"type":"integer","title":"Offset"}},"type":"object","required":["items","count","limit","offset"],"title":"PlatformWithdrawalListResponse"},"PlatformWithdrawalResponse":{"properties":{"withdrawal_id":{"type":"string","title":"Withdrawal Id"},"owner_user_id":{"type":"string","title":"Owner User Id"},"developer_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Developer Id"},"amount":{"type":"number","title":"Amount"},"currency":{"type":"string","title":"Currency"},"status":{"type":"string","title":"Status"},"bank_account_last4":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Bank Account Last4"},"bank_account_country":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Bank Account Country"},"bank_account_holder_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Bank Account Holder Name"},"bank_account_holder_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Bank Account Holder Type"},"stripe_connected_account_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Stripe Connected Account Id"},"stripe_external_account_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Stripe External Account Id"},"stripe_transfer_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Stripe Transfer Id"},"stripe_payout_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Stripe Payout Id"},"stripe_payment_link_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Stripe Payment Link Id"},"stripe_payment_link_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Stripe Payment Link Url"},"stripe_payment_link_product_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Stripe Payment Link Product Id"},"stripe_payment_link_price_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Stripe Payment Link Price Id"},"stripe_checkout_session_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Stripe Checkout Session Id"},"stripe_payment_intent_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Stripe Payment Intent Id"},"stripe_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Stripe Status"},"failure_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Failure Code"},"failure_message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Failure Message"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["withdrawal_id","owner_user_id","amount","currency","status","created_at","updated_at"],"title":"PlatformWithdrawalResponse"},"PriorityProfile":{"properties":{"important":{"items":{"type":"string"},"type":"array","title":"Important"},"secondary":{"items":{"type":"string"},"type":"array","title":"Secondary"},"irrelevant":{"items":{"type":"string"},"type":"array","title":"Irrelevant"},"tier_coefficients":{"additionalProperties":{"type":"number"},"propertyNames":{"$ref":"#/components/schemas/PriorityTier"},"type":"object","title":"Tier Coefficients"},"intra_tier_distribution":{"type":"string","enum":["equal","rank_decay"],"title":"Intra Tier Distribution","default":"equal"}},"type":"object","title":"PriorityProfile"},"PriorityTier":{"type":"string","enum":["important","secondary","other","irrelevant"],"title":"PriorityTier"},"ProductConstraints":{"properties":{"brand":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Brand"},"category":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Category"},"keywords":{"items":{"type":"string"},"type":"array","title":"Keywords"},"model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model"},"color":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Color"},"gender":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Gender"}},"type":"object","title":"ProductConstraints"},"ProductImportFailRequest":{"properties":{"error_message":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Error Message","default":"Manually marked failed from console."}},"type":"object","title":"ProductImportFailRequest"},"RankRequest":{"properties":{"algorithm":{"type":"string","const":"topsis","title":"Algorithm","default":"topsis"},"priority":{"anyOf":[{"$ref":"#/components/schemas/PriorityProfile"},{"type":"null"}]},"top_n":{"type":"integer","maximum":20.0,"minimum":1.0,"title":"Top N","default":5},"explain_top_k_dims":{"type":"integer","maximum":10.0,"minimum":1.0,"title":"Explain Top K Dims","default":3},"use_intent_preset":{"type":"boolean","title":"Use Intent Preset","default":true}},"type":"object","title":"RankRequest"},"RankingExplanation":{"properties":{"algorithm":{"type":"string","title":"Algorithm","default":"topsis"},"active_dimensions":{"items":{"type":"string"},"type":"array","title":"Active Dimensions"},"weights":{"additionalProperties":{"type":"number"},"type":"object","title":"Weights"},"closeness_score":{"additionalProperties":{"type":"number"},"type":"object","title":"Closeness Score"},"per_offer_dim_ranks":{"additionalProperties":{"additionalProperties":{"type":"integer"},"type":"object"},"type":"object","title":"Per Offer Dim Ranks"}},"type":"object","title":"RankingExplanation"},"RecommendationResponse":{"properties":{"request_id":{"type":"string","title":"Request Id"},"status":{"$ref":"#/components/schemas/RecommendationStatus"},"coverage":{"$ref":"#/components/schemas/Coverage"},"normalized_request":{"additionalProperties":true,"type":"object","title":"Normalized Request"},"attribution":{"anyOf":[{"$ref":"#/components/schemas/Attribution"},{"type":"null"}]},"best":{"anyOf":[{"$ref":"#/components/schemas/Offer"},{"type":"null"}]},"results":{"items":{"$ref":"#/components/schemas/Offer"},"type":"array","title":"Results"},"agent_message":{"type":"string","title":"Agent Message"},"errors":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Errors"},"ranking_explanation":{"anyOf":[{"$ref":"#/components/schemas/RankingExplanation"},{"type":"null"}]},"from_cache":{"type":"boolean","title":"From Cache","default":false}},"type":"object","required":["request_id","status","coverage","agent_message"],"title":"RecommendationResponse"},"RecommendationSearchRequest":{"properties":{"product_name":{"type":"string","minLength":1,"title":"Product Name"},"caller":{"$ref":"#/components/schemas/Caller"},"raw_user_query":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Raw User Query"},"intent":{"$ref":"#/components/schemas/ShoppingIntent","default":"cheapest"},"market":{"$ref":"#/components/schemas/Market"},"product":{"$ref":"#/components/schemas/ProductConstraints"},"constraints":{"$ref":"#/components/schemas/SearchConstraints"},"tracking":{"$ref":"#/components/schemas/TrackingContext"},"ranking":{"anyOf":[{"$ref":"#/components/schemas/RankRequest"},{"type":"null"}]}},"type":"object","required":["product_name","caller"],"title":"RecommendationSearchRequest"},"RecommendationStatus":{"type":"string","enum":["ok","needs_clarification","no_results","partial_results","error"],"title":"RecommendationStatus"},"ResolveOfferLinkRequest":{"properties":{"request_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Request Id"},"caller":{"$ref":"#/components/schemas/Caller"},"tracking":{"$ref":"#/components/schemas/TrackingContext"},"shorten":{"type":"boolean","title":"Shorten","default":false},"force_refresh":{"type":"boolean","title":"Force Refresh","default":false}},"type":"object","required":["caller"],"title":"ResolveOfferLinkRequest"},"ResolveOfferLinkResponse":{"properties":{"affiliate_link_id":{"type":"string","title":"Affiliate Link Id"},"attribution_id":{"type":"string","title":"Attribution Id"},"click_id":{"type":"string","title":"Click Id"},"affiliate_url":{"type":"string","maxLength":2083,"minLength":1,"format":"uri","title":"Affiliate Url"},"expires_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Expires At"}},"type":"object","required":["affiliate_link_id","attribution_id","click_id","affiliate_url"],"title":"ResolveOfferLinkResponse"},"SearchConstraints":{"properties":{"max_price":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Max Price"},"must_be_in_stock":{"type":"boolean","title":"Must Be In Stock","default":true},"allow_refurbished":{"type":"boolean","title":"Allow Refurbished","default":false},"allowed_sources":{"items":{"type":"string"},"type":"array","title":"Allowed Sources"},"excluded_sources":{"items":{"type":"string"},"type":"array","title":"Excluded Sources"},"min_confidence":{"type":"number","maximum":1.0,"minimum":0.0,"title":"Min Confidence","default":0.65},"max_results":{"type":"integer","maximum":20.0,"minimum":1.0,"title":"Max Results","default":5}},"type":"object","title":"SearchConstraints"},"SettlementStatus":{"type":"string","enum":["pending_click","pending_conversion","eligible","rejected","paid"],"title":"SettlementStatus"},"ShoppingIntent":{"type":"string","enum":["cheapest","best_discount","best_value","fastest_delivery"],"title":"ShoppingIntent"},"ShoppingRankRequest":{"properties":{"important":{"items":{"type":"string"},"type":"array","title":"Important","description":"~1-2 dims, e.g. ['price']"},"secondary":{"items":{"type":"string"},"type":"array","title":"Secondary","description":"~2-3 supporting dims"},"relevance_weight":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Relevance Weight"},"top_n":{"type":"integer","maximum":50.0,"minimum":1.0,"title":"Top N","default":10},"explain_top_k_dims":{"type":"integer","maximum":10.0,"minimum":1.0,"title":"Explain Top K Dims","default":3}},"type":"object","title":"ShoppingRankRequest","description":"Optional fine-grained ranking. Mutually exclusive with ``ShoppingSearchRequest.intent``\n(when present, intent is ignored — see service ⓪). Fill guidance for callers (§5.6):\n``important`` 1-2 dims, ``secondary`` 2-3; leaving the rest in the low-weight tier."},"ShoppingSearchIntent":{"type":"string","enum":["cheapest","best_discount","top_rated","best_value"],"title":"ShoppingSearchIntent","description":"Shopping-specific simplified ranking presets (independent of the legacy ShoppingIntent /\nINTENT_PRESETS used by the old recommender). Each maps to a lean important/secondary profile\nin app.services.shopping_search.ranking. Given a `ranking` object instead, intent is ignored."},"ShoppingSearchRequest":{"properties":{"query":{"type":"string","minLength":1,"title":"Query","description":"Natural-language intent (semantic)."},"keywords":{"items":{"type":"string"},"type":"array","title":"Keywords","description":"Exact product terms — brand / model / SPECIFIC product type. Prefer a fully qualified noun phrase (e.g. 'women running shoes', 'stainless steel knife set') over a bare generic noun ('shoes', 'knife'): a generic keyword matches the whole category lexically and can surface the wrong audience (e.g. mens shoes for a girlfriend gift). Audience/occasion context belongs in `query`. Non-empty keywords signal an exact lookup (BM25-leaning ranking)."},"commerce_l1s":{"items":{"type":"string"},"type":"array","title":"Commerce L1S","description":"Optional category L1s."},"commerce_l2s":{"items":{"type":"string"},"type":"array","title":"Commerce L2S","description":"Optional full 'l1.l2' L2s."},"max_price":{"anyOf":[{"type":"number","minimum":0.0},{"type":"null"}],"title":"Max Price"},"min_price":{"anyOf":[{"type":"number","minimum":0.0},{"type":"null"}],"title":"Min Price"},"in_stock":{"type":"boolean","title":"In Stock","default":true},"platforms":{"items":{"type":"string"},"type":"array","title":"Platforms","description":"Source platforms e.g. amazon/walmart (empty = all)."},"require_commission":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Require Commission","description":"Only return products that carry a commission (positive commission_rate). Omit to use the server default."},"country":{"type":"string","title":"Country","default":"US"},"currency":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Currency"},"intent":{"anyOf":[{"$ref":"#/components/schemas/ShoppingSearchIntent"},{"type":"null"}]},"ranking":{"anyOf":[{"$ref":"#/components/schemas/ShoppingRankRequest"},{"type":"null"}]},"caller":{"$ref":"#/components/schemas/Caller"},"tracking":{"$ref":"#/components/schemas/TrackingContext"},"limit":{"type":"integer","maximum":50.0,"minimum":1.0,"title":"Limit","default":10}},"type":"object","required":["query","caller"],"title":"ShoppingSearchRequest","description":"Shopping search request. Only ``query`` is required; the rest narrows recall/filtering.\n\n``query`` (semantic) and ``keywords`` (brand/model/exact terms) feed a single combined\nembedding (validated); ``platforms`` selects amazon/walmart (the affiliate network is never\nexposed); ``country`` defaults to US. Ranking is ``intent`` XOR ``ranking``."},"SourceSnapshot":{"properties":{"network":{"type":"string","title":"Network"},"upstream_advertiser_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Upstream Advertiser Id"},"upstream_advertiser_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Upstream Advertiser Name"},"upstream_offer_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Upstream Offer Id"},"source_platform":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Platform"}},"type":"object","required":["network"],"title":"SourceSnapshot"},"TrackingContext":{"properties":{"agent_session_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Agent Session Id"},"end_user_id_hash":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"End User Id Hash"},"sub_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sub Id"},"channel":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Channel"}},"type":"object","title":"TrackingContext"},"TravelHotelParams":{"properties":{"check_in":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Check In"},"check_out":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Check Out"},"rooms":{"type":"integer","minimum":1.0,"title":"Rooms","default":1},"adults":{"type":"integer","minimum":1.0,"title":"Adults","default":2},"children":{"type":"integer","minimum":0.0,"title":"Children","default":0},"state":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"State","description":"US state name/abbr to disambiguate duplicate city names."}},"type":"object","title":"TravelHotelParams","description":"Hotel-only stay params. Grouped here (not flattened onto the request) since they apply to a\nlive hotel search only. Missing/invalid values → the service returns default hotel links."},"TravelLink":{"properties":{"title":{"type":"string","title":"Title"},"network":{"type":"string","title":"Network"},"platform":{"type":"string","title":"Platform"},"brand":{"type":"string","title":"Brand"},"commerce_l1":{"type":"string","title":"Commerce L1"},"commerce_l2":{"type":"string","title":"Commerce L2"},"buy_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Buy Url"},"destination_url":{"type":"string","title":"Destination Url"}},"type":"object","required":["title","network","platform","brand","commerce_l1","commerce_l2","destination_url"],"title":"TravelLink","description":"One curated, trackable travel link. ``buy_url`` is the ready-to-use tracking link (hand it to\nthe traveler / intentlink jump layer); ``destination_url`` is the plain merchant page."},"TravelSearchRequest":{"properties":{"type":{"$ref":"#/components/schemas/TravelSearchType","description":"Travel product type (酒店/机票/租车/…)."},"city":{"type":"string","minLength":1,"title":"City","description":"City name from the supported list (data/…)."},"hotel":{"anyOf":[{"$ref":"#/components/schemas/TravelHotelParams"},{"type":"null"}]},"query":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Query","description":"Optional free-text trip context."},"country":{"type":"string","title":"Country","default":"US"},"caller":{"$ref":"#/components/schemas/Caller"},"tracking":{"$ref":"#/components/schemas/TrackingContext"},"limit":{"type":"integer","maximum":50.0,"minimum":1.0,"title":"Limit","default":10}},"type":"object","required":["type","city","caller"],"title":"TravelSearchRequest","description":"Travel search request. ``type`` and ``city`` are REQUIRED. ``type=hotel`` also reads the\nnested ``hotel`` stay params; if the city can't be resolved or those are missing/invalid, the\nservice returns the type's default links instead of failing."},"TravelSearchResponse":{"properties":{"request_id":{"type":"string","title":"Request Id"},"status":{"type":"string","title":"Status"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"},"links":{"additionalProperties":{"items":{"$ref":"#/components/schemas/TravelLink"},"type":"array"},"type":"object","title":"Links"},"attribution":{"anyOf":[{"$ref":"#/components/schemas/Attribution"},{"type":"null"}]},"agent_message":{"type":"string","title":"Agent Message"},"errors":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Errors"}},"type":"object","required":["request_id","status","agent_message"],"title":"TravelSearchResponse","description":"Travel search response. ``links`` is grouped by type (commerce_l2), e.g. ``{\"hotel\": […]}``.\n``status`` is \"ok\" for a live result, \"fallback\" when default links are returned (unimplemented\ntype or a failed hotel search — ``reason`` explains it), \"error\" for a rejected agent,\n\"no_results\" when nothing is available."},"TravelSearchType":{"type":"string","enum":["hotel","flights","bundle","airport_transfer","car_rental"],"title":"TravelSearchType","description":"Travel product type (commerce_l2). ``hotel`` has a live search; the rest currently return\ncurated default links."},"TripCity":{"properties":{"state":{"type":"string","title":"State"},"abbr":{"type":"string","title":"Abbr"},"place":{"type":"string","title":"Place"},"query":{"type":"string","title":"Query"},"city_id":{"type":"string","title":"City Id"},"dest_name":{"type":"string","title":"Dest Name"}},"type":"object","required":["state","abbr","place","query","city_id","dest_name"],"title":"TripCity"},"TripCityListResponse":{"properties":{"count":{"type":"integer","minimum":0.0,"title":"Count"},"cities":{"items":{"$ref":"#/components/schemas/TripCity"},"type":"array","title":"Cities"}},"type":"object","required":["count"],"title":"TripCityListResponse"},"UserAgentCreate":{"properties":{"agent_name":{"type":"string","maxLength":120,"minLength":1,"title":"Agent Name"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"}},"type":"object","required":["agent_name"],"title":"UserAgentCreate"},"UserAgentListResponse":{"properties":{"items":{"items":{"$ref":"#/components/schemas/UserAgentResponse"},"type":"array","title":"Items"},"count":{"type":"integer","title":"Count"},"limit":{"type":"integer","title":"Limit"},"offset":{"type":"integer","title":"Offset"}},"type":"object","required":["items","count","limit","offset"],"title":"UserAgentListResponse"},"UserAgentReportResponse":{"properties":{"registered_agents":{"type":"integer","title":"Registered Agents","default":0},"active_agents":{"type":"integer","title":"Active Agents","default":0},"agent_calls":{"type":"integer","title":"Agent Calls","default":0},"previous_agent_calls":{"type":"integer","title":"Previous Agent Calls","default":0},"attributed_conversions":{"type":"integer","title":"Attributed Conversions","default":0}},"type":"object","title":"UserAgentReportResponse"},"UserAgentResponse":{"properties":{"user_agent_id":{"type":"string","title":"User Agent Id"},"owner_user_id":{"type":"string","title":"Owner User Id"},"agent_id":{"type":"string","title":"Agent Id"},"agent_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Agent Name"},"status":{"$ref":"#/components/schemas/UserAgentStatus"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["user_agent_id","owner_user_id","agent_id","status","created_at","updated_at"],"title":"UserAgentResponse"},"UserAgentStatus":{"type":"string","enum":["active","disabled"],"title":"UserAgentStatus"},"UserAgentUpdate":{"properties":{"agent_name":{"anyOf":[{"type":"string","maxLength":120,"minLength":1},{"type":"null"}],"title":"Agent Name"},"status":{"anyOf":[{"$ref":"#/components/schemas/UserAgentStatus"},{"type":"null"}]},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"}},"type":"object","title":"UserAgentUpdate"},"UserClickDetail":{"properties":{"event_id":{"type":"string","title":"Event Id"},"click_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Click Id"},"attribution_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Attribution Id"},"clicked_url":{"type":"string","title":"Clicked Url"},"affiliate_url":{"type":"string","title":"Affiliate Url"},"owner_user_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Owner User Id"},"agent_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Agent Id"},"agent_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Agent Name"},"channel":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Channel"},"occurred_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Occurred At"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["event_id","clicked_url","affiliate_url","created_at"],"title":"UserClickDetail"},"UserClickListResponse":{"properties":{"items":{"items":{"$ref":"#/components/schemas/UserClickDetail"},"type":"array","title":"Items"},"limit":{"type":"integer","title":"Limit"},"offset":{"type":"integer","title":"Offset"},"count":{"type":"integer","title":"Count"}},"type":"object","required":["limit","offset","count"],"title":"UserClickListResponse"},"UserCommissionDetail":{"properties":{"ledger_entry_id":{"type":"string","title":"Ledger Entry Id"},"conversion_id":{"type":"string","title":"Conversion Id"},"attribution_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Attribution Id"},"click_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Click Id"},"owner_user_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Owner User Id"},"agent_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Agent Id"},"agent_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Agent Name"},"network":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Network"},"network_transaction_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Network Transaction Id"},"upstream_advertiser_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Upstream Advertiser Id"},"upstream_advertiser_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Upstream Advertiser Name"},"entry_type":{"type":"string","title":"Entry Type"},"conversion_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Conversion Status"},"gross_commission_amount":{"type":"number","title":"Gross Commission Amount"},"user_commission_amount":{"type":"number","title":"User Commission Amount"},"platform_amount":{"type":"number","title":"Platform Amount"},"currency":{"type":"string","title":"Currency"},"converted_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Converted At"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["ledger_entry_id","conversion_id","entry_type","gross_commission_amount","user_commission_amount","platform_amount","currency","created_at"],"title":"UserCommissionDetail"},"UserCommissionListResponse":{"properties":{"items":{"items":{"$ref":"#/components/schemas/UserCommissionDetail"},"type":"array","title":"Items"},"summary":{"$ref":"#/components/schemas/UserCommissionSummary"},"limit":{"type":"integer","title":"Limit"},"offset":{"type":"integer","title":"Offset"},"count":{"type":"integer","title":"Count"}},"type":"object","required":["summary","limit","offset","count"],"title":"UserCommissionListResponse"},"UserCommissionSummary":{"properties":{"gross_commission_amount":{"type":"number","title":"Gross Commission Amount","default":0},"user_commission_amount":{"type":"number","title":"User Commission Amount","default":0},"platform_amount":{"type":"number","title":"Platform Amount","default":0},"currency":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Currency"},"current_user_share_percent":{"type":"number","title":"Current User Share Percent","default":100},"current_platform_share_percent":{"type":"number","title":"Current Platform Share Percent","default":0},"commission_share_config_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Commission Share Config Id"},"commission_share_scope_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Commission Share Scope Type"},"commission_share_scope_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Commission Share Scope Id"}},"type":"object","title":"UserCommissionSummary"},"UserPayoutAccountResponse":{"properties":{"payout_account_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Payout Account Id"},"owner_user_id":{"type":"string","title":"Owner User Id"},"stripe_connected_account_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Stripe Connected Account Id"},"account_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Account Type"},"country":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Country"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"status":{"type":"string","title":"Status"},"details_submitted":{"type":"boolean","title":"Details Submitted","default":false},"payouts_enabled":{"type":"boolean","title":"Payouts Enabled","default":false},"charges_enabled":{"type":"boolean","title":"Charges Enabled","default":false},"requirements_currently_due":{"items":{"type":"string"},"type":"array","title":"Requirements Currently Due"},"requirements_eventually_due":{"items":{"type":"string"},"type":"array","title":"Requirements Eventually Due"},"requirements_past_due":{"items":{"type":"string"},"type":"array","title":"Requirements Past Due"},"requirements_disabled_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Requirements Disabled Reason"},"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":["owner_user_id","status"],"title":"UserPayoutAccountResponse"},"UserPayoutLoginLinkResponse":{"properties":{"url":{"type":"string","title":"Url"}},"type":"object","required":["url"],"title":"UserPayoutLoginLinkResponse"},"UserPayoutOnboardingLinkCreate":{"properties":{"return_url":{"anyOf":[{"type":"string","maxLength":2048},{"type":"null"}],"title":"Return Url"},"refresh_url":{"anyOf":[{"type":"string","maxLength":2048},{"type":"null"}],"title":"Refresh Url"},"country":{"anyOf":[{"type":"string","maxLength":2,"minLength":2},{"type":"null"}],"title":"Country"}},"type":"object","title":"UserPayoutOnboardingLinkCreate"},"UserPayoutOnboardingLinkResponse":{"properties":{"url":{"type":"string","title":"Url"},"expires_at":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Expires At"},"account":{"$ref":"#/components/schemas/UserPayoutAccountResponse"}},"type":"object","required":["url","account"],"title":"UserPayoutOnboardingLinkResponse"},"UserStripeBalanceItem":{"properties":{"currency":{"type":"string","title":"Currency"},"available_amount":{"type":"number","title":"Available Amount"},"pending_amount":{"type":"number","title":"Pending Amount"},"available_minor_amount":{"type":"integer","title":"Available Minor Amount"},"pending_minor_amount":{"type":"integer","title":"Pending Minor Amount"}},"type":"object","required":["currency","available_amount","pending_amount","available_minor_amount","pending_minor_amount"],"title":"UserStripeBalanceItem"},"UserStripeBalanceResponse":{"properties":{"owner_user_id":{"type":"string","title":"Owner User Id"},"stripe_connected_account_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Stripe Connected Account Id"},"livemode":{"type":"boolean","title":"Livemode","default":false},"items":{"items":{"$ref":"#/components/schemas/UserStripeBalanceItem"},"type":"array","title":"Items"}},"type":"object","required":["owner_user_id"],"title":"UserStripeBalanceResponse"},"UserWithdrawalBalanceResponse":{"properties":{"owner_user_id":{"type":"string","title":"Owner User Id"},"currency":{"type":"string","title":"Currency"},"commission_amount":{"type":"number","title":"Commission Amount"},"withdrawn_amount":{"type":"number","title":"Withdrawn Amount"},"available_amount":{"type":"number","title":"Available Amount"}},"type":"object","required":["owner_user_id","currency","commission_amount","withdrawn_amount","available_amount"],"title":"UserWithdrawalBalanceResponse"},"UserWithdrawalCreate":{"properties":{"amount":{"anyOf":[{"type":"number","minimum":50.0},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*(?:\\d{0,12}|(?=[\\d.]{1,19}0*$)\\d{0,12}\\.\\d{0,6}0*$)"}],"title":"Amount"},"currency":{"type":"string","maxLength":3,"minLength":3,"title":"Currency","default":"USD"},"bank_account":{"anyOf":[{"$ref":"#/components/schemas/BankAccountInput"},{"type":"null"}]}},"type":"object","required":["amount"],"title":"UserWithdrawalCreate"},"UserWithdrawalListResponse":{"properties":{"items":{"items":{"$ref":"#/components/schemas/UserWithdrawalResponse"},"type":"array","title":"Items"},"count":{"type":"integer","title":"Count"},"limit":{"type":"integer","title":"Limit"},"offset":{"type":"integer","title":"Offset"}},"type":"object","required":["items","count","limit","offset"],"title":"UserWithdrawalListResponse"},"UserWithdrawalResponse":{"properties":{"withdrawal_id":{"type":"string","title":"Withdrawal Id"},"owner_user_id":{"type":"string","title":"Owner User Id"},"developer_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Developer Id"},"amount":{"type":"number","title":"Amount"},"currency":{"type":"string","title":"Currency"},"status":{"type":"string","title":"Status"},"bank_account_last4":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Bank Account Last4"},"bank_account_country":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Bank Account Country"},"bank_account_holder_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Bank Account Holder Name"},"bank_account_holder_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Bank Account Holder Type"},"stripe_external_account_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Stripe External Account Id"},"stripe_transfer_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Stripe Transfer Id"},"stripe_payout_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Stripe Payout Id"},"stripe_payment_link_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Stripe Payment Link Id"},"stripe_payment_link_product_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Stripe Payment Link Product Id"},"stripe_payment_link_price_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Stripe Payment Link Price Id"},"stripe_checkout_session_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Stripe Checkout Session Id"},"stripe_payment_intent_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Stripe Payment Intent Id"},"stripe_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Stripe Status"},"failure_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Failure Code"},"failure_message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Failure Message"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["withdrawal_id","owner_user_id","amount","currency","status","created_at","updated_at"],"title":"UserWithdrawalResponse"},"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"}},"securitySchemes":{"HTTPBearer":{"type":"http","scheme":"bearer"}}}}