## GET /api/v2/products/domains/{tld}

**Get TLD pricing and registry requirements**

Return current pricing, orderable periods, configurable options, and server-derived registry requirements for one TLD. Start with `GET /api/v2/products/domains`, then call this endpoint for the selected `tlds[].tld` value. Call this before `POST /api/v2/orders` when building a registration or transfer payload. Use `registryRequirements.registration[]` for `action: register`, `registryRequirements.transfer[]` for `action: transfer`, and copy any `acceptedTermsKey` values into the domain item `acceptedTerms[]` array. Only the `domainPricing[].years` entries returned here are supported for multi-year orders or renewal cost displays; unsupported periods are omitted, not represented by a generated range.

### Related Endpoints

- `GET /api/v2/domains/availability`: Check domain availability
- `POST /api/v2/domains/availability`: Check bulk domain availability
- `POST /api/v2/orders/preview`: Preview an order

### Headers

- `Accept`: application/json
- No authorization header required.

### Parameters

- `tld` (path, string, required): TLD suffix from `GET /api/v2/products/domains` `tlds[].tld`. The route accepts `se` or `.se`; examples use `se` because path segments normally omit the dot. Example: `fi`
- `locale` (query, string): Optional locale for configurable-option labels when the upstream catalog provides localized labels. Example: `en`

### Request Example

```bash
curl -X GET "https://cloud.hostup.se/api/v2/products/domains/fi" \
  -H "Accept: application/json"
```

### Response Schema

- `tld` (string, optional): Canonical TLD suffix with a leading dot. Example: `.se`
- `register` (null, optional): One-year new-registration price. `null` means this action is not currently priced for the TLD.
- `transfer` (null, optional): One-year inbound transfer price. `0` means free; `null` means not configured.
- `renew` (null, optional): One-year renewal price for existing domains using this TLD.
- `redemption` (null, optional): One-year redemption or restore-from-expired price when configured.
- `billing` (object, optional): Canonical billing summary for the one-year registration price. Use `domainPricing[]` for multi-year pricing.
- `billing.amount` (number, required) Example: `199`
- `billing.currencyCode` (string, required) Example: `SEK`
- `billing.billingCycle` (string,null, required): Canonical billing cycle. VPS services with `isPayg: true` still report `monthly` for summary display; use `isPayg` to distinguish PAYG Cloud VPS from fixed-cycle VPS. Example: `annually`
  Allowed values: monthly, quarterly, semiannually, annually, biennially, triennially, free, 
- `billing.isPayg` (boolean, required): For VPS service/order billing, true means pay-as-you-go Cloud VPS and false means fixed-cycle/prepaid VPS. Non-VPS resources normally return false. Example: `false`
- `billing.periodYears` (integer,null, optional) Example: `1`
- `domainPricing` (array<object>, optional): Per-year pricing matrix from the source catalog. Only years present in this array are orderable; unsupported periods are omitted.
- `domainPricing[].years` (integer, required): Registration, transfer, or renewal period in years for this pricing row. Example: `1`
- `domainPricing[].register` (null, optional)
- `domainPricing[].transfer` (null, optional)
- `domainPricing[].renew` (null, optional)
- `domainPricing[].redemption` (null, optional)
- `configurableOptions` (array<object>, optional): Low-level configurable option metadata for registry-required domain fields. Prefer `registryRequirements` for order-building decisions.
- `registryRequirements` (object, optional): Server-derived, human-readable requirements for registration and transfer payloads. Consumers should not infer TLD rules client-side.
- `registryRequirements.registration` (array<object>, optional): Fields and terms required when `items[].action` is `register`.
- `registryRequirements.registration[].key` (string, required) Example: `eppCode`
  Allowed values: eppCode, phoneNumber, registrationIdentifier, companyRegistrationNumber, birthDate, registrantCountry, registrantType, useDomicile, acceptedTerms, nameservers
- `registryRequirements.registration[].label` (string, required) Example: `Authorization code`
- `registryRequirements.registration[].required` (boolean, required) Example: `true`
- `registryRequirements.registration[].appliesTo` (string, required) Example: `transfer`
  Allowed values: register, transfer, both
- `registryRequirements.registration[].registrantType` (string, required) Example: `any`
  Allowed values: any, private, organisation
- `registryRequirements.registration[].allowedCountryCodes` (array,null, optional) Example: `null`
- `registryRequirements.registration[].allowedRegistrantTypes` (array,null, optional) Example: `null`
- `registryRequirements.registration[].alternativeRequirementKey` (string,null, optional) Example: `null`
- `registryRequirements.registration[].acceptedTermsKey` (string,null, optional) Example: `se_registration_terms`
- `registryRequirements.registration[].reason` (string, required) Example: `An authorization code is required to transfer this domain.`
- `registryRequirements.transfer` (array<object>, optional): Fields, terms, and authorization-code requirements when `items[].action` is `transfer`.
- `registryRequirements.transfer[].key` (string, required) Example: `eppCode`
  Allowed values: eppCode, phoneNumber, registrationIdentifier, companyRegistrationNumber, birthDate, registrantCountry, registrantType, useDomicile, acceptedTerms, nameservers
- `registryRequirements.transfer[].label` (string, required) Example: `Authorization code`
- `registryRequirements.transfer[].required` (boolean, required) Example: `true`
- `registryRequirements.transfer[].appliesTo` (string, required) Example: `transfer`
  Allowed values: register, transfer, both
- `registryRequirements.transfer[].registrantType` (string, required) Example: `any`
  Allowed values: any, private, organisation
- `registryRequirements.transfer[].allowedCountryCodes` (array,null, optional) Example: `null`
- `registryRequirements.transfer[].allowedRegistrantTypes` (array,null, optional) Example: `null`
- `registryRequirements.transfer[].alternativeRequirementKey` (string,null, optional) Example: `null`
- `registryRequirements.transfer[].acceptedTermsKey` (string,null, optional) Example: `se_registration_terms`
- `registryRequirements.transfer[].reason` (string, required) Example: `An authorization code is required to transfer this domain.`
- `registryRequirements.countryEligibility` (object, optional): Registrant-country restrictions for this TLD, when any.
- `registryRequirements.countryEligibility.required` (boolean, optional) Example: `false`
- `registryRequirements.countryEligibility.allowedCountryCodes` (array,null, optional) Example: `null`
- `registryRequirements.countryEligibility.reason` (string,null, optional) Example: `null`
- `availabilityStatus` (string, optional) Example: `available`
  Allowed values: available, out_of_stock, hidden
- `available` (boolean, optional) Example: `true`
- `reason` (string,null, optional) Example: `null`

### Responses

#### 200 - TLD product details.
```json
{
  "tld": ".se",
  "register": {
    "amount": 99,
    "currencyCode": "SEK"
  },
  "transfer": {
    "amount": 0,
    "currencyCode": "SEK"
  },
  "renew": {
    "amount": 169,
    "currencyCode": "SEK"
  },
  "redemption": {
    "amount": 0,
    "currencyCode": "SEK"
  },
  "billing": {
    "amount": 99,
    "currencyCode": "SEK",
    "billingCycle": "annually"
  },
  "domainPricing": [
    {
      "years": 1,
      "register": {
        "amount": 99,
        "currencyCode": "SEK"
      },
      "transfer": {
        "amount": 0,
        "currencyCode": "SEK"
      },
      "renew": {
        "amount": 169,
        "currencyCode": "SEK"
      },
      "redemption": {
        "amount": 0,
        "currencyCode": "SEK"
      }
    },
    {
      "years": 2,
      "register": {
        "amount": 268,
        "currencyCode": "SEK"
      },
      "transfer": null,
      "renew": {
        "amount": 338,
        "currencyCode": "SEK"
      },
      "redemption": {
        "amount": 0,
        "currencyCode": "SEK"
      }
    },
    {
      "years": 3,
      "register": {
        "amount": 437,
        "currencyCode": "SEK"
      },
      "transfer": null,
      "renew": {
        "amount": 507,
        "currencyCode": "SEK"
      },
      "redemption": {
        "amount": 0,
        "currencyCode": "SEK"
      }
    },
    {
      "years": 5,
      "register": {
        "amount": 845,
        "currencyCode": "SEK"
      },
      "transfer": null,
      "renew": {
        "amount": 845,
        "currencyCode": "SEK"
      },
      "redemption": {
        "amount": 0,
        "currencyCode": "SEK"
      }
    }
  ],
  "configurableOptions": [],
  "registryRequirements": {
    "registration": [
      {
        "key": "phoneNumber",
        "label": "Phone number",
        "required": true,
        "appliesTo": "register",
        "registrantType": "any",
        "reason": ".se and .nu domains require a registrant phone number before the order can be submitted.",
        "allowedCountryCodes": null,
        "allowedRegistrantTypes": null,
        "alternativeRequirementKey": null,
        "acceptedTermsKey": null
      },
      {
        "key": "registrationIdentifier",
        "label": "Personal identity number or organization number",
        "required": true,
        "appliesTo": "register",
        "registrantType": "any",
        "reason": ".se and .nu domains require a personal identity number or organization number for the registrant.",
        "allowedCountryCodes": null,
        "allowedRegistrantTypes": null,
        "alternativeRequirementKey": null,
        "acceptedTermsKey": null
      },
      {
        "key": "acceptedTerms",
        "label": ".se registration terms",
        "required": true,
        "appliesTo": "register",
        "registrantType": "any",
        "reason": ".se domain registrations require acceptance of the registry registration terms before the order can be submitted.",
        "allowedCountryCodes": null,
        "allowedRegistrantTypes": null,
        "alternativeRequirementKey": null,
        "acceptedTermsKey": "se_registration_terms"
      }
    ],
    "transfer": [
      {
        "key": "phoneNumber",
        "label": "Phone number",
        "required": true,
        "appliesTo": "transfer",
        "registrantType": "any",
        "reason": ".se and .nu domains require a registrant phone number before the order can be submitted.",
        "allowedCountryCodes": null,
        "allowedRegistrantTypes": null,
        "alternativeRequirementKey": null,
        "acceptedTermsKey": null
      },
      {
        "key": "registrationIdentifier",
        "label": "Personal identity number or organization number",
        "required": true,
        "appliesTo": "transfer",
        "registrantType": "any",
        "reason": ".se and .nu domains require a personal identity number or organization number for the registrant.",
        "allowedCountryCodes": null,
        "allowedRegistrantTypes": null,
        "alternativeRequirementKey": null,
        "acceptedTermsKey": null
      },
      {
        "key": "eppCode",
        "label": "Authorization code",
        "required": true,
        "appliesTo": "transfer",
        "registrantType": "any",
        "reason": "Transfers for this domain extension require an authorization code from the current provider.",
        "allowedCountryCodes": null,
        "allowedRegistrantTypes": null,
        "alternativeRequirementKey": null,
        "acceptedTermsKey": null
      }
    ],
    "countryEligibility": {
      "required": false,
      "allowedCountryCodes": null,
      "reason": null
    }
  },
  "availabilityStatus": "available",
  "available": true,
  "reason": null
}
```

