Skip to main content

registrations_v2

GoDaddy Domains v2 API, scoped to a customer: customer_id is resolved from the GODADDY_CUSTOMER_ID environment variable when set, otherwise it is a required parameter (a WHERE value always wins). Accepts a Personal Access Token (Bearer) or a classic sso-key credential.

Overview

Nameregistrations_v2
TypeResource
Idgodaddy.registration.registrations_v2

Fields

The following fields are returned by SELECT queries:

SELECT not supported for this resource, use SHOW METHODS to view available operations for the resource.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
createinsertdomain, consent, customer_idx_request_idRegisters the specified domain. Requires a consent object with TLD agreement keys from the schema endpoint. Charges the account's billing method. Returns 202 - poll GET .../actions/REGISTER until the action reaches a terminal state.
validateexecdomain, consent, customer_idx_request_idValidates the registration request body against the TLD schema with no side effects and no charge. Returns 204 on success.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
customer_idstring (uuid)GoDaddy customer identifier (UUID, not the numeric shopper number). Resolved from the GODADDY_CUSTOMER_ID environment variable when it is set (server variable, x-stackQL-envVar); otherwise required on every method of this resource. A WHERE value always takes precedence over the environment. API resellers acting on behalf of a subaccount pass the subaccount customer identifier.
x_request_idstringA client provided identifier for tracking this request.
x_request_idstringA client provided identifier for tracking this request. (wire: X-Request-Id)

INSERT examples

Registers the specified domain. Requires a consent object with TLD agreement keys from the schema endpoint. Charges the account's billing method. Returns 202 - poll GET .../actions/REGISTER until the action reaches a terminal state.

INSERT INTO godaddy.registration.registrations_v2 (
domain,
consent,
period,
name_servers,
renew_auto,
privacy,
contacts,
metadata,
x_request_id
)
SELECT
'{{ domain }}' /* required */,
'{{ consent }}' /* required */,
{{ period }},
'{{ name_servers }}',
{{ renew_auto }},
{{ privacy }},
'{{ contacts }}',
'{{ metadata }}',
'{{ x_request_id }}'
;

Lifecycle Methods

EXEC variables use wire (API) names.

Validates the registration request body against the TLD schema with no side effects and no charge. Returns 204 on success.

EXEC godaddy.registration.registrations_v2.validate
@customer_id='{{ customer_id }}' --required unless GODADDY_CUSTOMER_ID is set,
@x_request_id='{{ x_request_id }}',
@domain='{{ domain }}',
@consent='{{ consent }}',
@period='{{ period }}',
@name_servers='{{ name_servers }}',
@renew_auto='{{ renew_auto }}',
@privacy='{{ privacy }}',
@contacts='{{ contacts }}',
@metadata='{{ metadata }}'
;