Creates a purchase order in `Draft`, optionally with its lines.
Requires ManagePurchaseOrders and an Idempotency-Key header. Same as "New Purchase Order" in the app: the vendor must be active in your organization (or omit vendorId and name a one-off vendor), the receiving location must be an active top-level location that is not a job site, and each line names one of your items or bundles. The order and its lines are written together or not at all. A new order is a Draft: move it along with /mark-ordered, /mark-shipped and /mark-delivered, then /receive it. Attributed to the key's creator. Example: { "vendorId": 7, "receivingLocationId": 1, "lines": [ { "itemId": 12, "quantityOrdered": 24, "unitPrice": 3.10 } ] }.
Request
- Base URL: https://app.flexonthejob.com
- URL: https://app.flexonthejob.com/api/v1/purchase-orders
- Auth: HTTP bearer
Request body
Response
Created; Location points at the order, body as GET /api/v1/purchase-orders/{id}.
Changes
No recorded changes to this operation across all 1 revision of this API.