POST
/v1/vendors/po-sourcesPOST /v1/vendors/po-sources
Scopes: vendors:po_sources:write
Requires scope: vendors:po_sources:write.
Request body
| Field | Type | Required | Description |
|---|---|---|---|
liid | integer<int32> | no | |
sourceListId | integer<int32> | no |
Response (200)
| Field | Type | Required | Description |
|---|---|---|---|
id | integer<int64> | no | |
message | string | no |
Examples
import { SolidCommerceClient } from '@solidcommerce/sdk';
const client = new SolidCommerceClient({
apiKey: process.env.SOLIDCOMMERCE_API_KEY!,
});
const { data, error } = await client.raw.POST('/v1/vendors/po-sources', {
// params: { path: { id: '...' }, query: { limit: 25 } },
// body: { /* request body */ },
});
if (error) throw error;
console.log(data);