Skip to navigation

Square

Connect your AI agents to Square.
Ready to connect

Connects with credentials the end user enters, such as an API key, so you don’t need to register an OAuth app.

Authentication: OAuth or personal access token. See Magic Link for the runtime auth flow, or Application credentials to bring your own OAuth app.

Sample use cases

  • List transactions over $500 last week, by location.
  • Issue a refund for the transaction at the SF location for TXN-12345.
  • Pull total revenue by item category for Q1.

Available Tools

create_booking

Create a booking/appointment. Requires start_at, location_id, and appointment_segments with service and team member.

list_bookings

List bookings. Filter by location, team member, or date range. Returns paginated list with status.

get_booking

Get a booking by ID. Returns full booking details including service, team member, and customer.

update_booking

Update a booking. Can reschedule, change team member, or update notes. Use version for concurrency.

cancel_booking

Cancel a booking. Booking status changes to CANCELLED. Use booking_version for concurrency.

list_team_member_booking_profiles

List team members available for booking. Filter by location or bookable status. Returns profiles with availability.

search_availability

Search for available booking time slots. Specify date range and service. Returns available times with team members.

list_cards

List cards on file. Filter by customer_id or reference_id. Returns cards with last 4 digits, brand, and expiration.

get_card

Get a card by ID. Returns card details including last 4 digits, brand, expiration, and billing address.

create_card

Save a card on file for a customer. Requires source_id (card nonce from Web Payments SDK) and customer_id. Returns saved card.

disable_card

Disable a card on file. The card can no longer be used for payments. This action is irreversible.

list_catalog

List catalog objects (items, categories, taxes, discounts). Filter by object types. Returns paginated list with cursor.

get_catalog_object

Get a catalog object by ID. Include related objects (variations, categories, images) with include_related_objects.

upsert_catalog_object

Create or update a catalog object. Object must include type and type-specific data (item_data, category_data, etc).

delete_catalog_object

Delete a catalog object by ID. Also deletes related objects (e.g., deleting item deletes its variations).

search_catalog_objects

Search catalog by text (name, description, SKU), exact match, or prefix. Filter by object types and include related objects.

batch_upsert_catalog_objects

Create or update multiple catalog objects in one request. More efficient than individual upserts.

batch_delete_catalog_objects

Delete multiple catalog objects in one request. Also deletes related objects.

create_customer_group

Create a customer group for segmentation. Groups help organize customers for marketing and reporting.

list_customer_groups

List all customer groups. Returns group names and IDs for segmentation.

get_customer_group

Get a customer group by ID. Returns group details including name and creation time.

update_customer_group

Update a customer group’s name. Returns the updated group.

delete_customer_group

Delete a customer group. Removes the group but not the customers in it.

add_customer_to_group

Add a customer to a group. Customer will be included in group-based reports and marketing.

remove_customer_from_group

Remove a customer from a group. Customer will no longer be included in group-based activities.

create_customer

Create a new customer profile. Provide name, email, phone, address. Returns customer with unique ID for future payments and orders.

list_customers

List all customers with optional sorting and pagination. Returns customers with their contact info and IDs.

get_customer

Get a customer by ID. Returns full customer profile including contact info, addresses, and group memberships.

update_customer

Update a customer’s profile. Provide fields to update (name, email, phone, address, etc). Returns updated customer.

delete_customer

Delete a customer by ID. Removes the customer profile. Use version for optimistic concurrency.

search_customers

Search customers by email, phone, reference_id, or fuzzy name match. Use to find existing customers before creating duplicates.

create_gift_card

Create a gift card. Specify PHYSICAL or DIGITAL type. Card starts with $0 balance until activated.

list_gift_cards

List gift cards. Filter by type, state, or linked customer. Returns cards with balances.

get_gift_card

Get a gift card by ID. Returns card details including balance, state, and linked customers.

get_gift_card_from_gan

Get a gift card by its GAN (gift card account number). Use when customer provides the card number.

link_customer_to_gift_card

Link a customer to a gift card. Customer can view and use the card in their account.

unlink_customer_from_gift_card

Unlink a customer from a gift card. Customer will no longer see the card in their account.

create_gift_card_activity

Create a gift card activity: ACTIVATE, LOAD, REDEEM, DEACTIVATE, or ADJUST balance. Each type has specific required details.

batch_retrieve_inventory_counts

Get inventory counts for catalog items at locations. Filter by item IDs, location IDs, or inventory states.

batch_change_inventory

Change inventory counts. Supports physical counts, adjustments, and transfers between locations. Requires idempotency_key.

retrieve_inventory_changes

Get history of inventory changes. Filter by item, location, change type, or time range.

create_invoice

Create an invoice for an order. Requires location_id, order_id. Invoice starts as DRAFT until published.

list_invoices

List invoices for a location. Returns paginated list with invoice status and amounts.

get_invoice

Get an invoice by ID. Returns full invoice details including payment requests and status.

update_invoice

Update a draft invoice. Can modify payment requests, recipient, title, etc. Requires current version.

delete_invoice

Delete a draft invoice. Cannot delete published invoices - cancel them instead.

publish_invoice

Publish a draft invoice to send to customer. Invoice status changes from DRAFT to UNPAID. Requires version.

cancel_invoice

Cancel a published invoice. Changes status to CANCELED. Cannot be undone. Requires version.

search_invoices

Search invoices by location and optionally by customer. Returns matching invoices with details.

list_locations

List all business locations. Returns location details including address, hours, and capabilities.

get_location

Get a location by ID. Returns full location details including address, hours, and social media links.

create_location

Create a new business location. Requires name. Can include address, hours, and contact info.

update_location

Update a location’s details. Can modify name, address, hours, contact info, and social links.

create_loyalty_account

Create a loyalty account for a customer. Link by phone number. Returns account with initial balance.

search_loyalty_accounts

Search loyalty accounts by phone, customer ID, or program. Returns accounts with points balances.

get_loyalty_account

Get a loyalty account by ID. Returns points balance, lifetime points, and expiring points.

accumulate_loyalty_points

Add points to a loyalty account from a purchase. Can link to order_id or add manual points.

adjust_loyalty_points

Manually adjust loyalty points. Positive to add, negative to subtract. Provide reason for audit.

redeem_loyalty_reward

Redeem a loyalty reward on an order. Deducts points from account. Returns reward with discount details.

list_loyalty_programs

List all loyalty programs. Returns program details including reward tiers and accrual rules.

list_merchants

List merchants associated with the access token. Usually returns a single merchant for the account.

get_merchant

Get merchant info by ID. Use ‘me’ for the current merchant. Returns business name, country, and main location.

create_order

Create an order with line items. Requires location_id and idempotency_key. Can include catalog items or custom items with prices.

search_orders

Search orders by location, customer, state, or date range. Returns matching orders with details.

get_order

Get an order by ID. Returns full order details including line items, totals, fulfillments, and payments.

update_order

Update an order. IMPORTANT: First call get_order to get current version. Add line items, update fulfillment, or change state.

pay_order

Pay for an order using payment IDs. Links payments to the order and completes the transaction.

clone_order

Clone an existing order to create a copy. Useful for repeat orders. Returns new order with same line items.

calculate_order

Calculate order totals without creating an order. Preview taxes, discounts, and final amounts before committing.

create_payment

Create a payment to charge a customer. Requires source_id (card nonce or card on file), idempotency_key (unique UUID), and amount_money. Returns payment with status and receipt URL.

list_payments

List payments with optional filters. Filter by time range, location, card details, or amount. Returns paginated list with cursor for next page.

get_payment

Get a payment by ID. Returns full payment details including status, amounts, card details, and receipt URL.

cancel_payment

Cancel a payment that has not been completed. Only works for payments in APPROVED or PENDING status.

complete_payment

Complete a delayed payment. Use for payments created with autocomplete=false. Captures the authorized amount.

create_refund

Refund a payment. Requires payment_id, idempotency_key, and amount_money. Can refund full or partial amounts. Returns refund with status.

list_refunds

List refunds with optional filters. Filter by time range, location, status, or source type. Returns paginated list.

get_refund

Get a refund by ID. Returns refund details including status, amount, and associated payment.

create_subscription

Create a subscription for recurring billing. Requires location, plan_variation_id, and customer_id. Returns subscription with status.

list_subscriptions

List subscriptions. Filter by location or customer. Returns paginated list with status and billing info.

get_subscription

Get a subscription by ID. Returns full subscription details including phases and scheduled actions.

update_subscription

Update a subscription. Can change card, tax percentage, or price override. Use version for concurrency.

cancel_subscription

Cancel a subscription. Schedules cancellation at end of current billing period.

pause_subscription

Pause a subscription. Can set pause duration or resume date. Customer won’t be billed during pause.

resume_subscription

Resume a paused subscription. Can specify when to resume. Billing resumes from resume date.

create_team_member

Create a team member. Provide name, email, phone. Assign to locations. Returns team member with ID.

list_team_members

List team members. Filter by location or status. Returns paginated list with contact info.

get_team_member

Get a team member by ID. Returns full profile including locations and status.

update_team_member

Update a team member. Can modify name, contact info, status, and location assignments.

search_team_members

Search team members by location, status, or owner flag. Returns matching members.

accept_dispute

Accept a Square payment dispute and concede the disputed amount.

batch_get_catalog_objects

Retrieve multiple Square catalog objects in one request.

batch_get_orders

Retrieve multiple Square orders in one request.

bulk_create_customers

Create multiple Square customers in one request.

bulk_create_team_members

Create multiple Square team members in one request.

bulk_create_vendors

Create multiple Square vendors in one request.

bulk_delete_booking_custom_attributes

Delete the custom attribute values listed in values for one or more bookings.

bulk_delete_customers

Delete multiple Square customers in one request.

bulk_delete_location_custom_attributes

Delete the custom attribute values listed in values for one or more locations.

bulk_delete_merchant_custom_attributes

Delete the custom attribute values listed in values for one or more merchants.

bulk_delete_order_custom_attributes

Delete the custom attribute values listed in values for one or more orders.

bulk_get_booking_team_member_profiles

Retrieve multiple Square team member booking profiles in one request.

bulk_get_bookings

Retrieve multiple Square bookings in one request.

bulk_get_customers

Retrieve multiple Square customer records in one request.

bulk_get_vendors

Retrieve the vendors whose IDs are in vendor_ids.

bulk_swap_plan

Swap the plan for multiple subscriptions at a location.

bulk_update_customers

Update multiple Square customers in one request.

bulk_update_team_members

Update multiple Square team members in one request.

bulk_update_vendors

Update multiple Square vendors in one request.

bulk_upsert_booking_custom_attributes

Create or update the custom attribute values listed in values for one or more bookings.

bulk_upsert_customer_custom_attributes

Create or update the custom attribute values listed in values for one or more customer profiles.

bulk_upsert_location_custom_attributes

Create or update the custom attribute values listed in values for one or more locations.

bulk_upsert_merchant_custom_attributes

Create or update the custom attribute values listed in values for one or more merchants.

bulk_upsert_order_custom_attributes

Create or update the custom attribute values listed in values for one or more orders.

calculate_loyalty_points

Estimate the loyalty points a buyer would earn for a purchase.

cancel_loyalty_promotion

Cancel the Square loyalty promotion. Use promotion_id from list_loyalty_promotions and program_id from list_loyalty_programs.

cancel_payment_by_idempotency_key

Cancel a payment using the idempotency key from its original create_payment request.

cancel_terminal_action

Cancel the Square terminal action. Use action_id from search_terminal_actions.

cancel_terminal_checkout

Cancel the Square terminal checkout. Use checkout_id from search_terminal_checkouts.

cancel_terminal_refund

Cancel the Square terminal refund. Use terminal_refund_id from search_terminal_refunds.

catalog_info

Retrieve the Square catalog version and object counts.

change_billing_anchor_date

Change the date used for a subscription’s monthly billing cycle.

create_booking_custom_attribute_definition

Create a custom attribute definition that can be used on bookings.

create_break_type

Create a Square break type. break_type must include location_id (from list_locations), break_name, expected_duration as a duration string such as PT30M, and is_paid.

create_checkout_payment_link

Create a shareable Square checkout link for an order or a quick-pay amount.

create_customer_custom_attribute_definition

Create a custom attribute definition that can be used on customer profiles.

create_device_code

Create a device code that lets a Square Terminal connect to the account.

create_dispute_evidence_text

Create a Square dispute evidence text. Supply a unique idempotency_key; provide required evidence_text; use dispute_id from list_disputes.

