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.
1.1. Version information
Version : 1.0.0
1.2. License information
License : Use of this file is subject to the terms of your agreement with SAP SE or its affiliates respecting the use of the SAP product for which this file relates.
Terms of service : null
1.3. URI scheme
Host : localhost:9001
BasePath : /assistedservicewebservices
1.4. Tags
-
customer-lists-controller : Customer Lists Controller
-
customers-controller : Customers Controller
2. Paths
2.1. Binds customer with provided id to cart if it’s an anonymous cart
POST /bind-cart
2.1.1. 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 |
2.1.2. 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 |
2.1.3. Consumes
-
application/json
2.1.4. Produces
-
*/*
2.1.5. Tags
-
customers-controller
2.1.6. Security
Type | Name | Scopes |
---|---|---|
oauth2 |
basic |
2.2. Returns customer lists
GET /customerlists
2.2.1. Description
This endpoint returns list of all customer lists. This can only be done when logged in
2.2.2. Parameters
Type | Name | Description | Schema |
---|---|---|---|
Query |
baseSite |
Id of the BaseSite |
string |
2.2.3. Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
OK |
|
401 |
Unauthorized |
No Content |
403 |
Forbidden |
No Content |
404 |
Not Found |
No Content |
2.2.4. Produces
-
*/*
2.2.5. Tags
-
customer-lists-controller
2.2.6. Security
Type | Name | Scopes |
---|---|---|
oauth2 |
basic |
2.3. Returns single customer list details
GET /customerlists/{customerlist}
2.3.1. Description
This endpoint returns details of customer list with valid Id
2.3.2. Parameters
Type | Name | Description | Schema |
---|---|---|---|
Path |
customerlist |
Id of the customer list |
string |
Query |
baseSite |
Id of the BaseSite |
string |
2.3.3. Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
OK |
|
401 |
Unauthorized |
No Content |
403 |
Forbidden |
No Content |
404 |
Not Found |
No Content |
2.3.4. Produces
-
*/*
2.3.5. Tags
-
customer-lists-controller
2.3.6. Security
Type | Name | Scopes |
---|---|---|
oauth2 |
basic |
2.4. Returns customers to auto complete based on customerQuery parameter
GET /customers/autocomplete
2.4.1. 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 |
2.4.2. Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
OK |
< CustomerSuggestionWsDto > array |
401 |
Unauthorized |
No Content |
403 |
Forbidden |
No Content |
404 |
Not Found |
No Content |
2.4.3. Produces
-
application/json
2.4.4. Tags
-
customers-controller
2.4.5. Security
Type | Name | Scopes |
---|---|---|
oauth2 |
basic |
2.5. Returns customers based on query parameters
GET /customers/search
2.5.1. 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.
2.5.2. 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 |
2.5.3. Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
OK |
|
401 |
Unauthorized |
No Content |
403 |
Forbidden |
No Content |
404 |
Not Found |
No Content |
2.5.4. Produces
-
*/*
2.5.5. Tags
-
customers-controller
2.5.6. Security
Type | Name | Scopes |
---|---|---|
oauth2 |
basic |
3. Definitions
3.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 |
city |
city |
|
cityDistrict |
city district |
|
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 |
3.2. B2BApprovalProcess
Representation of an organizational approval process
Name | Description | Schema |
---|---|---|
code |
Code of the Organizational Approval Process |
string |
name |
Name of the Organizational Approval Process |
string |
3.3. B2BCostCenterShallow
Representation of a cost center. This bean is shallow, which means its potential relationship fields to other Org Unit fields are simple ids. No Org Unit WsDTO fields should be declared in this bean to avoid circular references.
Name | Description | Schema |
---|---|---|
active |
Indication of whether the cost center is active. Deprecated since 2005. Read-only, used for display purposes. |
string |
activeFlag |
Boolean flag of whether the cost center is active. |
boolean |
code |
The code of the cost center |
string |
currency |
The currency of the cost center |
|
name |
The name of the cost center |
string |
originalCode |
The original code of the cost center. Deprecated since 2005. |
string |
3.4. B2BUnit
Representation of an organizational unit
Name | Description | Schema |
---|---|---|
active |
Boolean flag of whether Organizational Unit is active |
boolean |
addresses |
Addresses of the organizational unit node |
< Address > array |
administrators |
Administrators of the organizational unit node |
< User > array |
approvalProcess |
Approval Process of the organizational unit node |
|
approvers |
Approvers of the organizational unit node |
< User > array |
costCenters |
The cost centers of the organizational unit node |
< B2BCostCenterShallow > array |
customers |
Customers of the organizational unit node |
< User > array |
managers |
Managers of the organizational unit node |
< User > array |
name |
Name of the organizational unit |
string |
parentOrgUnit |
Parent unit of the organizational unit |
|
uid |
Identifier of the organizational unit |
string |
3.5. City
data object of city
Name | Description | Schema |
---|---|---|
isocode |
ISO 3166-1 alpha-2 standard, e.g.[countryIso]-[regionNumber]-[cityNumber] |
string |
name |
name of city |
string |
3.6. 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 |
3.7. 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 |
3.8. CustomerListWsDTO
Name | Schema |
---|---|
additionalColumnsKeys |
< string > array |
name |
string |
searchBoxEnabled |
boolean |
uid |
string |
3.9. CustomerSearchPageWsDTO
Name | Schema |
---|---|
entries |
< User > array |
pagination |
|
sorts |
< Sort > array |
3.10. CustomerSuggestionWsDto
Name | Schema |
---|---|
card |
string |
carts |
< string > array |
date |
string |
email |
string |
fullName |
string |
3.11. District
data object of district
Name | Description | Schema |
---|---|---|
isocode |
ISO 3166-1 alpha-2 standard, e.g.[countryIso]-[regionNumber]-[cityNumber]-[districtNumber] |
string |
name |
name of district |
string |
3.12. 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 |
3.13. 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 |
3.14. 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 |
3.15. 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 |
3.16. User
Representation of an User
Name | Description | Schema |
---|---|---|
active |
Boolean flag of whether the user is active/enabled or not |
boolean |
approvers |
List of organizational approvers |
< User > array |
currency |
User preferred currency |
|
customerId |
Customer identifier |
string |
deactivationDate |
Deactivation date |
string (date-time) |
defaultAddress |
User address |
|
displayUid |
User identifier |
string |
email |
Email of the user |
string |
emailLanguage |
Email Language |
string |
firstName |
User first name |
string |
language |
User preferred language |
|
lastName |
User last name |
string |
mobileNumber |
Mobile Number |
string |
name |
Name of the user |
string |
orgUnit |
The unit of the User |
|
roles |
< string > array |
|
selected |
Boolean flag of whether the user is selected |
boolean |
title |
User title |
string |
titleCode |
User title code |
string |
uid |
Unique user identifier |
string |
3.17. 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 |
3.18. 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 |
3.19. 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) |
4. Security
4.1. oauth2
Type : oauth2
Flow : password
Token URL : /authorizationserver/oauth/token
Name |
---|
basic |