1. Overview
These services provide the ability for agents to assist customers with their order, and look up the order by name, email, cart, or order number.
3. Resources
3.1. Customer-lists-controller
Customer Lists Controller
3.1.1. Returns customer lists
GET /customerlists
Responses
| HTTP Code | Description | Schema |
|---|---|---|
200 |
OK |
|
401 |
Unauthorized |
No Content |
403 |
Forbidden |
No Content |
404 |
Not Found |
No Content |
3.1.2. Returns single customer list details
GET /customerlists/{customerlist}
Parameters
| Type | Name | Description | Schema |
|---|---|---|---|
Path |
customerlist |
Id of the customer list |
string |
Query |
baseSite |
Id of the BaseSite |
string |
Responses
| HTTP Code | Description | Schema |
|---|---|---|
200 |
OK |
|
401 |
Unauthorized |
No Content |
403 |
Forbidden |
No Content |
404 |
Not Found |
No Content |
3.2. Customers-controller
Customers Controller
3.2.1. Binds customer with provided id to cart if it’s anonymous cart
POST /bind-cart
Parameters
| Type | Name | Description | Schema |
|---|---|---|---|
Query |
baseSite |
Id of the BaseSite |
string |
Query |
cartId |
Id of the anonymous Cart |
string |
Query |
customerId |
Id of the Customer |
string |
Responses
| HTTP Code | Description | Schema |
|---|---|---|
200 |
OK |
string |
201 |
Created |
No Content |
401 |
Unauthorized |
No Content |
403 |
Forbidden |
No Content |
404 |
Not Found |
No Content |
3.2.2. Returns customers to auto complete based on customerQuery parameter
GET /customers/autocomplete
Parameters
| Type | Name | Description | Schema |
|---|---|---|---|
Query |
baseSite |
Id of the BaseSite |
string |
Query |
customerQuery |
Customer query: first characters of customer email or part of name. A BadRequestException is thrown when the query is too short. Minimum query length can be updated via |
string |
Responses
| HTTP Code | Description | Schema |
|---|---|---|
200 |
OK |
< CustomerSuggestionWsDto > array |
401 |
Unauthorized |
No Content |
403 |
Forbidden |
No Content |
404 |
Not Found |
No Content |
3.2.3. Returns customers based on query parameters
GET /customers/search
Description
This endpoint returns paginated list of customers based on provided query parameters. If query term is present it will return customers based on provided value. If customerListId is present it will ignore query term and return only customers who belong to the given customer list. If orderId parameter is present it will ignore previous parameters and it will return customer associated to the given order.This can only be done by the logged in user.
Parameters
| Type | Name | Description | Schema | Default |
|---|---|---|---|---|
Query |
baseSite |
Id of the BaseSite |
string |
|
Query |
currentPage |
Current page |
integer(int32) |
|
Query |
customerListId |
Id of the customer list |
string |
|
Query |
orderId |
Id of the order |
string |
|
Query |
pageSize |
Page size |
integer(int32) |
|
Query |
query |
Customer uid search term |
string |
|
Query |
sort |
Sort parameter. Possible values: byUidAsc, byUidDesc, byNameAsc, byNameDesc |
string |
Responses
| HTTP Code | Description | Schema |
|---|---|---|
200 |
OK |
|
401 |
Unauthorized |
No Content |
403 |
Forbidden |
No Content |
404 |
Not Found |
No Content |
4. Definitions
4.1. Address
Request body fields required and optional to operate on address data. The DTO is in XML or .json format
| Name | Description | Schema |
|---|---|---|
cellphone |
Cellphone number |
string |
companyName |
Company Name |
string |
country |
Country where address is located |
|
defaultAddress |
Boolean flag if address is default |
boolean |
district |
District name |
string |
email |
Email address |
string |
firstName |
First name of the address person |
string |
formattedAddress |
Boolean flag if address is formatted |
string |
id |
Unique id value of the address which is optional while creating new address. While performing other address operations this value is the key |
string |
lastName |
Last name of the address person |
string |
line1 |
First line of the address |
string |
line2 |
Second line of the address |
string |
phone |
Phone number |
string |
postalCode |
Postal code of the address |
string |
region |
Region where address belongs to |
|
shippingAddress |
Boolean flag if address is for shipping |
boolean |
title |
Title of the address person |
string |
titleCode |
Code of the title |
string |
town |
Town, field required |
string |
visibleInAddressBook |
Boolean flag if address is visible in the Address Book |
boolean |
4.2. Country
Response body fields which will be returned while fetching the list of countries. The DTO is in XML or .json format
| Name | Description | Schema |
|---|---|---|
isocode |
Country code in iso format |
string |
name |
Name of the country |
string |
4.3. Currency
Representation of a Currency
| Name | Description | Schema |
|---|---|---|
active |
Boolean flag whether currency is active |
boolean |
isocode |
Code of the currency in iso format |
string |
name |
Name of the currency |
string |
symbol |
Symbol of the currency |
string |
4.4. CustomerListWsDTO
| Name | Schema |
|---|---|
additionalColumnsKeys |
< string > array |
name |
string |
searchBoxEnabled |
boolean |
uid |
string |
4.5. CustomerSearchPageWsDTO
| Name | Schema |
|---|---|
entries |
< User > array |
pagination |
|
sorts |
< Sort > array |
4.6. CustomerSuggestionWsDto
| Name | Schema |
|---|---|
card |
string |
carts |
< string > array |
date |
string |
email |
string |
fullName |
string |
4.7. Language
Representation of a Language
| Name | Description | Schema |
|---|---|---|
active |
true/false indicator when the language is active |
boolean |
isocode |
iso code of the language |
string |
name |
name of the language |
string |
nativeName |
name the language in native form |
string |
4.8. Principal
Representation of a Principal webservice DTO used for defining User data types
| Name | Description | Schema |
|---|---|---|
name |
Name of the user |
string |
uid |
Unique user identifier |
string |
4.9. Region
Response body fields which will be returned while fetching the list of country’s regions.
| Name | Description | Schema |
|---|---|---|
countryIso |
Country code in iso format |
string |
isocode |
Country and Region code in iso format |
string |
isocodeShort |
Region code in short iso form |
string |
name |
Name of the region |
string |
4.10. Sort
Representation a Sort option
| Name | Description | Schema |
|---|---|---|
code |
Code of Sort |
string |
name |
Name of Sort |
string |
selected |
Flag stating when Sort is selected |
boolean |
4.11. User
Representation of an User
| Name | Description | Schema |
|---|---|---|
currency |
User preferred currency |
|
customerId |
Customer identifier |
string |
deactivationDate |
Deactivation date |
string(date-time) |
defaultAddress |
User address |
|
displayUid |
User identifier |
string |
firstName |
User first name |
string |
language |
User preferred language |
|
lastName |
User last name |
string |
name |
Name of the user |
string |
title |
User title |
string |
titleCode |
User title code |
string |
uid |
Unique user identifier |
string |
4.12. UserGroup
Representation of an User Group
| Name | Description | Schema |
|---|---|---|
members |
List of members |
< Principal > array |
membersCount |
Number of members |
integer(int32) |
name |
Name of the user |
string |
subGroups |
List of subgroups |
< UserGroup > array |
uid |
Unique user identifier |
string |
4.13. UserGroupList
Representation of an User Group List
| Name | Description | Schema |
|---|---|---|
currentPage |
Current page |
integer(int32) |
numberOfPages |
Number of pages |
integer(int32) |
pageSize |
Page size |
integer(int32) |
totalNumber |
Total number |
integer(int32) |
userGroups |
List of user groups |
< UserGroup > array |
4.14. deprecatedPagination
Representation of a search results pagination
| Name | Description | Schema |
|---|---|---|
currentPage |
The current page number. The first page is number zero (0), the second page is number one (1), and so on |
integer(int32) |
pageSize |
The number of results per page. A page may have less results if there are less than a full page of results, only on the last page in the results |
integer(int32) |
sort |
The selected sort code |
string |
totalPages |
The total number of pages. This is the number of pages, each of pageSize, required to display the totalResults. |
integer(int32) |
totalResults |
The total number of matched results across all pages |
integer(int64) |