Download OpenAPI specification:Download
Pharus exposes every action in the platform as a REST endpoint. Use this API to build integrations, sync data with other systems, or back your own interface.
/api. Paths below are shown after that prefix.Authorization: Bearer <firebase-id-token> together with
X-Org-Id: <org-id> on every request. A few token-gated routes used during invitation
acceptance are public.{ "error": { "code", "message", "details?" } }, where
code is a stable identifier such as not_found, in_use, invalid_transition,
validation_failed, forbidden, unauthorized, conflict, or internal_error.{ "deletedId": "uuid" }. There are no 204 responses.?cursor=<opaque>&limit=<int> and return
{ "data": [...], "nextCursor": string | null }.{ "rows": [...] } and return a per-row { index, status, id? | error? }.| name required | string [ 1 .. 100 ] characters |
| address | string or null |
| city | string or null <= 150 characters |
| state | string or null <= 100 characters |
| country | string or null = 2 characters |
| zipCode | string or null <= 20 characters |
| notes | string or null |
{- "name": "string",
- "address": "string",
- "city": "string",
- "state": "string",
- "country": "st",
- "zipCode": "string",
- "notes": "string"
}{- "id": "string",
- "orgId": "string",
- "name": "string",
- "sortOrder": 0,
- "address": "string",
- "city": "string",
- "state": "string",
- "country": "string",
- "zipCode": "string",
- "notes": "string",
- "isActive": true,
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}{- "data": [
- {
- "id": "string",
- "orgId": "string",
- "name": "string",
- "sortOrder": 0,
- "address": "string",
- "city": "string",
- "state": "string",
- "country": "string",
- "zipCode": "string",
- "notes": "string",
- "isActive": true,
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
]
}| id required | string^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}... |
| name | string [ 1 .. 100 ] characters |
| address | string or null |
| city | string or null <= 150 characters |
| state | string or null <= 100 characters |
| country | string or null = 2 characters |
| zipCode | string or null <= 20 characters |
| notes | string or null |
| sortOrder | integer >= 0 |
| isActive | boolean |
{- "name": "string",
- "address": "string",
- "city": "string",
- "state": "string",
- "country": "st",
- "zipCode": "string",
- "notes": "string",
- "sortOrder": 0,
- "isActive": true
}{- "id": "string",
- "orgId": "string",
- "name": "string",
- "sortOrder": 0,
- "address": "string",
- "city": "string",
- "state": "string",
- "country": "string",
- "zipCode": "string",
- "notes": "string",
- "isActive": true,
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}| name required | string [ 1 .. 255 ] characters |
| address | string or null |
| city | string or null |
| state | string or null |
| country | string or null = 2 characters |
| zipCode | string or null |
| term | string or null |
| qboId | string or null |
| notes | string or null |
{- "name": "string",
- "address": "string",
- "city": "string",
- "state": "string",
- "country": "st",
- "zipCode": "string",
- "term": "string",
- "qboId": "string",
- "notes": "string"
}{- "id": "string",
- "orgId": "string",
- "name": "string",
- "address": "string",
- "city": "string",
- "state": "string",
- "country": "string",
- "zipCode": "string",
- "term": "string",
- "qboId": "string",
- "notes": "string",
- "isActive": true,
- "createdAt": "string",
- "updatedAt": "string"
}{- "data": [
- {
- "id": "string",
- "orgId": "string",
- "name": "string",
- "address": "string",
- "city": "string",
- "state": "string",
- "country": "string",
- "zipCode": "string",
- "term": "string",
- "qboId": "string",
- "notes": "string",
- "isActive": true,
- "createdAt": "string",
- "updatedAt": "string"
}
]
}| id required | string^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}... |
| name | string [ 1 .. 255 ] characters |
| address | string or null |
| city | string or null |
| state | string or null |
| country | string or null = 2 characters |
| zipCode | string or null |
| term | string or null |
| qboId | string or null |
| notes | string or null |
| isActive | boolean |
{- "name": "string",
- "address": "string",
- "city": "string",
- "state": "string",
- "country": "st",
- "zipCode": "string",
- "term": "string",
- "qboId": "string",
- "notes": "string",
- "isActive": true
}{- "id": "string",
- "orgId": "string",
- "name": "string",
- "address": "string",
- "city": "string",
- "state": "string",
- "country": "string",
- "zipCode": "string",
- "term": "string",
- "qboId": "string",
- "notes": "string",
- "isActive": true,
- "createdAt": "string",
- "updatedAt": "string"
}| id required | string^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}... |
{- "id": "string",
- "orgId": "string",
- "name": "string",
- "address": "string",
- "city": "string",
- "state": "string",
- "country": "string",
- "zipCode": "string",
- "term": "string",
- "qboId": "string",
- "notes": "string",
- "isActive": true,
- "createdAt": "string",
- "updatedAt": "string"
}required | Array of objects | ||||||||||||||||||
Array
| |||||||||||||||||||
{- "rows": [
- {
- "name": "string",
- "address": "string",
- "city": "string",
- "state": "string",
- "country": "st",
- "zipCode": "string",
- "term": "string",
- "qboId": "string",
- "notes": "string"
}
]
}{- "ids": [
- "string"
]
}| code required | string [ 1 .. 100 ] characters |
| name required | string [ 1 .. 255 ] characters |
| typeId required | string^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}... |
| notes | string or null |
{- "code": "string",
- "name": "string",
- "typeId": "string",
- "notes": "string"
}{- "id": "string",
- "orgId": "string",
- "materialCode": "string",
- "name": "string",
- "materialTypeId": "string",
- "notes": "string",
- "isActive": true,
- "createdAt": "string",
- "updatedAt": "string"
}{- "data": [
- {
- "id": "string",
- "orgId": "string",
- "materialCode": "string",
- "name": "string",
- "materialTypeId": "string",
- "notes": "string",
- "isActive": true,
- "createdAt": "string",
- "updatedAt": "string"
}
]
}| id required | string^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}... |
| code | string [ 1 .. 100 ] characters |
| name | string [ 1 .. 255 ] characters |
| typeId | string^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}... |
| notes | string or null |
| isActive | boolean |
{- "code": "string",
- "name": "string",
- "typeId": "string",
- "notes": "string",
- "isActive": true
}{- "id": "string",
- "orgId": "string",
- "materialCode": "string",
- "name": "string",
- "materialTypeId": "string",
- "notes": "string",
- "isActive": true,
- "createdAt": "string",
- "updatedAt": "string"
}| id required | string^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}... |
{- "id": "string",
- "orgId": "string",
- "materialCode": "string",
- "name": "string",
- "materialTypeId": "string",
- "notes": "string",
- "isActive": true,
- "createdAt": "string",
- "updatedAt": "string"
}required | Array of objects | ||||||||
Array
| |||||||||
{- "rows": [
- {
- "code": "string",
- "name": "string",
- "typeId": "string",
- "notes": "string"
}
]
}{- "ids": [
- "string"
]
}| name required | string [ 1 .. 100 ] characters |
{- "name": "string"
}{- "id": "string",
- "orgId": "string",
- "name": "string",
- "sortOrder": 0,
- "isActive": true,
- "createdAt": "string"
}| id required | string^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}... |
| name | string [ 1 .. 100 ] characters |
| sortOrder | integer |
| isActive | boolean |
{- "name": "string",
- "sortOrder": 0,
- "isActive": true
}{- "id": "string",
- "orgId": "string",
- "name": "string",
- "sortOrder": 0,
- "isActive": true,
- "createdAt": "string"
}| code required | string [ 1 .. 100 ] characters |
| name required | string [ 1 .. 255 ] characters |
| typeId required | string^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}... |
| itemsPerUnit | integer >= 1 |
| ozPerItem | number or null |
| qboId | string or null |
| notes | string or null |
{- "code": "string",
- "name": "string",
- "typeId": "string",
- "itemsPerUnit": 1,
- "ozPerItem": 0,
- "qboId": "string",
- "notes": "string"
}{- "id": "string",
- "orgId": "string",
- "skuCode": "string",
- "name": "string",
- "skuTypeId": "string",
- "itemsPerUnit": 0,
- "ozPerItem": "string",
- "qboId": "string",
- "notes": "string",
- "isActive": true,
- "createdAt": "string",
- "updatedAt": "string"
}| active | string Enum: "true" "false" |
| type | string |
| itemsPerUnitMin | string |
| itemsPerUnitMax | string |
| ozPerItemMin | string |
| ozPerItemMax | string |
| q | string |
{- "data": [
- {
- "id": "string",
- "orgId": "string",
- "skuCode": "string",
- "name": "string",
- "skuTypeId": "string",
- "itemsPerUnit": 0,
- "ozPerItem": "string",
- "qboId": "string",
- "notes": "string",
- "isActive": true,
- "createdAt": "string",
- "updatedAt": "string"
}
]
}| id required | string^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}... |
| code | string [ 1 .. 100 ] characters |
| name | string [ 1 .. 255 ] characters |
| typeId | string^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}... |
| itemsPerUnit | integer >= 1 |
| ozPerItem | number or null |
| qboId | string or null |
| notes | string or null |
| isActive | boolean |
{- "code": "string",
- "name": "string",
- "typeId": "string",
- "itemsPerUnit": 1,
- "ozPerItem": 0,
- "qboId": "string",
- "notes": "string",
- "isActive": true
}{- "id": "string",
- "orgId": "string",
- "skuCode": "string",
- "name": "string",
- "skuTypeId": "string",
- "itemsPerUnit": 0,
- "ozPerItem": "string",
- "qboId": "string",
- "notes": "string",
- "isActive": true,
- "createdAt": "string",
- "updatedAt": "string"
}| id required | string^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}... |
{- "id": "string",
- "orgId": "string",
- "skuCode": "string",
- "name": "string",
- "skuTypeId": "string",
- "itemsPerUnit": 0,
- "ozPerItem": "string",
- "qboId": "string",
- "notes": "string",
- "isActive": true,
- "createdAt": "string",
- "updatedAt": "string"
}required | Array of objects | ||||||||||||||
Array
| |||||||||||||||
{- "rows": [
- {
- "code": "string",
- "name": "string",
- "typeId": "string",
- "itemsPerUnit": 1,
- "ozPerItem": 0,
- "qboId": "string",
- "notes": "string"
}
]
}{- "ids": [
- "string"
]
}| name required | string [ 1 .. 100 ] characters |
{- "name": "string"
}{- "id": "string",
- "orgId": "string",
- "name": "string",
- "sortOrder": 0,
- "isActive": true,
- "createdAt": "string"
}| id required | string^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}... |
| name | string [ 1 .. 100 ] characters |
| sortOrder | integer |
| isActive | boolean |
{- "name": "string",
- "sortOrder": 0,
- "isActive": true
}{- "id": "string",
- "orgId": "string",
- "name": "string",
- "sortOrder": 0,
- "isActive": true,
- "createdAt": "string"
}| outputSkuId required | string^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}... |
required | Array of objects |
{- "outputSkuId": "string",
- "items": [
- {
- "materialId": "string",
- "inputSkuId": "string",
- "quantity": 0
}
]
}{- "outputSkuId": "string",
- "items": [
- {
- "id": "string",
- "orgId": "string",
- "skuId": "string",
- "materialId": "string",
- "inputSkuId": "string",
- "quantity": "string",
- "createdAt": "string"
}
]
}| id required | string^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}... |
| outputSkuId required | string^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}... |
required | Array of objects |
{- "outputSkuId": "string",
- "items": [
- {
- "materialId": "string",
- "inputSkuId": "string",
- "quantity": 0
}
]
}{- "outputSkuId": "string",
- "items": [
- {
- "id": "string",
- "orgId": "string",
- "skuId": "string",
- "materialId": "string",
- "inputSkuId": "string",
- "quantity": "string",
- "createdAt": "string"
}
]
}| id required | string^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}... |
{- "outputSkuId": "string",
- "items": [
- {
- "id": "string",
- "orgId": "string",
- "skuId": "string",
- "materialId": "string",
- "inputSkuId": "string",
- "quantity": "string",
- "createdAt": "string"
}
]
}| firstName required | string non-empty |
| lastName | string or null |
| title | string or null |
| notes | string or null |
| displayName | string |
{- "firstName": "string",
- "lastName": "string",
- "title": "string",
- "notes": "string",
- "displayName": "string"
}{- "id": "string",
- "orgId": "string",
- "displayName": "string",
- "firstName": "string",
- "lastName": "string",
- "title": "string",
- "notes": "string",
- "isActive": true,
- "createdAt": "string",
- "updatedAt": "string"
}| id required | string^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}... |
| firstName | string |
| lastName | string or null |
| title | string or null |
| notes | string or null |
| displayName | string |
| isActive | boolean |
{- "firstName": "string",
- "lastName": "string",
- "title": "string",
- "notes": "string",
- "displayName": "string",
- "isActive": true
}{- "id": "string",
- "orgId": "string",
- "displayName": "string",
- "firstName": "string",
- "lastName": "string",
- "title": "string",
- "notes": "string",
- "isActive": true,
- "createdAt": "string",
- "updatedAt": "string"
}| id required | string^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}... |
{- "contact": {
- "id": "string",
- "orgId": "string",
- "displayName": "string",
- "firstName": "string",
- "lastName": "string",
- "title": "string",
- "notes": "string",
- "isActive": true,
- "createdAt": "string",
- "updatedAt": "string"
}, - "methods": [
- {
- "id": "string",
- "orgId": "string",
- "contactId": "string",
- "methodType": "email",
- "value": "string",
- "label": "string",
- "isPrimary": true,
- "isActive": true,
- "createdAt": "string",
- "updatedAt": "string"
}
], - "links": [
- {
- "id": "string",
- "orgId": "string",
- "contactId": "string",
- "entityType": "customer",
- "entityId": "string",
- "role": "string",
- "isPrimary": true,
- "notes": "string",
- "isActive": true,
- "createdAt": "string",
- "updatedAt": "string"
}
]
}| id required | string^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}... |
| type required | string Enum: "email" "phone" |
| value required | string non-empty |
| label | string or null |
| isPrimary | boolean |
{- "type": "email",
- "value": "string",
- "label": "string",
- "isPrimary": true
}{- "id": "string",
- "orgId": "string",
- "contactId": "string",
- "methodType": "email",
- "value": "string",
- "label": "string",
- "isPrimary": true,
- "isActive": true,
- "createdAt": "string",
- "updatedAt": "string"
}| id required | string^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}... |
{- "data": [
- {
- "id": "string",
- "orgId": "string",
- "contactId": "string",
- "methodType": "email",
- "value": "string",
- "label": "string",
- "isPrimary": true,
- "isActive": true,
- "createdAt": "string",
- "updatedAt": "string"
}
]
}| id required | string^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}... |
| type | string Enum: "email" "phone" |
| value | string |
| label | string or null |
| isPrimary | boolean |
| isActive | boolean |
{- "type": "email",
- "value": "string",
- "label": "string",
- "isPrimary": true,
- "isActive": true
}{- "id": "string",
- "orgId": "string",
- "contactId": "string",
- "methodType": "email",
- "value": "string",
- "label": "string",
- "isPrimary": true,
- "isActive": true,
- "createdAt": "string",
- "updatedAt": "string"
}| id required | string^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}... |
| entityType required | string Enum: "customer" "vendor" |
| entityId required | string^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}... |
| role | string or null |
| notes | string or null |
| isPrimary | boolean |
{- "entityType": "customer",
- "entityId": "string",
- "role": "string",
- "notes": "string",
- "isPrimary": true
}{- "id": "string",
- "orgId": "string",
- "contactId": "string",
- "entityType": "customer",
- "entityId": "string",
- "role": "string",
- "isPrimary": true,
- "notes": "string",
- "isActive": true,
- "createdAt": "string",
- "updatedAt": "string"
}| id required | string^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}... |
| role | string or null |
| notes | string or null |
| isPrimary | boolean |
| isActive | boolean |
{- "role": "string",
- "notes": "string",
- "isPrimary": true,
- "isActive": true
}{- "id": "string",
- "orgId": "string",
- "contactId": "string",
- "entityType": "customer",
- "entityId": "string",
- "role": "string",
- "isPrimary": true,
- "notes": "string",
- "isActive": true,
- "createdAt": "string",
- "updatedAt": "string"
}| firstName required | string non-empty |
| lastName | string or null |
| email required | string <email> |
| entityType required | string Enum: "customer" "vendor" |
| entityId required | string^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}... |
| role | string or null |
{- "firstName": "string",
- "lastName": "string",
- "email": "user@example.com",
- "entityType": "customer",
- "entityId": "string",
- "role": "string"
}{- "contact": {
- "id": "string",
- "orgId": "string",
- "displayName": "string",
- "firstName": "string",
- "lastName": "string",
- "title": "string",
- "notes": "string",
- "isActive": true,
- "createdAt": "string",
- "updatedAt": "string"
}, - "method": {
- "id": "string",
- "orgId": "string",
- "contactId": "string",
- "methodType": "email",
- "value": "string",
- "label": "string",
- "isPrimary": true,
- "isActive": true,
- "createdAt": "string",
- "updatedAt": "string"
}, - "link": {
- "id": "string",
- "orgId": "string",
- "contactId": "string",
- "entityType": "customer",
- "entityId": "string",
- "role": "string",
- "isPrimary": true,
- "notes": "string",
- "isActive": true,
- "createdAt": "string",
- "updatedAt": "string"
}, - "created": true
}| entityType required | string Enum: "customer" "vendor" |
| entityId required | string^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}... |
{- "data": [
- {
- "link": {
- "id": "string",
- "orgId": "string",
- "contactId": "string",
- "entityType": "customer",
- "entityId": "string",
- "role": "string",
- "isPrimary": true,
- "notes": "string",
- "isActive": true,
- "createdAt": "string",
- "updatedAt": "string"
}, - "contact": {
- "id": "string",
- "orgId": "string",
- "displayName": "string",
- "firstName": "string",
- "lastName": "string",
- "title": "string",
- "notes": "string",
- "isActive": true,
- "createdAt": "string",
- "updatedAt": "string"
}, - "methods": [
- {
- "id": "string",
- "orgId": "string",
- "contactId": "string",
- "methodType": "email",
- "value": "string",
- "label": "string",
- "isPrimary": true,
- "isActive": true,
- "createdAt": "string",
- "updatedAt": "string"
}
]
}
]
}| materialId required | string^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}... |
| sourceLocationId required | string^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}... |
| destinationLocationId required | string^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}... |
| quantity required | number > 0 |
| eventDate | string |
| notes | string or null |
{- "materialId": "string",
- "sourceLocationId": "string",
- "destinationLocationId": "string",
- "quantity": 0,
- "eventDate": "string",
- "notes": "string"
}{- "ledgerEntry": {
- "id": "string",
- "orgId": "string",
- "code": "string",
- "materialId": "string",
- "locationId": "string",
- "eventType": "ORDER",
- "quantity": "string",
- "unitCost": "string",
- "ref": "string",
- "toLocationId": "string",
- "notes": "string",
- "eventDate": "string",
- "sourceType": "string",
- "sourceId": "string",
- "createdAt": "string"
}, - "ref": "string"
}| ref required | string |
| eventDate | string |
| notes | string or null |
{- "eventDate": "string",
- "notes": "string"
}{- "id": "string",
- "orgId": "string",
- "code": "string",
- "materialId": "string",
- "locationId": "string",
- "eventType": "ORDER",
- "quantity": "string",
- "unitCost": "string",
- "ref": "string",
- "toLocationId": "string",
- "notes": "string",
- "eventDate": "string",
- "sourceType": "string",
- "sourceId": "string",
- "createdAt": "string"
}| materialId required | string^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}... |
| locationId required | string^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}... |
| quantity required | number > 0 |
| notes | string or null |
| eventDate | string |
{- "materialId": "string",
- "locationId": "string",
- "quantity": 0,
- "notes": "string",
- "eventDate": "string"
}{- "id": "string",
- "orgId": "string",
- "code": "string",
- "materialId": "string",
- "locationId": "string",
- "eventType": "ORDER",
- "quantity": "string",
- "unitCost": "string",
- "ref": "string",
- "toLocationId": "string",
- "notes": "string",
- "eventDate": "string",
- "sourceType": "string",
- "sourceId": "string",
- "createdAt": "string"
}| materialId required | string^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}... |
| locationId required | string^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}... |
| quantity required | number > 0 |
| notes | string or null |
| eventDate | string |
{- "materialId": "string",
- "locationId": "string",
- "quantity": 0,
- "notes": "string",
- "eventDate": "string"
}{- "id": "string",
- "orgId": "string",
- "code": "string",
- "materialId": "string",
- "locationId": "string",
- "eventType": "ORDER",
- "quantity": "string",
- "unitCost": "string",
- "ref": "string",
- "toLocationId": "string",
- "notes": "string",
- "eventDate": "string",
- "sourceType": "string",
- "sourceId": "string",
- "createdAt": "string"
}| materialId | string^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}... |
| locationId | string^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}... |
{- "data": [
- {
- "materialId": "string",
- "locationId": "string",
- "onHand": "string",
- "onOrder": "string"
}
]
}| materialId | string^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}... |
| locationId | string^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}... |
| eventType | string Enum: "ORDER" "RECEIVE" "DEMAND" "ALLOCATE" "CONSUME" "TRANSFER" "ADJUST" "DISPOSE" "REVERSE_ORDER" "REVERSE_RECEIVE" "REVERSE_DEMAND" "REVERSE_ALLOCATE" "REVERSE_CONSUME" "REVERSE_TRANSFER" |
| ref | string |
| dateFrom | string |
| dateTo | string |
{- "data": [
- {
- "id": "string",
- "orgId": "string",
- "code": "string",
- "materialId": "string",
- "locationId": "string",
- "eventType": "ORDER",
- "quantity": "string",
- "unitCost": "string",
- "ref": "string",
- "toLocationId": "string",
- "notes": "string",
- "eventDate": "string",
- "sourceType": "string",
- "sourceId": "string",
- "createdAt": "string"
}
]
}| id required | string^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}... |
{- "id": "string",
- "orgId": "string",
- "code": "string",
- "materialId": "string",
- "locationId": "string",
- "eventType": "ORDER",
- "quantity": "string",
- "unitCost": "string",
- "ref": "string",
- "toLocationId": "string",
- "notes": "string",
- "eventDate": "string",
- "sourceType": "string",
- "sourceId": "string",
- "createdAt": "string"
}| skuId required | string^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}... |
| sourceLocationId required | string^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}... |
| destinationLocationId required | string^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}... |
| quantity required | number > 0 |
| eventDate | string |
| notes | string or null |
{- "skuId": "string",
- "sourceLocationId": "string",
- "destinationLocationId": "string",
- "quantity": 0,
- "eventDate": "string",
- "notes": "string"
}{- "ledgerEntry": {
- "id": "string",
- "orgId": "string",
- "code": "string",
- "skuId": "string",
- "locationId": "string",
- "eventType": "ORDER",
- "quantity": "string",
- "unitCost": "string",
- "ref": "string",
- "toLocationId": "string",
- "notes": "string",
- "eventDate": "string",
- "sourceType": "string",
- "sourceId": "string",
- "createdAt": "string"
}, - "ref": "string"
}| ref required | string |
| eventDate | string |
| notes | string or null |
{- "eventDate": "string",
- "notes": "string"
}{- "id": "string",
- "orgId": "string",
- "code": "string",
- "skuId": "string",
- "locationId": "string",
- "eventType": "ORDER",
- "quantity": "string",
- "unitCost": "string",
- "ref": "string",
- "toLocationId": "string",
- "notes": "string",
- "eventDate": "string",
- "sourceType": "string",
- "sourceId": "string",
- "createdAt": "string"
}| skuId required | string^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}... |
| locationId required | string^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}... |
| quantity required | number > 0 |
| notes | string or null |
| eventDate | string |
{- "skuId": "string",
- "locationId": "string",
- "quantity": 0,
- "notes": "string",
- "eventDate": "string"
}{- "id": "string",
- "orgId": "string",
- "code": "string",
- "skuId": "string",
- "locationId": "string",
- "eventType": "ORDER",
- "quantity": "string",
- "unitCost": "string",
- "ref": "string",
- "toLocationId": "string",
- "notes": "string",
- "eventDate": "string",
- "sourceType": "string",
- "sourceId": "string",
- "createdAt": "string"
}| skuId required | string^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}... |
| locationId required | string^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}... |
| quantity required | number > 0 |
| notes | string or null |
| eventDate | string |
{- "skuId": "string",
- "locationId": "string",
- "quantity": 0,
- "notes": "string",
- "eventDate": "string"
}{- "id": "string",
- "orgId": "string",
- "code": "string",
- "skuId": "string",
- "locationId": "string",
- "eventType": "ORDER",
- "quantity": "string",
- "unitCost": "string",
- "ref": "string",
- "toLocationId": "string",
- "notes": "string",
- "eventDate": "string",
- "sourceType": "string",
- "sourceId": "string",
- "createdAt": "string"
}| skuId | string^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}... |
| locationId | string^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}... |
{- "data": [
- {
- "skuId": "string",
- "locationId": "string",
- "onHand": "string",
- "demand": "string",
- "allocated": "string",
- "available": "string"
}
]
}| skuId | string^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}... |
| locationId | string^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}... |
| eventType | string Enum: "ORDER" "RECEIVE" "PRODUCE" "DEMAND" "ALLOCATE" "CONSUME" "TRANSFER" "ADJUST" "DISPOSE" "REVERSE_ORDER" "REVERSE_RECEIVE" "REVERSE_PRODUCE" "REVERSE_DEMAND" "REVERSE_ALLOCATE" "REVERSE_CONSUME" "REVERSE_TRANSFER" |
| ref | string |
| dateFrom | string |
| dateTo | string |
{- "data": [
- {
- "id": "string",
- "orgId": "string",
- "code": "string",
- "skuId": "string",
- "locationId": "string",
- "eventType": "ORDER",
- "quantity": "string",
- "unitCost": "string",
- "ref": "string",
- "toLocationId": "string",
- "notes": "string",
- "eventDate": "string",
- "sourceType": "string",
- "sourceId": "string",
- "createdAt": "string"
}
]
}| id required | string^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}... |
{- "id": "string",
- "orgId": "string",
- "code": "string",
- "skuId": "string",
- "locationId": "string",
- "eventType": "ORDER",
- "quantity": "string",
- "unitCost": "string",
- "ref": "string",
- "toLocationId": "string",
- "notes": "string",
- "eventDate": "string",
- "sourceType": "string",
- "sourceId": "string",
- "createdAt": "string"
}| customerId required | string^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}... |
| channelId required | string^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}... |
| status required | string Enum: "Received" "Entered" "Shipped" "Invoiced" "Paid" "Rejected" "In-Dispute" "Completed" |
| fulfillmentStatus required | string Enum: "Pending" "Partial" "Fulfilled" |
| fulfillmentLocationId | string or null^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}... |
| brokerId | string or null^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}... |
| brokerFeePercent | number or null |
| brokerFees | number >= 0 |
| fulfillmentCosts | number >= 0 |
| freightCosts | number >= 0 |
| promoCosts | number >= 0 |
| otherCosts | number >= 0 |
| mabd required | string |
| notes | string or null |
| qboId | string or null |
required | Array of objects |
{- "customerId": "string",
- "channelId": "string",
- "status": "Received",
- "fulfillmentStatus": "Pending",
- "fulfillmentLocationId": "string",
- "brokerId": "string",
- "brokerFeePercent": 0,
- "brokerFees": 0,
- "fulfillmentCosts": 0,
- "freightCosts": 0,
- "promoCosts": 0,
- "otherCosts": 0,
- "mabd": "string",
- "notes": "string",
- "qboId": "string",
- "items": [
- {
- "skuId": "string",
- "quantity": 1,
- "unitPrice": 0
}
]
}{- "salesOrder": {
- "id": "string",
- "orgId": "string",
- "customerId": "string",
- "soNumber": "string",
- "orderChannelId": "string",
- "orderStatus": "Received",
- "fulfillmentStatus": "Pending",
- "fulfillmentLocationId": "string",
- "brokerId": "string",
- "brokerFeePercent": "string",
- "brokerFees": "string",
- "fulfillmentCosts": "string",
- "freightCosts": "string",
- "promoCosts": "string",
- "otherCosts": "string",
- "mabd": "string",
- "placedAt": "string",
- "receivedAt": "string",
- "enteredAt": "string",
- "shippedAt": "string",
- "invoicedAt": "string",
- "paidAt": "string",
- "rejectedAt": "string",
- "inDisputeAt": "string",
- "completedAt": "string",
- "notes": "string",
- "qboId": "string",
- "createdAt": "string",
- "updatedAt": "string"
}, - "items": [
- {
- "id": "string",
- "orgId": "string",
- "salesOrderId": "string",
- "skuId": "string",
- "quantity": 0,
- "unitPrice": "string"
}
]
}{- "data": [
- {
- "id": "string",
- "orgId": "string",
- "customerId": "string",
- "soNumber": "string",
- "orderChannelId": "string",
- "orderStatus": "Received",
- "fulfillmentStatus": "Pending",
- "fulfillmentLocationId": "string",
- "brokerId": "string",
- "brokerFeePercent": "string",
- "brokerFees": "string",
- "fulfillmentCosts": "string",
- "freightCosts": "string",
- "promoCosts": "string",
- "otherCosts": "string",
- "mabd": "string",
- "placedAt": "string",
- "receivedAt": "string",
- "enteredAt": "string",
- "shippedAt": "string",
- "invoicedAt": "string",
- "paidAt": "string",
- "rejectedAt": "string",
- "inDisputeAt": "string",
- "completedAt": "string",
- "notes": "string",
- "qboId": "string",
- "createdAt": "string",
- "updatedAt": "string"
}
]
}| id required | string^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}... |
| customerId | string^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}... |
| channelId | string^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}... |
| status | string Enum: "Received" "Entered" "Shipped" "Invoiced" "Paid" "Rejected" "In-Dispute" "Completed" |
| fulfillmentStatus | string Enum: "Pending" "Partial" "Fulfilled" |
| fulfillmentLocationId | string or null^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}... |
| brokerId | string or null^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}... |
| brokerFeePercent | number or null |
| brokerFees | number >= 0 |
| fulfillmentCosts | number >= 0 |
| freightCosts | number >= 0 |
| promoCosts | number >= 0 |
| otherCosts | number >= 0 |
| mabd | string |
| notes | string or null |
| qboId | string or null |
| placedAt | string |
| receivedAt | string or null |
| enteredAt | string or null |
| shippedAt | string or null |
| invoicedAt | string or null |
| paidAt | string or null |
| rejectedAt | string or null |
| inDisputeAt | string or null |
| completedAt | string or null |
{- "customerId": "string",
- "channelId": "string",
- "status": "Received",
- "fulfillmentStatus": "Pending",
- "fulfillmentLocationId": "string",
- "brokerId": "string",
- "brokerFeePercent": 0,
- "brokerFees": 0,
- "fulfillmentCosts": 0,
- "freightCosts": 0,
- "promoCosts": 0,
- "otherCosts": 0,
- "mabd": "string",
- "notes": "string",
- "qboId": "string",
- "placedAt": "string",
- "receivedAt": "string",
- "enteredAt": "string",
- "shippedAt": "string",
- "invoicedAt": "string",
- "paidAt": "string",
- "rejectedAt": "string",
- "inDisputeAt": "string",
- "completedAt": "string"
}{- "id": "string",
- "orgId": "string",
- "customerId": "string",
- "soNumber": "string",
- "orderChannelId": "string",
- "orderStatus": "Received",
- "fulfillmentStatus": "Pending",
- "fulfillmentLocationId": "string",
- "brokerId": "string",
- "brokerFeePercent": "string",
- "brokerFees": "string",
- "fulfillmentCosts": "string",
- "freightCosts": "string",
- "promoCosts": "string",
- "otherCosts": "string",
- "mabd": "string",
- "placedAt": "string",
- "receivedAt": "string",
- "enteredAt": "string",
- "shippedAt": "string",
- "invoicedAt": "string",
- "paidAt": "string",
- "rejectedAt": "string",
- "inDisputeAt": "string",
- "completedAt": "string",
- "notes": "string",
- "qboId": "string",
- "createdAt": "string",
- "updatedAt": "string"
}| id required | string^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}... |
{- "salesOrder": {
- "id": "string",
- "orgId": "string",
- "customerId": "string",
- "soNumber": "string",
- "orderChannelId": "string",
- "orderStatus": "Received",
- "fulfillmentStatus": "Pending",
- "fulfillmentLocationId": "string",
- "brokerId": "string",
- "brokerFeePercent": "string",
- "brokerFees": "string",
- "fulfillmentCosts": "string",
- "freightCosts": "string",
- "promoCosts": "string",
- "otherCosts": "string",
- "mabd": "string",
- "placedAt": "string",
- "receivedAt": "string",
- "enteredAt": "string",
- "shippedAt": "string",
- "invoicedAt": "string",
- "paidAt": "string",
- "rejectedAt": "string",
- "inDisputeAt": "string",
- "completedAt": "string",
- "notes": "string",
- "qboId": "string",
- "createdAt": "string",
- "updatedAt": "string"
}, - "items": [
- {
- "id": "string",
- "orgId": "string",
- "salesOrderId": "string",
- "skuId": "string",
- "quantity": 0,
- "unitPrice": "string"
}
]
}required | Array of objects | ||||||||||||||||||||||||||||||||
Array
| |||||||||||||||||||||||||||||||||
{- "rows": [
- {
- "customerId": "string",
- "channelId": "string",
- "status": "Received",
- "fulfillmentStatus": "Pending",
- "fulfillmentLocationId": "string",
- "brokerId": "string",
- "brokerFeePercent": 0,
- "brokerFees": 0,
- "fulfillmentCosts": 0,
- "freightCosts": 0,
- "promoCosts": 0,
- "otherCosts": 0,
- "mabd": "string",
- "notes": "string",
- "qboId": "string",
- "items": [
- {
- "skuId": "string",
- "quantity": 1,
- "unitPrice": 0
}
]
}
]
}{- "ids": [
- "string"
]
}| id required | string^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}... |
| skuId required | string^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}... |
| quantity required | integer >= 1 |
| unitPrice | number >= 0 |
{- "skuId": "string",
- "quantity": 1,
- "unitPrice": 0
}{- "id": "string",
- "orgId": "string",
- "salesOrderId": "string",
- "skuId": "string",
- "quantity": 0,
- "unitPrice": "string"
}| id required | string^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}... |
| skuId | string^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}... |
| quantity | integer >= 1 |
| unitPrice | number >= 0 |
{- "skuId": "string",
- "quantity": 1,
- "unitPrice": 0
}{- "id": "string",
- "orgId": "string",
- "salesOrderId": "string",
- "skuId": "string",
- "quantity": 0,
- "unitPrice": "string"
}| id required | string^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}... |
| body required | string non-empty |
| statusAtTime | string Enum: "Received" "Entered" "Shipped" "Invoiced" "Paid" "Rejected" "In-Dispute" "Completed" |
{- "body": "string",
- "statusAtTime": "Received"
}{- "id": "string",
- "orgId": "string",
- "salesOrderId": "string",
- "orderStatus": "Received",
- "note": "string",
- "createdAt": "string"
}| id required | string^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}... |
{- "data": [
- {
- "id": "string",
- "orgId": "string",
- "salesOrderId": "string",
- "orderStatus": "Received",
- "note": "string",
- "createdAt": "string"
}
]
}| name required | string [ 1 .. 100 ] characters |
{- "name": "string"
}{- "id": "string",
- "orgId": "string",
- "name": "string",
- "sortOrder": 0,
- "isActive": true,
- "createdAt": "string"
}| id required | string^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}... |
| name | string [ 1 .. 100 ] characters |
| sortOrder | integer |
| isActive | boolean |
{- "name": "string",
- "sortOrder": 0,
- "isActive": true
}{- "id": "string",
- "orgId": "string",
- "name": "string",
- "sortOrder": 0,
- "isActive": true,
- "createdAt": "string"
}| vendorId required | string^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}... |
| targetType required | string Enum: "materials" "finished_goods" |
| status required | string Enum: "Planning" "Placed" "In Transit" "Partial" "Received" "Paid" "Cancelled" |
| shipToLocationId | string or null^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}... |
| placedAt | string |
| shipDate | string or null |
| expectedDeliveryDate | string or null |
| shippingCosts | number >= 0 |
| setupCosts | number >= 0 |
| otherCosts | number >= 0 |
| notes | string or null |
required | Array of objects |
{- "vendorId": "string",
- "targetType": "materials",
- "status": "Planning",
- "shipToLocationId": "string",
- "placedAt": "string",
- "shipDate": "string",
- "expectedDeliveryDate": "string",
- "shippingCosts": 0,
- "setupCosts": 0,
- "otherCosts": 0,
- "notes": "string",
- "items": [
- {
- "materialId": "string",
- "skuId": "string",
- "quantity": 0,
- "unitCost": 0
}
]
}{- "purchaseOrder": {
- "id": "string",
- "orgId": "string",
- "poNumber": "string",
- "vendorId": "string",
- "targetType": "materials",
- "status": "Planning",
- "shipToLocationId": "string",
- "planningAt": "string",
- "placedAt": "string",
- "shipDate": "string",
- "inTransitAt": "string",
- "partialAt": "string",
- "expectedDeliveryDate": "string",
- "receivedAt": "string",
- "paidAt": "string",
- "cancelledAt": "string",
- "shippingCosts": "string",
- "setupCosts": "string",
- "otherCosts": "string",
- "notes": "string",
- "createdAt": "string",
- "updatedAt": "string"
}, - "items": [
- {
- "id": "string",
- "orgId": "string",
- "purchaseOrderId": "string",
- "materialId": "string",
- "skuId": "string",
- "quantity": "string",
- "unitCost": "string"
}
]
}{- "data": [
- {
- "id": "string",
- "orgId": "string",
- "poNumber": "string",
- "vendorId": "string",
- "targetType": "materials",
- "status": "Planning",
- "shipToLocationId": "string",
- "planningAt": "string",
- "placedAt": "string",
- "shipDate": "string",
- "inTransitAt": "string",
- "partialAt": "string",
- "expectedDeliveryDate": "string",
- "receivedAt": "string",
- "paidAt": "string",
- "cancelledAt": "string",
- "shippingCosts": "string",
- "setupCosts": "string",
- "otherCosts": "string",
- "notes": "string",
- "createdAt": "string",
- "updatedAt": "string"
}
]
}| id required | string^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}... |
| vendorId | string^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}... |
| targetType | string Enum: "materials" "finished_goods" |
| status | string Enum: "Planning" "Placed" "In Transit" "Partial" "Received" "Paid" "Cancelled" |
| shipToLocationId | string or null^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}... |
| placedAt | string |
| shipDate | string or null |
| expectedDeliveryDate | string or null |
| shippingCosts | number >= 0 |
| setupCosts | number >= 0 |
| otherCosts | number >= 0 |
| notes | string or null |
| planningAt | string or null |
| inTransitAt | string or null |
| partialAt | string or null |
| receivedAt | string or null |
| paidAt | string or null |
| cancelledAt | string or null |
{- "vendorId": "string",
- "targetType": "materials",
- "status": "Planning",
- "shipToLocationId": "string",
- "placedAt": "string",
- "shipDate": "string",
- "expectedDeliveryDate": "string",
- "shippingCosts": 0,
- "setupCosts": 0,
- "otherCosts": 0,
- "notes": "string",
- "planningAt": "string",
- "inTransitAt": "string",
- "partialAt": "string",
- "receivedAt": "string",
- "paidAt": "string",
- "cancelledAt": "string"
}{- "id": "string",
- "orgId": "string",
- "poNumber": "string",
- "vendorId": "string",
- "targetType": "materials",
- "status": "Planning",
- "shipToLocationId": "string",
- "planningAt": "string",
- "placedAt": "string",
- "shipDate": "string",
- "inTransitAt": "string",
- "partialAt": "string",
- "expectedDeliveryDate": "string",
- "receivedAt": "string",
- "paidAt": "string",
- "cancelledAt": "string",
- "shippingCosts": "string",
- "setupCosts": "string",
- "otherCosts": "string",
- "notes": "string",
- "createdAt": "string",
- "updatedAt": "string"
}| id required | string^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}... |
{- "purchaseOrder": {
- "id": "string",
- "orgId": "string",
- "poNumber": "string",
- "vendorId": "string",
- "targetType": "materials",
- "status": "Planning",
- "shipToLocationId": "string",
- "planningAt": "string",
- "placedAt": "string",
- "shipDate": "string",
- "inTransitAt": "string",
- "partialAt": "string",
- "expectedDeliveryDate": "string",
- "receivedAt": "string",
- "paidAt": "string",
- "cancelledAt": "string",
- "shippingCosts": "string",
- "setupCosts": "string",
- "otherCosts": "string",
- "notes": "string",
- "createdAt": "string",
- "updatedAt": "string"
}, - "items": [
- {
- "id": "string",
- "orgId": "string",
- "purchaseOrderId": "string",
- "materialId": "string",
- "skuId": "string",
- "quantity": "string",
- "unitCost": "string"
}
]
}required | Array of objects | ||||||||||||||||||||||||
Array
| |||||||||||||||||||||||||
{- "rows": [
- {
- "vendorId": "string",
- "targetType": "materials",
- "status": "Planning",
- "shipToLocationId": "string",
- "placedAt": "string",
- "shipDate": "string",
- "expectedDeliveryDate": "string",
- "shippingCosts": 0,
- "setupCosts": 0,
- "otherCosts": 0,
- "notes": "string",
- "items": [
- {
- "materialId": "string",
- "skuId": "string",
- "quantity": 0,
- "unitCost": 0
}
]
}
]
}{- "ids": [
- "string"
]
}| id required | string^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}... |
| materialId | string or null^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}... |
| skuId | string or null^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}... |
| quantity required | number > 0 |
| unitCost | number >= 0 |
{- "materialId": "string",
- "skuId": "string",
- "quantity": 0,
- "unitCost": 0
}{- "id": "string",
- "orgId": "string",
- "purchaseOrderId": "string",
- "materialId": "string",
- "skuId": "string",
- "quantity": "string",
- "unitCost": "string"
}| id required | string^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}... |
{- "data": [
- {
- "id": "string",
- "orgId": "string",
- "purchaseOrderId": "string",
- "materialId": "string",
- "skuId": "string",
- "quantity": "string",
- "unitCost": "string"
}
]
}| id required | string^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}... |
| materialId | string or null^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}... |
| skuId | string or null^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}... |
| quantity | number > 0 |
| unitCost | number >= 0 |
{- "materialId": "string",
- "skuId": "string",
- "quantity": 0,
- "unitCost": 0
}{- "id": "string",
- "orgId": "string",
- "purchaseOrderId": "string",
- "materialId": "string",
- "skuId": "string",
- "quantity": "string",
- "unitCost": "string"
}| id required | string^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}... |
| receiptDate | string |
| notes | string or null |
required | Array of objects |
{- "receiptDate": "string",
- "notes": "string",
- "items": [
- {
- "materialId": "string",
- "skuId": "string",
- "quantity": 0,
- "unitCost": 0
}
]
}{- "purchaseOrder": {
- "id": "string",
- "orgId": "string",
- "poNumber": "string",
- "vendorId": "string",
- "targetType": "materials",
- "status": "Planning",
- "shipToLocationId": "string",
- "planningAt": "string",
- "placedAt": "string",
- "shipDate": "string",
- "inTransitAt": "string",
- "partialAt": "string",
- "expectedDeliveryDate": "string",
- "receivedAt": "string",
- "paidAt": "string",
- "cancelledAt": "string",
- "shippingCosts": "string",
- "setupCosts": "string",
- "otherCosts": "string",
- "notes": "string",
- "createdAt": "string",
- "updatedAt": "string"
}, - "receipt": {
- "id": "string",
- "orgId": "string",
- "purchaseOrderId": "string",
- "receiptDate": "string",
- "createdAt": "string",
- "updatedAt": "string"
}, - "receiptItems": [
- {
- "id": "string",
- "orgId": "string",
- "receiptId": "string",
- "materialId": "string",
- "skuId": "string",
- "quantity": "string",
- "unitCost": "string",
- "createdAt": "string"
}
]
}| id required | string^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}... |
| receiptDate | string |
{- "receiptDate": "string"
}{- "id": "string",
- "orgId": "string",
- "purchaseOrderId": "string",
- "receiptDate": "string",
- "createdAt": "string",
- "updatedAt": "string"
}| id required | string^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}... |
{- "receipt": {
- "id": "string",
- "orgId": "string",
- "purchaseOrderId": "string",
- "receiptDate": "string",
- "createdAt": "string",
- "updatedAt": "string"
}, - "items": [
- {
- "id": "string",
- "orgId": "string",
- "receiptId": "string",
- "materialId": "string",
- "skuId": "string",
- "quantity": "string",
- "unitCost": "string",
- "createdAt": "string"
}
]
}| status required | string Enum: "Draft" "Entered" "Placed" "Production" "In Transit" "Partial" "Received" "Completed" "Cancelled" |
| workSiteLocationId required | string^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}... |
| orderDate | string |
| expectedDeliveryDate | string or null |
| notes | string or null |
required | Array of objects |
{- "status": "Draft",
- "workSiteLocationId": "string",
- "orderDate": "string",
- "expectedDeliveryDate": "string",
- "notes": "string",
- "items": [
- {
- "skuId": "string",
- "quantity": 1,
- "conversionCost": 0
}
]
}{- "workOrder": {
- "id": "string",
- "orgId": "string",
- "woNumber": "string",
- "status": "Draft",
- "workSiteId": "string",
- "draftAt": "string",
- "enteredAt": "string",
- "placedAt": "string",
- "expectedDeliveryDate": "string",
- "productionStartedAt": "string",
- "inTransitAt": "string",
- "partialAt": "string",
- "receivedAt": "string",
- "completedAt": "string",
- "cancelledAt": "string",
- "notes": "string",
- "createdAt": "string",
- "updatedAt": "string"
}, - "items": [
- {
- "id": "string",
- "orgId": "string",
- "workOrderId": "string",
- "skuId": "string",
- "quantity": 0,
- "conversionCost": "string",
- "createdAt": "string"
}
], - "inputs": [
- {
- "id": "string",
- "orgId": "string",
- "workOrderId": "string",
- "workOrderItemId": "string",
- "materialId": "string",
- "inputSkuId": "string",
- "quantity": "string",
- "createdAt": "string"
}
]
}{- "data": [
- {
- "id": "string",
- "orgId": "string",
- "woNumber": "string",
- "status": "Draft",
- "workSiteId": "string",
- "draftAt": "string",
- "enteredAt": "string",
- "placedAt": "string",
- "expectedDeliveryDate": "string",
- "productionStartedAt": "string",
- "inTransitAt": "string",
- "partialAt": "string",
- "receivedAt": "string",
- "completedAt": "string",
- "cancelledAt": "string",
- "notes": "string",
- "createdAt": "string",
- "updatedAt": "string"
}
]
}| id required | string^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}... |
| status | string Enum: "Draft" "Entered" "Placed" "Production" "In Transit" "Partial" "Received" "Completed" "Cancelled" |
| workSiteLocationId | string^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}... |
| orderDate | string |
| expectedDeliveryDate | string or null |
| notes | string or null |
| placedAt | string |
| draftAt | string or null |
| enteredAt | string or null |
| productionStartedAt | string or null |
| inTransitAt | string or null |
| partialAt | string or null |
| receivedAt | string or null |
| completedAt | string or null |
| cancelledAt | string or null |
{- "status": "Draft",
- "workSiteLocationId": "string",
- "orderDate": "string",
- "expectedDeliveryDate": "string",
- "notes": "string",
- "placedAt": "string",
- "draftAt": "string",
- "enteredAt": "string",
- "productionStartedAt": "string",
- "inTransitAt": "string",
- "partialAt": "string",
- "receivedAt": "string",
- "completedAt": "string",
- "cancelledAt": "string"
}{- "id": "string",
- "orgId": "string",
- "woNumber": "string",
- "status": "Draft",
- "workSiteId": "string",
- "draftAt": "string",
- "enteredAt": "string",
- "placedAt": "string",
- "expectedDeliveryDate": "string",
- "productionStartedAt": "string",
- "inTransitAt": "string",
- "partialAt": "string",
- "receivedAt": "string",
- "completedAt": "string",
- "cancelledAt": "string",
- "notes": "string",
- "createdAt": "string",
- "updatedAt": "string"
}| id required | string^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}... |
{- "workOrder": {
- "id": "string",
- "orgId": "string",
- "woNumber": "string",
- "status": "Draft",
- "workSiteId": "string",
- "draftAt": "string",
- "enteredAt": "string",
- "placedAt": "string",
- "expectedDeliveryDate": "string",
- "productionStartedAt": "string",
- "inTransitAt": "string",
- "partialAt": "string",
- "receivedAt": "string",
- "completedAt": "string",
- "cancelledAt": "string",
- "notes": "string",
- "createdAt": "string",
- "updatedAt": "string"
}, - "items": [
- {
- "id": "string",
- "orgId": "string",
- "workOrderId": "string",
- "skuId": "string",
- "quantity": 0,
- "conversionCost": "string",
- "createdAt": "string"
}
], - "inputs": [
- {
- "id": "string",
- "orgId": "string",
- "workOrderId": "string",
- "workOrderItemId": "string",
- "materialId": "string",
- "inputSkuId": "string",
- "quantity": "string",
- "createdAt": "string"
}
]
}required | Array of objects | ||||||||||||
Array
| |||||||||||||
{- "rows": [
- {
- "status": "Draft",
- "workSiteLocationId": "string",
- "orderDate": "string",
- "expectedDeliveryDate": "string",
- "notes": "string",
- "items": [
- {
- "skuId": "string",
- "quantity": 1,
- "conversionCost": 0
}
]
}
]
}{- "ids": [
- "string"
]
}| id required | string^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}... |
| skuId required | string^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}... |
| quantity required | integer >= 1 |
| conversionCost | number >= 0 |
{- "skuId": "string",
- "quantity": 1,
- "conversionCost": 0
}{- "item": {
- "id": "string",
- "orgId": "string",
- "workOrderId": "string",
- "skuId": "string",
- "quantity": 0,
- "conversionCost": "string",
- "createdAt": "string"
}, - "inputs": [
- {
- "id": "string",
- "orgId": "string",
- "workOrderId": "string",
- "workOrderItemId": "string",
- "materialId": "string",
- "inputSkuId": "string",
- "quantity": "string",
- "createdAt": "string"
}
]
}| id required | string^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}... |
| quantity | integer >= 1 |
| conversionCost | number >= 0 |
{- "quantity": 1,
- "conversionCost": 0
}{- "item": {
- "id": "string",
- "orgId": "string",
- "workOrderId": "string",
- "skuId": "string",
- "quantity": 0,
- "conversionCost": "string",
- "createdAt": "string"
}, - "inputs": [
- {
- "id": "string",
- "orgId": "string",
- "workOrderId": "string",
- "workOrderItemId": "string",
- "materialId": "string",
- "inputSkuId": "string",
- "quantity": "string",
- "createdAt": "string"
}
]
}| id required | string^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}... |
| receiptDate | string |
| notes | string or null |
required | Array of objects |
{- "receiptDate": "string",
- "notes": "string",
- "items": [
- {
- "skuId": "string",
- "quantity": 1,
- "unitCost": 0
}
]
}{- "workOrder": {
- "id": "string",
- "orgId": "string",
- "woNumber": "string",
- "status": "Draft",
- "workSiteId": "string",
- "draftAt": "string",
- "enteredAt": "string",
- "placedAt": "string",
- "expectedDeliveryDate": "string",
- "productionStartedAt": "string",
- "inTransitAt": "string",
- "partialAt": "string",
- "receivedAt": "string",
- "completedAt": "string",
- "cancelledAt": "string",
- "notes": "string",
- "createdAt": "string",
- "updatedAt": "string"
}, - "receipt": {
- "id": "string",
- "orgId": "string",
- "workOrderId": "string",
- "receiptDate": "string",
- "createdAt": "string"
}, - "receiptItems": [
- {
- "id": "string",
- "orgId": "string",
- "receiptId": "string",
- "skuId": "string",
- "quantity": 0,
- "unitCost": "string",
- "createdAt": "string"
}
]
}| id required | string^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}... |
| receiptDate | string |
{- "receiptDate": "string"
}{- "id": "string",
- "orgId": "string",
- "workOrderId": "string",
- "receiptDate": "string",
- "createdAt": "string"
}| id required | string^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}... |
{- "receipt": {
- "id": "string",
- "orgId": "string",
- "workOrderId": "string",
- "receiptDate": "string",
- "createdAt": "string"
}, - "items": [
- {
- "id": "string",
- "orgId": "string",
- "receiptId": "string",
- "skuId": "string",
- "quantity": 0,
- "unitCost": "string",
- "createdAt": "string"
}
]
}| status required | string Enum: "Draft" "Entered" "Placed" "Production" "In Transit" "Partial" "Received" "Completed" "Cancelled" |
| locationId required | string^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}... |
| orderDate | string |
| expectedDeliveryDate | string or null |
| notes | string or null |
required | Array of objects |
{- "status": "Draft",
- "locationId": "string",
- "orderDate": "string",
- "expectedDeliveryDate": "string",
- "notes": "string",
- "items": [
- {
- "skuId": "string",
- "quantity": 1,
- "productionCost": 0
}
]
}{- "productionOrder": {
- "id": "string",
- "orgId": "string",
- "prodNumber": "string",
- "status": "Draft",
- "locationId": "string",
- "placedAt": "string",
- "expectedDeliveryDate": "string",
- "draftAt": "string",
- "enteredAt": "string",
- "productionStartedAt": "string",
- "inTransitAt": "string",
- "partialAt": "string",
- "receivedAt": "string",
- "completedAt": "string",
- "cancelledAt": "string",
- "notes": "string",
- "createdAt": "string",
- "updatedAt": "string"
}, - "items": [
- {
- "id": "string",
- "orgId": "string",
- "productionOrderId": "string",
- "skuId": "string",
- "quantity": 0,
- "productionCost": "string",
- "createdAt": "string"
}
], - "inputs": [
- {
- "id": "string",
- "orgId": "string",
- "productionOrderId": "string",
- "productionOrderItemId": "string",
- "materialId": "string",
- "quantity": "string",
- "createdAt": "string"
}
]
}{- "data": [
- {
- "id": "string",
- "orgId": "string",
- "prodNumber": "string",
- "status": "Draft",
- "locationId": "string",
- "placedAt": "string",
- "expectedDeliveryDate": "string",
- "draftAt": "string",
- "enteredAt": "string",
- "productionStartedAt": "string",
- "inTransitAt": "string",
- "partialAt": "string",
- "receivedAt": "string",
- "completedAt": "string",
- "cancelledAt": "string",
- "notes": "string",
- "createdAt": "string",
- "updatedAt": "string"
}
]
}| id required | string^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}... |
| status | string Enum: "Draft" "Entered" "Placed" "Production" "In Transit" "Partial" "Received" "Completed" "Cancelled" |
| locationId | string^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}... |
| orderDate | string |
| expectedDeliveryDate | string or null |
| notes | string or null |
| placedAt | string |
| draftAt | string or null |
| enteredAt | string or null |
| productionStartedAt | string or null |
| inTransitAt | string or null |
| partialAt | string or null |
| receivedAt | string or null |
| completedAt | string or null |
| cancelledAt | string or null |
{- "status": "Draft",
- "locationId": "string",
- "orderDate": "string",
- "expectedDeliveryDate": "string",
- "notes": "string",
- "placedAt": "string",
- "draftAt": "string",
- "enteredAt": "string",
- "productionStartedAt": "string",
- "inTransitAt": "string",
- "partialAt": "string",
- "receivedAt": "string",
- "completedAt": "string",
- "cancelledAt": "string"
}{- "id": "string",
- "orgId": "string",
- "prodNumber": "string",
- "status": "Draft",
- "locationId": "string",
- "placedAt": "string",
- "expectedDeliveryDate": "string",
- "draftAt": "string",
- "enteredAt": "string",
- "productionStartedAt": "string",
- "inTransitAt": "string",
- "partialAt": "string",
- "receivedAt": "string",
- "completedAt": "string",
- "cancelledAt": "string",
- "notes": "string",
- "createdAt": "string",
- "updatedAt": "string"
}| id required | string^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}... |
{- "productionOrder": {
- "id": "string",
- "orgId": "string",
- "prodNumber": "string",
- "status": "Draft",
- "locationId": "string",
- "placedAt": "string",
- "expectedDeliveryDate": "string",
- "draftAt": "string",
- "enteredAt": "string",
- "productionStartedAt": "string",
- "inTransitAt": "string",
- "partialAt": "string",
- "receivedAt": "string",
- "completedAt": "string",
- "cancelledAt": "string",
- "notes": "string",
- "createdAt": "string",
- "updatedAt": "string"
}, - "items": [
- {
- "id": "string",
- "orgId": "string",
- "productionOrderId": "string",
- "skuId": "string",
- "quantity": 0,
- "productionCost": "string",
- "createdAt": "string"
}
], - "inputs": [
- {
- "id": "string",
- "orgId": "string",
- "productionOrderId": "string",
- "productionOrderItemId": "string",
- "materialId": "string",
- "quantity": "string",
- "createdAt": "string"
}
]
}required | Array of objects | ||||||||||||
Array
| |||||||||||||
{- "rows": [
- {
- "status": "Draft",
- "locationId": "string",
- "orderDate": "string",
- "expectedDeliveryDate": "string",
- "notes": "string",
- "items": [
- {
- "skuId": "string",
- "quantity": 1,
- "productionCost": 0
}
]
}
]
}{- "ids": [
- "string"
]
}| id required | string^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}... |
| skuId required | string^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}... |
| quantity required | integer >= 1 |
| productionCost | number or null >= 0 |
{- "skuId": "string",
- "quantity": 1,
- "productionCost": 0
}{- "item": {
- "id": "string",
- "orgId": "string",
- "productionOrderId": "string",
- "skuId": "string",
- "quantity": 0,
- "productionCost": "string",
- "createdAt": "string"
}, - "inputs": [
- {
- "id": "string",
- "orgId": "string",
- "productionOrderId": "string",
- "productionOrderItemId": "string",
- "materialId": "string",
- "quantity": "string",
- "createdAt": "string"
}
]
}| id required | string^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}... |
| quantity | integer >= 1 |
| productionCost | number or null >= 0 |
{- "quantity": 1,
- "productionCost": 0
}{- "item": {
- "id": "string",
- "orgId": "string",
- "productionOrderId": "string",
- "skuId": "string",
- "quantity": 0,
- "productionCost": "string",
- "createdAt": "string"
}, - "inputs": [
- {
- "id": "string",
- "orgId": "string",
- "productionOrderId": "string",
- "productionOrderItemId": "string",
- "materialId": "string",
- "quantity": "string",
- "createdAt": "string"
}
]
}| id required | string^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}... |
| receiptDate | string |
| notes | string or null |
required | Array of objects |
{- "receiptDate": "string",
- "notes": "string",
- "items": [
- {
- "skuId": "string",
- "quantity": 1
}
]
}{- "productionOrder": {
- "id": "string",
- "orgId": "string",
- "prodNumber": "string",
- "status": "Draft",
- "locationId": "string",
- "placedAt": "string",
- "expectedDeliveryDate": "string",
- "draftAt": "string",
- "enteredAt": "string",
- "productionStartedAt": "string",
- "inTransitAt": "string",
- "partialAt": "string",
- "receivedAt": "string",
- "completedAt": "string",
- "cancelledAt": "string",
- "notes": "string",
- "createdAt": "string",
- "updatedAt": "string"
}, - "receipt": {
- "id": "string",
- "orgId": "string",
- "productionOrderId": "string",
- "receiptDate": "string",
- "createdAt": "string"
}, - "receiptItems": [
- {
- "id": "string",
- "orgId": "string",
- "receiptId": "string",
- "skuId": "string",
- "quantity": 0,
- "unitCost": "string",
- "createdAt": "string"
}
]
}| id required | string^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}... |
| receiptDate | string |
{- "receiptDate": "string"
}{- "id": "string",
- "orgId": "string",
- "productionOrderId": "string",
- "receiptDate": "string",
- "createdAt": "string"
}| id required | string^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}... |
{- "receipt": {
- "id": "string",
- "orgId": "string",
- "productionOrderId": "string",
- "receiptDate": "string",
- "createdAt": "string"
}, - "items": [
- {
- "id": "string",
- "orgId": "string",
- "receiptId": "string",
- "skuId": "string",
- "quantity": 0,
- "unitCost": "string",
- "createdAt": "string"
}
]
}| file required | string <binary> |
| entityType required | string Enum: "sales_order" "purchase_order" "work_order" |
| entityId required | string <uuid> |
{- "id": "string",
- "orgId": "string",
- "entityType": "sales_order",
- "entityId": "string",
- "name": "string",
- "gcsPath": "string",
- "mimeType": "string",
- "sizeBytes": "string",
- "createdAt": "string"
}| entityType required | string Enum: "sales_order" "purchase_order" "work_order" |
| entityId required | string^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}... |
{- "data": [
- {
- "id": "string",
- "orgId": "string",
- "entityType": "sales_order",
- "entityId": "string",
- "name": "string",
- "gcsPath": "string",
- "mimeType": "string",
- "sizeBytes": "string",
- "createdAt": "string"
}
]
}| id required | string^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}... |
{- "id": "string",
- "orgId": "string",
- "entityType": "sales_order",
- "entityId": "string",
- "name": "string",
- "gcsPath": "string",
- "mimeType": "string",
- "sizeBytes": "string",
- "createdAt": "string",
- "signedUrl": "string"
}| email required | string <email> |
| displayName | string or null |
{- "email": "user@example.com",
- "displayName": "string"
}{- "id": "string",
- "firebaseUid": "string",
- "email": "string",
- "displayName": "string",
- "isActive": true,
- "lastLoginAt": "string",
- "createdAt": "string",
- "updatedAt": "string"
}{- "user": {
- "id": "string",
- "firebaseUid": "string",
- "email": "string",
- "displayName": "string",
- "isActive": true,
- "lastLoginAt": "string",
- "createdAt": "string",
- "updatedAt": "string"
}, - "organizations": [
- {
- "organization": {
- "id": "string",
- "name": "string",
- "slug": "string",
- "isActive": true,
- "createdAt": "string",
- "updatedAt": "string"
}, - "role": "owner",
- "settings": {
- "orgId": "string",
- "legalName": "string",
- "address": "string",
- "city": "string",
- "state": "string",
- "country": "string",
- "zipCode": "string",
- "logoUrl": "string",
- "contactEmail": "string",
- "contactPhone": "string",
- "createdAt": "string",
- "updatedAt": "string"
}
}
]
}{- "displayName": "string"
}{- "id": "string",
- "firebaseUid": "string",
- "email": "string",
- "displayName": "string",
- "isActive": true,
- "lastLoginAt": "string",
- "createdAt": "string",
- "updatedAt": "string"
}| name required | string [ 1 .. 255 ] characters |
| orgId required | string^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}... |
| expiresInDays | integer or null [ 1 .. 3650 ] |
{- "name": "string",
- "orgId": "string",
- "expiresInDays": 1
}{- "token": {
- "id": "string",
- "userId": "string",
- "orgId": "string",
- "name": "string",
- "tokenPrefix": "string",
- "lastUsedAt": "string",
- "expiresAt": "string",
- "revokedAt": "string",
- "createdAt": "string"
}, - "plaintext": "string"
}| token required | string |
| displayName | string or null |
{- "token": "string",
- "displayName": "string"
}{- "id": "string",
- "userId": "string",
- "orgId": "string",
- "role": "owner",
- "isActive": true,
- "joinedAt": "string",
- "lastActiveAt": "string",
- "createdAt": "string",
- "updatedAt": "string"
}| name required | string [ 1 .. 255 ] characters |
| slug required | string^[a-z0-9][a-z0-9-]*[a-z0-9]$ |
{- "name": "string",
- "slug": "string"
}{- "organization": {
- "id": "string",
- "name": "string",
- "slug": "string",
- "isActive": true,
- "createdAt": "string",
- "updatedAt": "string"
}, - "membership": {
- "id": "string",
- "userId": "string",
- "orgId": "string",
- "role": "owner",
- "isActive": true,
- "joinedAt": "string",
- "lastActiveAt": "string",
- "createdAt": "string",
- "updatedAt": "string"
}
}{- "organization": {
- "id": "string",
- "name": "string",
- "slug": "string",
- "isActive": true,
- "createdAt": "string",
- "updatedAt": "string"
}, - "settings": {
- "orgId": "string",
- "legalName": "string",
- "address": "string",
- "city": "string",
- "state": "string",
- "country": "string",
- "zipCode": "string",
- "logoUrl": "string",
- "contactEmail": "string",
- "contactPhone": "string",
- "createdAt": "string",
- "updatedAt": "string"
}
}| name | string |
| slug | string |
| legalName | string or null |
| address | string or null |
| city | string or null |
| state | string or null |
| country | string or null |
| zipCode | string or null |
| logoUrl | string or null |
| contactEmail | string or null |
| contactPhone | string or null |
{- "name": "string",
- "slug": "string",
- "legalName": "string",
- "address": "string",
- "city": "string",
- "state": "string",
- "country": "string",
- "zipCode": "string",
- "logoUrl": "string",
- "contactEmail": "string",
- "contactPhone": "string"
}{- "organization": {
- "id": "string",
- "name": "string",
- "slug": "string",
- "isActive": true,
- "createdAt": "string",
- "updatedAt": "string"
}, - "settings": {
- "orgId": "string",
- "legalName": "string",
- "address": "string",
- "city": "string",
- "state": "string",
- "country": "string",
- "zipCode": "string",
- "logoUrl": "string",
- "contactEmail": "string",
- "contactPhone": "string",
- "createdAt": "string",
- "updatedAt": "string"
}
}| userId required | string^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}... |
| role required | string Enum: "owner" "admin" "member" "viewer" |
{- "role": "owner"
}{- "id": "string",
- "userId": "string",
- "orgId": "string",
- "role": "owner",
- "isActive": true,
- "joinedAt": "string",
- "lastActiveAt": "string",
- "createdAt": "string",
- "updatedAt": "string"
}| email required | string <email> |
| role required | string Enum: "owner" "admin" "member" "viewer" |
| inviterDisplayName | string |
{- "email": "user@example.com",
- "role": "owner",
- "inviterDisplayName": "string"
}{- "id": "string",
- "orgId": "string",
- "invitedBy": "string",
- "email": "string",
- "role": "owner",
- "token": "string",
- "expiresAt": "string",
- "acceptedAt": "string",
- "revokedAt": "string",
- "createdAt": "string"
}| id required | string^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}... |
| inviterDisplayName | string |
{- "inviterDisplayName": "string"
}{- "id": "string",
- "orgId": "string",
- "invitedBy": "string",
- "email": "string",
- "role": "owner",
- "token": "string",
- "expiresAt": "string",
- "acceptedAt": "string",
- "revokedAt": "string",
- "createdAt": "string"
}| name required | string [ 1 .. 255 ] characters |
| typeId required | string^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}... |
| segmentId | string or null^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}... |
| brokerId | string or null^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}... |
| brokerFeePercent | number or null |
| address | string or null |
| city | string or null |
| state | string or null |
| country | string or null = 2 characters |
| zipCode | string or null |
| parentId | string or null^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}... |
| qboId | string or null |
| notes | string or null |
{- "name": "string",
- "typeId": "string",
- "segmentId": "string",
- "brokerId": "string",
- "brokerFeePercent": 0,
- "address": "string",
- "city": "string",
- "state": "string",
- "country": "st",
- "zipCode": "string",
- "parentId": "string",
- "qboId": "string",
- "notes": "string"
}{- "id": "string",
- "orgId": "string",
- "name": "string",
- "customerTypeId": "string",
- "customerSegmentId": "string",
- "brokerId": "string",
- "brokerFeePercent": "string",
- "address": "string",
- "city": "string",
- "state": "string",
- "country": "string",
- "zipCode": "string",
- "parentCustomerId": "string",
- "qboId": "string",
- "notes": "string",
- "isActive": true,
- "createdAt": "string",
- "updatedAt": "string"
}| active | string Enum: "true" "false" |
| type | string |
| segment | string |
| broker | string |
| parentCustomer | string |
| q | string |
{- "data": [
- {
- "id": "string",
- "orgId": "string",
- "name": "string",
- "customerTypeId": "string",
- "customerSegmentId": "string",
- "brokerId": "string",
- "brokerFeePercent": "string",
- "address": "string",
- "city": "string",
- "state": "string",
- "country": "string",
- "zipCode": "string",
- "parentCustomerId": "string",
- "qboId": "string",
- "notes": "string",
- "isActive": true,
- "createdAt": "string",
- "updatedAt": "string"
}
]
}| id required | string^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}... |
| name | string [ 1 .. 255 ] characters |
| typeId | string^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}... |
| segmentId | string or null^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}... |
| brokerId | string or null^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}... |
| brokerFeePercent | number or null |
| address | string or null |
| city | string or null |
| state | string or null |
| country | string or null = 2 characters |
| zipCode | string or null |
| parentId | string or null^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}... |
| qboId | string or null |
| notes | string or null |
| isActive | boolean |
{- "name": "string",
- "typeId": "string",
- "segmentId": "string",
- "brokerId": "string",
- "brokerFeePercent": 0,
- "address": "string",
- "city": "string",
- "state": "string",
- "country": "st",
- "zipCode": "string",
- "parentId": "string",
- "qboId": "string",
- "notes": "string",
- "isActive": true
}{- "id": "string",
- "orgId": "string",
- "name": "string",
- "customerTypeId": "string",
- "customerSegmentId": "string",
- "brokerId": "string",
- "brokerFeePercent": "string",
- "address": "string",
- "city": "string",
- "state": "string",
- "country": "string",
- "zipCode": "string",
- "parentCustomerId": "string",
- "qboId": "string",
- "notes": "string",
- "isActive": true,
- "createdAt": "string",
- "updatedAt": "string"
}| id required | string^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}... |
{- "id": "string",
- "orgId": "string",
- "name": "string",
- "customerTypeId": "string",
- "customerSegmentId": "string",
- "brokerId": "string",
- "brokerFeePercent": "string",
- "address": "string",
- "city": "string",
- "state": "string",
- "country": "string",
- "zipCode": "string",
- "parentCustomerId": "string",
- "qboId": "string",
- "notes": "string",
- "isActive": true,
- "createdAt": "string",
- "updatedAt": "string"
}required | Array of objects | ||||||||||||||||||||||||||
Array
| |||||||||||||||||||||||||||
{- "rows": [
- {
- "name": "string",
- "typeId": "string",
- "segmentId": "string",
- "brokerId": "string",
- "brokerFeePercent": 0,
- "address": "string",
- "city": "string",
- "state": "string",
- "country": "st",
- "zipCode": "string",
- "parentId": "string",
- "qboId": "string",
- "notes": "string"
}
]
}{- "ids": [
- "string"
]
}| name required | string [ 1 .. 100 ] characters |
{- "name": "string"
}{- "id": "string",
- "orgId": "string",
- "name": "string",
- "sortOrder": 0,
- "isActive": true,
- "createdAt": "string"
}| id required | string^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}... |
| name | string [ 1 .. 100 ] characters |
| sortOrder | integer |
| isActive | boolean |
{- "name": "string",
- "sortOrder": 0,
- "isActive": true
}{- "id": "string",
- "orgId": "string",
- "name": "string",
- "sortOrder": 0,
- "isActive": true,
- "createdAt": "string"
}| name required | string [ 1 .. 100 ] characters |
{- "name": "string"
}{- "id": "string",
- "orgId": "string",
- "name": "string",
- "sortOrder": 0,
- "isActive": true,
- "createdAt": "string"
}| id required | string^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}... |
| name | string [ 1 .. 100 ] characters |
| sortOrder | integer |
| isActive | boolean |
{- "name": "string",
- "sortOrder": 0,
- "isActive": true
}{- "id": "string",
- "orgId": "string",
- "name": "string",
- "sortOrder": 0,
- "isActive": true,
- "createdAt": "string"
}| name required | string [ 1 .. 100 ] characters |
{- "name": "string"
}{- "id": "string",
- "orgId": "string",
- "name": "string",
- "sortOrder": 0,
- "isActive": true,
- "createdAt": "string"
}| id required | string^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}... |
| name | string [ 1 .. 100 ] characters |
| sortOrder | integer |
| isActive | boolean |
{- "name": "string",
- "sortOrder": 0,
- "isActive": true
}{- "id": "string",
- "orgId": "string",
- "name": "string",
- "sortOrder": 0,
- "isActive": true,
- "createdAt": "string"
}