Update a payment order
Note that cancellations will only work if
statusis one of
approved. Payment orders can not be deleted through the API after they've been sent to the bank. Please contact Modern Treasury support for more information.
Certain attributes on the payment order are protected. They may only be updated when the payment order's status is
needs_approvaland it has not been approved by anyone yet inside the app. This is because these attributes affect the mechanics of the payment itself. If you want to update an already approved payment order, our recommendation would be to cancel it and create a new one.
If you attempt to update a protected attribute when it may not be updated, the request will still respond with a
200status code, but the response body will contain the original data. This indicates that the attribute was not updated.
The following are the protected attributes: