Delete a client
If you would like to get a raw Response object use the other deleteClient function.
An object containing the options for this method.
A promise of type void.
Delete a client
An object containing the options for this method.
Set to true to return entire Response object instead of DTO.
A promise of type Response if rawResponse is true, a promise of type void otherwise.
Delete a identity provider
If you would like to get a raw Response object use the other deleteIdentityProvider function.
An object containing the options for this method.
A promise of type void.
Delete a identity provider
An object containing the options for this method.
Set to true to return entire Response object instead of DTO.
A promise of type Response if rawResponse is true, a promise of type void otherwise.
Delete a password action template.
If you would like to get a raw Response object use the other deletePwdlessTemplate function.
An object containing the options for this method.
A promise of type void.
Delete a password action template.
An object containing the options for this method.
Set to true to return entire Response object instead of DTO.
A promise of type Response if rawResponse is true, a promise of type void otherwise.
Completely deletes all shopper records associated with the shoppers customer id. The email id will be used if passed as a query parameter. This conforms to the GDPR regulations.
If you would like to get a raw Response object use the other deleteShopper function.
An object containing the options for this method.
A promise of type void.
Completely deletes all shopper records associated with the shoppers customer id. The email id will be used if passed as a query parameter. This conforms to the GDPR regulations.
An object containing the options for this method.
Set to true to return entire Response object instead of DTO.
A promise of type Response if rawResponse is true, a promise of type void otherwise.
Create or Update a client. Note - It is strongly advised to refrain from using the “sfcc-shopper-context.rw” scope with a PUBLIC Client because it offers fewer protections and could potentially enable malicious actors to access Shopper Context enabled promotions. It is highly recommended to use “sfcc-shopper-context.rw” scope with a private client.
If you would like to get a raw Response object use the other registerClient function.
An object containing the options for this method.
A promise of type SlasAdmin.Client | SlasAdmin.Client.
Create or Update a client. Note - It is strongly advised to refrain from using the “sfcc-shopper-context.rw” scope with a PUBLIC Client because it offers fewer protections and could potentially enable malicious actors to access Shopper Context enabled promotions. It is highly recommended to use “sfcc-shopper-context.rw” scope with a private client.
An object containing the options for this method.
Set to true to return entire Response object instead of DTO.
A promise of type Response if rawResponse is true, a promise of type SlasAdmin.Client | SlasAdmin.Client otherwise.
Create or Update an identity provider
If you would like to get a raw Response object use the other registerIdentityProvider function.
An object containing the options for this method.
A promise of type SlasAdmin.IdentityProviderResponse | SlasAdmin.IdentityProviderResponse.
Create or Update an identity provider
An object containing the options for this method.
Set to true to return entire Response object instead of DTO.
A promise of type Response if rawResponse is true, a promise of type SlasAdmin.IdentityProviderResponse | SlasAdmin.IdentityProviderResponse otherwise.
Create or update a password action template.
If you would like to get a raw Response object use the other registerPwdlessTemplate function.
An object containing the options for this method.
A promise of type SlasAdmin.PasswordActionTemplate | SlasAdmin.PasswordActionTemplate.
Create or update a password action template.
An object containing the options for this method.
Set to true to return entire Response object instead of DTO.
A promise of type Response if rawResponse is true, a promise of type SlasAdmin.PasswordActionTemplate | SlasAdmin.PasswordActionTemplate otherwise.
Create or update a tenant. Use the request body to provide identification and contact information for the tenant and its associated merchant.
If you would like to get a raw Response object use the other registerTenant function.
An object containing the options for this method.
A promise of type SlasAdmin.Tenant | SlasAdmin.Tenant.
Create or update a tenant. Use the request body to provide identification and contact information for the tenant and its associated merchant.
An object containing the options for this method.
Set to true to return entire Response object instead of DTO.
A promise of type Response if rawResponse is true, a promise of type SlasAdmin.Tenant | SlasAdmin.Tenant otherwise.
Retrieve a client
If you would like to get a raw Response object use the other retrieveClient function.
An object containing the options for this method.
A promise of type SlasAdmin.Client.
Retrieve a client
An object containing the options for this method.
Set to true to return entire Response object instead of DTO.
A promise of type Response if rawResponse is true, a promise of type SlasAdmin.Client otherwise.
Retrieve/Get all tenant clients
If you would like to get a raw Response object use the other retrieveClients function.
An object containing the options for this method.
A promise of type Object.
Retrieve/Get all tenant clients
An object containing the options for this method.
Set to true to return entire Response object instead of DTO.
A promise of type Response if rawResponse is true, a promise of type Object otherwise.
Retrieve/Get a specific identity provider
If you would like to get a raw Response object use the other retrieveIdentityProvider function.
An object containing the options for this method.
A promise of type SlasAdmin.IdentityProvider.
Retrieve/Get a specific identity provider
An object containing the options for this method.
Set to true to return entire Response object instead of DTO.
A promise of type Response if rawResponse is true, a promise of type SlasAdmin.IdentityProvider otherwise.
Retrieve/Get all tenant identity providers
If you would like to get a raw Response object use the other retrieveIdentityProviders function.
An object containing the options for this method.
A promise of type SlasAdmin.IdentityProviderListResponse.
Retrieve/Get all tenant identity providers
An object containing the options for this method.
Set to true to return entire Response object instead of DTO.
A promise of type Response if rawResponse is true, a promise of type SlasAdmin.IdentityProviderListResponse otherwise.
Retrieve/get a password action template.
If you would like to get a raw Response object use the other retrievePwdlessTemplate function.
An object containing the options for this method.
A promise of type SlasAdmin.PasswordActionTemplate.
Retrieve/get a password action template.
An object containing the options for this method.
Set to true to return entire Response object instead of DTO.
A promise of type Response if rawResponse is true, a promise of type SlasAdmin.PasswordActionTemplate otherwise.
Retrieve a tenant by tenant id
If you would like to get a raw Response object use the other retrieveTenant function.
An object containing the options for this method.
A promise of type SlasAdmin.Tenant.
Retrieve a tenant by tenant id
An object containing the options for this method.
Set to true to return entire Response object instead of DTO.
A promise of type Response if rawResponse is true, a promise of type SlasAdmin.Tenant otherwise.
Generated using TypeDoc
Shopper Login and API Access Admin
Enable administrators to set up clients and identity providers for the Shopper Login API Service (SLAS).
For instructions on how to retrieve access token for admin APIs: https://developer.salesforce.com/docs/commerce/commerce-api/guide/authorization-for-admin-apis.html
Example with admin auth
API Version: 1.12.18import { Customer, ClientConfig } from "commerce-sdk"; // or const { Customer, ClientConfig } = require("commerce-sdk"); const clientConfig: ClientConfig = { parameters: { clientId: "XXXXXX", organizationId: "XXXX", shortCode: "XXX", siteId: "XX" } }; token = { access_token: 'INSERT_ACCESS_TOKEN_HERE' }; clientConfig.headers['authorization'] = `Bearer ${token.access_token}`; const slasAdminClient = new Customer.SlasAdmin(clientConfig);
Last Updated: