SalesOrder
A customer order for finished products.
Human-readable sales order number displayed in Keychain OS.
SO-2025-0189Reference to the customer who placed this order.
Display name of the customer.
Sunrise Craft BeveragesDate the sales order was placed (ISO 8601).
2025-02-18Agreed delivery date for the order (ISO 8601).
2025-03-15Current status of the sales order:
draft— created but not yet confirmed with the customer.confirmed— customer has confirmed the order.scheduled— production has been planned or is in progress.completed— order fulfilled and shipped.cancelled— order was cancelled.
Possible values: [draft, confirmed, scheduled, completed, cancelled]
confirmedSum of all line item totals before discounts, tax, and shipping.
6250Total discount applied to the order. A value of 0 means no discount.
0Total tax applied to the order.
500Shipping charges for the order.
275Final amount due (subtotal - discount + tax + shipping).
7025Payment terms for this order (e.g., "Net 30"). Defaults from the customer record unless overridden.
Net 30An external reference number (e.g., the customer's own PO number).
Free-text notes attached to the order.
lineItems object[]
The products ordered, with SKU references, quantities, and pricing.
Reference to the SKU being ordered.
1042Display name of the SKU.
Roasted Garlic HummusQuantity ordered.
500Unit of measure.
lbsPrice per unit charged to the customer.
12.5Line total (quantity x unit price).
6250{
"orderNumber": "SO-2025-0189",
"customerId": "string",
"customerName": "Sunrise Craft Beverages",
"orderDate": "2025-02-18",
"expectedDeliveryDate": "2025-03-15",
"status": "confirmed",
"subtotal": 6250,
"discountAmount": 0,
"taxAmount": 500,
"shippingCharges": 275,
"totalAmount": 7025,
"paymentTerms": "Net 30",
"referenceNumber": "string",
"notes": "string",
"lineItems": [
{
"skuId": "1042",
"skuName": "Roasted Garlic Hummus",
"quantity": 500,
"unit": "lbs",
"unitPrice": 12.5,
"subtotal": 6250
}
]
}