Saltar al contenido

poChangeOrders

Módulo Procurement · 6 operaciones

List PO change order rows

GET/po-change-orders

A change to an issued purchase order. Returns a cursor page of PO change order rows the caller may see. The default order is `created_at` ascending. Supports sparse fieldsets and the filter grammar.

Create a PO change order

POST/po-change-orders

A change to an issued purchase order. Creates a PO change order. Requires `Idempotency-Key`; a replay returns the original response. The organization is derived from the credential or the parent row, never from the body.

Get a PO change order

GET/po-change-orders/{id}

A change to an issued purchase order. Returns one PO change order with its `ETag`. A PO change order the caller may not see returns 404.

Update a PO change order

PATCH/po-change-orders/{id}

A change to an issued purchase order. Updates the fields sent; omitted fields are unchanged. Requires `If-Match` with the current `ETag`: a stale tag returns 412 and a missing tag returns 428.

Approve a PO change order

POST/po-change-orders/{id}/approve

Approves a priced, Proposed PO change order through app.decide_po_change_order under spend authority. Its requester cannot approve it; a refusal returns 422 and names the rule. Requires `Idempotency-Key`; a replay returns the original response. A rule that refuses the request returns 422 with `refusal` and `reason`.

Reject a PO change order

POST/po-change-orders/{id}/reject

Rejects a Proposed PO change order through app.decide_po_change_order. Its requester cannot decide it; a refusal returns 422 and names the rule. Requires `Idempotency-Key`; a replay returns the original response. A rule that refuses the request returns 422 with `refusal` and `reason`.