Create Material Order
Create a material order on a project.
Required fields:
recordId: Project ID. Material orders can only be created on projects.vendorId: ID of the vendor the materials are ordered fromlineItemsand/orsections: at least one line
Optional fields: title (defaults to “Material Order”), description, internalMemo, dueDate.
Line rules
- Material orders are priced by cost: the total is
unitCost×quantityacross all lines.unitCostmust be 0 or more. unitPriceis the selling price. It doesn’t change the material order’s total; it is copied to the project scope when the line is added there (see below).- A
catalogItemIdmay appear at most once per request. - A line can link a project scope line item with
scopeLineItemId(see below). - Prices are in dollars.
Linking scope line items
Set scopeLineItemId on a line to the id of a scope line from GET /projects/{project_id}/line-items, so the material order tracks against the project’s scope. Material orders always order by quantity, so lines don’t take billingMode or billingValue.
- A scope line can be linked at most once per material order.
- A linked line must keep the scope line’s
unitCostandunitPrice. - With Financials 2.0, a linked line that exceeds what is left on the scope line creates and approves a change order that increases the scope, instead of failing.
- New lines that are not linked are added to the scope with their
unitCostandunitPrice. Removing a line from the material order later doesn’t remove it from the scope. PUT /projects/{project_id}/line-itemsreplaces scope lines, so their ids can change. Read them again before linking.
Delivery details
Delivery and supplier details (deliveryMethod, deliveryWindow, pickupTime, deliveryRequestedFor, deliveryInstructions, supplierBranchNumber, supplierJobAccountNumber, pointOfContactUser, deliveryContactUser) are read-only. They are set in the app when the vendor is a connected supplier (SRS Distribution or ABC Supply) and are returned when you read a material order.
Material orders can’t be sent to a supplier through the API.
Authentication
Request
Internal-only memo, never shown to customers or on the PDF or portal. Rich text (HTML, like the app’s editor stores). Only a non-empty value is stored on create.
Due date (ISO 8601 datetime string)
Required when sections is not provided. May be combined with sections (ungrouped items).
Required when lineItems is not provided. Grouped line items with named sections.
Response
Material order status. PENDING_SUPPLIER is set only by a connected supplier (the order is queued and waiting for the supplier’s order number). It is returned as-is and can’t be set through the API.
Internal-only memo, never shown to customers or on the PDF or portal. Rich text (HTML, like the app’s editor stores). On update, send null or "" to clear it; responses return null when empty.
How the material is delivered. Read-only: set in the app when the vendor is a connected supplier. Each supplier uses its own subset of these values.
- ABC Supply:
OUR_TRUCK_ROOF,OUR_TRUCK_GROUND,OUR_TRUCK_WINDOW,COMMON_CARRIER,CUSTOMER_PICKUP,EXPRESS_PICKUP,THIRD_PARTY_CARRIER - SRS Distribution:
GROUND_DROP,ROOF_LOAD,ROOF_EDGE,WILL_CALL(a branch pickup, which carries apickupTimeinstead of a delivery window)
Named delivery window. The branch sets the actual times. Pickups carry a pickupTime instead.
Pickup time (HH:mm, 24-hour) for an SRS WILL_CALL order
Requested delivery date (YYYY-MM-DD)
Delivery instructions (up to 255 characters)
Team member the supplier should contact. null means the client.
Team member who receives the delivery. null means the point of contact.
