Skip to main content

identity_documents

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

Overview

Nameidentity_documents
TypeResource
Idgodaddy.domains.identity_documents

Fields

The following fields are returned by SELECT queries:

Request was successful

NameDatatypeDescription
contactobject
identificationCountrystring (iso-country-code)Two-letter ISO country code to be used as a hint for target region NOTE: These are sample values, there are many more
identificationNumberstringIndividual or business identification number written on the document. Must match image exactly
identificationTypestringType of the identity document
identityDocumentIdstringThe unique identifier of an identity document
legalEntityNamestringIndividual or business name written on the document. Must match image exactly

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_identity_documentsselectX-Shopper-IdGet a collection of identity documents the current shopper owns
create_identity_documentinsertdata__contact, data__identificationCountry, data__identificationNumber, data__identificationType, data__image, data__legalEntityNameX-Shopper-IdCreate an Identity Document from uploaded image

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
X-Shopper-IdstringShopper ID of the owner of the identity document. This is only required if you are a Reseller managing identity documents for your customers. Use this header to pass in their subaccount ID

SELECT examples

Get a collection of identity documents the current shopper owns

SELECT
contact,
identificationCountry,
identificationNumber,
identificationType,
identityDocumentId,
legalEntityName
FROM godaddy.domains.identity_documents
WHERE X-Shopper-Id = '{{ X-Shopper-Id }}'
;

INSERT examples

Create an Identity Document from uploaded image

INSERT INTO godaddy.domains.identity_documents (
data__contact,
data__identificationCountry,
data__identificationNumber,
data__identificationType,
data__image,
data__legalEntityName,
X-Shopper-Id
)
SELECT
'{{ contact }}' /* required */,
'{{ identificationCountry }}' /* required */,
'{{ identificationNumber }}' /* required */,
'{{ identificationType }}' /* required */,
'{{ image }}' /* required */,
'{{ legalEntityName }}' /* required */,
'{{ X-Shopper-Id }}'
RETURNING
identityDocumentId
;