You are reading the documentation for v7.x and earlier, which is no longer the latest version. Switch to v8.x
getPointOfServices
Get 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 exchanges data with the getPointOfServices endpoint exposed by the SAP OCC API Agent Controller.
Signature
export declare function getPointOfServices(
context: SapccIntegrationContext,
props: GetPointOfServicesProps
): Promise<ASMPointOfServiceList>;Parameters
| Name | Required | Type | Description |
|---|---|---|---|
context | Required | SapccIntegrationContext | |
props | Required | GetPointOfServicesProps | Parameter object which can be used with this method. Refer to its type definition to learn about possible properties. |
Returns
Returns list of points of sale assigned to given customer support agent
Referenced Types
- SapccIntegrationContext
GetPointOfServicesPropsASMPointOfServiceList
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'});