create_location_custom_attribute_definition

Create a custom attribute definition that can be used on locations.

create_loyalty_promotion

Create a Square loyalty promotion. Use program_id from list_loyalty_programs and a new idempotency_key.

create_merchant_custom_attribute_definition

Create a custom attribute definition that can be used on merchants.

create_order_custom_attribute_definition

Create a custom attribute definition that can be used on orders.

create_team_job

Create a Square team job. Supply a unique idempotency_key; provide required job.

create_terminal_action

Create an action for a Square Terminal, such as opening a cash drawer.

create_terminal_checkout

Start a checkout on a Square Terminal. Provide idempotency_key and checkout details, including the order or payment information; the response includes the checkout status.

create_terminal_refund

Request a refund at a Square Terminal for a previously collected payment.

create_vendor

Create a vendor in Square. Provide a unique idempotency_key and the vendor details; the response includes the new vendor ID.

create_webhook_subscription

Create a Square webhook subscription. Provide required subscription.

delete_booking_custom_attribute

Delete one custom attribute value from a booking.

delete_booking_custom_attribute_definition

Delete a custom attribute definition for bookings.

delete_break_type

Delete the Square break type. Use id from list_break_types.

delete_checkout_payment_link

Delete the Square checkout payment link.

delete_customer_custom_attribute

Delete one custom attribute value from a customer profile.

delete_customer_custom_attribute_definition

Delete a custom attribute definition for customer profiles.

delete_dispute_evidence

Delete the Square dispute evidence. Use dispute_id from list_disputes and evidence_id from list_dispute_evidence.

delete_invoice_attachment

Delete the Square invoice attachment. Use invoice_id from list_invoices and attachment_id from get_invoice.

delete_location_custom_attribute

Delete one custom attribute value from a location.

delete_location_custom_attribute_definition

Delete a custom attribute definition for locations.

delete_loyalty_reward

Delete the Square loyalty reward. Use reward_id from search_loyalty_rewards.

delete_merchant_custom_attribute

Delete one custom attribute value from a merchant.

delete_merchant_custom_attribute_definition

Delete a custom attribute definition for merchants.

delete_order_custom_attribute

Delete one custom attribute value from a order.

delete_order_custom_attribute_definition

Delete a custom attribute definition for orders.

delete_site_snippet

Delete the Square site snippet. Use site_id from list_sites.

delete_subscription_action

Delete a scheduled action for a subscription.

delete_webhook_subscription

Delete the Square webhook subscription. Use subscription_id from list_webhook_subscriptions.

disable_events

Disable event recording for the Square account.

dismiss_terminal_action

Dismiss the Square terminal action. Use action_id from search_terminal_actions.

dismiss_terminal_checkout

Dismiss the Square terminal checkout. Use checkout_id from search_terminal_checkouts.

dismiss_terminal_refund

Dismiss the Square terminal refund. Use terminal_refund_id from search_terminal_refunds.

enable_events

Enable event recording so matching Square events can be searched.

get_bank_account

Retrieve the Square bank account. Use bank_account_id from list_bank_accounts.

get_bank_account_by_v1_id

Retrieve a bank account using its legacy Square V1 ID.

get_booking_business_profile

Retrieve the Square seller booking business profile.

get_booking_custom_attribute

Retrieve a custom attribute value for a booking.

get_booking_custom_attribute_definition

Retrieve a custom attribute definition for bookings.

get_booking_location_profile

Retrieve the Square booking location profile.

get_booking_team_member_profile

Retrieve the Square team member booking profile.

get_break_type

Retrieve the Square break type. Use id from list_break_types.

get_cash_drawer_shift

Retrieve the Square cash drawer shift. Use location_id from list_locations and shift_id from list_cash_drawer_shifts.

get_checkout_location_settings

Retrieve the Square checkout location settings.

get_checkout_merchant_settings

Retrieve the Square checkout merchant settings. The response contains the requested checkout merchant settings details.

get_checkout_payment_link

Retrieve the Square checkout payment link.

get_customer_custom_attribute

Retrieve a custom attribute value for a customer profile.

get_customer_custom_attribute_definition

Retrieve a custom attribute definition for customer profiles.

get_customer_segment

