{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/porkbun-com/json-schema/porkbun-com-transfer-domain-request-schema.json",
  "title": "TransferDomainRequest",
  "x-generated": "2026-11-21",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/porkbun-com-openapi.json#/components/schemas/TransferDomainRequest",
  "type": "object",
  "required": [
    "secretapikey",
    "apikey",
    "authCode",
    "cost"
  ],
  "properties": {
    "secretapikey": {
      "type": "string",
      "description": "Your API secret key."
    },
    "apikey": {
      "type": "string",
      "description": "Your API key."
    },
    "authCode": {
      "type": "string",
      "description": "The EPP auth code for the domain."
    },
    "cost": {
      "type": "integer",
      "description": "The transfer cost in cents as returned by the pricing API. Must match exactly."
    },
    "holdForDnsSetup": {
      "type": "boolean",
      "description": "Charge the transfer but hold it at `PENDINGDNS` instead of releasing it to the registry, so the DNS zone can be built before the domain moves. This is the no-downtime path: hold, then `POST /domain/prepareTransfer/{domain}`, then load records with `/dns/import/{domain}`, then `POST /domain/startTransfer/{domain}`. Nothing releases a held transfer on a timer. Not available for .uk or Handshake TLDs, which return `TRANSFER_HOLD_NOT_AVAILABLE` and are not charged."
    },
    "payWith": {
      "type": "string",
      "enum": [
        "usdc",
        "card"
      ],
      "description": "Optional. `\"usdc\"` pays for this purchase directly in USDC on Base over x402 instead of from account credit. The first call answers HTTP 402 (`PAYMENT_REQUIRED`) with Coinbase's terms in the `PAYMENT-REQUIRED` header and charges nothing; an x402 client pays and repeats the same request with a `PAYMENT-SIGNATURE` header, and the purchase completes in that call. If it then fails, the payment stays on the account as account credit; it is not sent back to the wallet. If your wallet pays URLs itself instead, pay the 402's `x402Url` (or have a person pay `payUrl`) and repeat the request with `usdcCheckoutId`. See the guide: https://porkbun.com/llms/guides/pay-with-usdc-x402. `\"card\"` pays by card through a Stripe Link agent wallet over MPP instead, with a real hold: the 402 carries a single-use `payUrl` and a `cardPaymentId`; pay the link (it authorizes, not charges), then repeat with `cardPaymentId`; the hold is captured if the purchase succeeds and released if it fails. Guide: https://porkbun.com/llms/guides/pay-with-card-mpp"
    },
    "usdcCheckoutId": {
      "type": "string",
      "description": "With `payWith: \"usdc\"`: the `checkoutId` from an earlier `PAYMENT_REQUIRED`, once its `x402Url` or `payUrl` has been paid. Send it with otherwise the same request; the purchase completes if the checkout is paid and was opened for this purchase."
    },
    "cardPaymentId": {
      "type": "string",
      "description": "With `payWith: \"card\"`: the `cardPaymentId` from an earlier `PAYMENT_REQUIRED`, once its `payUrl` has been paid (the card is then held). Send it with otherwise the same request; the hold is captured if the purchase succeeds and released if not."
    },
    "dryRun": {
      "type": "boolean",
      "description": "Optional. When true, runs all pre-flight validation and returns a preview with `dryRun: true` and `wouldSucceed` WITHOUT initiating the transfer or charging. Nothing changes and the rate-limit budget is not consumed."
    }
  }
}