Skip to main content
Square logo

Overview

Add Square to any ModuleX agent or workflow. Payment processing, commerce, and business management via the Square Connect API (connect.squareup.com/v2).
Categories: Finance & Payments · Payments · Commerce · Finance · Auth: OAuth2 · Actions: 6

Authentication

OAuth2 Authentication

Connect using Square OAuth (recommended)

Required Credentials

OAuth Configuration

  • Authorization URL: https://connect.squareup.com/oauth2/authorize
  • Token URL: https://connect.squareup.com/oauth2/token
  • Scopes: CUSTOMERS_WRITE, CUSTOMERS_READ, ORDERS_WRITE, ORDERS_READ, INVOICES_WRITE, INVOICES_READ, MERCHANT_PROFILE_READ

Available Actions

Parameters

string
The first name associated with the customer profile
string
The last name associated with the customer profile
string
A business name associated with the customer profile
string
The email address associated with the customer profile
string
Phone number (9-16 digits, optional + prefix and country code)
string
An optional second ID to associate the customer with an entity in another system
string
A custom note associated with the customer profile

Response

Parameters

string
required
The ID of the Square location
string
required
The ID of the order associated with the invoice
string
required
The ID of the customer who will receive the invoice
string
required
The due date for the payment request, in YYYY-MM-DD format
array
required
Payment methods customers can use. Valid values: card, square_gift_card, bank_account, buy_now_pay_later, cash_app_pay

Response

Parameters

string
required
The ID of the Square location for the order
string
The ID of the customer associated with the order
string
An optional second ID to associate the order with an entity in another system
object
Line items for the order. Array of objects, each with: quantity (string), name (string), base_price_money ({amount: int in cents, currency: string e.g. ‘USD’})

Response

Response

Response

Parameters

string
required
The ID of the Square location
string
required
The ID of the invoice to publish

Response

Limits & Quotas

  • Rate limits: Square enforces per-endpoint rate limits, typically 30-100 requests per 30 seconds depending on the endpoint category.
  • Sandbox: Square provides a sandbox environment for testing at connect.squareupsandbox.com.
  • Error model: Non-2xx responses and timeouts are caught and returned as success=False + error rather than raising. Square errors include a JSON errors[] array with category, code, and detail fields.

Coinbase

Lemon Squeezy

Nasdaq Data Link