assistedservicewebservices Extension
The assistedservicewebservices extension has web calls to expose Assisted Service Module functionality to external systems through web services.
About the Extension
|
Name |
Directory |
Related Module |
|---|---|---|
| assistedservicewebservices |
hybris/bin/assisted-services |
Assisted Service Module |
For information about module's API, see Accessing the assistedservicewebservices API.
Dependencies
Controllers
|
Name |
Description |
Required Parameters |
|---|---|---|
| CustomerListsController |
Controller orchestrating returning customer lists. |
baseSite |
| CustomersController |
Controller orchestrating returning customers. |
baseSite |
API Documentation
See the following table with examples of ASM REST calls:
| Description | REST calls | Example | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Authorization as asagent |
POST https://\{host}/authorizationserver/oauth/token |
Request
Content-Type: application/x-www-form-urlencoded Request body: username=<agentName>&password=<agentPwd>&client_secret=<client_secret>&grant_type=password&client_id=<client_name>
Response
|
||||||||||||
| Get the list of available CustomerLists |
GET https://\{host}/assistedservicewebservices/customerlists?baseSite=someSite |
Response
|
||||||||||||
| Get Customers from CustomerList |
GET https://\{host}/assistedservicewebservices/customers/search?customerListId=myRecentCustomerSessions&baseSite=electronics |
Response
|
||||||||||||
| Bind an anonymous cart |
POST https://{host}/assistedservicewebservices/bind-cart? |
Request
customerId=arron.customer@hybris.com&baseSite=electronics&cartId=00000001 |
||||||||||||
| Get suggestions for autocomplete |
GET https://{host}/assistedservicewebservices/customers/customers/autocomplete?baseSite=electronics&customerQuery=ste |
Response
[
{ "email": "keenreviewer10@hybris.com", "fullName": "Stefan Reviewer", "date": "22/04/2020", "card": "----", "carts": [] }
,
{ "email": "keenreviewer4@hybris.com", "fullName": "Steve Reviewer", "date": "22/04/2020", "card": "----", "carts": [] }
]
|
||||||||||||
| Get a list of carts |
GET https://{host}/occ/v2/electronics/users/a38e9b45-ad21-44ac-bf99-c7db6f205d45/carts |
Response
{"carts": [...]}
|
||||||||||||
| Get a list of products |
GET https://{host}/occ/v2/electronics/products/search?fields=products,pagination,sorts&query=:relevance:allCategories:270000&pageSize=10 |
Response
{"products": [...]}
|