RhinoAgents + Square

RhinoAgents × Square

Connect AI Employees to Square POS Orders, Catalog Inventory, Invoices, Customers, and Payments via Square Connect API v2, OAuth 2.0, and signed Webhooks.

OAuth 2.0 / Access Token Square API v2 Inventory & POS Orders Signed Webhooks
API v2
POS, Catalog, Invoices
25+
Typed Square Tools
Multi-Location
Store-Scoped Access
100%
Refund & Inventory HITL
01 / INTEGRATION ARCHITECTURE

How RhinoAgents Connects Safely to Square

RhinoAgents connects to your Square Developer App via OAuth 2.0, synchronizing multi-location POS orders, catalog stock counts, and customer invoices with audit logging.

// Square Enterprise Execution Flow
SQUARE POS
Orders • Catalog • Invoices
Multi-Location Inventory & Payments
API v2 / Webhooks
RHINOAGENTS RUNTIME
AI Employee + Guardrails
RBAC, Tool Registry, Audit Log
HITL Gate
SIGN-OFF
Slack / Teams
1-Click Approval

Pattern A — Multi-Location Stock Check

AI Employees query Square Inventory across store locations to answer customer availability or reorder triggers.

Inquiry → Square Inventory → Reply

Pattern B — POS Order & Payment Webhooks

Square order.created or inventory.count.updated webhooks trigger supplier restocks and ERP sync.

Square Webhook → Agent → Restock

Pattern C — HITL Refund & Adjustment

Refunds or bulk catalog price updates pause for 1-click store manager approval in Slack/Teams.

Price/Refund → HITL → Commit
02 / HOW TO CONFIGURE

Step-by-Step Square Setup

Create an application in the Square Developer Console for Sandbox or Production.

STEP 01 • SQUARE DEVELOPER

Create Application

  1. Open developer.squareup.com → Applications → New Application.
  2. Copy your Application ID and Access Token (or OAuth Secret).
STEP 02 • SCOPES

Grant Square Permissions

  1. Select scopes: ORDERS_READ/WRITE, INVENTORY_READ/WRITE, CUSTOMERS_READ/WRITE, and INVOICES_READ/WRITE.
STEP 03 • WEBHOOKS

Subscribe to Location Events

  1. Under Webhooks → Subscriptions, add your RhinoAgents endpoint and copy the Signature Key.
STEP 04 • RHINOAGENTS

Verify Connection

  1. Open RhinoAgents → Integrations → Square → Connect and verify GET /v2/locations.
Required Connector Fields in RhinoAgents AES-256 Encrypted Vault
Parameter Example Format Purpose
environment sandbox | production Targets connect.squareupsandbox.com or connect.squareup.com
access_token EAAAl•••••• (Vault Encrypted) Square OAuth or Personal Access Token
location_id L8X9Q... Default Square store/location ID
webhook_sig_key •••••••••••• HMAC-SHA256 key for x-square-hmacsha256-signature
03 / COMPLETE API ACTIONS REGISTRY

Supported Square Tools & Triggers

Typed Square Connect v2 tools across Orders, Catalog, Inventory, Customers, Invoices, and Payments.

Orders & Locations
list_locations()
search_orders(location_ids, query)
create_order(location_id, line_items)
get_order(order_id)
Catalog & Inventory
search_catalog_items(text)
get_inventory_counts(catalog_ids, loc)
batch_change_inventory(adjustments)
upsert_catalog_item(item_data)
Customers & Loyalty
search_customers(email_or_phone)
create_customer(given_name, email)
get_loyalty_account(phone)
Invoices & Payments
create_invoice(order_id, customer_id)
publish_invoice(invoice_id, version)
list_payments(begin_time, location_id)
refund_payment(payment_id, amount)
Team & Shifts
list_team_members()
search_shifts(location_id, start)
Webhook Triggers
square.order.created
square.payment.completed
square.inventory.count.updated
square.invoice.paid
EXAMPLE TOOL EXECUTION • square.get_inventory_counts() RBAC + HITL Enforced
{
  "tool": "square.get_inventory_counts",
  "input": { "catalog_object_ids": ["ITEM_4491"], "location_ids": ["L8X9Q2A"] },
  "result": { "state": "IN_STOCK", "quantity": "7", "below_reorder_point": true }
}
05 / TECHNICAL FAQ

Square Integration FAQ

Does RhinoAgents support multiple Square locations?

Yes. Tools accept location_ids so agents can check or sync stock per store.

Are Square Webhooks cryptographically verified?

Yes, via x-square-hmacsha256-signature validation.

Can we test in Square Sandbox?

Yes. Use Square Sandbox credentials first to verify order, catalog, and invoice flows.

Does Square Inventory support real-time low-stock triggers?

Yes. Subscribe to inventory.count.updated to trigger reorder alerts.

Ready to Connect Square?

Build & Test Your Square AI Employee Today.

Start on the RhinoAgents platform with credits, or have our engineering team build, integrate, and manage your Square AI workflows end-to-end.