GoDaddy REST APIs return a consistent error envelope. Every error response includes a stable code field for programmatic handling, and optionally field-level validation details. This page covers the response shape, status code semantics, and retry guidance for GoDaddy REST APIs — including the Domains, Auctions, and Hosting APIs.
Shopping API uses a different error model
The Shopping API does not follow this standard error model. Go to Shopping API error responses for its behavior.
{ "code": "INVALID_BODY", "message": "Request body did not match the expected schema.", "fields": [ { "path": "contactRegistrant.email", "code": "INVALID_FORMAT", "message": "Value must be a valid email address." } ]}
Field
Required
Description
code
Yes
Stable, machine-readable error code. Match on this for programmatic handling.
message
No
Human-readable message. It might change between releases.
fields[]
No
Per-field validation details when the error is body- or query-scoped. Each entry has its own path (JSONPath into the request), code, and message.
ErrorLimit extends Error with one additional field for rate-limit (429) responses:
Field
Required
Description
retryAfterSec
Yes
Seconds the caller should wait before retrying the same operation. Mirrored in the Retry-After response header.
The Email API's Error schema uses different field names than the code/message/fields[] envelope above:
{ "name": "INVALID_INPUT", "correlationId": "req-abc-123", "message": "The provided request is invalid.", "details": [ { "field": "/emailAddress", "issue": "PATTERN_VIOLATION", "location": "body", "description": "Email address must be a valid address on a domain owned by the authenticated account." } ]}
Field
Required
Description
name
Yes
Stable, machine-readable name of the error. Match on this for programmatic handling.
correlationId
Yes
Identifier for correlating the error with server-side logs.
message
Yes
Human-readable message. May change between releases.
details[]
No
Per-field validation details for client-side 4xx errors. Each entry has an issue code and may include field, value, location, and description.
Email's 429 response doesn't include a retryAfterSec field — check the Retry-After response header instead.
On v2 endpoints, a 403 might mean the customerId path parameter contains the wrong identifier type.
The customerId path parameter is a UUID. It isn't the numeric shopperId that your GoDaddy account settings display, and passing the shopperId where a customerId belongs returns 403.
GET /v1/shoppers/{shopperId} returns the UUID when you ask for it through the includes query parameter. The following procedure retrieves it.
The UUID doesn't change for the life of the account. Resolve it once and store it instead of looking it up per request. Go to Shoppers for the full operation reference.
The following sections describe the retry semantics for read and write operations using Domains API endpoints. The same retry semantics apply across GoDaddy REST APIs. Endpoint paths will vary by API.
Most Domains writes can be retried after a 5xx, but the Domains API doesn't support an Idempotency-Key request header — neither v1 nor v2 specs declare one. This affects retry strategy on a few specific operations:
Operation
Retry-safe?
POST /v1/domains/purchase
Not idempotent without external coordination. A retry can result in a duplicate registration if the first attempt actually succeeded server-side. Pair every retry with a fresh GET /v1/domains/available and a state check via GET /v1/domains/{domain}.
POST /v1/domains/{domain}/renew
Idempotent within a billing cycle in practice — the registry rejects duplicates — but treat the same as purchase: confirm state before retrying.
POST /v1/domains/{domain}/transfer
Same as purchase.
PUT /v1/domains/{domain}/records (replace)
Idempotent by shape — replaying the same request produces the same record set.
PATCH /v1/domains/{domain}/records (add)
Not idempotent — repeated calls add duplicate records.
DELETE /v1/domains/{domain}/records/{type}/{name}
Idempotent — deleting an already-deleted record is a no-op.
Operation
Retry-safe?
POST /v1/email/mailboxes
Idempotent, unlike the Domains operations above. This operation requires an Idempotency-Key header. Retrying with the same key returns the original response instead of creating a duplicate mailbox. Go to Provision a mailbox.
The Hosting API returns 202 Accepted for most write operations. The caller must poll a status endpoint until the operation reaches a terminal state. Retry semantics differ from synchronous writes:
Operation
Idempotent?
Terminal states
Retry guidance
POST /v1/hosting/apps?appType=NODEJS
No. Each call creates a new app.
COMPLETED, FAILED
On 5xx or network failure, check GET /apps before retrying. A partial success might have provisioned the app.
POST /apps/{appId}/imports
Yes — each upload overwrites the preview variant
COMPLETED, FAILED
Safe to retry. The latest upload always wins.
POST /apps/{appId}/deployments
Yes within the same source — republishing the same preview is a no-op
COMPLETED, FAILED
Safe to retry. If status stays FAILED, fetch build logs before retrying.
WordPress sites (appType=MHWP) add the following write operations:
Operation
Idempotent?
Terminal states
Retry guidance
POST /v1/hosting/apps?appType=MHWP
Yes, with an Idempotency-Key header (a UUID). Without one, each call creates a new site.
COMPLETED, FAILED
Retry with the same key and body to get the original operation back, for up to 24 hours after it ends. Without a key, check GET /v1/hosting/apps?appType=MHWP before retrying.
PUT /v1/hosting/apps/{appId}/publish-state
Yes, by nature. It takes no Idempotency-Key.
COMPLETED, FAILED
Safe to retry. A request for the state the site already has returns an operation that's already COMPLETED. Poll GET /v1/hosting/app-operations/{operationId}.
DELETE /v1/hosting/apps/{appId}
Yes. A repeat DELETE while the deletion runs returns 204.
None: there's no operation to poll
GET /v1/hosting/apps/{appId} shows DELETING until the deletion finishes, then returns 404. On 503 with Retry-After, wait and retry.
Match on code, not message. Codes are stable across releases; messages might be refined. The codes below are specific to the Domains API.
Check your API's OpenAPI specification for its error codes.
const res = await fetch(url, { headers });if (!res.ok) { const err = await res.json(); switch (err.code) { case "DOMAIN_NOT_AVAILABLE": // someone else registered the name first break; case "BILLING_DECLINED": // payment method failed — surface to user break; case "NO_PAYMENT_PROFILE": // no billing method on account — see payment profile setup break; default: // log err.code and err.fields for debugging throw new Error(err.code + ": " + err.message); }}
Reference: the Error and ErrorLimit schemas are defined in the OpenAPI specification.
The Shopping API usually maps errors to HTTP status codes. A 2xx response can also contain an error envelope, so check the status and messages[].code on every response.
"error" when the request failed. Successful responses can omit this field.
messages[].code
Stable, machine-readable error code. Match on this programmatically.
messages[].content
Human-readable description. It might change between releases; do not match on it.
Common codes include invalid_request, validation_error, product_not_found, checkout_not_found, order_not_found, item_not_found, and unsupported_currency.
const res = await fetch(url, { headers });const body = await res.json();// Check the HTTP status and the error marker.if (!res.ok || body?.ucp?.status === "error") { const code = body?.messages?.[0]?.code; switch (code) { case "validation_error": // fix the line item and retry break; case "item_not_found": // choose a current purchasable variant break; default: throw new Error(`Shopping API error: ${code}`); }}
Match the 'code' field, not HTTP status, for programmatic handling. 4xx errors are client-fixable (check input, scopes, payment profile). 5xx errors are safe to retry with exponential backoff. 429 means wait for Retry-After header.
You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.