Skip to main content

agreements

Creates, updates, deletes, gets or lists an agreements resource.

Overview

Nameagreements
TypeResource
Idgodaddy.domains.agreements

Fields

The following fields are returned by SELECT queries:

Request was successful

NameDatatypeDescription
agreementKeystringUnique identifier for the legal agreement
contentstringContents of the legal agreement, suitable for embedding
titlestringTitle of the legal agreement
urlstring (url)URL to a page containing the legal agreement

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_agreementselecttlds, privacyX-Market-Id, forTransferRetrieve the legal agreement(s) required to purchase the specified TLD and add-ons

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
privacybooleanWhether or not privacy has been requested
tldsarraylist of TLDs whose legal agreements are to be retrieved
X-Market-Idstring (bcp-47)Unique identifier of the Market used to retrieve/translate Legal Agreements
forTransferbooleanWhether or not domain tranfer has been requested

SELECT examples

Retrieve the legal agreement(s) required to purchase the specified TLD and add-ons

SELECT
agreementKey,
content,
title,
url
FROM godaddy.domains.agreements
WHERE tlds = '{{ tlds }}' -- required
AND privacy = '{{ privacy }}' -- required
AND X-Market-Id = '{{ X-Market-Id }}'
AND forTransfer = '{{ forTransfer }}'
;