Troubleshooting Square API Integration Errors and Resolving 400 Bad Request and Verification Failures


Hello,

I’m currently facing an issue with the Square integration for WooCommerce. After setting up the Square API and WooCommerce, the payment process fails at checkout. The error message received during the transaction attempt is a 400 Bad Request, with the following details:

  • Error Category: INVALID_REQUEST_ERROR
  • Code: NOT_FOUND
  • Detail: Resource not found.

The error appears in the console under the https://connect.squareup.com/v2/analytics/verifications endpoint (refer to the attached screenshot for reference).

What I’ve Tried:

  • Verified API credentials in the Square Developer Dashboard.
  • Confirmed that the endpoint being used is correct according to the documentation.
  • Disabled unnecessary shipping fields in WooCommerce, as they are not needed for our setup.
  • Synced inventory without any issues, so the product data seems accurate.
  • Checked if the API token being used is correct among the multiple applications in the Square Developer Dashboard.

Despite these efforts, the transaction fails at checkout, and no payment is processed. I would appreciate any insights into why this error might be occurring or if there’s any additional configuration needed to resolve this.

Warm Regards
Ewan Rajap

: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

Web Payments SDK Requirements
Get Started
Get Started

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.

Given that this is with the WooCommerce integration I would recommend first reaching out to them since all API functions are managed by WooCommerce. They will be able to better assist. :slightly_smiling_face: