# Square Email Validation Integration

URL: https://email-validation.org/integrations/square/
Updated: 2026-12-05

> Documentation index: https://email-validation.org/llms.txt

A small relay in your own Cloudflare account receives your Square application’s webhook notifications, checks Square’s signature and checks the address of each new customer. An invalid or disposable one is added to a customer group of yours, or sent to a URL of yours with the customer id (never the address).

[Read the full setup guide](https://email-validation.org/docs/guides/square/) [Get an API key](https://email-validation.org/signin/)

- Status: Setup guide
- A file you download

**relay.mjs** Cloudflare Workers

Terminal

```bash
npx wrangler deploy relay.mjs --name ev-square-relay --compatibility-date 2026-10-01 \
  --var SQUARE_NOTIFICATION_URL:https://… --var SQUARE_ENVIRONMENT:sandbox \
  --var SQUARE_FLAG_GROUP_ID:…
# deploy once for the address, add it in Square, then redeploy with every --var
npx wrangler secret put EV_API_KEY --name ev-square-relay
npx wrangler secret put SQUARE_SIGNATURE_KEY --name ev-square-relay
npx wrangler secret put SQUARE_ACCESS_TOKEN --name ev-square-relay
```

## At a glance.

- **Status**: **Setup guide.** Not listed on a marketplace yet: you set it up yourself in a few steps, below and in the full guide.
- **For**: Square sellers who want to spot new customers whose receipts, invoices or marketing mail would bounce, without changing a payment or a customer’s details.
- **You need**: An [API key](https://email-validation.org/app/api-keys/) of ours with Validate addresses (on by default), a Square application with a webhook subscription, and a Cloudflare account for the relay.
- **Costs**: 1 credit = 1 validated address, as with any API request. Free: unknown results, API errors, malformed addresses, test addresses on sandbox.email-validation.org, addresses on reserved domains such as example.com and, in a bulk list, repeats of an address (charged once).
- **Full guide**: [Read the full setup guide](https://email-validation.org/docs/guides/square/)

## Typical uses.

- **New customers**: Each customer.created notification is verified and the new customer’s address checked; a flagged one joins your customer group.
- **Checkout buyers**: A profile Square creates after a payment is checked like one made in the Dashboard; imports and merges are skipped.
- **Your own code**: A signed notice with the customer id and the result goes to a URL of yours, for a CRM, an automation tool or your app.

## Set it up. 4 steps.

The short version of the [full setup guide](https://email-validation.org/docs/guides/square/), which stays the reference when a step does not match what you see.

1. **Deploy the relay**: Download email-validation-square.zip from the guide and deploy relay.mjs to your Cloudflare account with wrangler.
2. **Pick the group**: Create a customer group in the Square Dashboard and copy its id and an access token that can read and write customers.
3. **Subscribe to customer.created**: In the Developer Console: Webhooks, Subscriptions, Add subscription, with the relay’s address; copy its signature key.
4. **Try it free**: Run the guide’s try.mjs with no\_mailbox@sandbox.email-validation.org on your machine: it is flagged. Then add one sandbox customer with your own address.

## Good to know.

- It never touches money: no payment, order, refund or invoice, and no change to a customer’s fields.
- It cannot stop Square’s checkout; Square sends its notifications after the fact.
- It fails open: a timeout, a network error, a rate limit or any error answer from our API or from Square flags nothing.
- Each check uses one credit; unknown results and sandbox addresses are free.

## Related

- [The full Square setup guide](https://email-validation.org/docs/guides/square/)
- [Set it up](https://email-validation.org/docs/guides/square/#setup)
- [Try it free first](https://email-validation.org/docs/guides/square/#try)
- [What each status means](https://email-validation.org/docs/statuses/)
- [Stripe email validation integration](https://email-validation.org/integrations/stripe/)
- [ThriveCart email validation integration](https://email-validation.org/integrations/thrivecart/)
- [WHMCS email validation integration](https://email-validation.org/integrations/whmcs/)
- [Whop email validation integration](https://email-validation.org/integrations/whop/)
- [All integrations](https://email-validation.org/integrations/)
