> Documentation index: https://metorial.com/llms.txt. Every page is available as Markdown by adding .md to its URL.

# Set up Square in Metorial for Claude, ChatGPT and Cursor
URL: https://metorial.com/docs/integrations/square
Last updated: 2026-11-24

Share Square with your team in Claude, ChatGPT and Cursor through Metorial: OAuth or personal access token sign-in, 52 tools (29 read-only).

---

To give your team Square in Claude, ChatGPT, Cursor and other AI clients, an admin shares the Square integration in a Metorial portal, and each person signs in to Square with their own account. Agents can process payments, manage orders, and handle invoices for online, in-app, and in-person commerce. The integration has 52 tools, 29 read-only, 19 write and 4 destructive, plus 11 triggers.

**What you will learn**

- How an admin shares Square in a portal and how each person connects
- The 33 OAuth scopes Square can request, and what each one allows
- How to keep the 29 read-only tools and reject the other 23

**Before you start**

- A [portal](https://metorial.com/docs/platform/workforce/portals) with at least one access group
- An account with Square for each person who connects
- For the CLI steps: the [Metorial CLI](https://metorial.com/docs/platform/cli), signed in to your portal

## Sign-in methods

| Method | Type | What a person provides |
| --- | --- | --- |
| **OAuth** (default) | OAuth | Signs in to Square |
| **Personal Access Token** | API token | `token` |

The portal and `metorial setup` use **OAuth** unless someone picks another method.

### OAuth

People sign in to Square and approve the scopes you allow. The integration can request:

| Scope | Name | What it allows |
| --- | --- | --- |
| `MERCHANT_PROFILE_READ` | Merchant Profile Read | Read merchant profile information |
| `PAYMENTS_READ` | Payments Read | Read payment information |
| `PAYMENTS_WRITE` | Payments Write | Create and manage payments |
| `ORDERS_READ` | Orders Read | Read order information |
| `ORDERS_WRITE` | Orders Write | Create and manage orders |
| `CUSTOMERS_READ` | Customers Read | Read customer profiles |
| `CUSTOMERS_WRITE` | Customers Write | Create and manage customer profiles |
| `ITEMS_READ` | Items Read | Read catalog items |
| `ITEMS_WRITE` | Items Write | Create and manage catalog items |
| `INVENTORY_READ` | Inventory Read | Read inventory counts |
| `INVENTORY_WRITE` | Inventory Write | Manage inventory counts |
| `INVOICES_READ` | Invoices Read | Read invoices |
| `INVOICES_WRITE` | Invoices Write | Create and manage invoices |
| `APPOINTMENTS_READ` | Appointments Read | Read bookings and appointments |
| `APPOINTMENTS_WRITE` | Appointments Write | Create and manage bookings |
| `EMPLOYEES_READ` | Employees Read | Read team member information |
| `EMPLOYEES_WRITE` | Employees Write | Manage team members |
| `TIMECARDS_READ` | Timecards Read | Read timecards |
| `TIMECARDS_WRITE` | Timecards Write | Manage timecards |
| `BANK_ACCOUNTS_READ` | Bank Accounts Read | Read bank account information |
| `LOYALTY_READ` | Loyalty Read | Read loyalty programs and accounts |
| `LOYALTY_WRITE` | Loyalty Write | Manage loyalty programs and accounts |
| `GIFTCARDS_READ` | Gift Cards Read | Read gift card information |
| `GIFTCARDS_WRITE` | Gift Cards Write | Manage gift cards |
| `SUBSCRIPTIONS_READ` | Subscriptions Read | Read subscriptions |
| `SUBSCRIPTIONS_WRITE` | Subscriptions Write | Manage subscriptions |
| `DISPUTES_READ` | Disputes Read | Read dispute information |
| `DISPUTES_WRITE` | Disputes Write | Manage disputes |
| `DEVICE_CREDENTIAL_MANAGEMENT` | Device Credential Management | Manage device credentials |
| `PAYOUTS_READ` | Payouts Read | Read payout information |
| `ONLINE_STORE_SITE_READ` | Online Store Site Read | Read Square Online site details |
| `ONLINE_STORE_SNIPPETS_READ` | Online Store Snippets Read | Read Square Online snippets |
| `ONLINE_STORE_SNIPPETS_WRITE` | Online Store Snippets Write | Manage Square Online snippets |

### Personal Access Token

To connect, a person enters:

- `token`: Personal access token from the Square Developer Console

### Setup settings

Whichever method you pick, setup also asks for:

- `environment` (optional): Square API environment. Use sandbox for testing. One of "production", "sandbox".

## Use your own Square OAuth app

With your own OAuth app, people see your company's name on the Square consent screen, and the client ID and secret belong to you.

1. **Start the credentials in Metorial**

   In the dashboard, select **Settings**, then **Organization Settings**. Under **Integrations and MCP**, select **Provider Auth**, then **Create Auth Credentials**. Choose Square and copy the **Redirect URI**.

2. **Register the app with Square**

   Create an OAuth app or client in Square and add the redirect URI from Metorial as its redirect or callback URL.

3. **Finish in Metorial**

   Copy the app's client ID and client secret. Back in Metorial, enter a **Name**, the **Client ID** and the **Client Secret**, review **Scopes**, and select **Create**. Then pick these credentials for the Square integration.

## Admin: share Square in a portal

### In the dashboard

1. **Open Shared Resources**

   Open **Workforce**, choose the portal, and select **Shared Resources** under **Access**.

2. **Share a new integration**

   Select **Share a Resource**, then **New Integration**, and choose Square. Under **Auth Method**, keep **OAuth** or pick another. For how members connect, choose **Each person connects**, so everyone signs in to Square as themselves.

3. **Limit the tools**

   Under **Tool Filters**, set the write and destructive groups to **Reject** if agents should only read from Square.

4. **Choose who gets it**

   Add the access groups that should see Square. When a person asks for access from the portal, the request appears under **Access Requests**.

### With the CLI

The CLI cannot create the per-user Square integration. Once it exists, check which groups have it:

```bash
metorial-admin portals access list <portal-id> --type provider_template --search square
```

## Employee: connect Square

### In the portal

1. **Open Square in the catalog**

   Sign in to your portal and open Square. The status reads **Available**.

2. **Authenticate**

   Under **Quick setup**, select **Authenticate**. A Square sign-in tab opens. Sign in and approve the permissions listed.

3. **Confirm**

   The status changes to **Configured**. If it later reads **Needs reconnect**, select **Reconnect** and sign in again.

### With the CLI

```bash
metorial catalog search square
metorial setup <catalog-item-id>
```

`catalog search` prints the catalog item ID. `metorial setup` uses **OAuth**. To connect with **Personal Access Token** instead, find its ID with `metorial catalog get <catalog-item-id>` and add `--auth-method <auth-method-id>`.

### Add it to your AI client

`metorial install` adds your Square connection to a local MCP client such as Claude Code, Cursor or Codex. `metorial list` prints the integration ID and `metorial client list` the client identifiers.

```bash
metorial list square
metorial client list
metorial install <client-identifier> <integration-id>
```

For a client that takes a server URL, such as ChatGPT, `metorial install custom <integration-id>` creates an installation token and shows the endpoint details.

## Make it read-only

Open the integration's **Tool Filters** and set the write and destructive groups to **Reject**. Agents keep the 29 read-only tools, such as `get_card` and `get_order`, and lose the 19 write tools, such as `pay_order` or `create_card`, and the 4 destructive tools, such as `disable_card` or `delete_customer`.

Employees see the result on the integration's page in the portal under **Tool access**. For the full walkthrough, see [Tool permissions](https://metorial.com/docs/platform/guides/tool-permissions).

## Check it worked

```bash
metorial list square
metorial tools <integration-id>
metorial call <integration-id> list_locations -d '{}'
```

`metorial tools` lists the 52 tools, minus any you rejected. `list_locations` takes no input. It lists Square business locations.

To see every input a tool takes, run `metorial schema <integration-id> <tool-key>`.

## Tools

### Read-only tools (29)

- `get_catalog_object`: Retrieve a specific catalog object by its ID. Needs `catalogObjectId`.
- `get_inventory`: Retrieve current inventory counts, optionally filtered by item variations, locations, tracked states, or update time. Needs `catalogObjectIds`.
- `get_invoice`: Get an invoice by ID, including its current version, payment schedule, recipient, status, and customer payment URL when published. Needs `invoiceId`.
- `search_catalog`: Search Square catalog items by text or category, or search catalog objects by type and advanced query.
- `list_payments`: List payments with documented date, location, card, amount, and offline filters.
- `search_orders`: Search for orders across one or more locations. Needs `locationIds`.
- `get_customer`: Retrieve full details of a specific customer profile by ID. Needs `customerId`.
- `list_invoices`: List invoices at one location with status, version, recipient, payment requests, and public URL when available. Needs `locationId`.
- `list_customers`: Retrieve a list of customer profiles.
- `get_payment`: Get a payment by ID, including current status, version token, refund IDs, card or cash details, and receipt URL. Needs `paymentId`.
- `list_locations`: List Square business locations.
- `get_order`: Retrieve full details of a specific order by its ID. Needs `orderId`.
- `get_location`: Retrieve a Square business location and its currency, status, and capabilities. Needs `locationId`.
- `get_refund`: Retrieve full details for a Square payment refund by refund ID. Needs `refundId`.
- `list_refunds`: Retrieve Square payment refunds with pagination and filters for created time, updated time, location, status, and source type.
- `get_merchant`: Retrieve the authenticated Square merchant profile or a specific merchant by ID.
- `search_customers`: Search Square customer profiles using common filters or an advanced Square customer query object.
- `search_invoices`: Search invoices at exactly one location and optionally one customer.
- `list_cards`: List saved cards, optionally filtered by customer or reference ID.
- `list_payment_links`: List Square-hosted payment links and their checkout URLs, with cursor pagination.
- `get_payment_link`: Retrieve a Square-hosted payment link, its order ID, version, and checkout URL.
- `get_card`: Retrieve a saved card by ID, including customer association and enabled state.
- `list_payouts`: List payouts and their settlement amounts, status, destination, and reconciliation identifiers.
- `list_payout_entries`: List the transactions and adjustments that make up a batch payout.
- `get_subscription`: Retrieve the current subscription, billing dates, card, invoices, and optional scheduled actions.
- `get_payout`: Retrieve one payout and its settlement status, amount, destination, and reconciliation ID.
- `get_dispute`: Retrieve the state, disputed payment, amount, reason, and response deadline for one dispute.
- `search_subscriptions`: Search subscriptions by location or customer, including their billing and cancellation state.
- `list_disputes`: List payment disputes, including the disputed payment, amount, state, and response deadline.

### Write tools (19)

- `upsert_catalog_object`: Create or fully replace a catalog object (item, variation, category, tax, discount, modifier list, etc.). Needs `object`.
- `update_customer`: Update an existing customer profile. Needs `customerId`.
- `create_payment`: Charge a token or saved card, or record cash or an external payment. Needs `sourceId` and `amountMoney`.
- `create_order`: Create an OPEN or DRAFT order at a Square location. Needs `locationId`.
- `create_invoice`: Create a draft invoice for an existing order. Needs `locationId` and `orderId`.
- `adjust_inventory`: Apply physical counts or inventory adjustments to item variations. Needs `changes`.
- `refund_payment`: Issue a full or partial refund of a completed Square payment. Needs `paymentId` and `amountMoney`.
- `manage_invoice`: Publish a draft invoice, cancel a published invoice, or delete a draft. Needs `invoiceId` and `action`.
- `manage_payment`: Capture or void an approved payment, update its amount or tip, or void an uncertain create request using its idempotency key. Needs `paymentId` and `action`.
- `create_customer`: Create a new customer profile.
- `update_invoice`: Update sparse invoice fields using the current version. Needs `invoiceId` and `version`.
- `pay_order`: Mark a Square order as paid using approved delayed-capture payment IDs, or settle a zero-total order with an empty paymentIds array. Needs `orderId`.
- `update_order`: Update an OPEN or DRAFT order using sparse fields and its current version, or set state to CANCELED to cancel an uninvoiced order. Needs `orderId` and `version`.
- `update_payment_link`: Update a payment link using its current version.
- `create_card`: Save a tokenized card for a Square customer.
- `create_payment_link`: Create a single-use Square-hosted checkout link for a quick-pay item or a new itemized order.
- `create_subscription`: Enroll a customer in a catalog subscription plan variation.
- `cancel_subscription`: Schedule cancellation at the end of the active billing period.
- `update_subscription`: Update selected subscription fields.

### Destructive tools (4)

- `delete_customer`: Permanently delete a customer profile from the Square account. Needs `customerId`.
- `delete_catalog_object`: Delete a catalog object by its ID. Needs `catalogObjectId`.
- `delete_payment_link`: Delete a payment link and cancel its unpaid checkout order.
- `disable_card`: Disable a saved card, preventing future charges.

## Triggers

Square has 11 triggers, which fire on events in Square:

- `order_events`: An order is created, updated, or its fulfillment changes.
- `inventory_events`: One or more inventory counts change.
- `booking_events`: A booking is created, updated, or canceled.
- `refund_events`: A payment refund is created or updated.
- `payment_events`: A payment is created or its status changes.
- `invoice_events`: An invoice is created, changed, published, canceled, deleted, paid, refunded, or has a failed scheduled charge.
- `customer_events`: A customer profile is created, updated, or deleted.
- `dispute_events`: A dispute is created, its state changes, or evidence is added or removed.
- `subscription_events`: A subscription is created or its status changes.
- `catalog_events`: The catalog version changes.
- `loyalty_events`: A loyalty account, event, program, or promotion changes.

## Next steps

- [Claude Code](https://metorial.com/docs/platform/clients/claude-code), [Cursor](https://metorial.com/docs/platform/clients/cursor), [Codex](https://metorial.com/docs/platform/clients/codex) and [ChatGPT](https://metorial.com/docs/platform/clients/chatgpt): connect each client to your portal and use Square there
- [Create custom OAuth credentials](https://metorial.com/docs/platform/integrations/create-custom-oauth-credentials): the Provider Auth screens in more detail
- [Tool permissions](https://metorial.com/docs/platform/guides/tool-permissions): tool filters and what employees see
- [Square on metorial.com](https://metorial.com/integrations/square): the integration overview