Account and profile

Manage customer account details.

Retrieving a customer profile

get

Retrieves a customer profile.

Note: The request needs to be authorized with a customer access token or an anonymous access token.


Required scopes

No specific scopes are required.

Authorizations
AuthorizationstringRequired

To generate a customer access token, go to the 'Logging in a customer' endpoint.

Path parameters
tenantstring · min: 3 · max: 16Required

Your Emporix tenant name.

Note: The tenant should always be written in lowercase.

Pattern: ^[a-z][a-z0-9]+$
Query parameters
expandstringOptional

List of additional attributes to be retrieved, separated by commas. Possible value to be passed in this parameter is addresses. To expand mixins, use the * character: mixin:*.

Example: addresses,mixin:*
Responses
chevron-right
200

OK

application/json

Customer profile.

idstringOptional

Customer unique identifier generated when the customer profile is created.

customerNumberstringOptional

Customer unique number generated when the customer profile is created.

titlestringOptional
firstNamestringOptional
middleNamestringOptional
lastNamestringOptional
contactEmailstringOptional
contactPhonestringOptional
companystringOptional
preferredLanguagestringOptional

Customer preferred language.

Default: en_US
preferredCurrencystring · min: 3 · max: 3Optional

Customer's preferred currency, compliant with the ISO 4217 standard.

Default: USD
preferredSitestringOptional

Customer preferred site.

Default: main
businessModelstring · enumOptional

Property indicating business model of customer. When customer is assigned to any company then it is B2B. Otherwise it is B2C.

Possible values:
lastLoginstring · date-timeOptional

Customer last login date.

get
/customer/{tenant}/me

Updating a customer profile

patch

Updates a customer profile.

Note: The request needs to be authorized with a customer access token.


Required scopes

No specific scopes are required.

Authorizations
AuthorizationstringRequired

To generate a customer access token, go to the 'Logging in a customer' endpoint.

Path parameters
tenantstring · min: 3 · max: 16Required

Your Emporix tenant name.

Note: The tenant should always be written in lowercase.

Pattern: ^[a-z][a-z0-9]+$
Body
Responses
chevron-right
200

OK

No content

patch
/customer/{tenant}/me

No content

Last updated

Was this helpful?