Skip to main content

purchases

GoDaddy Domains v1 API. Accepts a Personal Access Token (Bearer) or a classic sso-key credential.

Overview

Namepurchases
TypeResource
Idgodaddy.registration.purchases

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, consentx_shopper_idRegisters the specified domain. Requires a consent object with agreement keys from GET /v1/domains/agreements. Charges the account's billing method.
validate_contactsexecdomainsmarket_idAll contacts specified in request will be validated against all domains specified in "domains". As an alternative, you can also pass in tlds, with the exception of uk, which requires full domain names
validateexecdomain, consentValidates a purchase request body against the TLD schema with no side effects and no charge. Returns 200 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
market_idstring (bcp-47)MarketId in which the request is being made, and for which responses should be localized
x_shopper_idstringShopper ID which owns the domain. NOTE: This is only required if you are a Reseller managing a domain purchased outside the scope of your reseller account. (wire: X-Shopper-Id)

INSERT examples

Registers the specified domain. Requires a consent object with agreement keys from GET /v1/domains/agreements. Charges the account's billing method.

INSERT INTO godaddy.registration.purchases (
consent,
contact_admin,
contact_billing,
contact_registrant,
contact_tech,
domain,
name_servers,
period,
privacy,
renew_auto,
x_shopper_id
)
SELECT
'{{ consent }}' /* required */,
'{{ contact_admin }}',
'{{ contact_billing }}',
'{{ contact_registrant }}',
'{{ contact_tech }}',
'{{ domain }}' /* required */,
'{{ name_servers }}',
{{ period }},
{{ privacy }},
{{ renew_auto }},
'{{ x_shopper_id }}'
RETURNING
order_id,
currency,
item_count,
total
;

Lifecycle Methods

EXEC variables use wire (API) names.

All contacts specified in request will be validated against all domains specified in "domains". As an alternative, you can also pass in tlds, with the exception of uk, which requires full domain names

EXEC godaddy.registration.purchases.validate_contacts
@market_id='{{ market_id }}',
@contact_admin='{{ contact_admin }}',
@contact_billing='{{ contact_billing }}',
@contact_presence='{{ contact_presence }}',
@contact_registrant='{{ contact_registrant }}',
@contact_tech='{{ contact_tech }}',
@domains='{{ domains }}',
@entity_type='{{ entity_type }}'
;