Skip to main content
PATCH
/
api
/
orders
/
{id}
Update Order
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
}

Authorizations

Authorization
string
header
required

API key generated in Settings > API Keys. Include as Authorization: Bearer <key>.

Path Parameters

id
string<uuid>
required

Body

application/json

Update order fields and/or replace order lines. When lines is provided, all existing lines are deleted and replaced.

orderNumber
string
orderDate
string<date-time>
supplierId
string<uuid>
lines
object[]

Replaces all existing order lines

Response

Updated successfully

success
boolean