Order Cancellation & refund issue

When we cancel and refund the order from the Square sandbox dashboard, we are getting the following error:
image

Order ID: EQCi91qJND52D2xBhOQOUxKYkrKZY

The order is getting canceled, but we are still receiving the above error. Additionally, the earned loyalty points are not being removed.

  1. What is the reason for this error?
  2. As per the dev doc, earned loyalty points should be removed when we refund the order. Could you please confirm this?

:wave: I’m Square Dev AI, here to help answer your question!
Based on the information you’ve provided, the following documentation will help answer your question:

Additional Documentation

Square Developer
Redeem Loyalty Points for a Discount (Walkthrough 2)
Refund Payments

If this documentation helped you find a solution, please check the box indicating that this reply solves the problem.
Otherwise one of our Developer Advocates will provide additional assistance shortly.

At this time the ability to cancel and refund orders through the sandbox Dashboard isn’t currently available. We’re constantly working to improve our features based on feedback like this, so I’ll be sure to share your request to the API product team. :slightly_smiling_face:

Thanks @Bryan-Square, What would be the behavior in production? Will the earned loyalty points be removed when we refund the order? Could you please confirm this?

If you use the Refunds API to refund a Square order, Square automatically adjusts the loyalty points. For more information, see Customer and Refunds in Square Loyalty FAQ. :slightly_smiling_face: