Edit Payment

To change the invoice number or the payment amount, use the following request:

Be aware, that starting with OnApp 5.4 version, the request below will be deprecated. Instead, only the Edit User Payment request will be used.

PUT /users/:user_id/payments/:id.xml
PUT /users/:user_id/payments/:id.json

XML Request Example

curl -i -X PUT -d '<payment><amount>99</amount><invoice_number>66</invoice_number></payment>' -H 'Accept: application/xml' -H 'Content-type: application/xml'-u user:userpass -url http://onapp.test/users/8/payments/3.xml

JSON Request Example

curl -i -X PUT -d '{"payment":{"amount":"99","invoice_number":"66"}}' -H 'Accept: application/json' -H 'Content-type: application/json'-u user:userpass --url http://onapp.test/users/8/payments/3.json


amount - amount of the payment (should be higher than zero)

invoice_number - optional number of the invoice