#### 400 - Invalid request. The response body is an RFC 7807 Problem Details document.
```json
{
  "type": "https://developer.hostup.se/errors/invalid_request",
  "title": "Invalid request",
  "status": 400,
  "detail": "The request body failed validation.",
  "code": "invalid_request",
  "instance": "/api/v2/resource",
  "requestId": "req_01hxa3b4c5d6e7f8g9h0j1k2m3",
  "timestamp": "2026-04-27T12:34:56.000Z",
  "errors": [
    {
      "pointer": "/items/0/domainName",
      "detail": "`domainName` is required.",
      "code": "invalid_request"
    }
  ]
}
```

#### 404 - Not found. The resource does not exist or is not owned by the caller.
```json
{
  "type": "https://developer.hostup.se/errors/not_found",
  "title": "Not found",
  "status": 404,
  "detail": "The requested resource could not be found.",
  "code": "not_found",
  "instance": "/api/v2/resource",
  "requestId": "req_01hxa3b4c5d6e7f8g9h0j1k2m3",
  "timestamp": "2026-04-27T12:34:56.000Z"
}
```

#### 429 - Rate limited. Retry after the limit resets. 429 responses include `Retry-After` seconds plus `X-RateLimit-*` headers.
```json
{
  "type": "https://developer.hostup.se/errors/rate_limit_exceeded",
  "title": "Too many requests",
  "status": 429,
  "detail": "Too many requests. Retry after the limit resets.",
  "code": "rate_limit_exceeded",
  "instance": "/api/v2/resource",
  "requestId": "req_01hxa3b4c5d6e7f8g9h0j1k2m3",
  "timestamp": "2026-04-27T12:34:56.000Z"
}
```

#### 500 - Internal error. Retry later or contact support if the issue persists.
```json
{
  "type": "https://developer.hostup.se/errors/internal_error",
  "title": "Internal server error",
  "status": 500,
  "detail": "An unexpected error occurred. Retry later or contact support if the issue persists.",
  "code": "internal_error",
  "instance": "/api/v2/resource",
  "requestId": "req_01hxa3b4c5d6e7f8g9h0j1k2m3",
  "timestamp": "2026-04-27T12:34:56.000Z"
}
```
