Solid Commerce Docs
POST/v1/orders/work-orders

POST /v1/orders/work-orders

Scopes: orders:orders:write

Requires scope: orders:orders:write.

Request body

FieldTypeRequiredDescription
warehouse_idinteger<int32>no
ldskuinteger<int32>no
quantityinteger<int32>no
notesstringno

Response (200)

FieldTypeRequiredDescription
idinteger<int64>no
messagestringno

Examples

import { SolidCommerceClient } from '@solidcommerce/sdk';

const client = new SolidCommerceClient({
  apiKey: process.env.SOLIDCOMMERCE_API_KEY!,
});

const { data, error } = await client.raw.POST('/v1/orders/work-orders', {
  // params: { path: { id: '...' }, query: { limit: 25 } },
  // body: { /* request body */ },
});

if (error) throw error;
console.log(data);