Sandbox intermittent 500 error

Hi! When trying Payment API with API Explorer with this request, I’m getting intermittent 500 internal error with no message or response body.

curl https://connect.squareupsandbox.com/v2/payments \
  -X POST \
  -H 'Square-Version: 2024-08-21' \
  -H 'Authorization: Bearer xxx' \
  -H 'Content-Type: application/json' \
  -d '{
    "note": "Deposit from Omnichannel for order : 300000000006 - Payment : 300000000006-6247",
    "idempotency_key": "5982ae06-69b7-43a0-8e32-49e5a757ebf7",
    "source_id": "cnon:card-nonce-ok",
    "amount_money": {
      "amount": 108,
      "currency": "USD"
    }
  }'

After retrying multiple times I get this error response

{
  "errors": [
    {
      "code": "BAD_REQUEST",
      "detail": "Payment is attached to the order and guaranteed to complete. It cannot be canceled.",
      "category": "INVALID_REQUEST_ERROR"
    }
  ]
}

Does anyone have the same issue?

: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

Handling Errors
Troubleshoot the Payments API
Take 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.

Sandbox performance is currently degraded. Our team is actively working on a fix and we appreciate your patience. :slightly_smiling_face: