Failed to cancel payment with error 'Payment is attached to the order and guaranteed to complete. It cannot be canceled.'

Dear Team,

In production env we created an authorized payment, but failed to cancel it later, we got below error:

[category=INVALID_REQUEST_ERROR, code=BAD_REQUEST, detail=Payment is attached to the order and guaranteed to complete. It cannot be canceled., field=null]

may i know what the detail means? such as, is it caused by any param set in the request of API creating the payment?

below is the payment info:

  • application id: sq0idp-X5g7B-QAtnOvyEFik1fuSg
  • location id: LZ27X98TBHAZ0
  • payment id: pEeRXidhe2VBmulewDUg6AN0H88YY

Thanks.

: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

Payments Requirements
Web Payments SDK Requirements
Partial Payment Authorizations

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.

Dear team,

Any update please?
Thanks.

Dear Team,

Any update please? It’s 10 days already.
If it’s an expected behavior, it will be appreciated if you can share the link documenting the related info.

Thanks.

The team is still looking into this issue. :slightly_smiling_face: