cURL
curl --request PATCH \ --url https://app.polygonone.com/api/orders/{id} \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "orderNumber": "<string>", "orderDate": "2023-11-07T05:31:56Z", "supplierId": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "lines": [ { "articleId": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "quantity": 2 } ] } '
{ "success": true }
Update order fields (orderNumber, orderDate, supplierId) and/or replace order lines. When lines is provided, all existing lines are replaced.
lines
API key generated in Settings > API Keys. Include as Authorization: Bearer <key>.
Authorization: Bearer <key>
Update order fields and/or replace order lines. When lines is provided, all existing lines are deleted and replaced.
Replaces all existing order lines
Show child attributes
Updated successfully