
Square Connect API
Square Connect API
Square Connect API offers online and in-person payments, orders, inventory, and customer management — built for SMBs in retail and food service.
Unified API across online and in-person — fewer integrations than online-only processors
Country coverage is narrow (mostly US, Canada, UK, Ireland, Australia, Japan)
Sign up at developer.squareup.com, copy the sandbox/production access_token (Personal Access Token or OAuth) from the Dashboard. Send Authorization: Bearer <token> and a Square-Version header on every request.
Uptime · 30-day window
About this API
Square is not a pure online payment processor — it exposes POS hardware, inventory, orders, customers, and loyalty alongside online payments, all under one API. That makes it a better fit than Stripe in restaurants, retail, salons, and other contexts where in-person and online operations need to stay in sync.
The surface is modular: Payments (online), Terminal (in-person readers), Catalog (items and inventory), Orders (orders and refunds), Customers (profiles), Subscriptions, Bookings. Everything shares the Location concept — a merchant can have multiple storefronts, each with its own inventory and orders.
Auth is OAuth or Personal Access Token. Every request needs a Square-Version header to pin the API version so upstream changes do not break you silently. The sandbox is fully free and feature-complete, with simulated cards and virtual terminals. Country coverage is narrower than Stripe — mostly US, Canada, UK, Australia, Japan — so check supported regions before committing to a new market.
What you can build
- 1Accept online Square payments in an ecommerce app
- 2Sync POS sales data to external analytics
- 3Manage menus, inventory, and catalog items
- 4Automate in-person card acceptance via Square terminals
- 5Pull customer and order data for marketing
Strengths & limitations
Strengths
- Unified API across online and in-person — fewer integrations than online-only processors
- Comprehensive free sandbox
- Deep integration with Square hardware (terminals, readers)
- SMB-friendly developer documentation
Limitations
- Country coverage is narrow (mostly US, Canada, UK, Ireland, Australia, Japan)
- Some features are region-restricted
- Processing fees are slightly higher than Stripe
Example request
curl https://squareup.com/developers/<endpoint> \
-H "Authorization: Bearer $API_KEY"
# Some providers use X-Api-Key instead — verify in the docs.Getting started
Sign up at developer.squareup.com, copy the sandbox/production access_token (Personal Access Token or OAuth) from the Dashboard. Send Authorization: Bearer <token> and a Square-Version header on every request.
FAQ
Does Square charge for API calls?+
The API itself is free; fees apply only on real transactions. Standard card rate is about 2.6% + 10¢ per swipe/tap.
How does the sandbox work?+
Switch the Dashboard to sandbox mode to get isolated test tokens and a virtual merchant. Simulated card numbers trigger various payment scenarios.
Can Chinese merchants use it?+
Mainland China is not supported. Square covers US, Canada, UK, Ireland, Australia, and Japan.
Is the Square-Version header required?+
Strongly recommended. Without it, calls use your account default and behavior can shift when Square upgrades.
Technical details
- Auth type
- api_key
- Pricing
- paid
- Protocols
- REST
- SDKs
- python, javascript, java, ruby, php, csharp, go
- Response time
- 1309 ms
- Last health check
- 5/12/2026, 7:38:28 AM
Endpoints
Parsed from the OpenAPI spec. Showing 12 of 200 non-deprecated endpoints.
/mobile/authorization-codeMobileAuthorizationCreateMobileAuthorizationCode
/oauth2/clients/{client_id}/access-token/renewOAuthRenewToken
/oauth2/revokeOAuthRevokeToken
/oauth2/tokenOAuthObtainToken
/v1/{location_id}/ordersV1TransactionsListOrders
/v1/{location_id}/orders/{order_id}V1TransactionsRetrieveOrder
/v1/{location_id}/orders/{order_id}V1TransactionsUpdateOrder
/v1/{location_id}/paymentsV1TransactionsListPayments
/v1/{location_id}/payments/{payment_id}V1TransactionsRetrievePayment
/v1/{location_id}/refundsV1TransactionsListRefunds
/v1/{location_id}/refundsV1TransactionsCreateRefund
/v1/{location_id}/settlementsV1TransactionsListSettlements
188 more endpoints not shown. See the OpenAPI spec for the full list.