Square logo
AI agent integrationSquare

Square integration for multiplayer collaboration with AI agents using Claude Code or Codex

One governed connection your whole team and its AI agents can share, with approved actions and human review, so working in Square never means pasting credentials into a prompt.

Use Square from Claude Code

Bring Square context into engineering work while Type keeps app access attached to the teammate and workspace.

Automate Square with Codex

Let coding agents ask for the right app action, preserve conversation context, and keep humans in the approval loop.

Connect open agent workflows

Use Type as the collaboration layer around OpenClaw and other LLM workflows that need app access.

Commerce & Payments

What the Square integration exposes

Square provides payment processing, POS systems, invoicing, and e-commerce tools, enabling sellers to accept card payments and manage their business

One connection, many teammates

Connect Square once, then decide which teammates can use it for threads, automations, skills, and coding work.

Representative actions

  • Accept Dispute

    Accept a dispute and acknowledge liability, returning funds to the cardholder. When you accept a dispute, Square debits the disputed amount from your account and updates the dispute state to ACCEPTED. This action is irreversible - once accepted, a dispute cannot be challenged. Only use after reviewing all evidence and determining that challenging the dispute is not viable. Note: Requires DISPUTES_WRITE permission scope.

  • Add Group to Customer

    Tool to add a customer to a customer group. Use when you need to associate a customer with a specific group for targeted marketing, loyalty programs, or customer segmentation.

  • Calculate Order

    Tool to preview order pricing without creating an order. Use when you need to calculate the total cost, taxes, discounts, and other pricing details for an order before finalizing it. Particularly useful for integrating rewards, discounts, and complex pricing scenarios.

  • Cancel Invoice

    Cancels a Square invoice, preventing further payments from being collected. Requirements: - Invoice must be in SCHEDULED, UNPAID, or PARTIALLY_PAID state - Cannot cancel invoices in DRAFT state or terminal states (PAID, REFUNDED, CANCELED, FAILED) - Requires INVOICES_WRITE and ORDERS_WRITE OAuth scopes - Version number must match the current invoice version to prevent conflicts After cancellation, the associated order status is set to CANCELED and webhook events are triggered.

  • Cancel Payment

    Cancels (voids) a payment that is in APPROVED status. This is typically used in delayed capture scenarios where a payment was authorized but not yet captured, allowing you to void the authorization before settlement. Important: Only payments with APPROVED status can be canceled. Attempting to cancel a payment in any other status (COMPLETED, PENDING, CANCELED, FAILED) will result in an error. Once canceled, the payment status changes to CANCELED and the card details status changes to VOIDED. Required permissions: PAYMENTS_WRITE

Connection

API and auth details

Square APIs support commerce workflows including payments, refunds, customers, orders, catalog items, subscriptions, invoices, terminals, inventory, locations, webhooks, POS flows, and official SDKs across common languages.

FAQ

Questions people ask before connecting Square

Can Claude Code use Square?

Yes. Type lets an AI teammate use connected Square actions from a governed workspace context, so Claude Code work can reference the app without copying credentials into a local prompt.

Can Codex work with Square through Type?

Yes. Codex can collaborate through Type with app context, skills, and approved actions. The Square catalog entry includes public integration details and example capabilities where available.

Is this the same as a Square MCP server?

Type exposes connected app capabilities to AI teammates and coding agents through Type's integration layer. Teams use it when they want shared app access, human review, and teammate-level permissions around agent work.

More commerce & payments apps for AI teammates