Delete an invoice payment

  • 1
  • Question
  • Updated 2 months ago
  • Answered
Just wondering what the best way to delete a payment from an invoice using the API is? I can see that it's possible via the UI but looking at the documentation only GET, PUT and POST are available:

https://reckon.helpdocsonline.com/api-reckon-one-endpoints/payments

Is there some way I can PUT to void a payment? Or if there is a DELETE available that would be great.

Use case for this is for Direct Debit payments. Banks don't tell us that something failed straight away, it can take a few days. We set the invoice as paid so that reminder workflows don't incorrectly kick in. We then need to remove the payment if the transaction dishonours.


Photo of Paul Allen

Paul Allen

  • 102 Points 100 badge 2x thumb

Posted 3 months ago

  • 1
Photo of Ifti

Ifti, Product Manager

  • 6,462 Points 5k badge 2x thumb
Hi Paul,

Apologies for the delayed response.

There's a DELETE option, however there's a bug right now which we've fixed in Development environment.

We're aiming to release this bug fix early next week.

The attached image is how the call should be made to delete it.



I've updated the helpdocs article with the DELETE method information.

I will update this post when the fix is released to production.

Thanks

Ifti
Photo of Ifti

Ifti, Product Manager

  • 6,462 Points 5k badge 2x thumb
Hi Paul,

The fix is in production now.

Thanks

Ifti
Photo of Paul Allen

Paul Allen

  • 102 Points 100 badge 2x thumb
Perfect, thanks Ifti.