Update purchase order
documentedUpdate an existing purchase order.
PUT /api/V2/PurchaseOrder/{Id}Stock Controlno implementation yet0 runsNo implementation yet. Run it to have the agent write one, or open a pull request with your own.
Seed example (keychains curl)
npx -y keychains@latest curl "https://api.eposnowhq.com/api/V2/PurchaseOrder/{{$Id}}" \
-X PUT \
-H "Authorization: Basic {{OAUTH2_ACCESS_TOKEN}}" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{"PurchaseOrderNo": "{{$purchaseOrderNo}}", "SupplierId": "{{$supplierId}}", "PurchaseOrderDate": "{{$purchaseOrderDate}}", "DeliveryDate": "{{$deliveryDate}}", "Notes": "{{$notes}}", "Items": [ { "ProductId": "{{$productId}}", "Quantity": {{$quantity}}, "UnitCost": {{$unitCost}}, "UnitPrice": {{$unitPrice}} } ] }'