---
title: "Platform operators: the price rule of a TLD (fixed prices or Dynadot + margin; automatic or by hand; sold or not)"
method: PUT
path: "/operator/domain-registrar/tlds/{tld}"
tags: ["Operator"]
---

# Platform operators: the price rule of a TLD (fixed prices or Dynadot + margin; automatic or by hand; sold or not)

`PUT /operator/domain-registrar/tlds/{tld}`

## Request

- Base URL: `https://hostingsurge.com/api/v1`
- URL: `https://hostingsurge.com/api/v1/operator/domain-registrar/tlds/{tld}`
- Auth: one of:
  - HTTP bearer
  - API key in cookie `__Host-hs_session`

## Path parameters

- `tld` string, required: A TLD such as se or co.uk, or *

## Request body

- object
  - `enabled` boolean, required
  - `fulfillment` 'auto' | 'manual', required
  - `currency` string, required: lowercase ISO 4217 code, e.g. usd or sek
  - `registerPrice` integer, nullable: integer minor units of `currency` (cents, öre)
  - `renewPrice` integer, nullable: integer minor units of `currency` (cents, öre)
  - `marginPercent` number, nullable
  - `marginFixed` integer, nullable: integer minor units of `currency` (cents, öre)
  - `whoisPrivacy` boolean
  - `note` string, nullable
  - `reason` string, required: why (shown in the operator audit log)

## Response `200`

Saved

- object
  - `dynadot` object, required
    - `keySet` boolean, required
    - `setAt` string, nullable, required: ISO-8601 timestamp
    - `setByEmail` string, nullable, required
    - `testedAt` string, nullable, required: ISO-8601 timestamp
    - `testOk` boolean, nullable, required
    - `testDetail` string, nullable, required: the last test's result in short words
    - `balance` object[], nullable, required: the account balance from the last successful test
      - `amount` integer, required: integer minor units of `currency` (cents, öre)
      - `currency` string, required: lowercase ISO 4217 code, e.g. usd or sek
  - `keyringConfigured` boolean, required: the platform key (ENCRYPTION_KEY) that seals stored keys is set
  - `paymentMode` 'stripe' | 'manual', required: stripe: paid with the team's card or a payment link; manual: no online payment on this server: our team is told about every order, contacts the team with the payment details and confirms the payment
  - `egressIp` string, nullable, required: the address Dynadot sees: whitelist it under Tools → API at Dynadot
  - `tlds` object[], required
    - `tld` string, required: a TLD such as se or co.uk, or * for every TLD without a rule of its own
    - `enabled` boolean, required
    - `fulfillment` 'auto' | 'manual', required
    - `currency` string, required: lowercase ISO 4217 code, e.g. usd or sek
    - `registerPrice` integer, nullable, required: integer minor units of `currency` (cents, öre)
    - `renewPrice` integer, nullable, required: integer minor units of `currency` (cents, öre)
    - `marginPercent` number, nullable, required
    - `marginFixed` integer, nullable, required: integer minor units of `currency` (cents, öre)
    - `whoisPrivacy` boolean, required
    - `note` string, nullable, required
    - `source` 'operator' | 'default', required: default: the built-in rule (no rule set in the console)
    - `updatedAt` string, nullable, required: ISO-8601 timestamp
    - `updatedByEmail` string, nullable, required

## Other responses

- `400`: Invalid request (code invalid_request); details.reason says what to fix
- `401`: Missing or invalid session/token (code unauthorized)
- `403`: Authenticated but not permitted (code forbidden); operator writes may need a fresh session (details.reauthenticate)
- `404`: Not found or not visible to the caller (code not_found)
- `409`: Conflicting state (code conflict): details.reason taken, premium, owned, pending_order, price_changed, dns_changed (reload the records), dns_busy, dns_not_here, conflicting_records (details.records), …
- `429`: Too many searches or DNS requests (code rate_limited); see Retry-After
- `501`: Not set up on this server (code not_configured), e.g. no registrar key yet
- `503`: The registrar did not answer (code provider_unavailable)

---

[API](https://skmtc.dev/hostingsurge/apis/hostingsurge-platform-api.md) · [All operations](https://skmtc.dev/hostingsurge/apis/hostingsurge-platform-api/llms.txt) · [OpenAPI document](https://skmtc.dev/hostingsurge/apis/hostingsurge-platform-api/revisions/4d08337cdff1?raw)
