Skip to main content

shoppers

Creates, updates, deletes, gets or lists a shoppers resource.

Overview

Nameshoppers
TypeResource
Idgodaddy.shoppers.shoppers

Fields

The following fields are returned by SELECT queries:

Request was successful

NameDatatypeDescription
emailstring (email)
externalIdinteger
marketIdstring (bcp-47) (default: en-US)
nameFirststring
nameLaststring
shopperIdstring

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectshopper_idGet details for the specified Shopper
create_subaccountinsertdata__email, data__password, data__nameFirst, data__nameLastCreate a Subaccount owned by the authenticated Reseller
updateexecshopper_idUpdate details for the specified Shopper

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
shopper_idstringThe ID of the Shopper to update

SELECT examples

Get details for the specified Shopper

SELECT
email,
externalId,
marketId,
nameFirst,
nameLast,
shopperId
FROM godaddy.shoppers.shoppers
WHERE shopper_id = '{{ shopper_id }}' -- required
;

INSERT examples

Create a Subaccount owned by the authenticated Reseller

INSERT INTO godaddy.shoppers.shoppers (
data__email,
data__externalId,
data__marketId,
data__nameFirst,
data__nameLast,
data__password
)
SELECT
'{{ email }}' /* required */,
{{ externalId }},
'{{ marketId }}',
'{{ nameFirst }}' /* required */,
'{{ nameLast }}' /* required */,
'{{ password }}' /* required */
RETURNING
customerId,
shopperId
;

Lifecycle Methods

Update details for the specified Shopper

EXEC godaddy.shoppers.shoppers.update 
@shopper_id='{{ shopper_id }}' --required
@@json=
'{
"email": "{{ email }}",
"externalId": {{ externalId }},
"marketId": "{{ marketId }}",
"nameFirst": "{{ nameFirst }}",
"nameLast": "{{ nameLast }}"
}'
;