{"openapi":"3.1.0","info":{"title":"Mesa","version":"0.1.0"},"paths":{"/api/v1/currencies":{"get":{"tags":["multicurrency"],"summary":"Currencies","operationId":"currencies_api_v1_currencies_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[]}},"/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"}}}}},"security":[{"StoreApiKey":[]}]}},"/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"}}}}},"security":[]}},"/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":{}}}}},"security":[]}},"/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"}}}}},"security":[{"MesaID":[]}]}},"/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"}}}}},"security":[{"MesaID":[]}]}},"/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":{}}}}},"security":[{"MesaID":[]}]}},"/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"}}}}},"security":[{"MesaID":[]}]}},"/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"}}}}},"security":[]}},"/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"}}}}},"security":[{"StoreApiKey":[]}]}},"/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"}}}}},"security":[{"StoreApiKey":[]}]}},"/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"}}}}},"security":[{"StoreApiKey":[]}]},"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"}}}}},"security":[{"StoreApiKey":[]}]}},"/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"}}}}},"security":[{"StoreApiKey":[]}]}},"/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"}}}}},"security":[{"StoreApiKey":[]}]}},"/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"}}}}},"security":[{"StoreApiKey":[]}]},"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"}}}}},"security":[{"StoreApiKey":[]}]}},"/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"}}}}},"security":[{"StoreApiKey":[]}]}}},"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"}},"securitySchemes":{"StoreApiKey":{"type":"apiKey","in":"header","name":"X-Store-Api-Key"},"MesaID":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}}}}