{"openapi":"3.1.0","info":{"title":"Regex API v2","description":"Партнёрский API регистрации доменов.","version":"2.0.0"},"servers":[{"url":"https://api.regexdomain.com"}],"paths":{"/v2/domains/nameservers":{"patch":{"tags":["v2 · DNS"],"summary":"Сменить NS пачкой (до 50 доменов)","operationId":"set_nameservers_batch_v2_domains_nameservers_patch","parameters":[{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NameserversBatchIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NameserversBatchOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"bearer":[]}]}},"/v2/health":{"get":{"tags":["v2 · Служебные"],"summary":"Состояние сервиса","description":"Без ключа. `200` — сервис отвечает.","operationId":"health_v2_health_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HealthV2"}}}}}}},"/v2/account":{"get":{"tags":["v2 · Аккаунт"],"summary":"Баланс и лимиты","operationId":"account_v2_account_get","parameters":[{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountV2"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"bearer":[]}]}},"/v2/zones":{"get":{"tags":["v2 · Поиск и цены"],"summary":"Зоны и цены","operationId":"zones_v2_zones_get","parameters":[{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZonesV2"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"bearer":[]}]}},"/v2/quotes":{"post":{"tags":["v2 · Поиск и цены"],"summary":"Котировка: цена на 10 минут","operationId":"create_quote_v2_quotes_post","parameters":[{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/QuoteRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/QuoteOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"bearer":[]}]}},"/v2/orders":{"post":{"tags":["v2 · Заказы"],"summary":"Создать заказ","operationId":"create_order_v2_orders_post","parameters":[{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrderRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrderOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"bearer":[]}]},"get":{"tags":["v2 · Заказы"],"summary":"Список заказов","operationId":"list_orders_v2_orders_get","parameters":[{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/ApiV2OrderStatus"},{"type":"null"}],"title":"Status"}},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}],"title":"Cursor"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Limit"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrderListOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"bearer":[]}]}},"/v2/orders/{order_id}":{"get":{"tags":["v2 · Заказы"],"summary":"Статус заказа","operationId":"get_order_v2_orders__order_id__get","parameters":[{"name":"order_id","in":"path","required":true,"schema":{"type":"string","maxLength":32,"title":"Order Id"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrderOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"bearer":[]}]}},"/v2/sandbox/reset":{"post":{"tags":["v2 · Служебные"],"summary":"Сбросить песочницу","description":"Только для ключей `regex_test_…`: баланс снова $1000, тестовые домены и заказы стираются.","operationId":"sandbox_reset_v2_sandbox_reset_post","parameters":[{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SandboxResetOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"bearer":[]}]}},"/v2/domains":{"get":{"tags":["v2 · Домены"],"summary":"Список доменов с фильтрами","operationId":"list_domains_v2_domains_get","parameters":[{"name":"zone","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":63},{"type":"null"}],"title":"Zone"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"enum":["active","expiring","expired"],"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"expires_before","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Expires Before"}},{"name":"customer_ref","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"Customer Ref"}},{"name":"label","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Label"}},{"name":"sort","in":"query","required":false,"schema":{"enum":["domain","-domain","expires_at","-expires_at","registered_at","-registered_at"],"type":"string","default":"expires_at","title":"Sort"}},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}],"title":"Cursor"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Limit"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DomainListV2"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"bearer":[]}]}},"/v2/domains/search":{"post":{"tags":["v2 · Поиск и цены"],"summary":"Поиск до 100 имён за запрос","operationId":"search_domains_v2_domains_search_post","parameters":[{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SearchRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SearchOutV2"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"bearer":[]}]}},"/v2/domains/suggest":{"get":{"tags":["v2 · Поиск и цены"],"summary":"Подбор свободных имён","operationId":"suggest_domains_v2_domains_suggest_get","parameters":[{"name":"q","in":"query","required":true,"schema":{"type":"string","minLength":1,"maxLength":63,"title":"Q"}},{"name":"zones","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":300},{"type":"null"}],"description":"Через запятую: com,io","title":"Zones"},"description":"Через запятую: com,io"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":30,"minimum":1,"default":10,"title":"Limit"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SearchOutV2"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"bearer":[]}]}},"/v2/domains/{domain}":{"get":{"tags":["v2 · Домены"],"summary":"Карточка домена","operationId":"get_domain_v2_domains__domain__get","parameters":[{"name":"domain","in":"path","required":true,"schema":{"type":"string","maxLength":253,"title":"Domain"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DomainV2"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"bearer":[]}]},"patch":{"tags":["v2 · Домены"],"summary":"Метки домена: customer_ref и labels","operationId":"patch_domain_v2_domains__domain__patch","parameters":[{"name":"domain","in":"path","required":true,"schema":{"type":"string","maxLength":253,"title":"Domain"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DomainPatch"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DomainV2"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"bearer":[]}]}},"/v2/webhooks":{"get":{"tags":["v2 · Вебхуки"],"summary":"Список вебхуков","operationId":"list_webhooks_v2_webhooks_get","parameters":[{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookListV2"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"bearer":[]}]},"post":{"tags":["v2 · Вебхуки"],"summary":"Создать вебхук (секрет — один раз)","operationId":"create_webhook_v2_webhooks_post","parameters":[{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookCreateV2"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookV2"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"bearer":[]}]}},"/v2/webhooks/{webhook_id}":{"delete":{"tags":["v2 · Вебхуки"],"summary":"Удалить вебхук","operationId":"delete_webhook_v2_webhooks__webhook_id__delete","parameters":[{"name":"webhook_id","in":"path","required":true,"schema":{"type":"integer","minimum":1,"title":"Webhook Id"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"bearer":[]}]}},"/v2/webhooks/{webhook_id}/test":{"post":{"tags":["v2 · Вебхуки"],"summary":"Тестовое событие на этот адрес","operationId":"test_webhook_v2_webhooks__webhook_id__test_post","parameters":[{"name":"webhook_id","in":"path","required":true,"schema":{"type":"integer","minimum":1,"title":"Webhook Id"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"bearer":[]}]}},"/v2/webhooks/{webhook_id}/secret":{"post":{"tags":["v2 · Вебхуки"],"summary":"Сменить секрет подписи (новый — один раз)","operationId":"rotate_webhook_secret_v2_webhooks__webhook_id__secret_post","parameters":[{"name":"webhook_id","in":"path","required":true,"schema":{"type":"integer","minimum":1,"title":"Webhook Id"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookV2"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"bearer":[]}]}},"/v2/webhooks/{webhook_id}/deliveries":{"get":{"tags":["v2 · Вебхуки"],"summary":"Журнал доставок","operationId":"list_deliveries_v2_webhooks__webhook_id__deliveries_get","parameters":[{"name":"webhook_id","in":"path","required":true,"schema":{"type":"integer","minimum":1,"title":"Webhook Id"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"enum":["pending","success","failed"],"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}],"title":"Cursor"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Limit"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeliveryListV2"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"bearer":[]}]}},"/v2/webhooks/{webhook_id}/deliveries/{event_id}/retry":{"post":{"tags":["v2 · Вебхуки"],"summary":"Повторить неудачную доставку","operationId":"retry_delivery_v2_webhooks__webhook_id__deliveries__event_id__retry_post","parameters":[{"name":"webhook_id","in":"path","required":true,"schema":{"type":"integer","minimum":1,"title":"Webhook Id"}},{"name":"event_id","in":"path","required":true,"schema":{"type":"string","maxLength":64,"title":"Event Id"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeliveryV2"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"bearer":[]}]}},"/v2/keys":{"get":{"tags":["v2 · Аккаунт"],"summary":"Ключи","operationId":"list_keys_v2_keys_get","parameters":[{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/KeyListV2"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"bearer":[]}]},"post":{"tags":["v2 · Аккаунт"],"summary":"Выпустить ключ с правами (ключ — один раз)","operationId":"create_key_v2_keys_post","parameters":[{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/KeyCreateV2"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/KeyV2"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"bearer":[]}]}},"/v2/keys/{prefix}":{"delete":{"tags":["v2 · Аккаунт"],"summary":"Отозвать ключ","operationId":"revoke_key_v2_keys__prefix__delete","parameters":[{"name":"prefix","in":"path","required":true,"schema":{"type":"string","maxLength":24,"title":"Prefix"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"bearer":[]}]}},"/v2/account/transactions":{"get":{"tags":["v2 · Аккаунт"],"summary":"Выписка: все движения баланса","operationId":"transactions_v2_account_transactions_get","parameters":[{"name":"from","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"From"}},{"name":"to","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"To"}},{"name":"type","in":"query","required":false,"schema":{"anyOf":[{"enum":["deposit","hold","charge","refund","cashback","adjustment"],"type":"string"},{"type":"null"}],"title":"Type"}},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}],"title":"Cursor"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Limit"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TransactionListV2"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"bearer":[]}]}},"/v2/domains/{domain}/dns":{"get":{"tags":["v2 · DNS"],"summary":"DNS-записи домена","operationId":"get_dns_v2_domains__domain__dns_get","parameters":[{"name":"domain","in":"path","required":true,"schema":{"type":"string","maxLength":253,"title":"Domain"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DnsListV2"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"bearer":[]}]},"put":{"tags":["v2 · DNS"],"summary":"Заменить все записи пачкой","operationId":"put_dns_v2_domains__domain__dns_put","parameters":[{"name":"domain","in":"path","required":true,"schema":{"type":"string","maxLength":253,"title":"Domain"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DnsReplaceV2"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DnsListV2"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"bearer":[]}]}},"/v2/domains/{domain}/dns/templates":{"post":{"tags":["v2 · DNS"],"summary":"Применить DNS-шаблон","operationId":"apply_dns_template_v2_domains__domain__dns_templates_post","parameters":[{"name":"domain","in":"path","required":true,"schema":{"type":"string","maxLength":253,"title":"Domain"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DnsTemplateV2"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DnsListV2"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"bearer":[]}]}},"/v2/domains/{domain}/transfer-requests":{"post":{"tags":["v2 · Домены"],"summary":"Заявка на перенос домена от нас","operationId":"create_transfer_request_v2_domains__domain__transfer_requests_post","parameters":[{"name":"domain","in":"path","required":true,"schema":{"type":"string","maxLength":253,"title":"Domain"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TransferRequestIn"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TransferRequestV2"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"bearer":[]}]},"get":{"tags":["v2 · Домены"],"summary":"Заявки на перенос по домену","operationId":"list_domain_transfer_requests_v2_domains__domain__transfer_requests_get","parameters":[{"name":"domain","in":"path","required":true,"schema":{"type":"string","maxLength":253,"title":"Domain"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TransferRequestListV2"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"bearer":[]}]}},"/v2/transfer-requests":{"get":{"tags":["v2 · Домены"],"summary":"Все заявки на перенос","operationId":"list_transfer_requests_v2_transfer_requests_get","parameters":[{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TransferRequestListV2"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"bearer":[]}]}},"/v2/transfer-requests/{request_id}":{"get":{"tags":["v2 · Домены"],"summary":"Статус заявки","operationId":"get_transfer_request_v2_transfer_requests__request_id__get","parameters":[{"name":"request_id","in":"path","required":true,"schema":{"type":"string","maxLength":32,"title":"Request Id"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TransferRequestV2"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"bearer":[]}]},"delete":{"tags":["v2 · Домены"],"summary":"Отозвать открытую заявку","operationId":"cancel_transfer_request_v2_transfer_requests__request_id__delete","parameters":[{"name":"request_id","in":"path","required":true,"schema":{"type":"string","maxLength":32,"title":"Request Id"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TransferRequestV2"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"bearer":[]}]}},"/v2/domains/{domain}/nameservers":{"put":{"tags":["v2 · DNS"],"summary":"Сменить NS домена","operationId":"set_nameservers_v2_domains__domain__nameservers_put","parameters":[{"name":"domain","in":"path","required":true,"schema":{"type":"string","maxLength":253,"title":"Domain"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NameserversIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NameserversOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"bearer":[]}]}},"/v2/domains/{domain}/nameserver-hosts":{"get":{"tags":["v2 · DNS"],"summary":"Дочерние серверы имён","operationId":"list_glue_v2_domains__domain__nameserver_hosts_get","parameters":[{"name":"domain","in":"path","required":true,"schema":{"type":"string","maxLength":253,"title":"Domain"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GlueListV2"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"bearer":[]}]},"post":{"tags":["v2 · DNS"],"summary":"Завести дочерний сервер имён","operationId":"add_glue_v2_domains__domain__nameserver_hosts_post","parameters":[{"name":"domain","in":"path","required":true,"schema":{"type":"string","maxLength":253,"title":"Domain"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GlueHostIn"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GlueHostV2"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"bearer":[]}]}},"/v2/domains/{domain}/nameserver-hosts/{host}":{"put":{"tags":["v2 · DNS"],"summary":"Сменить адреса дочернего сервера имён","operationId":"set_glue_ips_v2_domains__domain__nameserver_hosts__host__put","parameters":[{"name":"domain","in":"path","required":true,"schema":{"type":"string","maxLength":253,"title":"Domain"}},{"name":"host","in":"path","required":true,"schema":{"type":"string","maxLength":253,"title":"Host"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GlueIpsIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GlueHostV2"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"bearer":[]}]},"delete":{"tags":["v2 · DNS"],"summary":"Удалить дочерний сервер имён","operationId":"remove_glue_v2_domains__domain__nameserver_hosts__host__delete","parameters":[{"name":"domain","in":"path","required":true,"schema":{"type":"string","maxLength":253,"title":"Domain"}},{"name":"host","in":"path","required":true,"schema":{"type":"string","maxLength":253,"title":"Host"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GlueHostV2"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"bearer":[]}]}},"/v2/account/topups":{"post":{"tags":["v2 · Аккаунт"],"summary":"Счёт на пополнение баланса API","operationId":"create_topup_v2_account_topups_post","parameters":[{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TopupIn"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TopupV2"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"bearer":[]}]}},"/v2/account/topups/{topup_id}":{"get":{"tags":["v2 · Аккаунт"],"summary":"Статус счёта на пополнение","operationId":"get_topup_v2_account_topups__topup_id__get","parameters":[{"name":"topup_id","in":"path","required":true,"schema":{"type":"string","maxLength":32,"title":"Topup Id"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TopupV2"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"bearer":[]}]}},"/v2/payments":{"post":{"tags":["v2 · Платёжка"],"summary":"Счёт на оплату USDT","operationId":"create_payment_v2_payments_post","parameters":[{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaymentIn"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaymentV2"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"bearer":[]}]},"get":{"tags":["v2 · Платёжка"],"summary":"Счета","operationId":"list_payments_v2_payments_get","parameters":[{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"enum":["pending","paid","expired","cancelled"],"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"order_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"Order Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":50,"title":"Limit"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaymentListV2"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"bearer":[]}]}},"/v2/payments/{payment_id}":{"get":{"tags":["v2 · Платёжка"],"summary":"Статус счёта","operationId":"get_payment_v2_payments__payment_id__get","parameters":[{"name":"payment_id","in":"path","required":true,"schema":{"type":"string","maxLength":32,"title":"Payment Id"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaymentV2"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"bearer":[]}]}},"/v2/payments/{payment_id}/cancel":{"post":{"tags":["v2 · Платёжка"],"summary":"Отменить счёт","operationId":"cancel_payment_v2_payments__payment_id__cancel_post","parameters":[{"name":"payment_id","in":"path","required":true,"schema":{"type":"string","maxLength":32,"title":"Payment Id"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaymentV2"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"bearer":[]}]}},"/v2/payments/{payment_id}/simulate":{"post":{"tags":["v2 · Платёжка"],"summary":"Песочница: изобразить оплату","operationId":"simulate_payment_v2_payments__payment_id__simulate_post","parameters":[{"name":"payment_id","in":"path","required":true,"schema":{"type":"string","maxLength":32,"title":"Payment Id"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaymentV2"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"bearer":[]}]}}},"components":{"schemas":{"AccountV2":{"properties":{"partner_id":{"type":"integer","title":"Partner Id"},"name":{"type":"string","title":"Name"},"status":{"type":"string","title":"Status"},"markup_percent":{"type":"string","title":"Markup Percent","description":"Наценка перепродажи, процент","examples":["12.50"]},"balance":{"$ref":"#/components/schemas/Balance"},"rate_limit":{"$ref":"#/components/schemas/RateLimitInfo"},"sandbox":{"type":"boolean","title":"Sandbox","description":"true — ключ песочницы, баланс игровой","default":false}},"type":"object","required":["partner_id","name","status","markup_percent","balance","rate_limit"],"title":"AccountV2"},"ApiV2OrderStatus":{"type":"string","enum":["pending","completed","partial","failed","refunded"],"title":"ApiV2OrderStatus"},"Balance":{"properties":{"available":{"type":"string","title":"Available","examples":["12.50"]},"reserved":{"type":"string","title":"Reserved","examples":["12.50"]},"currency":{"type":"string","title":"Currency","default":"USD"}},"type":"object","required":["available","reserved"],"title":"Balance"},"DeliveryListV2":{"properties":{"items":{"items":{"$ref":"#/components/schemas/DeliveryV2"},"type":"array","title":"Items"},"next_cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next Cursor"}},"type":"object","required":["items"],"title":"DeliveryListV2"},"DeliveryV2":{"properties":{"event_id":{"type":"string","title":"Event Id"},"event":{"type":"string","title":"Event"},"status":{"type":"string","title":"Status"},"attempts":{"type":"integer","title":"Attempts"},"last_http_status":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Last Http Status"},"last_error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Error"},"next_attempt_at":{"anyOf":[{"type":"string","examples":["2027-11-16T09:20:00Z"]},{"type":"null"}],"title":"Next Attempt At"},"delivered_at":{"anyOf":[{"type":"string","examples":["2027-11-16T09:20:00Z"]},{"type":"null"}],"title":"Delivered At"},"created_at":{"anyOf":[{"type":"string","examples":["2027-11-16T09:20:00Z"]},{"type":"null"}],"title":"Created At"}},"type":"object","required":["event_id","event","status","attempts"],"title":"DeliveryV2"},"DnsListV2":{"properties":{"domain":{"type":"string","title":"Domain"},"records":{"items":{"$ref":"#/components/schemas/DnsRecordV2"},"type":"array","title":"Records"}},"type":"object","required":["domain","records"],"title":"DnsListV2"},"DnsRecordV2":{"properties":{"type":{"type":"string","enum":["a","aaaa","cname","mx","txt","ns","srv","caa","forward"],"title":"Type"},"host":{"type":"string","maxLength":253,"title":"Host","description":"Пусто — корень домена","default":""},"value":{"type":"string","maxLength":4096,"minLength":1,"title":"Value"},"mx_priority":{"anyOf":[{"type":"integer","maximum":65535.0,"minimum":0.0},{"type":"null"}],"title":"Mx Priority"},"redirect_code":{"type":"integer","title":"Redirect Code","default":301}},"type":"object","required":["type","value"],"title":"DnsRecordV2"},"DnsReplaceV2":{"properties":{"records":{"items":{"$ref":"#/components/schemas/DnsRecordV2"},"type":"array","maxItems":100,"title":"Records"}},"type":"object","required":["records"],"title":"DnsReplaceV2"},"DnsTemplateV2":{"properties":{"template":{"type":"string","enum":["vercel","github_pages","google_workspace","redirect"],"title":"Template"},"params":{"additionalProperties":{"type":"string"},"type":"object","title":"Params"}},"type":"object","required":["template"],"title":"DnsTemplateV2"},"DomainListV2":{"properties":{"items":{"items":{"$ref":"#/components/schemas/DomainV2"},"type":"array","title":"Items"},"count":{"type":"integer","title":"Count","description":"Сколько доменов под фильтр всего"},"next_cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next Cursor"}},"type":"object","required":["items","count"],"title":"DomainListV2"},"DomainPatch":{"properties":{"customer_ref":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"Customer Ref"},"labels":{"anyOf":[{"items":{"type":"string"},"type":"array","maxItems":10},{"type":"null"}],"title":"Labels"}},"type":"object","title":"DomainPatch"},"DomainV2":{"properties":{"domain":{"type":"string","title":"Domain"},"zone":{"type":"string","title":"Zone"},"status":{"type":"string","enum":["active","expiring","expired"],"title":"Status","description":"active; expiring — меньше 30 дней до конца срока; expired — срок вышел"},"actions":{"items":{"type":"string"},"type":"array","title":"Actions","description":"Что можно сделать с доменом сейчас"},"registered_at":{"anyOf":[{"type":"string","examples":["2027-11-16T09:20:00Z"]},{"type":"null"}],"title":"Registered At"},"expires_at":{"anyOf":[{"type":"string","examples":["2027-11-16T09:20:00Z"]},{"type":"null"}],"title":"Expires At"},"nameservers":{"items":{"type":"string"},"type":"array","title":"Nameservers"},"customer_ref":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Customer Ref"},"labels":{"items":{"type":"string"},"type":"array","title":"Labels"},"sandbox":{"type":"boolean","title":"Sandbox","default":false}},"type":"object","required":["domain","zone","status","actions"],"title":"DomainV2"},"GlueHostIn":{"properties":{"host":{"type":"string","maxLength":253,"minLength":1,"title":"Host","description":"ns1 или ns1.<домен>"},"ips":{"items":{"type":"string"},"type":"array","maxItems":4,"minItems":1,"title":"Ips"}},"type":"object","required":["host","ips"],"title":"GlueHostIn"},"GlueHostV2":{"properties":{"host":{"type":"string","title":"Host"},"ips":{"items":{"type":"string"},"type":"array","title":"Ips"}},"type":"object","required":["host","ips"],"title":"GlueHostV2"},"GlueIpsIn":{"properties":{"ips":{"items":{"type":"string"},"type":"array","maxItems":4,"minItems":1,"title":"Ips"}},"type":"object","required":["ips"],"title":"GlueIpsIn"},"GlueListV2":{"properties":{"domain":{"type":"string","title":"Domain"},"hosts":{"items":{"$ref":"#/components/schemas/GlueHostV2"},"type":"array","title":"Hosts"}},"type":"object","required":["domain","hosts"],"title":"GlueListV2"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"HealthV2":{"properties":{"status":{"type":"string","title":"Status","default":"ok"},"time":{"type":"string","title":"Time","examples":["2027-11-16T09:20:00Z"]}},"type":"object","required":["time"],"title":"HealthV2"},"ItemError":{"properties":{"code":{"type":"string","title":"Code"},"message":{"type":"string","title":"Message"}},"type":"object","required":["code","message"],"title":"ItemError"},"KeyCreateV2":{"properties":{"scope":{"type":"string","enum":["read","dns","full"],"title":"Scope","default":"read"},"label":{"type":"string","maxLength":64,"title":"Label","default":""},"ip_whitelist":{"items":{"type":"string"},"type":"array","maxItems":50,"title":"Ip Whitelist"}},"type":"object","title":"KeyCreateV2"},"KeyListV2":{"properties":{"items":{"items":{"$ref":"#/components/schemas/KeyV2"},"type":"array","title":"Items"}},"type":"object","required":["items"],"title":"KeyListV2"},"KeyV2":{"properties":{"prefix":{"type":"string","title":"Prefix"},"scope":{"type":"string","title":"Scope"},"label":{"type":"string","title":"Label"},"test":{"type":"boolean","title":"Test"},"ip_whitelist":{"items":{"type":"string"},"type":"array","title":"Ip Whitelist"},"created_at":{"anyOf":[{"type":"string","examples":["2027-11-16T09:20:00Z"]},{"type":"null"}],"title":"Created At"},"last_used_at":{"anyOf":[{"type":"string","examples":["2027-11-16T09:20:00Z"]},{"type":"null"}],"title":"Last Used At"},"key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Key","description":"Только в ответе на создание"}},"type":"object","required":["prefix","scope","label","test"],"title":"KeyV2"},"NameserversBatchIn":{"properties":{"items":{"items":{"$ref":"#/components/schemas/NameserversBatchItem"},"type":"array","maxItems":50,"minItems":1,"title":"Items"}},"type":"object","required":["items"],"title":"NameserversBatchIn"},"NameserversBatchItem":{"properties":{"domain":{"type":"string","maxLength":253,"minLength":3,"title":"Domain"},"nameservers":{"items":{"type":"string"},"type":"array","maxItems":13,"minItems":2,"title":"Nameservers"}},"type":"object","required":["domain","nameservers"],"title":"NameserversBatchItem"},"NameserversBatchOut":{"properties":{"items":{"items":{"$ref":"#/components/schemas/NameserversOut"},"type":"array","title":"Items"}},"type":"object","required":["items"],"title":"NameserversBatchOut"},"NameserversIn":{"properties":{"nameservers":{"items":{"type":"string"},"type":"array","maxItems":13,"minItems":2,"title":"Nameservers"}},"type":"object","required":["nameservers"],"title":"NameserversIn"},"NameserversOut":{"properties":{"domain":{"type":"string","title":"Domain"},"nameservers":{"items":{"type":"string"},"type":"array","title":"Nameservers"},"error":{"anyOf":[{"$ref":"#/components/schemas/ItemError"},{"type":"null"}]}},"type":"object","required":["domain","nameservers"],"title":"NameserversOut"},"OrderItemIn":{"properties":{"action":{"type":"string","enum":["register","renew","transfer_out"],"title":"Action"},"domain":{"type":"string","maxLength":253,"minLength":3,"title":"Domain"},"years":{"type":"integer","maximum":10.0,"minimum":1.0,"title":"Years","default":1}},"type":"object","required":["action","domain"],"title":"OrderItemIn"},"OrderItemOut":{"properties":{"action":{"type":"string","title":"Action"},"domain":{"type":"string","title":"Domain"},"years":{"type":"integer","title":"Years"},"status":{"type":"string","title":"Status"},"price":{"type":"string","title":"Price","examples":["12.50"]},"markup":{"type":"string","title":"Markup","examples":["12.50"]},"total":{"type":"string","title":"Total","examples":["12.50"]},"expires_at":{"anyOf":[{"type":"string","examples":["2027-11-16T09:20:00Z"]},{"type":"null"}],"title":"Expires At"},"error":{"anyOf":[{"$ref":"#/components/schemas/ItemError"},{"type":"null"}]}},"type":"object","required":["action","domain","years","status","price","markup","total"],"title":"OrderItemOut"},"OrderListOut":{"properties":{"items":{"items":{"$ref":"#/components/schemas/OrderOut"},"type":"array","title":"Items"},"next_cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next Cursor"}},"type":"object","required":["items"],"title":"OrderListOut"},"OrderOut":{"properties":{"id":{"type":"string","title":"Id"},"status":{"type":"string","title":"Status"},"quote_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Quote Id"},"customer_ref":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Customer Ref"},"labels":{"items":{"type":"string"},"type":"array","title":"Labels"},"items":{"items":{"$ref":"#/components/schemas/OrderItemOut"},"type":"array","title":"Items"},"total":{"type":"string","title":"Total","examples":["12.50"]},"sandbox":{"type":"boolean","title":"Sandbox","description":"true — игровой заказ песочницы","default":false},"created_at":{"anyOf":[{"type":"string","examples":["2027-11-16T09:20:00Z"]},{"type":"null"}],"title":"Created At"},"updated_at":{"anyOf":[{"type":"string","examples":["2027-11-16T09:20:00Z"]},{"type":"null"}],"title":"Updated At"}},"type":"object","required":["id","status","items","total"],"title":"OrderOut"},"OrderRequest":{"properties":{"quote_id":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}],"title":"Quote Id"},"items":{"anyOf":[{"items":{"$ref":"#/components/schemas/OrderItemIn"},"type":"array","maxItems":50,"minItems":1},{"type":"null"}],"title":"Items"},"customer_ref":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"Customer Ref"},"labels":{"items":{"type":"string"},"type":"array","maxItems":10,"title":"Labels"},"nameservers":{"anyOf":[{"items":{"type":"string"},"type":"array","maxItems":13,"minItems":2},{"type":"null"}],"title":"Nameservers"}},"type":"object","title":"OrderRequest"},"PaymentIn":{"properties":{"amount":{"type":"string","title":"Amount","description":"Цена в USDT, до центов: от 1 до 100000","examples":["25.00"]},"network":{"anyOf":[{"type":"string","enum":["trc20","bep20"]},{"type":"null"}],"title":"Network","description":"Сеть. Не задана, а кошельков два — её выберет клиент на странице оплаты"},"order_id":{"type":"string","maxLength":128,"title":"Order Id","description":"Ваш номер заказа — вернётся в вебхуке","default":""},"description":{"type":"string","maxLength":200,"title":"Description","description":"Что оплачивают — видно клиенту","default":""},"return_url":{"type":"string","maxLength":500,"title":"Return Url","description":"https-адрес «Вернуться в магазин»","default":""},"lifetime_minutes":{"anyOf":[{"type":"integer","maximum":180.0,"minimum":10.0},{"type":"null"}],"title":"Lifetime Minutes","description":"Срок счёта, 10–180 минут"}},"type":"object","required":["amount"],"title":"PaymentIn"},"PaymentListV2":{"properties":{"items":{"items":{"$ref":"#/components/schemas/PaymentV2"},"type":"array","title":"Items"}},"type":"object","required":["items"],"title":"PaymentListV2"},"PaymentV2":{"properties":{"id":{"type":"string","title":"Id"},"status":{"type":"string","enum":["pending","paid","expired","cancelled"],"title":"Status"},"network":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Network","description":"Сеть; null — клиент выберет её на странице оплаты"},"currency":{"type":"string","title":"Currency","default":"USDT"},"wallet":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Wallet","description":"Ваш кошелёк — сюда платит клиент; null до выбора сети"},"price":{"type":"string","title":"Price","description":"Ваша цена"},"surcharge":{"type":"string","title":"Surcharge","description":"Ваша надбавка для клиента из кабинета"},"pay_amount":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pay Amount","description":"Ровно столько клиент переводит: цена + надбавка + уникальные центы; null до выбора сети"},"pay_url":{"type":"string","title":"Pay Url","description":"Страница оплаты для клиента"},"order_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Order Id"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"return_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Return Url"},"created_at":{"anyOf":[{"type":"string","examples":["2027-11-16T09:20:00Z"]},{"type":"null"}],"title":"Created At"},"expires_at":{"anyOf":[{"type":"string","examples":["2027-11-16T09:20:00Z"]},{"type":"null"}],"title":"Expires At"},"paid_at":{"anyOf":[{"type":"string","examples":["2027-11-16T09:20:00Z"]},{"type":"null"}],"title":"Paid At"},"tx_hash":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tx Hash"},"payer":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Payer"},"sandbox":{"type":"boolean","title":"Sandbox","default":false}},"type":"object","required":["id","status","network","wallet","price","surcharge","pay_amount","pay_url"],"title":"PaymentV2"},"Price":{"properties":{"price":{"type":"string","title":"Price","description":"Наша цена — то, что остаётся у нас","examples":["12.50"]},"markup":{"type":"string","title":"Markup","description":"Ваша наценка из кабинета","examples":["12.50"]},"total":{"type":"string","title":"Total","description":"Списывается с баланса = price + markup","examples":["12.50"]}},"type":"object","required":["price","markup","total"],"title":"Price","description":"Цена одной позиции: наша цена, наценка партнёра и итог к списанию."},"QuoteItemIn":{"properties":{"action":{"type":"string","enum":["register","renew"],"title":"Action"},"domain":{"type":"string","maxLength":253,"minLength":3,"title":"Domain"},"years":{"type":"integer","maximum":10.0,"minimum":1.0,"title":"Years","default":1}},"type":"object","required":["action","domain"],"title":"QuoteItemIn"},"QuoteItemOut":{"properties":{"action":{"type":"string","title":"Action"},"domain":{"type":"string","title":"Domain"},"years":{"type":"integer","title":"Years"},"price":{"type":"string","title":"Price","examples":["12.50"]},"markup":{"type":"string","title":"Markup","examples":["12.50"]},"total":{"type":"string","title":"Total","examples":["12.50"]}},"type":"object","required":["action","domain","years","price","markup","total"],"title":"QuoteItemOut"},"QuoteOut":{"properties":{"id":{"type":"string","title":"Id"},"expires_at":{"type":"string","title":"Expires At","examples":["2027-11-16T09:20:00Z"]},"items":{"items":{"$ref":"#/components/schemas/QuoteItemOut"},"type":"array","title":"Items"},"total":{"type":"string","title":"Total","examples":["12.50"]}},"type":"object","required":["id","expires_at","items","total"],"title":"QuoteOut"},"QuoteRequest":{"properties":{"items":{"items":{"$ref":"#/components/schemas/QuoteItemIn"},"type":"array","maxItems":50,"minItems":1,"title":"Items"}},"type":"object","required":["items"],"title":"QuoteRequest"},"RateLimitInfo":{"properties":{"per_second":{"type":"integer","title":"Per Second"}},"type":"object","required":["per_second"],"title":"RateLimitInfo"},"SandboxResetOut":{"properties":{"balance":{"$ref":"#/components/schemas/Balance"},"domains_deleted":{"type":"integer","title":"Domains Deleted"},"orders_deleted":{"type":"integer","title":"Orders Deleted"}},"type":"object","required":["balance","domains_deleted","orders_deleted"],"title":"SandboxResetOut"},"SearchItemV2":{"properties":{"domain":{"type":"string","title":"Domain"},"available":{"type":"boolean","title":"Available"},"premium":{"type":"boolean","title":"Premium","default":false},"register":{"anyOf":[{"$ref":"#/components/schemas/Price"},{"type":"null"}]},"renew":{"anyOf":[{"$ref":"#/components/schemas/Price"},{"type":"null"}]},"error":{"anyOf":[{"$ref":"#/components/schemas/ItemError"},{"type":"null"}]}},"type":"object","required":["domain","available"],"title":"SearchItemV2"},"SearchOutV2":{"properties":{"items":{"items":{"$ref":"#/components/schemas/SearchItemV2"},"type":"array","title":"Items"}},"type":"object","required":["items"],"title":"SearchOutV2"},"SearchRequest":{"properties":{"names":{"items":{"type":"string"},"type":"array","maxItems":100,"minItems":1,"title":"Names"}},"type":"object","required":["names"],"title":"SearchRequest"},"TopupIn":{"properties":{"amount":{"anyOf":[{"type":"number"},{"type":"string"}],"type":"string","title":"Amount","description":"Сколько зачислить на баланс API, $1–$10000","examples":["12.50"]},"method":{"type":"string","enum":["cryptobot","xrocket","usdt_trc20","usdt_bep20"],"title":"Method"}},"type":"object","required":["amount","method"],"title":"TopupIn"},"TopupV2":{"properties":{"id":{"type":"string","title":"Id"},"amount":{"type":"string","title":"Amount","examples":["12.50"]},"method":{"type":"string","title":"Method"},"status":{"type":"string","enum":["awaiting_payment","processing","credited","on_personal_balance","expired"],"title":"Status"},"pay_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pay Url","description":"Ссылка оплаты (CryptoBot, xRocket)"},"pay_address":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pay Address","description":"Кошелёк USDT"},"pay_amount":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pay Amount","description":"Сумма USDT ровно до центов"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"},"sandbox":{"type":"boolean","title":"Sandbox","default":false}},"type":"object","required":["id","amount","method","status"],"title":"TopupV2"},"TransactionListV2":{"properties":{"items":{"items":{"$ref":"#/components/schemas/TransactionV2"},"type":"array","title":"Items"},"next_cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next Cursor"}},"type":"object","required":["items"],"title":"TransactionListV2"},"TransactionV2":{"properties":{"id":{"type":"string","title":"Id"},"type":{"type":"string","title":"Type"},"amount":{"type":"string","title":"Amount","description":"Со знаком: + пришло на баланс, − ушло","examples":["12.50"]},"available_after":{"type":"string","title":"Available After","examples":["12.50"]},"reserved_after":{"type":"string","title":"Reserved After","examples":["12.50"]},"note":{"type":"string","title":"Note","default":""},"created_at":{"anyOf":[{"type":"string","examples":["2027-11-16T09:20:00Z"]},{"type":"null"}],"title":"Created At"}},"type":"object","required":["id","type","amount","available_after","reserved_after"],"title":"TransactionV2"},"TransferRequestIn":{"properties":{"comment":{"type":"string","maxLength":1000,"title":"Comment","description":"Куда переносите и кому передать код — владелец прочтёт это","default":""}},"type":"object","title":"TransferRequestIn"},"TransferRequestListV2":{"properties":{"items":{"items":{"$ref":"#/components/schemas/TransferRequestV2"},"type":"array","title":"Items"}},"type":"object","required":["items"],"title":"TransferRequestListV2"},"TransferRequestV2":{"properties":{"id":{"type":"string","title":"Id"},"domain":{"type":"string","title":"Domain"},"status":{"type":"string","enum":["open","done","refused","cancelled"],"title":"Status"},"comment":{"type":"string","title":"Comment","default":""},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"},"sandbox":{"type":"boolean","title":"Sandbox","default":false},"created_at":{"anyOf":[{"type":"string","examples":["2027-11-16T09:20:00Z"]},{"type":"null"}],"title":"Created At"},"decided_at":{"anyOf":[{"type":"string","examples":["2027-11-16T09:20:00Z"]},{"type":"null"}],"title":"Decided At"}},"type":"object","required":["id","domain","status"],"title":"TransferRequestV2"},"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"},"WebhookCreateV2":{"properties":{"url":{"type":"string","maxLength":1024,"minLength":8,"title":"Url"},"events":{"items":{"type":"string","enum":["order.completed","order.failed","domain.registered","domain.failed","domain.renewed","domain.expiring","domain.expired","domain.abuse_flagged","dns.changed","balance.low","balance.credited","transfer.updated"]},"type":"array","maxItems":20,"title":"Events","description":"Пусто — все события"},"label":{"type":"string","maxLength":64,"title":"Label","default":""}},"type":"object","required":["url"],"title":"WebhookCreateV2"},"WebhookListV2":{"properties":{"items":{"items":{"$ref":"#/components/schemas/WebhookV2"},"type":"array","title":"Items"}},"type":"object","required":["items"],"title":"WebhookListV2"},"WebhookV2":{"properties":{"id":{"type":"integer","title":"Id"},"url":{"type":"string","title":"Url"},"events":{"items":{"type":"string"},"type":"array","title":"Events"},"label":{"type":"string","title":"Label"},"active":{"type":"boolean","title":"Active"},"api_version":{"type":"string","title":"Api Version"},"created_at":{"anyOf":[{"type":"string","examples":["2027-11-16T09:20:00Z"]},{"type":"null"}],"title":"Created At"},"secret":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Secret","description":"Только в ответе на создание"}},"type":"object","required":["id","url","events","label","active","api_version"],"title":"WebhookV2"},"ZoneV2":{"properties":{"zone":{"type":"string","title":"Zone"},"register":{"$ref":"#/components/schemas/Price"},"renew":{"anyOf":[{"$ref":"#/components/schemas/Price"},{"type":"null"}]}},"type":"object","required":["zone"],"title":"ZoneV2"},"ZonesV2":{"properties":{"items":{"items":{"$ref":"#/components/schemas/ZoneV2"},"type":"array","title":"Items"},"count":{"type":"integer","title":"Count"}},"type":"object","required":["items","count"],"title":"ZonesV2"}},"securitySchemes":{"bearer":{"type":"http","scheme":"bearer","description":"Ключ `regex_live_…` или песочницы `regex_test_…`"}}}}