Changing a root purchase order after you submit it
Once a root purchase order is Submitted, use these endpoints to change it. Changes are not applied right away:
- Send the change. The response is
202 Acceptedwith anupdateId. - Check the result with Get Change, using that
updateId. Thestatusends asSucceeded,Rejected, orFailed. If it wasn't applied,failureDetailsays why.
Things to know:
- Only one change is processed at a time. While a change is in progress the order's
stateisUpdating, and new changes return409 Conflictuntil it finishes. - Orders Spreetail created for you (
originisCreatedBySpreetail) can't be changed here. - To remove a submitted order: use Delete Submitted Root Purchase Order if Spreetail hasn't placed it yet, or Cancel Root Purchase Order if it has. The error message tells you which one to use.
