{"openapi":"3.1.0","info":{"title":"Mesa","version":"0.1.0"},"paths":{"/api/v1/admin/overview":{"get":{"tags":["admin"],"summary":"Overview","operationId":"overview_api_v1_admin_overview_get","parameters":[{"name":"days","in":"query","required":false,"schema":{"type":"integer","maximum":365,"minimum":1,"default":30,"title":"Days"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/users":{"get":{"tags":["admin"],"summary":"Users","operationId":"users_api_v1_admin_users_get","parameters":[{"name":"q","in":"query","required":false,"schema":{"type":"string","maxLength":100,"default":"","title":"Q"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":50,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/users/status":{"post":{"tags":["admin"],"summary":"Set User Status","operationId":"set_user_status_api_v1_admin_users_status_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserStatusInput"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/stores/{store_id}":{"post":{"tags":["admin"],"summary":"Update Store Control","operationId":"update_store_control_api_v1_admin_stores__store_id__post","parameters":[{"name":"store_id","in":"path","required":true,"schema":{"type":"string","title":"Store Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StoreControlInput"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/outbox/{message_id}/resolve":{"post":{"tags":["admin"],"summary":"Resolve Outbox Failure","description":"Acknowledge a reviewed outbox failure without retrying a signing operation.","operationId":"resolve_outbox_failure_api_v1_admin_outbox__message_id__resolve_post","parameters":[{"name":"message_id","in":"path","required":true,"schema":{"type":"string","title":"Message Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OutboxResolutionInput"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/records/{kind}":{"get":{"tags":["admin"],"summary":"Records","operationId":"records_api_v1_admin_records__kind__get","parameters":[{"name":"kind","in":"path","required":true,"schema":{"type":"string","title":"Kind"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":50,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/currencies":{"get":{"tags":["multicurrency"],"summary":"Currencies","operationId":"currencies_api_v1_currencies_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/v1/stores/{store_id}/crypto-payments":{"post":{"tags":["multicurrency"],"summary":"Create For Owner","operationId":"create_for_owner_api_v1_stores__store_id__crypto_payments_post","parameters":[{"name":"store_id","in":"path","required":true,"schema":{"type":"string","title":"Store Id"}},{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","minLength":8,"maxLength":128,"title":"Idempotency-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaymentInput"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/developer/crypto-payments":{"post":{"tags":["multicurrency"],"summary":"Create For Api","operationId":"create_for_api_api_v1_developer_crypto_payments_post","parameters":[{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","minLength":8,"maxLength":128,"title":"Idempotency-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaymentInput"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/public/crypto-payments/{payment_id}":{"get":{"tags":["multicurrency"],"summary":"Public Payment","operationId":"public_payment_api_v1_public_crypto_payments__payment_id__get","parameters":[{"name":"payment_id","in":"path","required":true,"schema":{"type":"string","title":"Payment Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/providers/nowpayments/ipn":{"post":{"tags":["multicurrency"],"summary":"Ipn","operationId":"ipn_api_v1_providers_nowpayments_ipn_post","parameters":[{"name":"x-nowpayments-sig","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Nowpayments-Sig"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/exchange/currencies":{"get":{"tags":["exchange"],"summary":"Currencies","operationId":"currencies_api_v1_exchange_currencies_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/v1/exchange/quotes":{"post":{"tags":["exchange"],"summary":"Quote","operationId":"quote_api_v1_exchange_quotes_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/QuoteInput"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/exchange/orders/{quote_id}":{"post":{"tags":["exchange"],"summary":"Confirm","operationId":"confirm_api_v1_exchange_orders__quote_id__post","parameters":[{"name":"quote_id","in":"path","required":true,"schema":{"type":"string","title":"Quote Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConfirmInput"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/exchange/orders":{"get":{"tags":["exchange"],"summary":"Orders","operationId":"orders_api_v1_exchange_orders_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/v1/exchange/orders/{order_id}":{"get":{"tags":["exchange"],"summary":"Order","operationId":"order_api_v1_exchange_orders__order_id__get","parameters":[{"name":"order_id","in":"path","required":true,"schema":{"type":"string","title":"Order Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/health/live":{"get":{"tags":["health"],"summary":"Live","operationId":"live_health_live_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":{"type":"string"},"type":"object","title":"Response Live Health Live Get"}}}}}}},"/health/ready":{"get":{"tags":["health"],"summary":"Ready","operationId":"ready_health_ready_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":{"type":"string"},"type":"object","title":"Response Ready Health Ready Get"}}}}}}},"/api/v1/session/login":{"post":{"tags":["session"],"summary":"Login","operationId":"login_api_v1_session_login_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LoginRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SessionAccountResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/session/register":{"post":{"tags":["session"],"summary":"Register","operationId":"register_api_v1_session_register_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LoginRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SessionAccountResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/session":{"get":{"tags":["session"],"summary":"Session Status","operationId":"session_status_api_v1_session_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SessionAccountResponse"}}}}}}},"/api/v1/session/logout":{"post":{"tags":["session"],"summary":"Logout","operationId":"logout_api_v1_session_logout_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Logout Api V1 Session Logout Post"}}}}}}},"/api/v1/session/refresh":{"post":{"tags":["session"],"summary":"Refresh Session","operationId":"refresh_session_api_v1_session_refresh_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SessionAccountResponse"}}}}}}},"/api/v1/account/telegram/link/start":{"post":{"tags":["session"],"summary":"Start Telegram Link","operationId":"start_telegram_link_api_v1_account_telegram_link_start_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TelegramLinkStartResponse"}}}}}}},"/api/v1/account/telegram/link/status/{challenge_id}":{"get":{"tags":["session"],"summary":"Get Telegram Link Status","operationId":"get_telegram_link_status_api_v1_account_telegram_link_status__challenge_id__get","parameters":[{"name":"challenge_id","in":"path","required":true,"schema":{"type":"string","title":"Challenge Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TelegramLinkStatusResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/me":{"get":{"tags":["accounts"],"summary":"Me","operationId":"me_api_v1_me_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MeResponse"}}}}}}},"/api/v1/wallets":{"get":{"tags":["wallets"],"summary":"List Wallets","operationId":"list_wallets_api_v1_wallets_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/WalletResponse"},"type":"array","title":"Response List Wallets Api V1 Wallets Get"}}}}}},"post":{"tags":["wallets"],"summary":"Create Wallet","operationId":"create_wallet_api_v1_wallets_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateWalletRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WalletResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/wallets/claim-legacy":{"post":{"tags":["wallets"],"summary":"Claim Legacy Wallets","operationId":"claim_legacy_wallets_api_v1_wallets_claim_legacy_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WalletClaimResponse"}}}}}}},"/api/v1/me/wallet-migration-status":{"get":{"tags":["wallets"],"summary":"Get Wallet Migration Status","operationId":"get_wallet_migration_status_api_v1_me_wallet_migration_status_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WalletMigrationStatusResponse"}}}}}}},"/api/v1/internal/wallets/{wallet_id}/deploy":{"post":{"tags":["wallets"],"summary":"Deploy Wallet","operationId":"deploy_wallet_api_v1_internal_wallets__wallet_id__deploy_post","parameters":[{"name":"wallet_id","in":"path","required":true,"schema":{"type":"string","title":"Wallet Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WalletDeploymentResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/stores":{"get":{"tags":["merchants"],"summary":"List Stores","operationId":"list_stores_api_v1_stores_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/StoreResponse"},"type":"array","title":"Response List Stores Api V1 Stores Get"}}}}}},"post":{"tags":["merchants"],"summary":"Create Store","operationId":"create_store_api_v1_stores_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateStoreRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateStoreResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/stores/{store_id}/icon":{"post":{"tags":["merchants"],"summary":"Update Store Icon","operationId":"update_store_icon_api_v1_stores__store_id__icon_post","parameters":[{"name":"store_id","in":"path","required":true,"schema":{"type":"string","title":"Store Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateStoreIconRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StoreResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/stores/{store_id}":{"patch":{"tags":["merchants"],"summary":"Update Store Profile","operationId":"update_store_profile_api_v1_stores__store_id__patch","parameters":[{"name":"store_id","in":"path","required":true,"schema":{"type":"string","title":"Store Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateStoreProfileRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StoreResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/stores/{store_id}/api-keys/reissue":{"post":{"tags":["merchants"],"summary":"Reissue Store Api Key","operationId":"reissue_store_api_key_api_v1_stores__store_id__api_keys_reissue_post","parameters":[{"name":"store_id","in":"path","required":true,"schema":{"type":"string","title":"Store Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MerchantApiKeyIssueResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/stores/{store_id}/api-keys/active":{"get":{"tags":["merchants"],"summary":"Get Active Store Api Key","operationId":"get_active_store_api_key_api_v1_stores__store_id__api_keys_active_get","parameters":[{"name":"store_id","in":"path","required":true,"schema":{"type":"string","title":"Store Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MerchantApiKeyPreviewResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/stores/{store_id}/webhook":{"get":{"tags":["merchants"],"summary":"Get Store Webhook","operationId":"get_store_webhook_api_v1_stores__store_id__webhook_get","parameters":[{"name":"store_id","in":"path","required":true,"schema":{"type":"string","title":"Store Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MerchantWebhookResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["merchants"],"summary":"Configure Store Webhook","operationId":"configure_store_webhook_api_v1_stores__store_id__webhook_post","parameters":[{"name":"store_id","in":"path","required":true,"schema":{"type":"string","title":"Store Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MerchantWebhookConfigRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MerchantWebhookResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/stores/{store_id}/webhook/rotate-secret":{"post":{"tags":["merchants"],"summary":"Rotate Store Webhook Secret","operationId":"rotate_store_webhook_secret_api_v1_stores__store_id__webhook_rotate_secret_post","parameters":[{"name":"store_id","in":"path","required":true,"schema":{"type":"string","title":"Store Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MerchantWebhookResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/stores/{store_id}/payout-policy":{"post":{"tags":["merchants"],"summary":"Update Store Payout Policy","operationId":"update_store_payout_policy_api_v1_stores__store_id__payout_policy_post","parameters":[{"name":"store_id","in":"path","required":true,"schema":{"type":"string","title":"Store Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateStorePayoutPolicyRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StoreResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/stores/{store_id}/balance":{"get":{"tags":["merchants"],"summary":"Get Store Balance","operationId":"get_store_balance_api_v1_stores__store_id__balance_get","parameters":[{"name":"store_id","in":"path","required":true,"schema":{"type":"string","title":"Store Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StoreBalanceResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/processing/invoices":{"get":{"tags":["merchants"],"summary":"List Invoices","operationId":"list_invoices_api_v1_processing_invoices_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/InvoiceResponse"},"title":"Response List Invoices Api V1 Processing Invoices Get"}}}}}},"post":{"tags":["merchants"],"summary":"Create Invoice","operationId":"create_invoice_api_v1_processing_invoices_post","parameters":[{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":8,"maxLength":128},{"type":"null"}],"title":"Idempotency-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateInvoiceRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvoiceResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/processing/invoices/{invoice_id}/cancel":{"post":{"tags":["merchants"],"summary":"Cancel Invoice","operationId":"cancel_invoice_api_v1_processing_invoices__invoice_id__cancel_post","parameters":[{"name":"invoice_id","in":"path","required":true,"schema":{"type":"string","title":"Invoice Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvoiceResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/processing/invoices/{invoice_id}":{"get":{"tags":["merchants"],"summary":"Get Invoice","operationId":"get_invoice_api_v1_processing_invoices__invoice_id__get","parameters":[{"name":"invoice_id","in":"path","required":true,"schema":{"type":"string","title":"Invoice Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvoiceResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/public/invoices/{invoice_id}":{"get":{"tags":["merchants"],"summary":"Get Public Invoice","operationId":"get_public_invoice_api_v1_public_invoices__invoice_id__get","parameters":[{"name":"invoice_id","in":"path","required":true,"schema":{"type":"string","title":"Invoice Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicInvoiceResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/developer/store":{"get":{"tags":["merchants"],"summary":"Get Developer Store","operationId":"get_developer_store_api_v1_developer_store_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StoreResponse"}}}}}}},"/api/v1/developer/store/balance":{"get":{"tags":["merchants"],"summary":"Get Developer Store Balance","operationId":"get_developer_store_balance_api_v1_developer_store_balance_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StoreBalanceResponse"}}}}}}},"/api/v1/developer/invoices":{"get":{"tags":["merchants"],"summary":"List Developer Invoices","operationId":"list_developer_invoices_api_v1_developer_invoices_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/InvoiceResponse"},"title":"Response List Developer Invoices Api V1 Developer Invoices Get"}}}}}},"post":{"tags":["merchants"],"summary":"Create Developer Invoice","operationId":"create_developer_invoice_api_v1_developer_invoices_post","parameters":[{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","minLength":8,"maxLength":128,"title":"Idempotency-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeveloperCreateInvoiceRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvoiceResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/developer/invoices/{invoice_id}/cancel":{"post":{"tags":["merchants"],"summary":"Cancel Developer Invoice","operationId":"cancel_developer_invoice_api_v1_developer_invoices__invoice_id__cancel_post","parameters":[{"name":"invoice_id","in":"path","required":true,"schema":{"type":"string","title":"Invoice Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvoiceResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/developer/invoices/{invoice_id}":{"get":{"tags":["merchants"],"summary":"Get Developer Invoice","operationId":"get_developer_invoice_api_v1_developer_invoices__invoice_id__get","parameters":[{"name":"invoice_id","in":"path","required":true,"schema":{"type":"string","title":"Invoice Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvoiceResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/developer/payouts":{"get":{"tags":["merchants"],"summary":"List Developer Payouts","operationId":"list_developer_payouts_api_v1_developer_payouts_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/MerchantPayoutResponse"},"title":"Response List Developer Payouts Api V1 Developer Payouts Get"}}}}}},"post":{"tags":["merchants"],"summary":"Create Developer Payout","operationId":"create_developer_payout_api_v1_developer_payouts_post","parameters":[{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","minLength":8,"maxLength":128,"title":"Idempotency-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeveloperCreatePayoutRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MerchantPayoutResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/developer/payouts/{payout_id}":{"get":{"tags":["merchants"],"summary":"Get Developer Payout","operationId":"get_developer_payout_api_v1_developer_payouts__payout_id__get","parameters":[{"name":"payout_id","in":"path","required":true,"schema":{"type":"string","title":"Payout Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MerchantPayoutResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/stores/payouts":{"get":{"tags":["merchants"],"summary":"List Payouts","operationId":"list_payouts_api_v1_stores_payouts_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/MerchantPayoutResponse"},"title":"Response List Payouts Api V1 Stores Payouts Get"}}}}}},"post":{"tags":["merchants"],"summary":"Create Payout","operationId":"create_payout_api_v1_stores_payouts_post","parameters":[{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","minLength":8,"maxLength":128,"title":"Idempotency-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreatePayoutRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MerchantPayoutResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/stores/payouts/{payout_id}":{"get":{"tags":["merchants"],"summary":"Get Payout","operationId":"get_payout_api_v1_stores_payouts__payout_id__get","parameters":[{"name":"payout_id","in":"path","required":true,"schema":{"type":"string","title":"Payout Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MerchantPayoutResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/internal/stores/payouts/{payout_id}/complete":{"post":{"tags":["merchants"],"summary":"Complete Payout","operationId":"complete_payout_api_v1_internal_stores_payouts__payout_id__complete_post","parameters":[{"name":"payout_id","in":"path","required":true,"schema":{"type":"string","title":"Payout Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompletePayoutRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MerchantPayoutResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/internal/stores/payouts/{payout_id}/fail":{"post":{"tags":["merchants"],"summary":"Fail Payout","operationId":"fail_payout_api_v1_internal_stores_payouts__payout_id__fail_post","parameters":[{"name":"payout_id","in":"path","required":true,"schema":{"type":"string","title":"Payout Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FailPayoutRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MerchantPayoutResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/wallets/{wallet_id}/balance":{"get":{"tags":["ledger"],"summary":"Get Wallet Balance","operationId":"get_wallet_balance_api_v1_wallets__wallet_id__balance_get","parameters":[{"name":"wallet_id","in":"path","required":true,"schema":{"type":"string","title":"Wallet Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WalletBalanceResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/processing/withdrawals":{"post":{"tags":["processing"],"summary":"Create Withdrawal","operationId":"create_withdrawal_api_v1_processing_withdrawals_post","parameters":[{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Idempotency-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateWithdrawalRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WithdrawalResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["processing"],"summary":"List Withdrawals","operationId":"list_withdrawals_api_v1_processing_withdrawals_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/WithdrawalResponse"},"title":"Response List Withdrawals Api V1 Processing Withdrawals Get"}}}}}}},"/api/v1/processing/withdrawals/quote":{"post":{"tags":["processing"],"summary":"Quote Withdrawal","operationId":"quote_withdrawal_api_v1_processing_withdrawals_quote_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WithdrawalQuoteRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WithdrawalQuoteResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/processing/deposits":{"get":{"tags":["processing"],"summary":"List Deposits","operationId":"list_deposits_api_v1_processing_deposits_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/DepositResponse"},"type":"array","title":"Response List Deposits Api V1 Processing Deposits Get"}}}}}}},"/api/v1/processing/withdrawals/{withdrawal_id}":{"get":{"tags":["processing"],"summary":"Get Withdrawal","operationId":"get_withdrawal_api_v1_processing_withdrawals__withdrawal_id__get","parameters":[{"name":"withdrawal_id","in":"path","required":true,"schema":{"type":"string","title":"Withdrawal Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WithdrawalResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/internal/processing/withdrawals/{withdrawal_id}/policy-approve":{"post":{"tags":["processing"],"summary":"Approve Withdrawal Policy","operationId":"approve_withdrawal_policy_api_v1_internal_processing_withdrawals__withdrawal_id__policy_approve_post","parameters":[{"name":"withdrawal_id","in":"path","required":true,"schema":{"type":"string","title":"Withdrawal Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WithdrawalResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/internal/processing/withdrawals/{withdrawal_id}/submit":{"post":{"tags":["processing"],"summary":"Mark Withdrawal Submitted","operationId":"mark_withdrawal_submitted_api_v1_internal_processing_withdrawals__withdrawal_id__submit_post","parameters":[{"name":"withdrawal_id","in":"path","required":true,"schema":{"type":"string","title":"Withdrawal Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubmitWithdrawalRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WithdrawalResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/internal/processing/withdrawals/{withdrawal_id}/confirm":{"post":{"tags":["processing"],"summary":"Confirm Withdrawal","operationId":"confirm_withdrawal_api_v1_internal_processing_withdrawals__withdrawal_id__confirm_post","parameters":[{"name":"withdrawal_id","in":"path","required":true,"schema":{"type":"string","title":"Withdrawal Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WithdrawalResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/internal/processing/withdrawals/{withdrawal_id}/fail":{"post":{"tags":["processing"],"summary":"Fail Withdrawal","operationId":"fail_withdrawal_api_v1_internal_processing_withdrawals__withdrawal_id__fail_post","parameters":[{"name":"withdrawal_id","in":"path","required":true,"schema":{"type":"string","title":"Withdrawal Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FailWithdrawalRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WithdrawalResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}}},"components":{"schemas":{"CompletePayoutRequest":{"properties":{"blockchain_tx_id":{"type":"string","title":"Blockchain Tx Id"}},"type":"object","required":["blockchain_tx_id"],"title":"CompletePayoutRequest"},"ConfirmInput":{"properties":{"address":{"type":"string","maxLength":255,"minLength":10,"title":"Address"},"extra_id":{"type":"string","maxLength":128,"title":"Extra Id","default":""},"refund_address":{"type":"string","maxLength":255,"minLength":10,"title":"Refund Address"},"refund_extra_id":{"type":"string","maxLength":128,"title":"Refund Extra Id","default":""},"confirmed":{"type":"boolean","const":true,"title":"Confirmed"}},"type":"object","required":["address","refund_address","confirmed"],"title":"ConfirmInput"},"CreateInvoiceRequest":{"properties":{"store_id":{"type":"string","title":"Store Id"},"amount":{"anyOf":[{"type":"number","maximum":1000000000.0,"exclusiveMinimum":0.0},{"type":"string"}],"title":"Amount"},"settlement_address":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Settlement Address"},"expires_in_minutes":{"type":"integer","maximum":60.0,"minimum":15.0,"title":"Expires In Minutes","default":30},"external_order_id":{"anyOf":[{"type":"string","maxLength":128,"minLength":1},{"type":"null"}],"title":"External Order Id"},"description":{"anyOf":[{"type":"string","maxLength":500,"minLength":1},{"type":"null"}],"title":"Description"}},"type":"object","required":["store_id","amount"],"title":"CreateInvoiceRequest"},"CreatePayoutRequest":{"properties":{"store_id":{"type":"string","title":"Store Id"},"amount":{"anyOf":[{"type":"number","maximum":1000000000.0,"exclusiveMinimum":0.0},{"type":"string"}],"title":"Amount"},"destination_address":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Destination Address"}},"type":"object","required":["store_id","amount"],"title":"CreatePayoutRequest"},"CreateStoreRequest":{"properties":{"name":{"type":"string","maxLength":255,"minLength":1,"title":"Name"},"payout_mode":{"type":"string","title":"Payout Mode","default":"manual"},"payout_destination_address":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Payout Destination Address"},"asset":{"type":"string","title":"Asset","default":"TON"},"network":{"type":"string","title":"Network","default":"ton"}},"type":"object","required":["name"],"title":"CreateStoreRequest"},"CreateStoreResponse":{"properties":{"store_id":{"type":"string","title":"Store Id"},"owner_account_id":{"type":"string","title":"Owner Account Id"},"name":{"type":"string","title":"Name"},"icon":{"type":"string","title":"Icon"},"settlement_address":{"type":"string","title":"Settlement Address"},"payout_mode":{"type":"string","title":"Payout Mode"},"payout_destination_address":{"type":"string","title":"Payout Destination Address"},"asset":{"type":"string","title":"Asset"},"network":{"type":"string","title":"Network"},"status":{"type":"string","title":"Status"},"fee_bps":{"type":"integer","title":"Fee Bps"},"fee_percent":{"type":"string","title":"Fee Percent"},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"},"api_key_id":{"type":"string","title":"Api Key Id"},"api_key_preview":{"type":"string","title":"Api Key Preview"},"api_key":{"type":"string","title":"Api Key"}},"type":"object","required":["store_id","owner_account_id","name","icon","settlement_address","payout_mode","payout_destination_address","asset","network","status","fee_bps","fee_percent","created_at","api_key_id","api_key_preview","api_key"],"title":"CreateStoreResponse"},"CreateWalletRequest":{"properties":{"asset":{"type":"string","title":"Asset","default":"TON"},"network":{"type":"string","title":"Network","default":"ton"},"label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Label"},"pricing_profile_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pricing Profile Code"}},"type":"object","title":"CreateWalletRequest"},"CreateWithdrawalRequest":{"properties":{"wallet_id":{"type":"string","title":"Wallet Id"},"destination_address":{"type":"string","title":"Destination Address"},"amount":{"anyOf":[{"type":"number","exclusiveMinimum":0.0},{"type":"string"}],"title":"Amount"},"max_total_debit":{"anyOf":[{"type":"number","exclusiveMinimum":0.0},{"type":"string"},{"type":"null"}],"title":"Max Total Debit"}},"type":"object","required":["wallet_id","destination_address","amount"],"title":"CreateWithdrawalRequest"},"DepositResponse":{"properties":{"deposit_id":{"type":"string","title":"Deposit Id"},"wallet_id":{"type":"string","title":"Wallet Id"},"asset":{"type":"string","title":"Asset"},"network":{"type":"string","title":"Network"},"blockchain_tx_id":{"type":"string","title":"Blockchain Tx Id"},"source_address":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Address"},"destination_address":{"type":"string","title":"Destination Address"},"amount":{"type":"string","title":"Amount"},"gross_amount":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Gross Amount"},"network_fee":{"type":"string","title":"Network Fee"},"observed_at":{"type":"string","format":"date-time","title":"Observed At"},"credited_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Credited At"},"status":{"type":"string","title":"Status"},"matched_withdrawal_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Matched Withdrawal Id"},"invoice_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Invoice Id"},"review_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Review Reason"}},"type":"object","required":["deposit_id","wallet_id","asset","network","blockchain_tx_id","source_address","destination_address","amount","gross_amount","network_fee","observed_at","credited_at","status","matched_withdrawal_id","invoice_id","review_reason"],"title":"DepositResponse"},"DeveloperCreateInvoiceRequest":{"properties":{"amount":{"anyOf":[{"type":"number","maximum":1000000000.0,"exclusiveMinimum":0.0},{"type":"string"}],"title":"Amount"},"expires_in_minutes":{"type":"integer","maximum":60.0,"minimum":15.0,"title":"Expires In Minutes","default":30},"external_order_id":{"anyOf":[{"type":"string","maxLength":128,"minLength":1},{"type":"null"}],"title":"External Order Id"},"description":{"anyOf":[{"type":"string","maxLength":500,"minLength":1},{"type":"null"}],"title":"Description"}},"type":"object","required":["amount"],"title":"DeveloperCreateInvoiceRequest","examples":[{"amount":"12.50","description":"Annual plan","expires_in_minutes":30,"external_order_id":"order-1001"}]},"DeveloperCreatePayoutRequest":{"properties":{"amount":{"anyOf":[{"type":"number","maximum":1000000000.0,"exclusiveMinimum":0.0},{"type":"string"}],"title":"Amount"},"destination_address":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Destination Address"}},"type":"object","required":["amount"],"title":"DeveloperCreatePayoutRequest","examples":[{"amount":"10.00","destination_address":"EQ..."}]},"FailPayoutRequest":{"properties":{"reason":{"type":"string","maxLength":500,"minLength":1,"title":"Reason"}},"type":"object","required":["reason"],"title":"FailPayoutRequest"},"FailWithdrawalRequest":{"properties":{"reason":{"type":"string","maxLength":500,"minLength":1,"title":"Reason"}},"type":"object","required":["reason"],"title":"FailWithdrawalRequest"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"InvoiceResponse":{"properties":{"invoice_id":{"type":"string","title":"Invoice Id"},"received_amount":{"type":"string","title":"Received Amount"},"net_received_amount":{"type":"string","title":"Net Received Amount"},"network_fee":{"type":"string","title":"Network Fee"},"fee_bps":{"type":"integer","title":"Fee Bps"},"platform_fee":{"type":"string","title":"Platform Fee"},"owner_account_id":{"type":"string","title":"Owner Account Id"},"store_id":{"type":"string","title":"Store Id"},"collection_wallet_id":{"type":"string","title":"Collection Wallet Id"},"asset":{"type":"string","title":"Asset"},"network":{"type":"string","title":"Network"},"amount":{"type":"string","title":"Amount"},"settlement_address":{"type":"string","title":"Settlement Address"},"status":{"type":"string","title":"Status"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"expires_at":{"type":"string","format":"date-time","title":"Expires At"},"external_order_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"External Order Id"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"paid_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Paid At"},"remaining_amount":{"type":"string","title":"Remaining Amount"},"expected_platform_fee":{"type":"string","title":"Expected Platform Fee"},"expected_net_amount":{"type":"string","title":"Expected Net Amount"}},"type":"object","required":["invoice_id","received_amount","net_received_amount","network_fee","fee_bps","platform_fee","owner_account_id","store_id","collection_wallet_id","asset","network","amount","settlement_address","status","created_at","expires_at","external_order_id","description","paid_at","remaining_amount","expected_platform_fee","expected_net_amount"],"title":"InvoiceResponse"},"LoginRequest":{"properties":{"login":{"type":"string","title":"Login"},"password":{"type":"string","title":"Password"}},"type":"object","required":["login","password"],"title":"LoginRequest"},"MeResponse":{"properties":{"subject_id":{"type":"string","title":"Subject Id"},"account_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Account Id"},"tenant_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tenant Id"},"scopes":{"items":{"type":"string"},"type":"array","title":"Scopes"}},"type":"object","required":["subject_id","account_id","tenant_id","scopes"],"title":"MeResponse"},"MerchantApiKeyIssueResponse":{"properties":{"key_id":{"type":"string","title":"Key Id"},"key_preview":{"type":"string","title":"Key Preview"},"api_key":{"type":"string","title":"Api Key"}},"type":"object","required":["key_id","key_preview","api_key"],"title":"MerchantApiKeyIssueResponse"},"MerchantApiKeyPreviewResponse":{"properties":{"key_id":{"type":"string","title":"Key Id"},"key_preview":{"type":"string","title":"Key Preview"}},"type":"object","required":["key_id","key_preview"],"title":"MerchantApiKeyPreviewResponse"},"MerchantPayoutResponse":{"properties":{"payout_id":{"type":"string","title":"Payout Id"},"store_id":{"type":"string","title":"Store Id"},"owner_account_id":{"type":"string","title":"Owner Account Id"},"asset":{"type":"string","title":"Asset"},"network":{"type":"string","title":"Network"},"amount":{"type":"string","title":"Amount"},"destination_address":{"type":"string","title":"Destination Address"},"status":{"type":"string","title":"Status"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"blockchain_tx_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Blockchain Tx Id"},"failure_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Failure Reason"},"actual_network_fee":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Actual Network Fee"},"confirmed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Confirmed At"}},"type":"object","required":["payout_id","store_id","owner_account_id","asset","network","amount","destination_address","status","created_at","updated_at","blockchain_tx_id","failure_reason","actual_network_fee","confirmed_at"],"title":"MerchantPayoutResponse"},"MerchantWebhookConfigRequest":{"properties":{"target_url":{"type":"string","maxLength":1000,"minLength":1,"title":"Target Url"},"enabled":{"type":"boolean","title":"Enabled","default":true}},"type":"object","required":["target_url"],"title":"MerchantWebhookConfigRequest"},"MerchantWebhookResponse":{"properties":{"endpoint_id":{"type":"string","title":"Endpoint Id"},"target_url":{"type":"string","title":"Target Url"},"enabled":{"type":"boolean","title":"Enabled"},"secret_preview":{"type":"string","title":"Secret Preview"},"signing_secret":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Signing Secret"},"last_delivered_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Delivered At"}},"type":"object","required":["endpoint_id","target_url","enabled","secret_preview"],"title":"MerchantWebhookResponse"},"OutboxResolutionInput":{"properties":{"reason":{"type":"string","maxLength":500,"minLength":5,"title":"Reason"}},"type":"object","required":["reason"],"title":"OutboxResolutionInput"},"PaymentInput":{"properties":{"price_amount":{"anyOf":[{"type":"number","maximum":1000000.0,"exclusiveMinimum":0.0},{"type":"string"}],"title":"Price Amount"},"pay_currency":{"type":"string","pattern":"^[a-z0-9]{2,20}$","title":"Pay Currency"},"external_order_id":{"anyOf":[{"type":"string","maxLength":128,"minLength":1},{"type":"null"}],"title":"External Order Id"},"description":{"anyOf":[{"type":"string","maxLength":500,"minLength":1},{"type":"null"}],"title":"Description"}},"type":"object","required":["price_amount","pay_currency"],"title":"PaymentInput","examples":[{"description":"Annual plan","external_order_id":"order-1001","pay_currency":"ltc","price_amount":"25.00"}]},"PublicInvoiceResponse":{"properties":{"invoice_id":{"type":"string","title":"Invoice Id"},"received_amount":{"type":"string","title":"Received Amount"},"net_received_amount":{"type":"string","title":"Net Received Amount"},"network_fee":{"type":"string","title":"Network Fee"},"fee_bps":{"type":"integer","title":"Fee Bps"},"platform_fee":{"type":"string","title":"Platform Fee"},"owner_account_id":{"type":"string","title":"Owner Account Id"},"store_id":{"type":"string","title":"Store Id"},"collection_wallet_id":{"type":"string","title":"Collection Wallet Id"},"asset":{"type":"string","title":"Asset"},"network":{"type":"string","title":"Network"},"amount":{"type":"string","title":"Amount"},"settlement_address":{"type":"string","title":"Settlement Address"},"status":{"type":"string","title":"Status"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"expires_at":{"type":"string","format":"date-time","title":"Expires At"},"external_order_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"External Order Id"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"paid_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Paid At"},"remaining_amount":{"type":"string","title":"Remaining Amount"},"expected_platform_fee":{"type":"string","title":"Expected Platform Fee"},"expected_net_amount":{"type":"string","title":"Expected Net Amount"},"store_name":{"type":"string","title":"Store Name"},"store_icon":{"type":"string","title":"Store Icon"}},"type":"object","required":["invoice_id","received_amount","net_received_amount","network_fee","fee_bps","platform_fee","owner_account_id","store_id","collection_wallet_id","asset","network","amount","settlement_address","status","created_at","expires_at","external_order_id","description","paid_at","remaining_amount","expected_platform_fee","expected_net_amount","store_name","store_icon"],"title":"PublicInvoiceResponse"},"QuoteInput":{"properties":{"from_currency":{"type":"string","title":"From Currency"},"from_network":{"type":"string","title":"From Network"},"to_currency":{"type":"string","title":"To Currency"},"to_network":{"type":"string","title":"To Network"},"amount":{"anyOf":[{"type":"number","maximum":10000000.0,"exclusiveMinimum":0.0},{"type":"string"}],"title":"Amount"}},"type":"object","required":["from_currency","from_network","to_currency","to_network","amount"],"title":"QuoteInput"},"SessionAccountResponse":{"properties":{"subject_id":{"type":"string","title":"Subject Id"},"account_id":{"type":"string","title":"Account Id"},"email":{"type":"string","title":"Email"},"username":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Username"},"full_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Full Name"},"phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone"},"company_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Company Name"},"avatar_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Avatar Url"},"is_admin":{"type":"boolean","title":"Is Admin"},"scopes":{"items":{"type":"string"},"type":"array","title":"Scopes"},"authenticated_at":{"type":"string","format":"date-time","title":"Authenticated At"}},"type":"object","required":["subject_id","account_id","email","username","full_name","phone","company_name","avatar_url","is_admin","scopes","authenticated_at"],"title":"SessionAccountResponse"},"StoreBalanceResponse":{"properties":{"store_id":{"type":"string","title":"Store Id"},"asset":{"type":"string","title":"Asset"},"network":{"type":"string","title":"Network"},"available":{"type":"string","title":"Available"},"pending":{"type":"string","title":"Pending"}},"type":"object","required":["store_id","asset","network","available","pending"],"title":"StoreBalanceResponse"},"StoreControlInput":{"properties":{"status":{"anyOf":[{"type":"string","enum":["active","paused","suspended"]},{"type":"null"}],"title":"Status"},"fee_bps":{"anyOf":[{"type":"integer","maximum":1000.0,"minimum":0.0},{"type":"null"}],"title":"Fee Bps"},"reason":{"type":"string","maxLength":500,"minLength":5,"title":"Reason"}},"type":"object","required":["reason"],"title":"StoreControlInput"},"StoreResponse":{"properties":{"store_id":{"type":"string","title":"Store Id"},"owner_account_id":{"type":"string","title":"Owner Account Id"},"name":{"type":"string","title":"Name"},"icon":{"type":"string","title":"Icon"},"settlement_address":{"type":"string","title":"Settlement Address"},"payout_mode":{"type":"string","title":"Payout Mode"},"payout_destination_address":{"type":"string","title":"Payout Destination Address"},"asset":{"type":"string","title":"Asset"},"network":{"type":"string","title":"Network"},"status":{"type":"string","title":"Status"},"fee_bps":{"type":"integer","title":"Fee Bps"},"fee_percent":{"type":"string","title":"Fee Percent"},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"}},"type":"object","required":["store_id","owner_account_id","name","icon","settlement_address","payout_mode","payout_destination_address","asset","network","status","fee_bps","fee_percent","created_at"],"title":"StoreResponse"},"SubmitWithdrawalRequest":{"properties":{"blockchain_tx_id":{"type":"string","title":"Blockchain Tx Id"}},"type":"object","required":["blockchain_tx_id"],"title":"SubmitWithdrawalRequest"},"TelegramLinkStartResponse":{"properties":{"challenge_id":{"type":"string","title":"Challenge Id"},"link_token":{"type":"string","title":"Link Token"},"expires_at":{"type":"string","format":"date-time","title":"Expires At"},"bot_start_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Bot Start Url"}},"type":"object","required":["challenge_id","link_token","expires_at","bot_start_url"],"title":"TelegramLinkStartResponse"},"TelegramLinkStatusResponse":{"properties":{"challenge_id":{"type":"string","title":"Challenge Id"},"status":{"type":"string","title":"Status"},"provider":{"type":"string","title":"Provider"},"expires_at":{"type":"string","format":"date-time","title":"Expires At"},"consumed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Consumed At"},"linked":{"type":"boolean","title":"Linked"},"external_subject_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"External Subject Id"},"external_username":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"External Username"}},"type":"object","required":["challenge_id","status","provider","expires_at","consumed_at","linked","external_subject_id","external_username"],"title":"TelegramLinkStatusResponse"},"UpdateStoreIconRequest":{"properties":{"icon":{"type":"string","maxLength":8,"minLength":1,"title":"Icon"}},"type":"object","required":["icon"],"title":"UpdateStoreIconRequest"},"UpdateStorePayoutPolicyRequest":{"properties":{"payout_mode":{"type":"string","title":"Payout Mode"},"payout_destination_address":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Payout Destination Address"}},"type":"object","required":["payout_mode"],"title":"UpdateStorePayoutPolicyRequest"},"UpdateStoreProfileRequest":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":255,"minLength":1},{"type":"null"}],"title":"Name"},"status":{"anyOf":[{"type":"string","pattern":"^(active|paused)$"},{"type":"null"}],"title":"Status"}},"type":"object","title":"UpdateStoreProfileRequest"},"UserStatusInput":{"properties":{"subject_id":{"type":"string","maxLength":255,"minLength":1,"title":"Subject Id"},"status":{"type":"string","enum":["active","suspended"],"title":"Status"},"reason":{"type":"string","maxLength":500,"minLength":5,"title":"Reason"}},"type":"object","required":["subject_id","status","reason"],"title":"UserStatusInput"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"},"WalletBalanceResponse":{"properties":{"wallet_id":{"type":"string","title":"Wallet Id"},"asset":{"type":"string","title":"Asset"},"network":{"type":"string","title":"Network"},"available":{"type":"string","title":"Available"},"pending":{"type":"string","title":"Pending"}},"type":"object","required":["wallet_id","asset","network","available","pending"],"title":"WalletBalanceResponse"},"WalletClaimResponse":{"properties":{"claimed":{"type":"integer","title":"Claimed"},"wallet_ids":{"items":{"type":"string"},"type":"array","title":"Wallet Ids"}},"type":"object","required":["claimed","wallet_ids"],"title":"WalletClaimResponse"},"WalletDeploymentResponse":{"properties":{"wallet_id":{"type":"string","title":"Wallet Id"},"address":{"type":"string","title":"Address"},"deployment_ref":{"type":"string","title":"Deployment Ref"},"deployed":{"type":"boolean","title":"Deployed"}},"type":"object","required":["wallet_id","address","deployment_ref","deployed"],"title":"WalletDeploymentResponse"},"WalletMigrationStatusResponse":{"properties":{"status":{"type":"string","title":"Status"},"provider":{"type":"string","title":"Provider"},"provider_subject":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Provider Subject"},"claimable_wallet_count":{"type":"integer","title":"Claimable Wallet Count"},"claimed_wallet_count":{"type":"integer","title":"Claimed Wallet Count"},"claimable_wallet_ids":{"items":{"type":"string"},"type":"array","title":"Claimable Wallet Ids"},"claimed_wallet_ids":{"items":{"type":"string"},"type":"array","title":"Claimed Wallet Ids"}},"type":"object","required":["status","provider","provider_subject","claimable_wallet_count","claimed_wallet_count","claimable_wallet_ids","claimed_wallet_ids"],"title":"WalletMigrationStatusResponse"},"WalletResponse":{"properties":{"wallet_id":{"type":"string","title":"Wallet Id"},"asset":{"type":"string","title":"Asset"},"network":{"type":"string","title":"Network"},"label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Label"},"address":{"type":"string","title":"Address"},"status":{"type":"string","title":"Status"},"custody_profile":{"type":"string","title":"Custody Profile"},"pricing_profile_code":{"type":"string","title":"Pricing Profile Code"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["wallet_id","asset","network","label","address","status","custody_profile","pricing_profile_code","created_at"],"title":"WalletResponse"},"WithdrawalQuoteRequest":{"properties":{"wallet_id":{"type":"string","title":"Wallet Id"},"destination_address":{"type":"string","title":"Destination Address"},"amount":{"anyOf":[{"type":"number","exclusiveMinimum":0.0},{"type":"string"}],"title":"Amount"}},"type":"object","required":["wallet_id","destination_address","amount"],"title":"WithdrawalQuoteRequest"},"WithdrawalQuoteResponse":{"properties":{"wallet_id":{"type":"string","title":"Wallet Id"},"asset":{"type":"string","title":"Asset"},"network":{"type":"string","title":"Network"},"destination_address":{"type":"string","title":"Destination Address"},"amount":{"type":"string","title":"Amount"},"pricing_profile_code":{"type":"string","title":"Pricing Profile Code"},"platform_fee":{"type":"string","title":"Platform Fee"},"estimated_network_fee":{"type":"string","title":"Estimated Network Fee"},"estimated_fee":{"type":"string","title":"Estimated Fee"},"total_debit":{"type":"string","title":"Total Debit"},"available_balance":{"type":"string","title":"Available Balance"},"can_submit":{"type":"boolean","title":"Can Submit"},"expires_at":{"type":"string","format":"date-time","title":"Expires At"}},"type":"object","required":["wallet_id","asset","network","destination_address","amount","pricing_profile_code","platform_fee","estimated_network_fee","estimated_fee","total_debit","available_balance","can_submit","expires_at"],"title":"WithdrawalQuoteResponse"},"WithdrawalResponse":{"properties":{"withdrawal_id":{"type":"string","title":"Withdrawal Id"},"wallet_id":{"type":"string","title":"Wallet Id"},"asset":{"type":"string","title":"Asset"},"network":{"type":"string","title":"Network"},"destination_address":{"type":"string","title":"Destination Address"},"amount":{"type":"string","title":"Amount"},"pricing_profile_code":{"type":"string","title":"Pricing Profile Code"},"platform_fee":{"type":"string","title":"Platform Fee"},"estimated_network_fee":{"type":"string","title":"Estimated Network Fee"},"estimated_fee":{"type":"string","title":"Estimated Fee"},"total_debit":{"type":"string","title":"Total Debit"},"status":{"type":"string","title":"Status"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"blockchain_tx_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Blockchain Tx Id"},"failure_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Failure Reason"},"actual_delivered_amount":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Actual Delivered Amount"},"delivery_gap":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Delivery Gap"},"matched_deposit_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Matched Deposit Id"},"actual_network_fee":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Actual Network Fee"},"confirmed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Confirmed At"}},"type":"object","required":["withdrawal_id","wallet_id","asset","network","destination_address","amount","pricing_profile_code","platform_fee","estimated_network_fee","estimated_fee","total_debit","status","created_at","updated_at","blockchain_tx_id","failure_reason","actual_delivered_amount","delivery_gap","matched_deposit_id","actual_network_fee","confirmed_at"],"title":"WithdrawalResponse"}}}}