Amending documents
Only a document in posted or approved state can be amended.
Amending a document is done by PATCH
, the fields provided will be updated.
Examples
PATCH /api/document/{docRef}/amend
{
"Description" : "Order 100",
"TheirDocNo": "PO-199233",
"DocDate": "2020-05-10"
}
Updates the provided fields.
Updating custom fields
Note that the update of custom fields via the Ext
object will merge the data.
- Existing properties not specified in the update will remain.
- Existing properties that already exist will be replaced.
- To delete an existing property, update with a
null
value.