{"openapi":"3.1.0","info":{"title":"FreedomPayments","version":"0.1.0"},"paths":{"/api/v1/login/identity-source":{"get":{"tags":["login"],"summary":"Detect Login Identity","description":"Detect auth source from a single identity field (shape-based).","operationId":"login-detect_login_identity","parameters":[{"name":"q","in":"query","required":true,"schema":{"type":"string","minLength":1,"title":"Q"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IdentityDetectResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/login/access-token":{"post":{"tags":["login"],"summary":"Login Access Token","description":"Password login for custom-email identities only.\nGmail → use Google; Telegram id → use Telegram.","operationId":"login-login_access_token","requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_login-login_access_token"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Token"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/login/google":{"post":{"tags":["login"],"summary":"Login Google","description":"Google sign-in — identity is the Gmail address (shape → google).","operationId":"login-login_google","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GoogleLoginRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Token"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/login/telegram":{"post":{"tags":["login"],"summary":"Login Telegram","description":"Telegram sign-in — identity is the numeric tg_id (shape → telegram).","operationId":"login-login_telegram","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TelegramLoginRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Token"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/login/test-token":{"post":{"tags":["login"],"summary":"Test Token","operationId":"login-test_token","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserPublic"}}}}},"security":[{"OAuth2PasswordBearer":[]}]}},"/api/v1/password-recovery/{email}":{"post":{"tags":["login"],"summary":"Recover Password","operationId":"login-recover_password","parameters":[{"name":"email","in":"path","required":true,"schema":{"type":"string","title":"Email"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Message"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/reset-password/":{"post":{"tags":["login"],"summary":"Reset Password","operationId":"login-reset_password","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NewPassword"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Message"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/password-recovery-html-content/{email}":{"post":{"tags":["login"],"summary":"Recover Password Html Content","operationId":"login-recover_password_html_content","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"email","in":"path","required":true,"schema":{"type":"string","title":"Email"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/users/":{"get":{"tags":["users"],"summary":"Read Users","description":"Retrieve users.","operationId":"users-read_users","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"skip","in":"query","required":false,"schema":{"type":"integer","default":0,"title":"Skip"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":100,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UsersPublic"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["users"],"summary":"Create User","description":"Create new user.","operationId":"users-create_user","security":[{"OAuth2PasswordBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserPublic"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/users/me":{"get":{"tags":["users"],"summary":"Read User Me","description":"Get current user.","operationId":"users-read_user_me","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserPublic"}}}}},"security":[{"OAuth2PasswordBearer":[]}]},"delete":{"tags":["users"],"summary":"Delete User Me","description":"Delete own user.","operationId":"users-delete_user_me","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Message"}}}}},"security":[{"OAuth2PasswordBearer":[]}]},"patch":{"tags":["users"],"summary":"Update User Me","description":"Update own user.","operationId":"users-update_user_me","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserUpdateMe"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserPublic"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"OAuth2PasswordBearer":[]}]}},"/api/v1/users/me/password":{"patch":{"tags":["users"],"summary":"Update Password Me","description":"Update own password.","operationId":"users-update_password_me","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdatePassword"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Message"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"OAuth2PasswordBearer":[]}]}},"/api/v1/users/signup":{"post":{"tags":["users"],"summary":"Register User","description":"Create new user without the need to be logged in.\nCustom email + password only (Gmail → Google, digits → Telegram).","operationId":"users-register_user","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserRegister"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserPublic"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/users/{user_id}":{"get":{"tags":["users"],"summary":"Read User By Id","description":"Get a specific user by id.","operationId":"users-read_user_by_id","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"User Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserPublic"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["users"],"summary":"Update User","description":"Update a user.","operationId":"users-update_user","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"User Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserPublic"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["users"],"summary":"Delete User","description":"Delete a user.","operationId":"users-delete_user","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"User Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Message"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/utils/test-email/":{"post":{"tags":["utils"],"summary":"Test Email","description":"Test emails.","operationId":"utils-test_email","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"email_to","in":"query","required":true,"schema":{"type":"string","format":"email","title":"Email To"}}],"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Message"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/utils/health-check/":{"get":{"tags":["utils"],"summary":"Health Check","operationId":"utils-health_check","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"boolean","title":"Response Utils-Health Check"}}}}}}},"/api/v1/merchant/account":{"get":{"tags":["merchant"],"summary":"Get Account","operationId":"merchant-get_account","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MerchantAccountPublic"}}}}},"security":[{"OAuth2PasswordBearer":[]}]},"patch":{"tags":["merchant"],"summary":"Update Account","operationId":"merchant-update_account","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MerchantAccountUpdate"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MerchantAccountPublic"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"OAuth2PasswordBearer":[]}]}},"/api/v1/merchant/balances":{"get":{"tags":["merchant"],"summary":"Get Balances","operationId":"merchant-get_balances","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/BalancePublic"},"type":"array","title":"Response Merchant-Get Balances"}}}}},"security":[{"OAuth2PasswordBearer":[]}]}},"/api/v1/merchant/refill-wallets":{"get":{"tags":["merchant"],"summary":"Get Refill Wallets","operationId":"merchant-get_refill_wallets","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"title":"Response Merchant-Get Refill Wallets"}}}}},"security":[{"OAuth2PasswordBearer":[]}]}},"/api/v1/merchant/wallets":{"get":{"tags":["merchant"],"summary":"Get Wallets","operationId":"merchant-get_wallets","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"title":"Response Merchant-Get Wallets"}}}}},"security":[{"OAuth2PasswordBearer":[]}]},"put":{"tags":["merchant"],"summary":"Put Wallet","operationId":"merchant-put_wallet","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__api__routes__merchant__WalletUpdate"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"title":"Response Merchant-Put Wallet"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"OAuth2PasswordBearer":[]}]}},"/api/v1/merchant/payment-page":{"get":{"tags":["merchant"],"summary":"Payment Page","operationId":"merchant-payment_page","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"title":"Response Merchant-Payment Page"}}}}},"security":[{"OAuth2PasswordBearer":[]}]}},"/api/v1/merchant/refill":{"post":{"tags":["merchant"],"summary":"Create Refill","operationId":"merchant-create_refill","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RefillCreate"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvoicePublic"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"OAuth2PasswordBearer":[]}]}},"/api/v1/merchant/income":{"get":{"tags":["merchant"],"summary":"Income History","operationId":"merchant-income_history","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"skip","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Skip"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":20,"title":"Limit"}},{"name":"from_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"YYYY-MM-DD (UTC). Filter created_at >= from_date","title":"From Date"},"description":"YYYY-MM-DD (UTC). Filter created_at >= from_date"},{"name":"to_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"YYYY-MM-DD (UTC). Filter created_at <= to_date","title":"To Date"},"description":"YYYY-MM-DD (UTC). Filter created_at <= to_date"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IncomeHistoryPublic"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/merchant/embed-preview":{"get":{"tags":["merchant"],"summary":"Embed Preview","operationId":"merchant-embed_preview","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"title":"Response Merchant-Embed Preview"}}}}},"security":[{"OAuth2PasswordBearer":[]}]}},"/api/v1/merchant/units":{"get":{"tags":["merchant"],"summary":"List Units","operationId":"merchant-list_units","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"title":"Response Merchant-List Units"}}}}},"security":[{"OAuth2PasswordBearer":[]}]},"post":{"tags":["merchant"],"summary":"Create Unit","operationId":"merchant-create_unit","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnitCreate"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"title":"Response Merchant-Create Unit"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"OAuth2PasswordBearer":[]}]}},"/api/v1/merchant/units/{unit_id}":{"patch":{"tags":["merchant"],"summary":"Patch Unit","operationId":"merchant-patch_unit","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"unit_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Unit Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnitUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"title":"Response Merchant-Patch Unit"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["merchant"],"summary":"Remove Unit","operationId":"merchant-remove_unit","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"unit_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Unit Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"title":"Response Merchant-Remove Unit"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/dashboard":{"get":{"tags":["admin"],"summary":"Admin Dashboard","operationId":"admin-admin_dashboard","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"title":"Response Admin-Admin Dashboard"}}}}},"security":[{"OAuth2PasswordBearer":[]}]}},"/api/v1/admin/merchants":{"get":{"tags":["admin"],"summary":"Admin List Merchants","operationId":"admin-admin_list_merchants","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"title":"Response Admin-Admin List Merchants"}}}}},"security":[{"OAuth2PasswordBearer":[]}]}},"/api/v1/admin/merchants/{user_id}":{"get":{"tags":["admin"],"summary":"Admin Get Merchant","operationId":"admin-admin_get_merchant","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"User Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"title":"Response Admin-Admin Get Merchant"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/refill-wallets":{"get":{"tags":["admin"],"summary":"Admin List Refill Wallets","operationId":"admin-admin_list_refill_wallets","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"title":"Response Admin-Admin List Refill Wallets"}}}}},"security":[{"OAuth2PasswordBearer":[]}]},"put":{"tags":["admin"],"summary":"Admin Upsert Refill Wallet","operationId":"admin-admin_upsert_refill_wallet","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__api__routes__admin_ops__WalletUpdate"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"title":"Response Admin-Admin Upsert Refill Wallet"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"OAuth2PasswordBearer":[]}]}},"/api/v1/admin/observers":{"get":{"tags":["admin"],"summary":"Admin Observers","operationId":"admin-admin_observers","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"title":"Response Admin-Admin Observers"}}}}},"security":[{"OAuth2PasswordBearer":[]}]}},"/api/v1/admin/payments":{"get":{"tags":["admin"],"summary":"Admin List Payments","operationId":"admin-admin_list_payments","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"kind","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Kind"}},{"name":"chain","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Chain"}},{"name":"owner_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Owner Id"}},{"name":"skip","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Skip"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"title":"Response Admin-Admin List Payments"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/payments/{invoice_id}":{"get":{"tags":["admin"],"summary":"Admin Get Payment","operationId":"admin-admin_get_payment","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"invoice_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Invoice Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"title":"Response Admin-Admin Get Payment"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/payments/{invoice_id}/resolve":{"post":{"tags":["admin"],"summary":"Admin Resolve Payment","operationId":"admin-admin_resolve_payment","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"invoice_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Invoice Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResolveBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"title":"Response Admin-Admin Resolve Payment"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/catalog":{"get":{"tags":["agent"],"summary":"Get Catalog","description":"Full capability catalog — flows, endpoints, pages, embeds, concepts, guides.","operationId":"agent-get_catalog","parameters":[{"name":"kind","in":"query","required":false,"schema":{"anyOf":[{"enum":["flow","endpoint","page","embed","concept","guide"],"type":"string"},{"type":"null"}],"description":"Only return capabilities of this kind.","title":"Kind"},"description":"Only return capabilities of this kind."},{"name":"format","in":"query","required":false,"schema":{"enum":["json","markdown"],"type":"string","description":"json (default) or markdown for prompt-friendly text.","default":"json","title":"Format"},"description":"json (default) or markdown for prompt-friendly text."},{"name":"include_docs","in":"query","required":false,"schema":{"type":"boolean","description":"Include the full text of the documentation sections.","default":false,"title":"Include Docs"},"description":"Include the full text of the documentation sections."},{"name":"brief","in":"query","required":false,"schema":{"type":"boolean","description":"Index-only view (id, kind, title, summary, url, auth) — a small payload for planning before fetching details.","default":false,"title":"Brief"},"description":"Index-only view (id, kind, title, summary, url, auth) — a small payload for planning before fetching details."},{"name":"include_hidden","in":"query","required":false,"schema":{"type":"boolean","description":"Include operator-only capabilities (superuser API). Off by default: those surfaces are deliberately undocumented.","default":false,"title":"Include Hidden"},"description":"Include operator-only capabilities (superuser API). Off by default: those surfaces are deliberately undocumented."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/search":{"get":{"tags":["agent"],"summary":"Search Capabilities","description":"Search this service by intent; every hit carries a ready-to-run call.","operationId":"agent-search_capabilities","parameters":[{"name":"q","in":"query","required":false,"schema":{"type":"string","description":"Natural-language intent, e.g. 'create an invoice', 'refill limit', 'embed a buy button'.","default":"","title":"Q"},"description":"Natural-language intent, e.g. 'create an invoice', 'refill limit', 'embed a buy button'."},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":50,"minimum":1,"default":8,"title":"Limit"}},{"name":"kind","in":"query","required":false,"schema":{"anyOf":[{"enum":["flow","endpoint","page","embed","concept","guide"],"type":"string"},{"type":"null"}],"description":"Restrict results to one kind.","title":"Kind"},"description":"Restrict results to one kind."},{"name":"include_docs","in":"query","required":false,"schema":{"type":"boolean","description":"Search documentation sections too (default true).","default":true,"title":"Include Docs"},"description":"Search documentation sections too (default true)."},{"name":"include_hidden","in":"query","required":false,"schema":{"type":"boolean","description":"Also match operator-only capabilities (off by default).","default":false,"title":"Include Hidden"},"description":"Also match operator-only capabilities (off by default)."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/health":{"get":{"tags":["payments"],"summary":"Health","operationId":"payments-health","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Message"}}}}}}},"/v1/gateways":{"get":{"tags":["payments"],"summary":"Get Available Gateway","operationId":"payments-get_available_gateway","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GatewaysResponse"}}}}}}},"/v1/invoices":{"post":{"tags":["payments"],"summary":"Create Invoice","operationId":"payments-create_invoice","parameters":[{"name":"api_key","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Api Key"}},{"name":"x-api-key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvoiceCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvoicePublic"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/invoices/{invoice_id}":{"get":{"tags":["payments"],"summary":"Read Invoice","operationId":"payments-read_invoice","parameters":[{"name":"invoice_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Invoice Id"}},{"name":"api_key","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Api Key"}},{"name":"x-api-key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvoicePublic"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/public/invoices/{invoice_id}":{"get":{"tags":["payments"],"summary":"Read Invoice Public","operationId":"payments-read_invoice_public","parameters":[{"name":"invoice_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Invoice Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvoicePublic"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/invoices/{invoice_id}/check":{"post":{"tags":["payments"],"summary":"Check Invoice","operationId":"payments-check_invoice","parameters":[{"name":"invoice_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Invoice Id"}},{"name":"api_key","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Api Key"}},{"name":"x-api-key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvoicePublic"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/invoices/{invoice_id}/simulate":{"post":{"tags":["payments"],"summary":"Simulate Invoice","operationId":"payments-simulate_invoice","parameters":[{"name":"invoice_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Invoice Id"}},{"name":"api_key","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Api Key"}},{"name":"x-api-key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvoicePublic"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/invoices/{invoice_id}/cancel":{"post":{"tags":["payments"],"summary":"Cancel Invoice","description":"Buyer cancel — stops observation (docs/workflow.md B2).","operationId":"payments-cancel_invoice","parameters":[{"name":"invoice_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Invoice Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvoicePublic"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/invoices/{invoice_id}/payment":{"get":{"tags":["payments"],"summary":"Read Payment For Invoice","operationId":"payments-read_payment_for_invoice","parameters":[{"name":"invoice_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Invoice Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/pay/{invoice_id}/page":{"get":{"tags":["payments"],"summary":"Pay Full Page","description":"Full HTML checkout page (QR + copyable fields). Mobile / Desktop / Site.","operationId":"payments-pay_full_page","parameters":[{"name":"invoice_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Invoice Id"}},{"name":"size","in":"query","required":false,"schema":{"enum":["sm","md","lg","mobile","desktop","site","phone","page","url"],"type":"string","default":"desktop","title":"Size"}},{"name":"width","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","maximum":1200,"minimum":180},{"type":"null"}],"title":"Width"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/pay/{invoice_id}/div":{"get":{"tags":["payments"],"summary":"Pay Div Only","description":"Embeddable pay fragment. Use size=mobile or size=desktop.","operationId":"payments-pay_div_only","parameters":[{"name":"invoice_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Invoice Id"}},{"name":"size","in":"query","required":false,"schema":{"enum":["sm","md","lg","mobile","desktop","site","phone","page","url"],"type":"string","default":"desktop","title":"Size"}},{"name":"width","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","maximum":1200,"minimum":180},{"type":"null"}],"title":"Width"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/pay/{invoice_id}/qr.svg":{"get":{"tags":["payments"],"summary":"Pay Qr Svg","operationId":"payments-pay_qr_svg","parameters":[{"name":"invoice_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Invoice Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/exits/{invoice_id}/web":{"get":{"tags":["payments"],"summary":"Exit Web","operationId":"payments-exit_web","parameters":[{"name":"invoice_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Invoice Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Payments-Exit Web"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/exits/{invoice_id}/tg":{"get":{"tags":["payments"],"summary":"Exit Tg","operationId":"payments-exit_tg","parameters":[{"name":"invoice_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Invoice Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Payments-Exit Tg"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/config/public":{"get":{"tags":["payments"],"summary":"Public Config","operationId":"payments-public_config","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Payments-Public Config"}}}}}}},"/v1/units/{unit_id}":{"get":{"tags":["payments"],"summary":"Read Unit Public","operationId":"payments-read_unit_public","parameters":[{"name":"unit_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Unit Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/units/{unit_id}/page":{"get":{"tags":["payments"],"summary":"Unit Full Page","description":"Site surface — full unit chooser page.","operationId":"payments-unit_full_page","parameters":[{"name":"unit_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Unit Id"}},{"name":"size","in":"query","required":false,"schema":{"enum":["sm","md","lg","mobile","desktop","site","phone","page","url"],"type":"string","default":"site","title":"Size"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/units/{unit_id}/div":{"get":{"tags":["payments"],"summary":"Unit Embed Div","description":"Mobile or Desktop embeddable unit chooser (`size=mobile|desktop`).","operationId":"payments-unit_embed_div","parameters":[{"name":"unit_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Unit Id"}},{"name":"size","in":"query","required":false,"schema":{"enum":["sm","md","lg","mobile","desktop","site","phone","page","url"],"type":"string","default":"mobile","title":"Size"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/units/{unit_id}/checkout":{"post":{"tags":["payments"],"summary":"Unit Checkout","operationId":"payments-unit_checkout","parameters":[{"name":"unit_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Unit Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnitCheckout"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvoicePublic"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/u/{merchant_slug}/{unit_slug}":{"get":{"tags":["payments"],"summary":"Unit Pretty Page","description":"Unique public page for a payment unit on our site.","operationId":"payments-unit_pretty_page","parameters":[{"name":"merchant_slug","in":"path","required":true,"schema":{"type":"string","title":"Merchant Slug"}},{"name":"unit_slug","in":"path","required":true,"schema":{"type":"string","title":"Unit Slug"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/embed.js":{"get":{"summary":"Embed Script","operationId":"embed_script","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/logo.png":{"get":{"summary":"Logo","operationId":"logo","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/pay/{invoice_id}":{"get":{"summary":"Pay Page","description":"Prefer server-rendered checkout (QR + copy fields).","operationId":"pay_page","parameters":[{"name":"invoice_id","in":"path","required":true,"schema":{"type":"string","title":"Invoice Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}}},"components":{"schemas":{"BalancePublic":{"properties":{"currency":{"type":"string","title":"Currency"},"amount":{"type":"string","title":"Amount"}},"type":"object","required":["currency","amount"],"title":"BalancePublic"},"Body_login-login_access_token":{"properties":{"grant_type":{"anyOf":[{"type":"string","pattern":"^password$"},{"type":"null"}],"title":"Grant Type"},"username":{"type":"string","title":"Username"},"password":{"type":"string","format":"password","title":"Password"},"scope":{"type":"string","title":"Scope","default":""},"client_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Client Id"},"client_secret":{"anyOf":[{"type":"string"},{"type":"null"}],"format":"password","title":"Client Secret"}},"type":"object","required":["username","password"],"title":"Body_login-login_access_token"},"GatewayGroupPublic":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"logo_url":{"type":"string","title":"Logo Url"},"network":{"type":"string","title":"Network"},"currencies":{"items":{"$ref":"#/components/schemas/GatewayPublic"},"type":"array","title":"Currencies"}},"type":"object","required":["id","name","logo_url","network","currencies"],"title":"GatewayGroupPublic"},"GatewayPublic":{"properties":{"chain":{"type":"string","title":"Chain"},"currency":{"type":"string","title":"Currency"},"name":{"type":"string","title":"Name"},"decimals":{"type":"integer","title":"Decimals"},"min_confirmations":{"type":"integer","title":"Min Confirmations"},"supports_memo":{"type":"boolean","title":"Supports Memo"},"network":{"type":"string","title":"Network"},"payment_ttl_seconds":{"type":"integer","title":"Payment Ttl Seconds"},"poll_interval_seconds":{"type":"integer","title":"Poll Interval Seconds"},"blockchain":{"type":"string","title":"Blockchain"},"blockchain_name":{"type":"string","title":"Blockchain Name"},"logo_url":{"type":"string","title":"Logo Url"},"is_token":{"type":"boolean","title":"Is Token","default":false},"token_contract":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Token Contract"},"exits":{"items":{"type":"string"},"type":"array","title":"Exits"}},"type":"object","required":["chain","currency","name","decimals","min_confirmations","supports_memo","network","payment_ttl_seconds","poll_interval_seconds","blockchain","blockchain_name","logo_url","exits"],"title":"GatewayPublic"},"GatewaysResponse":{"properties":{"data":{"items":{"$ref":"#/components/schemas/GatewayPublic"},"type":"array","title":"Data"},"groups":{"items":{"$ref":"#/components/schemas/GatewayGroupPublic"},"type":"array","title":"Groups"},"count":{"type":"integer","title":"Count"},"network":{"type":"string","title":"Network"},"service_fee_percent":{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","title":"Service Fee Percent"},"default_fiat":{"type":"string","title":"Default Fiat"},"usd_precision":{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","title":"Usd Precision"},"memo_length":{"type":"integer","title":"Memo Length"}},"type":"object","required":["data","groups","count","network","service_fee_percent","default_fiat","usd_precision","memo_length"],"title":"GatewaysResponse"},"GoogleLoginRequest":{"properties":{"id_token":{"type":"string","minLength":20,"title":"Id Token"}},"type":"object","required":["id_token"],"title":"GoogleLoginRequest"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"IdentityDetectResponse":{"properties":{"identity":{"type":"string","title":"Identity"},"source":{"type":"string","title":"Source"}},"type":"object","required":["identity","source"],"title":"IdentityDetectResponse"},"IncomeHistoryPublic":{"properties":{"data":{"items":{"$ref":"#/components/schemas/IncomePublic"},"type":"array","title":"Data"},"count":{"type":"integer","title":"Count"},"skip":{"type":"integer","title":"Skip"},"limit":{"type":"integer","title":"Limit"}},"type":"object","required":["data","count","skip","limit"],"title":"IncomeHistoryPublic"},"IncomePublic":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"chain":{"type":"string","title":"Chain"},"currency":{"type":"string","title":"Currency"},"amount":{"type":"string","title":"Amount"},"fee_charged":{"type":"string","title":"Fee Charged"},"txid":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Txid"},"webhook_status":{"type":"string","title":"Webhook Status"},"created_at":{"type":"integer","title":"Created At"},"invoice_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Invoice Id"}},"type":"object","required":["id","chain","currency","amount","fee_charged","txid","webhook_status","created_at","invoice_id"],"title":"IncomePublic"},"InvoiceCreate":{"properties":{"chain":{"type":"string","title":"Chain"},"amount":{"anyOf":[{"type":"number","exclusiveMinimum":0.0},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"}],"title":"Amount","description":"Amount in fiat (USD by default) or native if amount_unit=native"},"amount_unit":{"type":"string","enum":["usd","native"],"title":"Amount Unit","default":"usd"},"external_ref":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"External Ref"},"callback_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Callback Url"}},"type":"object","required":["chain","amount"],"title":"InvoiceCreate"},"InvoicePublic":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"chain":{"type":"string","title":"Chain"},"currency":{"type":"string","title":"Currency"},"network":{"type":"string","title":"Network"},"fiat":{"type":"string","title":"Fiat"},"amount_usd":{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","title":"Amount Usd"},"amount_usd_fee":{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","title":"Amount Usd Fee"},"amount_merchant":{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","title":"Amount Merchant"},"amount_fee":{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","title":"Amount Fee"},"amount":{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","title":"Amount"},"address":{"type":"string","title":"Address"},"memo":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Memo"},"status":{"type":"string","title":"Status"},"payment_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Payment Id"},"amount_match":{"type":"string","title":"Amount Match","default":"none"},"received_amount":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Received Amount"},"external_ref":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"External Ref"},"txid":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Txid"},"confirmations":{"type":"integer","title":"Confirmations"},"created_at":{"type":"integer","title":"Created At","description":"Unix timestamp (seconds, UTC epoch)"},"expires_at":{"type":"integer","title":"Expires At","description":"Unix timestamp (seconds, UTC epoch)"},"paid_at":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Paid At","description":"Unix timestamp (seconds, UTC epoch)"},"ask_donation":{"type":"boolean","title":"Ask Donation","default":false},"exits":{"additionalProperties":{"type":"string"},"type":"object","title":"Exits"},"pay_url":{"type":"string","title":"Pay Url"},"embed_url":{"type":"string","title":"Embed Url"},"page_url":{"type":"string","title":"Page Url"},"div_url":{"type":"string","title":"Div Url"},"qr_url":{"type":"string","title":"Qr Url"},"qr_payload":{"type":"string","title":"Qr Payload"}},"type":"object","required":["id","chain","currency","network","fiat","amount_usd","amount_usd_fee","amount_merchant","amount_fee","amount","address","memo","status","external_ref","txid","confirmations","created_at","expires_at","exits","pay_url","embed_url","page_url","div_url","qr_url","qr_payload"],"title":"InvoicePublic"},"MerchantAccountPublic":{"properties":{"slug":{"type":"string","title":"Slug"},"api_key":{"type":"string","title":"Api Key"},"webhook_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Webhook Url"},"webhook_secret":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Webhook Secret"},"enabled_currencies":{"items":{"type":"string"},"type":"array","title":"Enabled Currencies"},"limit_of_payments":{"type":"string","title":"Limit Of Payments"},"refill_credit_multiplier":{"type":"string","title":"Refill Credit Multiplier"},"platform_fee_rate":{"type":"string","title":"Platform Fee Rate"},"platform_fee_percent":{"type":"string","title":"Platform Fee Percent"},"max_payment_units":{"type":"integer","title":"Max Payment Units"},"plan":{"type":"string","title":"Plan"},"network":{"type":"string","title":"Network"},"fee_description":{"type":"string","title":"Fee Description"}},"type":"object","required":["slug","api_key","enabled_currencies","limit_of_payments","refill_credit_multiplier","platform_fee_rate","platform_fee_percent","max_payment_units","plan","network","fee_description"],"title":"MerchantAccountPublic"},"MerchantAccountUpdate":{"properties":{"webhook_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Webhook Url"},"webhook_secret":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Webhook Secret"},"enabled_currencies":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Enabled Currencies"}},"type":"object","title":"MerchantAccountUpdate"},"Message":{"properties":{"message":{"type":"string","title":"Message"}},"type":"object","required":["message"],"title":"Message"},"NewPassword":{"properties":{"token":{"type":"string","title":"Token"},"new_password":{"type":"string","maxLength":128,"minLength":8,"title":"New Password"}},"type":"object","required":["token","new_password"],"title":"NewPassword"},"RefillCreate":{"properties":{"chain":{"type":"string","title":"Chain"},"amount":{"type":"number","exclusiveMinimum":0.0,"title":"Amount"},"amount_unit":{"type":"string","title":"Amount Unit","default":"usd"}},"type":"object","required":["chain","amount"],"title":"RefillCreate"},"ResolveBody":{"properties":{"action":{"type":"string","enum":["recheck","expire","fail","confirm"],"title":"Action"},"txid":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"Txid"}},"type":"object","required":["action"],"title":"ResolveBody"},"TelegramLoginRequest":{"properties":{"id":{"type":"integer","title":"Id"},"first_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"First Name"},"last_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Name"},"username":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Username"},"photo_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Photo Url"},"auth_date":{"type":"integer","title":"Auth Date"},"hash":{"type":"string","minLength":16,"title":"Hash"}},"type":"object","required":["id","auth_date","hash"],"title":"TelegramLoginRequest"},"Token":{"properties":{"access_token":{"type":"string","title":"Access Token"},"token_type":{"type":"string","title":"Token Type","default":"bearer"}},"type":"object","required":["access_token"],"title":"Token"},"UnitCheckout":{"properties":{"chain":{"type":"string","title":"Chain"},"external_ref":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"External Ref"}},"type":"object","required":["chain"],"title":"UnitCheckout"},"UnitCreate":{"properties":{"title":{"type":"string","maxLength":128,"minLength":1,"title":"Title"},"description":{"anyOf":[{"type":"string","maxLength":512},{"type":"null"}],"title":"Description"},"amount_usd":{"type":"number","exclusiveMinimum":0.0,"title":"Amount Usd"},"currencies":{"items":{"type":"string"},"type":"array","minItems":1,"title":"Currencies"},"wait_seconds":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Wait Seconds"}},"type":"object","required":["title","amount_usd","currencies"],"title":"UnitCreate"},"UnitUpdate":{"properties":{"title":{"anyOf":[{"type":"string","maxLength":128,"minLength":1},{"type":"null"}],"title":"Title"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"amount_usd":{"anyOf":[{"type":"number","exclusiveMinimum":0.0},{"type":"null"}],"title":"Amount Usd"},"currencies":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Currencies"},"wait_seconds":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Wait Seconds"},"active":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Active"}},"type":"object","title":"UnitUpdate"},"UpdatePassword":{"properties":{"current_password":{"type":"string","maxLength":128,"minLength":8,"title":"Current Password"},"new_password":{"type":"string","maxLength":128,"minLength":8,"title":"New Password"}},"type":"object","required":["current_password","new_password"],"title":"UpdatePassword"},"UserCreate":{"properties":{"email":{"type":"string","maxLength":255,"title":"Email"},"is_active":{"type":"boolean","title":"Is Active","default":true},"is_superuser":{"type":"boolean","title":"Is Superuser","default":false},"full_name":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Full Name"},"password":{"type":"string","maxLength":128,"minLength":8,"title":"Password"}},"type":"object","required":["email","password"],"title":"UserCreate"},"UserPublic":{"properties":{"email":{"type":"string","maxLength":255,"title":"Email"},"is_active":{"type":"boolean","title":"Is Active","default":true},"is_superuser":{"type":"boolean","title":"Is Superuser","default":false},"full_name":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Full Name"},"id":{"type":"string","format":"uuid","title":"Id"},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"},"source":{"type":"string","title":"Source","readOnly":true}},"type":"object","required":["email","id","source"],"title":"UserPublic"},"UserRegister":{"properties":{"email":{"type":"string","maxLength":255,"title":"Email"},"password":{"type":"string","maxLength":128,"minLength":8,"title":"Password"},"full_name":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Full Name"}},"type":"object","required":["email","password"],"title":"UserRegister","description":"Password signup — custom email only (not Gmail / not Telegram id)."},"UserUpdate":{"properties":{"email":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Email"},"is_active":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Active"},"is_superuser":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Superuser"},"full_name":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Full Name"},"password":{"anyOf":[{"type":"string","maxLength":128,"minLength":8},{"type":"null"}],"title":"Password"}},"type":"object","title":"UserUpdate"},"UserUpdateMe":{"properties":{"full_name":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Full Name"},"email":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Email"}},"type":"object","title":"UserUpdateMe"},"UsersPublic":{"properties":{"data":{"items":{"$ref":"#/components/schemas/UserPublic"},"type":"array","title":"Data"},"count":{"type":"integer","title":"Count"}},"type":"object","required":["data","count"],"title":"UsersPublic"},"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"},"app__api__routes__admin_ops__WalletUpdate":{"properties":{"chain":{"type":"string","title":"Chain"},"address":{"type":"string","maxLength":256,"minLength":0,"title":"Address"},"note":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Note"}},"type":"object","required":["chain","address"],"title":"WalletUpdate"},"app__api__routes__merchant__WalletUpdate":{"properties":{"blockchain":{"type":"string","title":"Blockchain"},"address":{"type":"string","maxLength":256,"minLength":8,"title":"Address"}},"type":"object","required":["blockchain","address"],"title":"WalletUpdate"}},"securitySchemes":{"OAuth2PasswordBearer":{"type":"oauth2","flows":{"password":{"scopes":{},"tokenUrl":"/api/v1/login/access-token"}}}}}}