Retrieve the Square customer segment. Use segment_id from list_customer_segments.

get_device

Retrieve the Square device. Use device_id from list_devices. The response contains the requested device details.

get_device_code

Retrieve the Square device code. Use id from list_device_codes.

get_dispute

Retrieve the Square dispute. Use dispute_id from list_disputes. The response contains the requested dispute details.

get_dispute_evidence

Retrieve the Square dispute evidence. Use dispute_id from list_disputes and evidence_id from list_dispute_evidence.

get_gift_card_from_nonce

Retrieve the Square gift card associated with a payment nonce.

get_inventory_adjustment

Retrieve the Square inventory adjustment.

get_inventory_count

Retrieve the Square inventory count. Use catalog_object_id from search_catalog_objects.

get_inventory_physical_count

Retrieve the Square physical inventory count.

get_location_custom_attribute

Retrieve a custom attribute value for a location.

get_location_custom_attribute_definition

Retrieve a custom attribute definition for locations.

get_loyalty_program

Retrieve the Square loyalty program. Use program_id from list_loyalty_programs.

get_loyalty_promotion

Retrieve the Square loyalty promotion. Use promotion_id from list_loyalty_promotions and program_id from list_loyalty_programs.

get_loyalty_reward

Retrieve the Square loyalty reward. Use reward_id from search_loyalty_rewards.

get_merchant_custom_attribute

Retrieve a custom attribute value for a merchant.

get_merchant_custom_attribute_definition

Retrieve a custom attribute definition for merchants.

get_order_custom_attribute

Retrieve a custom attribute value for a order.

get_order_custom_attribute_definition

Retrieve a custom attribute definition for orders.

get_payout

Retrieve the Square payout. Use payout_id from list_payouts. The response contains the requested payout details.

get_site_snippet

Retrieve the Square site snippet. Use site_id from list_sites.

get_team_job

Retrieve the Square team job. Use job_id from list_team_jobs. The response contains the requested team job details.

get_team_member_wage

Retrieve the Square team member wage. Use id from list_team_member_wages.

get_team_member_wage_setting

Retrieve the Square team member wage setting.

get_terminal_action

Retrieve the Square terminal action. Use action_id from search_terminal_actions.

get_terminal_checkout

Retrieve the Square terminal checkout. Use checkout_id from search_terminal_checkouts.

get_terminal_refund

Retrieve the Square terminal refund. Use terminal_refund_id from search_terminal_refunds.

get_vendor

Retrieve the Square vendor. Use vendor_id from search_vendors. The response contains the requested vendor details.

get_webhook_subscription

Retrieve the Square webhook subscription.

list_bank_accounts

List Square bank accounts. Filter by location_id, customer_id.

list_booking_custom_attribute_definitions

List definitions for custom attributes available to bookings.

list_booking_custom_attributes

List custom attribute values for a booking.

list_booking_location_profiles

List Square booking location profiles. Use the returned cursor to continue through pages.

list_break_types

List Square break types. Filter by location_id.

list_cash_drawer_shift_events

List Square cash drawer shift events. Use location_id from list_locations and shift_id from list_cash_drawer_shifts.

list_cash_drawer_shifts

List Square cash drawer shifts. Use location_id from list_locations; filter by sort_order, begin_time, end_time.

list_checkout_payment_links

List Square checkout payment links. Use the returned cursor to continue through pages.

list_customer_custom_attribute_definitions

List definitions for custom attributes available to customer profiles.

list_customer_custom_attributes

List custom attribute values for a customer profile.

list_customer_segments

List Square customer segments. Use the returned cursor to continue through pages.

list_device_codes

List Square device codes. Filter by location_id, product_type, status.

list_devices

List Square devices. Filter by sort_order, location_id.

list_dispute_evidence

List Square dispute evidences. Use dispute_id from list_disputes.

list_disputes

List Square disputes. Filter by states, location_id.

list_event_types

List event types supported by the Square Events API.

list_gift_card_activities

List Square gift card activities. Filter by gift_card_id, type, location_id, begin_time.

list_location_custom_attribute_definitions

List definitions for custom attributes available to locations.

list_location_custom_attributes

List custom attribute values for a location.

list_loyalty_promotions

List Square loyalty promotions. Use program_id from list_loyalty_programs; filter by status.

list_merchant_custom_attribute_definitions

List definitions for custom attributes available to merchants.

list_merchant_custom_attributes

List custom attribute values for a merchant.

list_order_custom_attribute_definitions

List definitions for custom attributes available to orders.

list_order_custom_attributes

List custom attribute values for a order.

list_payout_entries

List Square payout entries. Use payout_id from list_payouts; filter by sort_order.

list_payouts

List Square payouts. Filter by location_id, status, begin_time, end_time.

list_sites

List Square sites. The response contains the matching records.

list_subscription_events

List Square subscription events. Use subscription_id from list_subscriptions.

list_team_jobs

List Square team jobs. Use the returned cursor to continue through pages.

list_team_member_wages

List Square team member wages. Filter by team_member_id.

list_webhook_event_types

List event types that a Square webhook subscription can receive.

list_webhook_subscriptions

List Square webhook subscriptions. Filter by include_disabled, sort_order.

list_workweek_configs

List Square workweek configs. Use the returned cursor to continue through pages.

redeem_loyalty_reward_by_id

Redeem the Square loyalty reward by id. Supply a unique idempotency_key; use reward_id from search_loyalty_rewards and location_id from list_locations.

register_apple_pay_domain

Register a website domain for Apple Pay with Square.

search_catalog_items

Search Square for catalog items. Filter by text_filter, category_ids, stock_levels, enabled_location_ids; set include_options to include item options.

search_events

Search Square for Square events. Filter by query.

search_loyalty_events

Search Square for loyalty events. Filter by query.

search_loyalty_rewards

Search Square for loyalty rewards. Filter by query.

search_terminal_actions

Search Square for terminal actions. Filter by query.

search_terminal_checkouts

Search Square for terminal checkouts. Filter by query.

search_terminal_refunds

Search Square for terminal refunds. Filter by query.

search_vendors

Search Square for vendors. Filter by filter, sort.

submit_evidence

Submit the evidence attached to a Square payment dispute for review.

swap_plan

Swap the Square plan. Use subscription_id from list_subscriptions.

test_webhook_subscription

Send a test event to verify webhook subscription delivery.

update_booking_custom_attribute_definition

Update a custom attribute definition for bookings.

update_break_type

Replace a Square break type. Use id from list_break_types.

update_checkout_payment_link

Update the title, description, or other editable fields on a checkout payment link.

update_customer_custom_attribute_definition

Update a custom attribute definition for customer profiles.

update_item_modifier_lists

Replace the enabled modifier lists for catalog items.

update_item_taxes

Replace the enabled taxes for catalog items.

update_location_custom_attribute_definition

Update a custom attribute definition for locations.

update_location_settings

Update the Square location settings. Provide required location_settings; use location_id from list_locations.

update_merchant_custom_attribute_definition

Update a custom attribute definition for merchants.

update_merchant_settings

Update the Square merchant settings. Provide required merchant_settings.

update_order_custom_attribute_definition

Update a custom attribute definition for orders.

update_payment

Update the amount or tip on a payment. Use payment_id from list_payments, and provide idempotency_key plus the payment fields to change; the response contains the updated payment.

update_team_job

Update the Square team job. Provide required job; use job_id from list_team_jobs.

update_team_member_wage_setting

Update the Square team member wage setting.

update_vendor

Update a vendor’s Square record. Use vendor_id from search_vendors and provide the vendor fields to change; the response contains the updated vendor.

update_webhook_subscription

Update the Square webhook subscription. Use subscription_id from list_webhook_subscriptions.

update_webhook_subscription_signature_key

Update the Square webhook subscription signature key.

update_workweek_config

Update the Square workweek config. Provide required workweek_config; use id from list_workweek_configs.

upsert_booking_custom_attribute

Create or replace a custom attribute value for a booking.

upsert_customer_custom_attribute

Create or replace a custom attribute value for a customer profile.

upsert_location_custom_attribute

Create or replace a custom attribute value for a location.

upsert_merchant_custom_attribute

Create or replace a custom attribute value for a merchant.

upsert_order_custom_attribute

Create or replace a custom attribute value for a order.

upsert_site_snippet

Create or update a Square site snippet. Provide required snippet; use site_id from list_sites.