---
editLink: false
lastUpdated: false
---

[@salesforce/b2c-tooling-sdk](../../modules.md) / [clients](../index.md) / SlasClient

# Type Alias: SlasClient

> **SlasClient** = `Client`\<`paths`\>

Defined in: [packages/b2c-tooling-sdk/src/clients/slas-admin.ts:59](https://github.com/SalesforceCommerceCloud/b2c-developer-tooling/blob/e7c16f1ae423da0aa47b3e10be88f9770b53619b/packages/b2c-tooling-sdk/src/clients/slas-admin.ts#L59)

The typed SLAS client - this is the openapi-fetch Client with full type safety.

## Common Endpoints

| Method | Path | Description |
|--------|------|-------------|
| GET | `/tenants/{tenantId}` | Get tenant info |
| GET | `/tenants/{tenantId}/clients` | List SLAS clients |
| PUT | `/tenants/{tenantId}/clients/{clientId}` | Create/update a client |
| DELETE | `/tenants/{tenantId}/clients/{clientId}` | Delete a client |

## Example

```typescript
import { createSlasClient } from '@salesforce/b2c-tooling-sdk/clients';
import { OAuthStrategy } from '@salesforce/b2c-tooling-sdk/auth';

const auth = new OAuthStrategy({
  clientId: 'your-client-id',
  clientSecret: 'your-client-secret',
});

const client = createSlasClient({ shortCode: 'kv7kzm78' }, auth);

// List all SLAS clients for a tenant
const { data, error } = await client.GET('/tenants/{tenantId}/clients', {
  params: { path: { tenantId: 'your-tenant' } }
});
```

## See

 - [createSlasClient](../functions/createSlasClient.md) for instantiation
 - [SLAS Admin API Reference](https://developer.salesforce.com/docs/commerce/commerce-api/references/slas-admin?meta=Summary)
