younifyd
Menu

Update custom data of the customer

Update custom data of the customer.

PUT/shops/{shopKey}/countries/{countryCode}/customers/{customerId}/legacy-custom-data

Use it in a workflow

  1. Add a step and choose the SCAYLE Admin connector.
  2. Pick the Update custom data of the customer action (under Customers).
  3. Fill in the fields below, then reference the result from later steps as {{updateCustomDataOfTheCustomer.response.data}}.

Request

Path parameters

shopKeystringrequired

The shop key.

countryCodestringrequired

The shop country code; use shop country ID instead of country code when a country is ambiguous within a shop.

customerIdintegerrequired

Customer ID

Response

Returns 200 with an object. Read it in later steps with {{updateCustomDataOfTheCustomer.response.data.<field>}}.

idinteger

The ID of the customer

referenceKeystring

External reference set by the client to integrate a third party system. It can be set to NULL otherwise

firstNamestring

First name of the customer

lastNamestring

Last name of the customer

genderstring

Gender of the customer mentioned as per defined ENUM as "m" , "f", "d", "n"

One offmdn

birthDatestring

Date of birth of the customer in YYYY-MM-DD format. It can be set to NULL otherwise

emailstring

email address of the customer

phoneoneOf
publicKeystring

Public reference set by the client to display to customers in account areas and transactional emails.

titlestring

User defined title. It can be set to NULL otherwise

typestring

The type of the customer. Possible values: personal, retail, organization, family.

groupsarray<string>

Group to which the customer belongs to

identitiesarray<object>

A list of Identity Providers (IDP)

identityProviderCodestring

The code of an Identity Provider

externalUserIdstring

User ID from the external Identity Provider

statusobject
isActivebooleanrequired

Declares whether the customer account is active or not

isGuestCustomerbooleanrequired

Declares if the customer have an account or not

companyobject
idinteger

The ID of the company created by SCAYLE.

namestringrequired

Name of the company.

addressesarray<object>

Customers address (es)

idinteger
referenceKeystring

External reference set by the client to integrate third party systems.

streetstring

Street of the recipient address

houseNumberstring

House number of the recipient address

additionalstring

Additional data pertaining to the address

zipCodestring

Postal code of the recipient location

citystring

City of the recipient

countryCodestring

ISO 3166-1 alpha-3 country code

collectionPointobject4 fields
isDefaultobject2 fields
recipientobject5 fields
phoneoneOf
statestring
typestring

Defines the type of the address.

One ofshippingbilling

shopCountryobject16 fields
legacyCustomDataany

Custom data added to the customers (legacy feature)

hasPasswordboolean

Defines if the customer has a password set.

createdAtstring (date-time)

Timestamp when the customer is created

updatedAtstring (date-time)

Timestamp when the customer is updated

json
{
  "id": 0,
  "referenceKey": "string",
  "firstName": "string",
  "lastName": "string",
  "gender": "f",
  "birthDate": "string",
  "email": "string",
  "phone": null,
  "publicKey": "string",
  "title": "string",
  "type": "string",
  "groups": [
    "string"
  ]
}

Need more? See the SCAYLE Admin guide for connection setup and behaviour shared by every action.

Update custom data of the customer — SCAYLE Admin — Documentation