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
| Field | Description | Required | Format |
|---|---|---|---|
| Client ID | Square OAuth App Client ID | Yes | sq0idp-xxxxxxxxxxxxxxxx |
| Client Secret | Square OAuth App Client Secret | Yes | sq0csp-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx |
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
create_customer — Create a new customer for a business. Must provide at least one of: given_name, family_name, company_name, email_address, or phone_number.
create_customer — Create a new customer for a business. Must provide at least one of: given_name, family_name, company_name, email_address, or phone_number.
Parameters
The first name associated with the customer profile
The last name associated with the customer profile
A business name associated with the customer profile
The email address associated with the customer profile
Phone number (9-16 digits, optional + prefix and country code)
An optional second ID to associate the customer with an entity in another system
A custom note associated with the customer profile
Response
create_invoice — Create a draft invoice for an order. You must publish (send) the invoice before Square can process it.
create_invoice — Create a draft invoice for an order. You must publish (send) the invoice before Square can process it.
Parameters
The ID of the Square location
The ID of the order associated with the invoice
The ID of the customer who will receive the invoice
The due date for the payment request, in YYYY-MM-DD format
Payment methods customers can use. Valid values: card, square_gift_card, bank_account, buy_now_pay_later, cash_app_pay
Response
create_order — Create a new order that can include information about products for purchase.
create_order — Create a new order that can include information about products for purchase.
Parameters
The ID of the Square location for the order
The ID of the customer associated with the order
An optional second ID to associate the order with an entity in another system
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
list_event_types_options — Retrieve the list of available webhook event types from Square.
list_event_types_options — Retrieve the list of available webhook event types from Square.
Response
list_location_options — Retrieve the list of locations for the authenticated Square account.
list_location_options — Retrieve the list of locations for the authenticated Square account.
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+errorrather than raising. Square errors include a JSONerrors[]array withcategory,code, anddetailfields.