Purchase orders
Purchase orders.
Module: Procurement (procurement).
Endpoints
Section titled “Endpoints”GET /api/v1/purchase_orders- List with filters, sorting and pagination (scopeprocurement:read)GET /api/v1/purchase_orders/{id}- A record by id (scopeprocurement:read)POST /api/v1/purchase_orders- Create a record (scopeprocurement:write)PATCH /api/v1/purchase_orders/{id}- Modify the submitted fields (scopeprocurement:write)DELETE /api/v1/purchase_orders/{id}- Delete or deactivate (scopeprocurement:write)POST /api/v1/purchase_orders/{id}/submit- Sends the order for approval. (scopeprocurement:write)POST /api/v1/purchase_orders/{id}/decide- Approves or rejects the order. (scopeprocurement:write)POST /api/v1/purchase_orders/{id}/send- Sends the order to the supplier by email. (scopeprocurement:write)POST /api/v1/purchase_orders/{id}/cancel- Cancels the order. (scopeprocurement:write)
Fields
Section titled “Fields”id(string, uuid; read): Unique identifier (UUID).number(string; read)supplier_id(string, uuid; write, required)warehouse_id(string, uuid; write)status(string; read)order_date(string, date; write)expected_date(string, date; write)note(string; write)sent_at(string, date-time; read)created_by(string; read)created_at(string, date-time; read): Creation date (ISO 8601).updated_at(string, date-time; read): Last modification date (ISO 8601).submitted_at(string, date-time; read)submitted_by(string; read)decided_at(string, date-time; read)decided_by(string; read)decision_note(string; read)lines(array; write, required)
Events
Section titled “Events”purchase_orders.createdpurchase_orders.updatedpurchase_orders.deleted