Skip to main content

What’s supported

Supported actions

This connector supports:
  • Read Actions, including full historic backfill. Please note that incremental read is supported only for gift_cards/activities, payments, payouts and refunds currently. For all other objects, a full read of the Square instance will be done per scheduled read.
  • Write Actions.
  • Proxy Actions, using the base URL https://connect.squareup.com.

Supported objects

The Square connector supports reading from and writing to the following objects:

Read objects

Write objects

Example integration

For an example manifest file of a Square integration, visit our samples repo on GitHub.
For testing against Square’s sandbox environment, set provider: squareSandbox in your manifest file. This is identical to square except that it uses the base URL https://connect.squareupsandbox.com.

Before you get started

To integrate Square with Ampersand, you will need a Square account. Once your account is created, you’ll need to create a Square app and obtain the following credentials from it:
  • Client ID
  • Client Secret
You will then use these credentials to connect your application to Ampersand.

Creating a Square app

  1. Log in to the Square developer portal.
  2. Click + to create a new application and give it a name.
  3. Open the application and select the OAuth tab.
  4. Set the redirect/callback URL to: https://api.withampersand.com/callbacks/v1/oauth
  5. Copy the Application ID (Client ID) and Application Secret (Client Secret) from the OAuth page.
  6. Note the OAuth permissions (scopes) your integration requires. Square OAuth

Add your Square app info to Ampersand

  1. Log in to your Ampersand Dashboard.
  2. Select the project where you want to create a Square integration. Ampersand Project Selection
  3. Select Provider Apps.
  4. Select Square from the Provider list.
  5. Enter the Client ID and Client Secret obtained from your Square app.
  6. Enter the scopes your integration requires.
  7. Click Save Changes.
Ampersand Project Selection

Using the connector

To start integrating with Square:
  • Create a manifest file like the example above.
  • Deploy it using the amp CLI.
  • If you are using Read Actions, create a destination.
  • Embed the InstallIntegration UI component. The UI component will prompt the customer for OAuth authorization.
  • Start using the connector!
    • If your integration has Read Actions, you’ll start getting webhook messages.
    • If your integration has Write Actions, you can start making API calls to our Write API.
    • If your integration has Proxy Actions, you can start making Proxy API calls.