Account and profile

Retrieving a list of customers

get

Retrieves a list of customer profiles.

Required scopes
This endpoint requires the following scopes:
  • : Needed to retrieve customer profiles.
  • : Needed by customer to retrieve customer profiles from the same company.
Authorizations
OAuth2clientCredentialsRequired
Token URL:
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
qstringOptional

A standard query parameter used to search for specific values.

Example: contactEmail:{email}
sortstringOptional

List of properties used to sort the results, separated by colons. Possible values:

  • {fieldName}
  • {fieldName}:asc
  • {fieldName}:desc

Note: If you want to sort the results by localized properties, the possible values are:

  • {fieldName}.{language}
  • {fieldName}.{language}:asc
  • {fieldName}.{language}:desc

By default, the fields are sorted in ascending order.

pageNumberinteger · min: 1Optional

Page number to be retrieved. The number of the first page is 1.

Note: If the pageNumber parameter is passed, size of the pages must be specified in the pageSize parameter.

Default: 1
pageSizeinteger · min: 1Optional

Number of customers to be retrieved per page.

Default: 60
expandstringOptional

List of additional attributes to be retrieved, separated by commas. Possible values to be passed in this parameter are:

  • addresses
  • accounts
  • `mixin``
  • The order of the attributes has no influence on the response.
Responses
200

OK

application/json
get
/customer/{tenant}/customers

Creating a customer

post

Creates a new customer.

Required scopes
This endpoint requires the following scopes:
  • : Needed to manage customer profiles.
  • : Needed by customer to manage customer profiles from the same company.
Authorizations
OAuth2clientCredentialsRequired
Token URL:
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
sendPasswordResetNotificationsbooleanOptional

Flag indicating whether the customer should receive an email with a password reset link once their account is created.

Default: true
Body
Responses
post
/customer/{tenant}/customers

Searching for customers

post

Searches for customer profiles.

Required scopes
This endpoint requires the following scopes:
  • : Needed to retrieve customer profiles.
  • : Needed by customer to retrieve customer profiles from the same company.
Authorizations
OAuth2clientCredentialsRequired
Token URL:
Path parameters
tenantstringRequired

Your Emporix tenant name.

Note: The tenant should always be written in lowercase.

Query parameters
qstringOptional

A standard query parameter used to search for specific values.

Example: contactEmail:{email}
sortstringOptional

List of properties used to sort the results, separated by colons. Possible values:

  • {fieldName}
  • {fieldName}:asc
  • {fieldName}:desc

Note: If you want to sort the results by localized properties, the possible values are:

  • {fieldName}.{language}
  • {fieldName}.{language}:asc
  • {fieldName}.{language}:desc

By default, the fields are sorted in ascending order.

pageNumberinteger · min: 1Optional

Page number to be retrieved. The number of the first page is 1.

Note: If the pageNumber parameter is passed, size of the pages must be specified in the pageSize parameter.

Default: 1
pageSizeinteger · min: 1Optional

Number of customers to be retrieved per page.

Default: 60
expandstringOptional

List of additional attributes to be retrieved, separated by commas. Possible values to be passed in this parameter are:

  • addresses
  • accounts
  • `mixin``
  • The order of the attributes has no influence on the response.
Body
qstringOptional

A standard query parameter is used to search for specific values.

See: Standard practises - Query parameter

Responses
200

OK

application/json
post
/customer/{tenant}/customers/search

Retrieving a customer profile

get

Retrieves a specified customer profile.

Required scopes
This endpoint requires the following scopes:
  • : Needed to retrieve customer profiles.
  • : Needed by customer to retrieve customer profiles from the same company.
Authorizations
OAuth2clientCredentialsRequired
Token URL:
Path parameters
customerNumberstringRequired

Customer unique identifier generated when the customer profile is created.

tenantstringRequired

Your Emporix tenant name.

Note: The tenant should always be written in lowercase.

Query parameters
expandstringOptional

List of additional attributes to be retrieved, separated by commas. Possible values to be passed in this parameter are:

  • addresses
  • accounts
  • `mixin``
  • The order of the attributes has no influence on the response.
Responses
200

OK

application/json
get
/customer/{tenant}/customers/{customerNumber}

Upserting a customer profile

put

Updates a specified customer profile or creates a new one if it doesn't exist yet.

Required scopes
This endpoint requires the following scopes:
  • : Needed to manage customer profiles.
  • : Needed by customer to manage customer profiles from the same company.
Authorizations
OAuth2clientCredentialsRequired
Token URL:
Path parameters
customerNumberstringRequired

Customer unique identifier generated when the customer profile is created.

tenantstringRequired

Your Emporix tenant name.

Note: The tenant should always be written in lowercase.

Query parameters
sendPasswordResetNotificationsbooleanOptional

Flag indicating whether the customer should receive an email with a password reset link once their account is created.

Default: true
Body
Responses
put
/customer/{tenant}/customers/{customerNumber}

Deleting a customer profile

delete

Deletes a specified customer profile and accounts associated with it.

Required scopes
This endpoint requires the following scopes:
  • : Needed to manage customer profiles.
  • : Needed by customer to manage customer profiles from the same company.
Authorizations
OAuth2clientCredentialsRequired
Token URL:
Path parameters
customerNumberstringRequired

Customer unique identifier generated when the customer profile is created.

tenantstringRequired

Your Emporix tenant name.

Note: The tenant should always be written in lowercase.

Responses
delete
/customer/{tenant}/customers/{customerNumber}

No content

Updating a customer profile

patch

Updates a specified customer profile.

Required scopes
This endpoint requires the following scopes:
  • : Needed to manage customer profiles.
  • : Needed by customer to manage customer profiles from the same company.
Authorizations
OAuth2clientCredentialsRequired
Token URL:
Path parameters
customerNumberstringRequired

Customer unique identifier generated when the customer profile is created.

tenantstringRequired

Your Emporix tenant name.

Note: The tenant should always be written in lowercase.

Body
Responses
200

OK

No content

patch
/customer/{tenant}/customers/{customerNumber}

No content

Assigning an account to an existing customer profile

post

Assigns a customer account to an existing customer profile.

Authorizations
OAuth2clientCredentialsRequired
Token URL:
Available scopes:
  • : Needed to retrieve customer profiles.
  • : Needed by customer to retrieve customer profiles from the same company.
  • : Needed to manage customer profiles.
  • : Needed by customer to manage customer profiles from the same company.
Path parameters
customerNumberstringRequired

Customer unique identifier generated when the customer profile is created.

tenantstringRequired

Your Emporix tenant name.

Note: The tenant should always be written in lowercase.

Query parameters
sendPasswordResetNotificationsbooleanOptional

Flag indicating whether the customer should receive an email with a password reset link once their account is created.

Default: true
Body
emailstringRequired

Customer email address.

Responses
post
/customer/{tenant}/customers/{customerNumber}/accounts/internal

Last updated

Was this helpful?