actions/getCustomerStatusByCustomerId
Actions
GetCustomerStatusByCustomerIdFn()
GetCustomerStatusByCustomerIdFn: (
params
) =>Promise
\<CustomerStatus
|null
>
Get the status of a customer by their customer ID
Parameters
• params
The parameters required to get the customer status
• params.customerId: string
Returns
Promise
\<CustomerStatus
| null
>
The status of the customer
Example
import { createSdk } from "@compilot/js-sdk";
const compilotSdk = createSdk({ apiKey });
const customerStatus = await compilotSdk.getCustomerStatusByCustomerId({
customerId: "123",
});