# Invite customers after a Square purchase

Use Square to ask buyers about a payment, refund, fulfilled order or new subscription. Choose email or SMS for each survey and decide how long to wait before inviting the buyer.

## Connect Square

1. As a workspace owner or admin, open **Integrations → Square**.
2. Choose **Sandbox** to check the connection with test activity, or **Production** to invite actual buyers. In the Square Developer Console, open your application’s credentials and copy the personal access token for that environment. Square requires this token to register the events. [Square’s webhook setup guide](https://developer.squareup.com/docs/webhooks/webhook-subscriptions-api)
3. Choose **Connect Square**. Shopoll registers the payment events for you. The connection shows when it last received a qualifying event. Sandbox events never send invitations.

## Set up a survey

Create a survey and choose **Square** in the delivery step. Choose the event, channel and delay in minutes. For example, email a customer 30 minutes after their order is fulfilled to ask how collection went. Confirm that you have permission to invite the customers you select. Save and publish the survey. To change these choices later, open the survey’s **Settings → Square invitations**.

![The Square delivery settings for an order fulfilment survey, with email selected and a 30-minute delay.](/docs/media/square-invitation.png)

| Event | When the buyer qualifies |
| --- | --- |
| Payment completed | Their Square payment reaches Completed. |
| Refund processed | The refund reaches Completed. A pending refund waits. |
| Order fulfilled | Square reports a completed fulfilment and every remaining fulfilment is completed or cancelled. A partly fulfilled order waits. |
| New subscription | Square creates the subscription. The buyer can receive the survey before their first charge. |

Square sends fulfilment updates for orders updated through its Orders API. If your fulfilment tool never sends this update to Square, choose a payment event instead. [Square fulfilment updates](https://developer.squareup.com/reference/square/orders-api/webhooks/order.fulfillment.updated)

## Limit who receives the survey

Expand **Filter eligible payments** and fill in the conditions you need. Each condition must match.

- **Currency and amount.** Enter **GBP** and **25** for a £25 minimum. A refund uses the refunded amount. A fulfilled order uses its order total. For a new subscription, Shopoll uses the first phase’s order total or available subscription price.
- **Catalog item or variation ID.** Match a variation on the order, its parent item, or the subscription’s plan variation.
- **Note contains.** Match text in an available payment note, refund reason or line-item note. Letter case is ignored.
- **Metadata name and value.** Enter the exact name and value recorded on the event’s object or the associated order.

If Square doesn’t supply the information needed for a filter, the buyer won’t qualify. Email invitations use the buyer’s payment email or Square customer email. SMS invitations need a supported UK mobile number on the Square customer profile. The workspace must have a sender for the chosen channel.

## Follow up

Open **Activity → Invitations → Event details** to see the source and scheduled time. Choose **View invitation record** to check delivery status. Repeat updates for the same completed payment, refund, order or subscription produce one invitation per eligible survey. Channel opt-outs apply. In the survey’s response report, expand **Response metadata** on an answer submitted through the invitation link. It shows the Square event and the available customer ID, amount and currency. Anonymous surveys keep only the event type from the payment.

To stop invitations from Square, open **Integrations → Square → Disconnect Square**. This also cancels waiting Square invitations and reminders.
