跳转到主要内容
POST
/
v1
/
public
/
accounts
/
{account_id}
/
domains
/
purchase
购买域名
curl --request POST \
  --url https://api.hybridbox.io/v1/public/accounts/{account_id}/domains/purchase \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "contact_info": {
    "address_1": "<string>",
    "city": "<string>",
    "country": "<string>",
    "email": "jsmith@example.com",
    "first_name": "<string>",
    "last_name": "<string>",
    "organization": "<string>",
    "phone": "<string>",
    "state": "<string>",
    "zip": "<string>"
  },
  "domains": [
    "<string>"
  ],
  "workspace_id": "<string>"
}
'
{
  "results": [
    {
      "domain_name": "<string>",
      "status": "<string>",
      "error": "<string>",
      "error_code": "<string>",
      "id": "<string>"
    }
  ],
  "currency": "<string>",
  "estimated_total": "<string>",
  "failed_count": 0,
  "payment_url": "<string>",
  "purchase_batch_id": "<string>",
  "successful_count": 0
}

Documentation Index

Fetch the complete documentation index at: https://docs.hybridbox.io/llms.txt

Use this file to discover all available pages before exploring further.

授权

Authorization
string
header
必填

Public API bearer credential sent as Authorization: Bearer <token>. Use either an OAuth access token or a Hybridbox Service account token.

路径参数

account_id
string<uuid>
必填

请求体

application/json

用于购买一个或多个域名的架构。

contact_info
ContactInfo · object
必填

域名注册人联系信息架构。

domains
string[]
必填
Minimum array length: 1
workspace_id
string<uuid4>
必填

响应

results
DomainPurchaseResult · object[]
必填
currency
string | null
estimated_total
string | null
failed_count
integer
默认值:0
payment_url
string | null
purchase_batch_id
string | null
successful_count
integer
默认值:0