invoiceninja / sdk-php

PHP wrapper for Invoice Ninja's REST API
https://www.invoiceninja.com
83 stars 41 forks source link

Doing a refund? #33

Closed noezdev closed 6 years ago

noezdev commented 6 years ago

How can i refund a payment with the api?

hillelcoren commented 6 years ago

I don't believe it's currently supported by the API

hillelcoren commented 6 years ago

Note: you can delete a payment which would restore the invoice balance.

noezdev commented 6 years ago

That should be a problem after some time, if you lose the perspective.

noezdev commented 6 years ago

I have an idea: I'll try that later. Let's see what happens. (Update Payment with API and set Amount to 0)

noezdev commented 6 years ago

Did not work ❌

hillelcoren commented 6 years ago

Sorry, it isn't supported.

Note: the payment remains in the system but it marked as deleted.

noezdev commented 6 years ago

Okay that should fit my needs. Thanks.