This endpoint confirms received quantities on purchase order lines, triggering stock movement for confirmed lines.
https://easycms.fi/public_api/set_purchase_order_confirm/application/json
Authorization1: {API_TOKEN}username, password, account
| Parameter | Type | Required | Description |
|---|---|---|---|
| username | string | Yes | API username |
| password | string | Yes | API password |
| account | string | Yes | Account domain |
| id | integer | Yes | Purchase order ID |
| purchase_line_id | integer | No | Specific line to confirm. If omitted, confirms ALL pending lines. |
| confirmed_by | string | No | Identifier of who confirmed. Defaults to "API_USER". |
200 (received)tbl_stockcurrent and tbl_stockdiaryreceived_quantity — NOT the ordered quantity (report actual amounts via set_purchase_order line field received_quantity)received_quantity <= 0Correcting a confirmed line (v3.16+): to change the quantity of an already-confirmed line, re-send the line to set_purchase_order with the NEW received_quantity (ordered quantity must stay unchanged). The API reverses the previous confirmed stock movement, un-confirms the line and stages the new quantity — then call this endpoint again to apply the corrected amount.
{
"status": "success",
"message": "2 line(s) confirmed",
"data": {
"confirmed_count": 2,
"results": [
{
"success": true,
"purchase_line_id": 123,
"received_quantity": 50.0,
"confirmed_by": "API_USER",
"confirmed_at": "2026-04-30 14:30:00"
}
]
}
}
| HTTP Code | Error Code | Description |
|---|---|---|
| 400 | INVALID_STATUS | Purchase order is not in received status |
| 404 | NOT_FOUND | Purchase order not found |
| 400 | MISSING_REQUIRED_FIELDS | Missing id parameter |