Create purchase order
documentedCreate a purchase order.
POST /api/V2/PurchaseOrderStock 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" \
-X POST \
-H "Authorization: Basic {{EPOSNOWHQ_API_ACCESS_TOKEN}}" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{"OrderDate": "{{$order_date}}", "Supplier": {"Id": {{$supplier_id}}, "Name": "{{$supplier_name}}"}, "DeliveryDate": "{{$delivery_date}}", "Currency": {"Code": "{{$currency}}"}, "Items": [{"ProductId": "{{$product_id}}", "Quantity": {{$quantity}}, "UnitPrice": {{$unit_price}}}], "Notes": "{{$notes}}"}'