You are reading the documentation for v7.x and earlier, which is no longer the latest version. Switch to v8.x
getPointOfServices
Method that gets physical points of service assigned to a customer support agent
Be advised: If your version of SAP CC is lower than 2211.16, the underlying raw SAP CC endpoint for "getPointOfServices" is disabled by default. Set "commercewebservices.api.restrictions.disabled.endpoints" to "" in your manifest.json in your SAP CC config repository.
This method sends a POST request to the getPointOfServices endpoint of the Alokai Middleware. In turn, it exchanges data with the getPointOfServices endpoint exposed by the SAP OCC API Agent Controller.
Signature
export declare function getPointOfServices<Res extends ASMPointOfServiceList = ASMPointOfServiceList>(
props: GetPointOfServicesProps,
options?: MethodOptions
): Promise<Res>;Parameters
| Name | Required | Type | Description |
|---|---|---|---|
props | Required | GetPointOfServicesProps | Parameter object which can be used with this method. Refer to its type definition to learn about possible properties. |
options | Optional | MethodOptions | Options that can be passed to additionally configure the request or customize the logic in a plugin. |
Returns
Returns list of points of sale assigned to given customer support agent
Referenced Types
ASMPointOfServiceListGetPointOfServicesProps- MethodOptions
Examples
Requesting the currently logged in agent's assigned points of service
const getPointOfServices = await sdk.commerce.getPointOfServices({ agentId: 'current'});Requesting another agent's assigned points of service
const getPointOfServices = await sdk.commerce.getPointOfServices({ agentId: 'customer.support@nakano.com'});