GET
/v1/inventory/rulesGET /v1/inventory/rules
Scopes: inventory:inventory_rules:read
Requires scope: inventory:inventory_rules:read.
Response (200)
| Field | Type | Required | Description |
|---|---|---|---|
<root> | InventoryRuleResponse[] | no |
Examples
import { SolidCommerceClient } from '@solidcommerce/sdk';
const client = new SolidCommerceClient({
apiKey: process.env.SOLIDCOMMERCE_API_KEY!,
});
const { data, error } = await client.raw.GET('/v1/inventory/rules', {
// params: { path: { id: '...' }, query: { limit: 25 } },
// body: { /* request body */ },
});
if (error) throw error;
console.log(data);