Square
Payments, orders, customers, catalog and inventory for your business
Managed auth
Authentication
Methods your end users can connect with. Credentials are stored encrypted, and secret values are never shown again or returned by the API.
API key
Your users enter
- Access tokenSecretRequired
- EnvironmentOptionalIdentifier2 choices
Where to find them
- At developer.squareup.com/apps sign in with your Square account and create an application (or open one).
- In “Credentials” choose “Production” at the top (or “Sandbox” for testing) and copy the “Access token”.
- Choose the same environment here. That token has full access to the business account: keep it safe.
OAuth 2.0
Your OAuth appBring your own OAuth app: register one with Square, then create a custom auth config with its client ID and secret and our redirect URI. Setup guide
Registering the OAuth app
- At developer.squareup.com/apps open your application (or create one named “Maua.Culturewire”) and choose “Production” at the top.
- In the left menu open “OAuth”, click “Update” under “Redirect URL”, paste the redirect URI shown below (Square requires HTTPS) and click “Confirm”.
- Copy the “Application ID” (the client ID) and, with “Show”, the “Application secret”. It only works for the production account (for Sandbox testing, use the access token). Whoever connects accepts the permissions (scopes) listed below.
Default scopes
MERCHANT_PROFILE_READPAYMENTS_READPAYMENTS_WRITEORDERS_READORDERS_WRITECUSTOMERS_READCUSTOMERS_WRITEITEMS_READITEMS_WRITEINVENTORY_READINVOICES_READ
Tools (2)
Square API request
SQUARE_SEND_REQUESTAuthenticated call to the Square API (https://{environment}/v2). Any endpoint of the API is allowed. Amounts in cents (amount_money.amount). Examples: GET /locations, GET /payments?begin_time=2026-10-01T00:00:00Z&limit=50, GET /payments/{id}, POST /orders/search {"location_ids": ["…"], "query": {"filter": {"state_filter": {"states": ["COMPLETED"]}}}}, POST /customers/search {"query": {"filter": {"email_address": {"exact": "…"}}}}, GET /catalog/list?types=ITEM, POST /inventory/counts/batch-retrieve {"location_ids": ["…"]}, POST /refunds {"idempotency_key": "…", "payment_id": "…", "amount_money": {"amount": 500, "currency": "EUR"}}, GET /invoices?location_id=…. Pagination: cursor.
Required scopes
No scopes required
Input
Square API request input Name Type Description methodstringHTTP methodOne of: GET,POST,PUT,PATCH,DELETEDefault:"GET"pathrequiredstringPath relative to the API base URL, or a full URL on the same API (e.g. a next-page link) queryobjectQuery string parameters bodyunknownJSON body formobjectBody as application/x-www-form-urlencoded instead of JSON body_base64stringBinary body, base64 (at most 960000 characters) content_typestringContent-Type of body_base64 headersobjectExtra headers such as Accept. Authentication is added automatically. Payments
SQUARE_LIST_PAYMENTSPayments from newest to oldest: id, date, amount, status, source (card, cash…), card brand, location, order, note and receipt.
Required scopes
No scopes required
Input
Payments input Name Type Description fromstringYYYY-MM-DD or ISO 8601 (default: last year) tostringYYYY-MM-DD or ISO 8601 locationstringLocation ID (GET /locations) maxintegerDefault: 50cursorstringThe “next” value from the previous call

