Hi Square Team,
I’m following up on my previous discussion regarding the 502 Bad Gateway response from the /payments API, as I haven’t received a response to my last update.
In the previous thread, I shared that:
-
The incident occurred on 12-06-2026, not during the service disruption on 22-06-2026 that was referenced.
-
Our Application ID is: sq0idp-IbtUpw5WWJkQOIPL8qTOtQ.
-
The customer was successfully charged, but the API returned a 502 HTML error page instead of the expected JSON response.
-
Because the response did not contain a
payment_id, our application was unable to reconcile or update the transaction status. -
We are already subscribed to payment webhooks, but our current flow depends on the
payment_idreturned by the synchronous/paymentsAPI response.
Our main questions are:
-
Is there any way to identify or retrieve the payment when the
/paymentsAPI returns an HTML 502/503 response after the payment has already been processed? -
What could cause Square to return a Cloudflare 502 HTML page instead of the standard JSON error response?
-
What is the recommended integration pattern for handling these scenarios so that successful payments are not left unreconciled when the synchronous API response is lost?
If anyone from the Square team could investigate this using the Application ID above or provide guidance on the recommended recovery strategy, it would be greatly appreciated.
Previous Post : Bad gateway Error code 502(payments api)
Also if your team can add below email addresses to Slack channel then it will be more helpful.
[email protected]
[email protected]
Thank you.