API ReferencePurchase Order
purchaseOrder.create
Type: Mutation · Auth: Workspace-aware
Input
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
| vendorId | string | Yes | — | ID of the associated vendor |
| poNumber | string | Yes | — | Po number |
| projectId | string | No | — | ID of the associated project |
| workOrderId | string | No | — | ID of the associated work order |
| orderDate | string.date-time | No | — | Order date |
| expectedDeliveryDate | string.date-time | No | — | Expected delivery date |
| subtotal | unknown | No | — | Subtotal |
| taxAmount | unknown | No | — | Tax amount |
| totalAmount | unknown | No | — | Total amount |
| shippingAddress | string | No | — | Shipping address |
| notes | string | No | — | Notes |
| poType | enum(standard, blanket, drop_ship, stock) | Yes | "standard" | Po type |
| trackingNumber | unknown | No | — | Tracking number |
| shippingMethod | unknown | No | — | Shipping method |
| shippingCost | unknown | No | — | Shipping cost |
| internalNotes | unknown | No | — | Internal notes |
| warehouseId | unknown | No | — | ID of the associated warehouse |
| sourceQuoteId | unknown | No | — | ID of the associated source quote |
Example
{
"vendorId": "550e8400-e29b-41d4-a716-446655440000",
"poNumber": "example",
"projectId": "550e8400-e29b-41d4-a716-446655440000",
"workOrderId": "550e8400-e29b-41d4-a716-446655440000",
"orderDate": "2024-01-15T09:00:00.000Z",
"expectedDeliveryDate": "2024-01-15T09:00:00.000Z",
"poType": "standard"
}