Webhook system API synchronization

Our website is a self-hosted and standalone installation of WordPress CMS from WordPress. . org website hosted independently, not a WordPress . com website

  1. API / synchronization:
    Does Square provide an API/webhook system that would allow our WordPress website to retrieve and synchronize information such as:
    • Customers
    • Orders/payments
    • Transactions
    • Payment status

Ideally, our website should be able to identify which payment was made in Square based on the information submitted on our website.

  1. API examples & Sandbox:
    Do you provide PHP or WordPress examples/documentation for this type of integration? Is a Sandbox/Test environment available for development, or would we need live credentials?
  2. Existing app/integration:
    Do we need to develop a custom Square app for these requirements, or is there an existing integration available that we may have missed in the Square App Marketplace?

Hi @hsrc - Yes, Square provides both APIs and webhooks to synchronize data with your WordPress site:

1. API & Webhooks: Square offers a full REST API covering Customers, Orders, Payments, and Transactions. You can poll these endpoints or subscribe to webhook events (e.g. payment.completed, order.updated, customer.created) to get real-time notifications pushed to your server. This lets you match payments made in Square to orders submitted on your site using reference IDs or order IDs you attach at checkout.

2. PHP Examples & Sandbox: Square provides a PHP SDK and a full Sandbox environment with test credentials, no live credentials needed during development. The API reference includes request/response examples for every endpoint.

3. Custom App vs. Existing Integration: Square has a WooCommerce plugin in the App Marketplace if you’re using WooCommerce. If your WordPress setup doesn’t use WooCommerce, or you need deeper custom sync logic, you’d build a custom Square application via the Developer Dashboard using the APIs and webhooks above.