Cancel + Refund Order through API

in Development
Hello, I would like some clarification on how one can use the Lightspeed eCom API to automate a particular Order refund procedure as described in the following article:
My goal is to cancel and refund an order completely. The article above states that a "Refund" checkbox is available when cancelling an order through the web interface. However, the API documentation does not describe a similar feature for the order status update endpoint:
Is it possible to both cancel an order and undo its payment (Lightspeed Payments) via the API?
Tags:
1 comment
Hi @jesse,
Thank you for reaching out to us.
To cancel an order you'll need to update the status of the order https://developers.lightspeedhq.com/ecom/endpoints/order/#put-update-an-order
You can create an OrderCredit when you visit this link https://developers.lightspeedhq.com/ecom/endpoints/ordercredit/#post-credit-an-invoice. Unfortunately it doesn't work with Lightspeed payment or other 3 party integrations.