Square MCP Server for Cloudflare Workers
103 tools available in the Square MCP server. Each tool can be called by AI assistants to perform specific actions.
square_list_merchantsList merchants associated with the access token.
Args:
Returns: List of merchants.
{
"type": "object",
"properties": {
"format": {
"enum": [
"json",
"markdown"
],
"type": "string"
}
}
}square_get_cash_drawer_shiftGet a cash drawer shift by ID.
Args:
Returns: The cash drawer shift.
{
"type": "object",
"required": [
"location_id",
"shift_id"
],
"properties": {
"format": {
"enum": [
"json",
"markdown"
],
"type": "string"
},
"shift_id": {
"type": "string",
"description": "Shift ID"
},
"location_id": {
"type": "string",
"description": "Location ID"
}
}
}square_get_merchantGet merchant information.
Args:
Returns: The merchant record.
{
"type": "object",
"properties": {
"format": {
"enum": [
"json",
"markdown"
],
"type": "string"
},
"merchant_id": {
"type": "string",
"default": "me",
"description": "Merchant ID"
}
}
}square_get_bookingGet a single booking by ID.
Args:
Returns: The booking record.
{
"type": "object",
"required": [
"booking_id"
],
"properties": {
"format": {
"enum": [
"json",
"markdown"
],
"type": "string"
},
"booking_id": {
"type": "string",
"description": "Booking ID"
}
}
}square_list_bank_accountsList bank accounts linked to the Square account.
Args:
Returns: List of bank accounts.
{
"type": "object",
"properties": {
"limit": {
"type": "integer",
"default": 20,
"maximum": 100,
"minimum": 1
},
"cursor": {
"type": "string"
},
"format": {
"enum": [
"json",
"markdown"
],
"type": "string"
},
"location_id": {
"type": "string"
}
}
}square_get_bank_accountGet a bank account by ID.
Args:
Returns: The bank account record.
{
"type": "object",
"required": [
"bank_account_id"
],
"properties": {
"format": {
"enum": [
"json",
"markdown"
],
"type": "string"
},
"bank_account_id": {
"type": "string",
"description": "Bank account ID"
}
}
}square_get_bank_account_by_v1_idGet a bank account by its V1 ID.
Args:
Returns: The bank account record.
{
"type": "object",
"required": [
"v1_bank_account_id"
],
"properties": {
"format": {
"enum": [
"json",
"markdown"
],
"type": "string"
},
"v1_bank_account_id": {
"type": "string",
"description": "V1 bank account ID"
}
}
}square_list_payoutsList payouts for the Square account.
Args:
Returns: List of payouts.
{
"type": "object",
"properties": {
"limit": {
"type": "integer",
"default": 20,
"maximum": 100,
"minimum": 1
},
"cursor": {
"type": "string"
},
"format": {
"enum": [
"json",
"markdown"
],
"type": "string"
},
"status": {
"enum": [
"SENT",
"FAILED",
"PAID"
],
"type": "string"
},
"end_time": {
"type": "string"
},
"begin_time": {
"type": "string"
},
"location_id": {
"type": "string"
}
}
}square_get_payoutGet a payout by ID.
Args:
Returns: The payout record.
{
"type": "object",
"required": [
"payout_id"
],
"properties": {
"format": {
"enum": [
"json",
"markdown"
],
"type": "string"
},
"payout_id": {
"type": "string",
"description": "Payout ID"
}
}
}square_list_disputesList disputes for the Square account.
Args:
Returns: List of disputes.
{
"type": "object",
"properties": {
"limit": {
"type": "integer",
"default": 20,
"maximum": 100,
"minimum": 1
},
"cursor": {
"type": "string"
},
"format": {
"enum": [
"json",
"markdown"
],
"type": "string"
},
"states": {
"type": "array",
"items": {
"type": "string"
}
},
"location_id": {
"type": "string"
}
}
}square_get_disputeGet a dispute by ID.
Args:
Returns: The dispute record.
{
"type": "object",
"required": [
"dispute_id"
],
"properties": {
"format": {
"enum": [
"json",
"markdown"
],
"type": "string"
},
"dispute_id": {
"type": "string",
"description": "Dispute ID"
}
}
}square_accept_disputeAccept a dispute (concede to the cardholder).
Args:
Returns: The accepted dispute.
{
"type": "object",
"required": [
"dispute_id"
],
"properties": {
"dispute_id": {
"type": "string",
"description": "Dispute ID"
}
}
}square_list_vendorsList vendors.
Args:
Returns: List of vendors.
{
"type": "object",
"properties": {
"limit": {
"type": "integer",
"default": 20,
"maximum": 100,
"minimum": 1
},
"cursor": {
"type": "string"
},
"format": {
"enum": [
"json",
"markdown"
],
"type": "string"
}
}
}square_get_vendorGet a vendor by ID.
Args:
Returns: The vendor record.
{
"type": "object",
"required": [
"vendor_id"
],
"properties": {
"format": {
"enum": [
"json",
"markdown"
],
"type": "string"
},
"vendor_id": {
"type": "string",
"description": "Vendor ID"
}
}
}square_create_vendorCreate a new vendor.
Args:
Returns: The created vendor.
{
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Vendor name"
},
"note": {
"type": "string"
},
"status": {
"enum": [
"ACTIVE",
"INACTIVE"
],
"type": "string"
},
"account_number": {
"type": "string"
}
}
}square_update_vendorUpdate an existing vendor.
Args:
Returns: The updated vendor.
{
"type": "object",
"required": [
"vendor_id"
],
"properties": {
"vendor_id": {
"type": "string",
"description": "Vendor ID"
}
}
}square_list_cash_drawer_shiftsList cash drawer shifts.
Args:
Returns: List of cash drawer shifts.
{
"type": "object",
"required": [
"location_id"
],
"properties": {
"limit": {
"type": "integer",
"default": 20,
"maximum": 100,
"minimum": 1
},
"cursor": {
"type": "string"
},
"format": {
"enum": [
"json",
"markdown"
],
"type": "string"
},
"end_time": {
"type": "string"
},
"begin_time": {
"type": "string"
},
"location_id": {
"type": "string",
"description": "Location ID"
}
}
}square_list_bookingsList bookings with optional filters.
Args:
Returns: Paginated list of bookings.
{
"type": "object",
"properties": {
"limit": {
"type": "integer",
"default": 20,
"maximum": 100,
"minimum": 1
},
"cursor": {
"type": "string"
},
"format": {
"enum": [
"json",
"markdown"
],
"type": "string"
},
"location_id": {
"type": "string"
},
"start_at_max": {
"type": "string"
},
"start_at_min": {
"type": "string"
},
"team_member_id": {
"type": "string"
}
}
}square_create_bookingCreate a new booking.
Args:
Returns: The created booking.
{
"type": "object",
"required": [
"start_at"
],
"properties": {
"start_at": {
"type": "string",
"description": "Booking start time (RFC 3339)"
},
"customer_id": {
"type": "string"
},
"location_id": {
"type": "string"
},
"seller_note": {
"type": "string"
},
"customer_note": {
"type": "string"
}
}
}square_update_bookingUpdate an existing booking.
Args:
Returns: The updated booking.
{
"type": "object",
"required": [
"booking_id"
],
"properties": {
"version": {
"type": "number"
},
"start_at": {
"type": "string"
},
"booking_id": {
"type": "string",
"description": "Booking ID"
},
"seller_note": {
"type": "string"
},
"customer_note": {
"type": "string"
}
}
}square_cancel_bookingCancel a booking.
Args:
Returns: The cancelled booking.
{
"type": "object",
"required": [
"booking_id"
],
"properties": {
"version": {
"type": "number"
},
"booking_id": {
"type": "string",
"description": "Booking ID"
}
}
}square_list_catalogList catalog objects with pagination.
Args:
Returns: Paginated list of catalog objects.
{
"type": "object",
"properties": {
"limit": {
"type": "integer",
"default": 20,
"maximum": 100,
"minimum": 1
},
"types": {
"type": "array",
"items": {
"type": "string"
}
},
"cursor": {
"type": "string"
},
"format": {
"enum": [
"json",
"markdown"
],
"type": "string"
}
}
}square_get_catalog_objectGet a catalog object by ID.
Args:
Returns: The catalog object.
{
"type": "object",
"required": [
"object_id"
],
"properties": {
"format": {
"enum": [
"json",
"markdown"
],
"type": "string"
},
"object_id": {
"type": "string",
"description": "Catalog object ID"
},
"include_related_objects": {
"type": "boolean",
"default": false
}
}
}square_search_catalog_objectsSearch for catalog objects.
Args:
Returns: Paginated list of catalog objects.
{
"type": "object",
"properties": {
"limit": {
"type": "integer",
"default": 20,
"maximum": 100,
"minimum": 1
},
"cursor": {
"type": "string"
},
"format": {
"enum": [
"json",
"markdown"
],
"type": "string"
},
"text_query": {
"type": "string",
"description": "Text to search for"
},
"object_types": {
"type": "array",
"items": {
"type": "string"
}
}
}
}square_upsert_catalog_objectCreate or update a catalog object.
Args:
Returns: The upserted catalog object.
{
"type": "object",
"required": [
"id",
"id"
],
"properties": {
"id": {
"type": "string"
},
"sku": {
"type": "string"
},
"object": {
"type": "object",
"description": "Object ID (use #temp_id for new objects)"
},
"tax_ids": {
"type": "array",
"items": {
"type": "string"
}
},
"tax_data": {
"type": "object"
},
"item_data": {
"type": "object"
},
"percentage": {
"type": "string"
},
"variations": {
"type": "array",
"items": {
"type": "string"
}
},
"category_id": {
"type": "string"
},
"description": {
"type": "string"
},
"pricing_type": {
"enum": [
"FIXED_PRICING",
"VARIABLE_PRICING"
],
"type": "string"
},
"category_data": {
"type": "object"
},
"discount_data": {
"type": "object"
},
"discount_type": {
"enum": [
"FIXED_PERCENTAGE",
"FIXED_AMOUNT",
"VARIABLE_PERCENTAGE",
"VARIABLE_AMOUNT"
],
"type": "string"
},
"inclusion_type": {
"enum": [
"ADDITIVE",
"INCLUSIVE"
],
"type": "string"
},
"item_variation_data": {
"type": "object"
},
"present_at_location_ids": {
"type": "array",
"items": {
"type": "string"
}
},
"present_at_all_locations": {
"type": "boolean"
}
}
}square_delete_catalog_objectDelete a catalog object.
Args:
Returns: Confirmation of deletion.
{
"type": "object",
"required": [
"object_id"
],
"properties": {
"object_id": {
"type": "string",
"description": "Catalog object ID"
}
}
}square_batch_delete_catalog_objectsDelete multiple catalog objects.
Args:
Returns: Confirmation of deletion.
{
"type": "object",
"required": [
"object_ids"
],
"properties": {
"object_ids": {
"type": "array",
"items": {
"type": "string"
},
"description": "Catalog object IDs"
}
}
}square_batch_upsert_catalog_objectsCreate or update multiple catalog objects.
Args:
Returns: The upserted catalog objects.
{
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "string"
},
"objects": {
"type": "array",
"items": {
"type": "string"
}
},
"tax_data": {},
"item_data": {},
"category_data": {},
"discount_data": {},
"present_at_all_locations": {
"type": "boolean"
}
}
}square_list_gift_card_activitiesList gift card activities.
Args:
Returns: Paginated list of gift card activities.
{
"type": "object",
"properties": {
"limit": {
"type": "integer",
"default": 20,
"maximum": 100,
"minimum": 1
},
"cursor": {
"type": "string"
},
"format": {
"enum": [
"json",
"markdown"
],
"type": "string"
},
"gift_card_id": {
"type": "string"
}
}
}square_get_refundGet a single refund by ID.
Args:
Returns: The refund record.
{
"type": "object",
"required": [
"refund_id"
],
"properties": {
"format": {
"enum": [
"json",
"markdown"
],
"type": "string"
},
"refund_id": {
"type": "string",
"description": "Refund ID"
}
}
}square_list_customersList customers from Square with pagination.
Returns a paginated list of customers. Use the cursor from the response to fetch the next page.
Args:
Returns: JSON format: { items: Customer[], count, hasMore, nextCursor }
{
"type": "object",
"properties": {
"limit": {
"type": "integer",
"default": 20,
"maximum": 100,
"minimum": 1,
"description": "Number of customers to return"
},
"cursor": {
"type": "string",
"description": "Pagination cursor"
},
"format": {
"enum": [
"json",
"markdown"
],
"type": "string"
},
"sort_field": {
"enum": [
"CREATED_AT",
"DEFAULT"
],
"type": "string"
},
"sort_order": {
"enum": [
"ASC",
"DESC"
],
"type": "string"
}
}
}square_get_customerGet a single customer by ID.
Args:
Returns: The customer record with all available fields.
{
"type": "object",
"required": [
"customer_id"
],
"properties": {
"format": {
"enum": [
"json",
"markdown"
],
"type": "string"
},
"customer_id": {
"type": "string",
"description": "Customer ID"
}
}
}square_create_customerCreate a new customer in Square.
Args:
Returns: The created customer record.
{
"type": "object",
"properties": {
"note": {
"type": "string"
},
"birthday": {
"type": "string",
"description": "Birthday (YYYY-MM-DD)"
},
"nickname": {
"type": "string"
},
"given_name": {
"type": "string",
"description": "First name"
},
"family_name": {
"type": "string",
"description": "Last name"
},
"company_name": {
"type": "string"
},
"phone_number": {
"type": "string",
"description": "Phone number"
},
"reference_id": {
"type": "string"
},
"email_address": {
"type": "string",
"description": "Email address"
}
}
}square_update_customerUpdate an existing customer.
Args:
Returns: The updated customer record.
{
"type": "object",
"required": [
"customer_id"
],
"properties": {
"note": {
"type": "string"
},
"birthday": {
"type": "string"
},
"nickname": {
"type": "string"
},
"given_name": {
"type": "string"
},
"customer_id": {
"type": "string",
"description": "Customer ID to update"
},
"family_name": {
"type": "string"
},
"company_name": {
"type": "string"
},
"phone_number": {
"type": "string"
},
"email_address": {
"type": "string"
}
}
}square_delete_customerDelete a customer from Square.
Args:
Returns: Confirmation of deletion.
{
"type": "object",
"required": [
"customer_id"
],
"properties": {
"customer_id": {
"type": "string",
"description": "Customer ID to delete"
}
}
}square_search_customersSearch for customers matching criteria.
Args:
Returns: Paginated list of matching customers.
{
"type": "object",
"properties": {
"limit": {
"type": "integer",
"default": 20,
"maximum": 100,
"minimum": 1
},
"cursor": {
"type": "string"
},
"format": {
"enum": [
"json",
"markdown"
],
"type": "string"
}
}
}square_list_customer_groupsList all customer groups.
Args:
Returns: List of customer groups.
{
"type": "object",
"properties": {
"limit": {
"type": "integer",
"default": 20,
"maximum": 100,
"minimum": 1
},
"cursor": {
"type": "string"
},
"format": {
"enum": [
"json",
"markdown"
],
"type": "string"
}
}
}square_create_customer_groupCreate a new customer group.
Args:
Returns: The created customer group.
{
"type": "object",
"required": [
"name"
],
"properties": {
"name": {
"type": "string",
"description": "Group name"
}
}
}square_list_gift_cardsList gift cards.
Args:
Returns: Paginated list of gift cards.
{
"type": "object",
"properties": {
"type": {
"enum": [
"DIGITAL",
"PHYSICAL"
],
"type": "string"
},
"limit": {
"type": "integer",
"default": 20,
"maximum": 100,
"minimum": 1
},
"state": {
"enum": [
"ACTIVE",
"DEACTIVATED",
"PENDING",
"BLOCKED"
],
"type": "string"
},
"cursor": {
"type": "string"
},
"format": {
"enum": [
"json",
"markdown"
],
"type": "string"
}
}
}square_get_gift_cardGet a gift card by ID.
Args:
Returns: The gift card.
{
"type": "object",
"required": [
"gift_card_id"
],
"properties": {
"format": {
"enum": [
"json",
"markdown"
],
"type": "string"
},
"gift_card_id": {
"type": "string",
"description": "Gift card ID"
}
}
}square_get_gift_card_by_ganGet a gift card by GAN (Gift card Account Number).
Args:
Returns: The gift card.
{
"type": "object",
"required": [
"gan"
],
"properties": {
"gan": {
"type": "string",
"description": "Gift card account number"
},
"format": {
"enum": [
"json",
"markdown"
],
"type": "string"
}
}
}square_create_gift_cardCreate a new gift card.
Args:
Returns: The created gift card.
{
"type": "object",
"required": [
"type",
"location_id"
],
"properties": {
"type": {
"enum": [
"DIGITAL",
"PHYSICAL"
],
"type": "string",
"description": "Gift card type"
},
"location_id": {
"type": "string",
"description": "Location ID"
}
}
}square_link_customer_to_gift_cardLink a customer to a gift card.
Args:
Returns: The updated gift card.
{
"type": "object",
"required": [
"gift_card_id",
"customer_id"
],
"properties": {
"customer_id": {
"type": "string",
"description": "Customer ID"
},
"gift_card_id": {
"type": "string",
"description": "Gift card ID"
}
}
}square_unlink_customer_from_gift_cardUnlink a customer from a gift card.
Args:
Returns: The updated gift card.
{
"type": "object",
"required": [
"gift_card_id",
"customer_id"
],
"properties": {
"customer_id": {
"type": "string",
"description": "Customer ID"
},
"gift_card_id": {
"type": "string",
"description": "Gift card ID"
}
}
}square_create_gift_card_activityCreate a gift card activity (activate, load, redeem, etc.).
Args:
Returns: The created gift card activity.
{
"type": "object",
"required": [
"gift_card_id",
"location_id"
],
"properties": {
"location_id": {
"type": "string",
"description": "Location ID"
},
"gift_card_id": {
"type": "string",
"description": "Gift card ID"
},
"activity_type": {
"enum": [
"ACTIVATE",
"LOAD",
"REDEEM",
"CLEAR_BALANCE",
"DEACTIVATE"
],
"type": "string",
"description": "Activity type"
}
}
}square_get_inventory_countGet inventory count for a catalog object.
Args:
Returns: Inventory counts.
{
"type": "object",
"required": [
"catalog_object_id"
],
"properties": {
"format": {
"enum": [
"json",
"markdown"
],
"type": "string"
},
"location_ids": {
"type": "array",
"items": {
"type": "string"
}
},
"catalog_object_id": {
"type": "string",
"description": "Catalog object ID"
}
}
}square_batch_get_inventory_countsGet inventory counts for multiple catalog objects.
Args:
Returns: Inventory counts.
{
"type": "object",
"required": [
"catalog_object_ids"
],
"properties": {
"format": {
"enum": [
"json",
"markdown"
],
"type": "string"
},
"location_ids": {
"type": "array",
"items": {
"type": "string"
}
},
"catalog_object_ids": {
"type": "array",
"items": {
"type": "string"
},
"description": "Catalog object IDs"
}
}
}square_batch_change_inventoryBatch change inventory counts.
Args:
Returns: Updated inventory counts.
{
"type": "object",
"properties": {
"state": {
"type": "string"
},
"changes": {
"type": "array",
"items": {
"type": "string"
},
"description": "Inventory changes"
},
"quantity": {
"type": "string"
},
"to_state": {
"type": "string"
},
"transfer": {
"type": "object"
},
"adjustment": {
"type": "object"
},
"from_state": {
"type": "string"
},
"location_id": {
"type": "string"
},
"occurred_at": {
"type": "string"
},
"reference_id": {
"type": "string"
},
"physical_count": {
"type": "object"
},
"to_location_id": {
"type": "string"
},
"from_location_id": {
"type": "string"
}
}
}square_list_invoicesList invoices for a location.
Args:
Returns: Paginated list of invoices.
{
"type": "object",
"required": [
"location_id"
],
"properties": {
"limit": {
"type": "integer",
"default": 20,
"maximum": 100,
"minimum": 1
},
"cursor": {
"type": "string"
},
"format": {
"enum": [
"json",
"markdown"
],
"type": "string"
},
"location_id": {
"type": "string",
"description": "Location ID"
}
}
}square_get_invoiceGet a single invoice by ID.
Args:
Returns: The invoice record.
{
"type": "object",
"required": [
"invoice_id"
],
"properties": {
"format": {
"enum": [
"json",
"markdown"
],
"type": "string"
},
"invoice_id": {
"type": "string",
"description": "Invoice ID"
}
}
}square_create_invoiceCreate a new invoice.
Args:
Returns: The created invoice.
{
"type": "object",
"required": [
"location_id"
],
"properties": {
"title": {
"type": "string"
},
"order_id": {
"type": "string",
"description": "Order ID"
},
"customer_id": {
"type": "string",
"description": "Customer ID"
},
"description": {
"type": "string"
},
"location_id": {
"type": "string",
"description": "Location ID"
},
"invoice_number": {
"type": "string"
},
"delivery_method": {
"enum": [
"EMAIL",
"SHARE_MANUALLY",
"SMS"
],
"type": "string"
}
}
}square_update_invoiceUpdate an existing invoice.
Args:
Returns: The updated invoice.
{
"type": "object",
"required": [
"invoice_id",
"version"
],
"properties": {
"title": {
"type": "string"
},
"version": {
"type": "number",
"description": "Invoice version"
},
"invoice_id": {
"type": "string",
"description": "Invoice ID"
},
"description": {
"type": "string"
},
"delivery_method": {
"enum": [
"EMAIL",
"SHARE_MANUALLY",
"SMS"
],
"type": "string"
}
}
}square_delete_invoiceDelete an invoice.
Args:
Returns: Confirmation of deletion.
{
"type": "object",
"required": [
"invoice_id"
],
"properties": {
"invoice_id": {
"type": "string",
"description": "Invoice ID"
}
}
}square_publish_invoicePublish a draft invoice.
Args:
Returns: The published invoice.
{
"type": "object",
"required": [
"invoice_id",
"version"
],
"properties": {
"version": {
"type": "number",
"description": "Invoice version"
},
"invoice_id": {
"type": "string",
"description": "Invoice ID"
}
}
}square_cancel_invoiceCancel an invoice.
Args:
Returns: The cancelled invoice.
{
"type": "object",
"required": [
"invoice_id",
"version"
],
"properties": {
"version": {
"type": "number",
"description": "Invoice version"
},
"invoice_id": {
"type": "string",
"description": "Invoice ID"
}
}
}square_list_locationsList all locations for the Square account.
Returns all business locations associated with the account.
Args:
Returns: List of locations with details like name, address, timezone, and status.
{
"type": "object",
"properties": {
"format": {
"enum": [
"json",
"markdown"
],
"type": "string",
"default": "json",
"description": "Response format"
}
}
}square_get_locationGet a single location by ID.
Args:
Returns: The location record with all available fields.
{
"type": "object",
"required": [
"location_id"
],
"properties": {
"format": {
"enum": [
"json",
"markdown"
],
"type": "string"
},
"location_id": {
"type": "string",
"description": "Location ID"
}
}
}square_update_orderUpdate an existing order.
Args:
Returns: The updated order.
{
"type": "object",
"required": [
"order_id"
],
"properties": {
"state": {
"enum": [
"OPEN",
"COMPLETED",
"CANCELED",
"DRAFT"
],
"type": "string"
},
"version": {
"type": "number"
},
"order_id": {
"type": "string",
"description": "Order ID"
}
}
}square_create_locationCreate a new location.
Args:
Returns: The created location record.
{
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Business name for the location"
},
"timezone": {
"type": "string",
"description": "IANA timezone"
},
"description": {
"type": "string"
},
"website_url": {
"type": "string"
},
"phone_number": {
"type": "string"
},
"business_email": {
"type": "string"
}
}
}square_update_locationUpdate an existing location.
Args:
Returns: The updated location record.
{
"type": "object",
"required": [
"location_id"
],
"properties": {
"name": {
"type": "string"
},
"status": {
"enum": [
"ACTIVE",
"INACTIVE"
],
"type": "string"
},
"timezone": {
"type": "string"
},
"description": {
"type": "string"
},
"location_id": {
"type": "string",
"description": "Location ID to update"
},
"website_url": {
"type": "string"
},
"phone_number": {
"type": "string"
},
"business_email": {
"type": "string"
}
}
}square_get_loyalty_programGet a loyalty program by ID.
Args:
Returns: The loyalty program.
{
"type": "object",
"required": [
"program_id"
],
"properties": {
"format": {
"enum": [
"json",
"markdown"
],
"type": "string"
},
"program_id": {
"type": "string",
"description": "Loyalty program ID"
}
}
}square_list_loyalty_programsList all loyalty programs.
Args:
Returns: List of loyalty programs.
{
"type": "object",
"properties": {
"format": {
"enum": [
"json",
"markdown"
],
"type": "string"
}
}
}square_create_loyalty_accountCreate a loyalty account.
Args:
Returns: The created loyalty account.
{
"type": "object",
"required": [
"program_id"
],
"properties": {
"program_id": {
"type": "string",
"description": "Loyalty program ID"
},
"phone_number": {
"type": "string",
"description": "Customer phone number"
}
}
}square_get_loyalty_accountGet a loyalty account by ID.
Args:
Returns: The loyalty account.
{
"type": "object",
"required": [
"account_id"
],
"properties": {
"format": {
"enum": [
"json",
"markdown"
],
"type": "string"
},
"account_id": {
"type": "string",
"description": "Loyalty account ID"
}
}
}square_search_loyalty_accountsSearch for loyalty accounts.
Args:
Returns: Paginated list of loyalty accounts.
{
"type": "object",
"properties": {
"limit": {
"type": "integer",
"default": 20,
"maximum": 100,
"minimum": 1
},
"cursor": {
"type": "string"
},
"format": {
"enum": [
"json",
"markdown"
],
"type": "string"
},
"customer_id": {
"type": "string"
},
"phone_number": {
"type": "string"
}
}
}square_accumulate_loyalty_pointsAccumulate points on a loyalty account.
Args:
Returns: The updated loyalty account.
{
"type": "object",
"required": [
"account_id",
"points"
],
"properties": {
"points": {
"type": "integer",
"description": "Points to accumulate"
},
"order_id": {
"type": "string"
},
"account_id": {
"type": "string",
"description": "Loyalty account ID"
}
}
}square_adjust_loyalty_pointsAdjust points on a loyalty account (positive or negative).
Args:
Returns: The updated loyalty account.
{
"type": "object",
"required": [
"account_id",
"points",
"reason"
],
"properties": {
"points": {
"type": "integer",
"description": "Points adjustment"
},
"reason": {
"type": "string",
"description": "Reason for adjustment"
},
"account_id": {
"type": "string",
"description": "Loyalty account ID"
}
}
}square_create_loyalty_rewardCreate a loyalty reward.
Args:
Returns: The created loyalty reward.
{
"type": "object",
"required": [
"loyalty_account_id",
"reward_tier_id"
],
"properties": {
"reward_tier_id": {
"type": "string",
"description": "Reward tier ID"
},
"loyalty_account_id": {
"type": "string",
"description": "Loyalty account ID"
}
}
}square_redeem_loyalty_rewardRedeem a loyalty reward.
Args:
Returns: The redeemed loyalty reward.
{
"type": "object",
"required": [
"reward_id",
"location_id"
],
"properties": {
"reward_id": {
"type": "string",
"description": "Reward ID"
},
"location_id": {
"type": "string",
"description": "Location ID"
}
}
}square_delete_loyalty_rewardDelete a loyalty reward.
Args:
Returns: Confirmation of deletion.
{
"type": "object",
"required": [
"reward_id"
],
"properties": {
"reward_id": {
"type": "string",
"description": "Reward ID"
}
}
}square_create_orderCreate a new order.
Args:
Returns: The created order record.
{
"type": "object",
"required": [
"location_id"
],
"properties": {
"line_items": {
"type": "array",
"items": {
"type": "string"
}
},
"customer_id": {
"type": "string"
},
"location_id": {
"type": "string",
"description": "Location ID"
},
"reference_id": {
"type": "string"
}
}
}square_get_orderGet a single order by ID.
Args:
Returns: The order record.
{
"type": "object",
"required": [
"order_id"
],
"properties": {
"format": {
"enum": [
"json",
"markdown"
],
"type": "string"
},
"order_id": {
"type": "string",
"description": "Order ID"
}
}
}square_search_ordersSearch for orders.
Args:
Returns: Paginated list of orders.
{
"type": "object",
"required": [
"location_ids"
],
"properties": {
"limit": {
"type": "integer",
"default": 20,
"maximum": 100,
"minimum": 1
},
"cursor": {
"type": "string"
},
"format": {
"enum": [
"json",
"markdown"
],
"type": "string"
},
"states": {
"type": "array",
"items": {
"type": "string"
}
},
"location_ids": {
"type": "array",
"items": {
"type": "string"
},
"description": "Location IDs to search"
}
}
}square_pay_orderPay for an order using one or more payment IDs.
Args:
Returns: The paid order.
{
"type": "object",
"required": [
"order_id",
"payment_ids"
],
"properties": {
"order_id": {
"type": "string",
"description": "Order ID"
},
"payment_ids": {
"type": "array",
"items": {
"type": "string"
},
"description": "Payment IDs"
}
}
}square_list_paymentsList payments from Square with pagination.
Returns a paginated list of payments. Use the cursor from the response to fetch the next page.
Args:
Returns: JSON format: { items: Payment[], count, hasMore, nextCursor }
{
"type": "object",
"properties": {
"limit": {
"type": "integer",
"default": 20,
"maximum": 100,
"minimum": 1
},
"cursor": {
"type": "string"
},
"format": {
"enum": [
"json",
"markdown"
],
"type": "string"
},
"end_time": {
"type": "string",
"description": "End of time range (RFC 3339)"
},
"begin_time": {
"type": "string",
"description": "Start of time range (RFC 3339)"
},
"location_id": {
"type": "string",
"description": "Filter by location"
}
}
}square_get_paymentGet a single payment by ID.
Args:
Returns: The payment record with all available fields.
{
"type": "object",
"required": [
"payment_id"
],
"properties": {
"format": {
"enum": [
"json",
"markdown"
],
"type": "string"
},
"payment_id": {
"type": "string",
"description": "Payment ID"
}
}
}square_create_paymentCreate a new payment.
Args:
Returns: The created payment record.
{
"type": "object",
"required": [
"source_id"
],
"properties": {
"note": {
"type": "string"
},
"source_id": {
"type": "string",
"description": "Payment source ID"
},
"customer_id": {
"type": "string"
},
"location_id": {
"type": "string"
},
"autocomplete": {
"type": "boolean",
"default": true
},
"reference_id": {
"type": "string"
},
"buyer_email_address": {
"type": "string"
}
}
}square_complete_paymentComplete a payment that was created with autocomplete=false.
Args:
Returns: The completed payment record.
{
"type": "object",
"required": [
"payment_id"
],
"properties": {
"payment_id": {
"type": "string",
"description": "Payment ID"
}
}
}square_cancel_paymentCancel a payment that has not been completed.
Args:
Returns: The cancelled payment record.
{
"type": "object",
"required": [
"payment_id"
],
"properties": {
"payment_id": {
"type": "string",
"description": "Payment ID"
}
}
}square_list_refundsList refunds from Square with pagination.
Args:
Returns: Paginated list of refunds.
{
"type": "object",
"properties": {
"limit": {
"type": "integer",
"default": 20,
"maximum": 100,
"minimum": 1
},
"cursor": {
"type": "string"
},
"format": {
"enum": [
"json",
"markdown"
],
"type": "string"
},
"end_time": {
"type": "string"
},
"begin_time": {
"type": "string"
},
"location_id": {
"type": "string"
}
}
}square_refund_paymentRefund a payment.
Args:
Returns: The created refund record.
{
"type": "object",
"required": [
"payment_id"
],
"properties": {
"reason": {
"type": "string",
"description": "Reason for refund"
},
"payment_id": {
"type": "string",
"description": "Payment ID to refund"
}
}
}square_list_subscriptionsList subscriptions.
Args:
Returns: Paginated list of subscriptions.
{
"type": "object",
"properties": {
"limit": {
"type": "integer",
"default": 20,
"maximum": 100,
"minimum": 1
},
"cursor": {
"type": "string"
},
"format": {
"enum": [
"json",
"markdown"
],
"type": "string"
},
"customer_id": {
"type": "string"
},
"location_id": {
"type": "string"
}
}
}square_get_subscriptionGet a single subscription by ID.
Args:
Returns: The subscription record.
{
"type": "object",
"required": [
"subscription_id"
],
"properties": {
"format": {
"enum": [
"json",
"markdown"
],
"type": "string"
},
"subscription_id": {
"type": "string",
"description": "Subscription ID"
}
}
}square_create_subscriptionCreate a new subscription.
Args:
Returns: The created subscription.
{
"type": "object",
"required": [
"location_id",
"customer_id",
"plan_variation_id"
],
"properties": {
"card_id": {
"type": "string"
},
"timezone": {
"type": "string"
},
"start_date": {
"type": "string"
},
"customer_id": {
"type": "string",
"description": "Customer ID"
},
"location_id": {
"type": "string",
"description": "Location ID"
},
"plan_variation_id": {
"type": "string",
"description": "Plan variation ID"
}
}
}square_update_subscriptionUpdate an existing subscription.
Args:
Returns: The updated subscription.
{
"type": "object",
"required": [
"subscription_id"
],
"properties": {
"card_id": {
"type": "string"
},
"version": {
"type": "number"
},
"subscription_id": {
"type": "string",
"description": "Subscription ID"
}
}
}square_cancel_subscriptionCancel a subscription.
Args:
Returns: The cancelled subscription.
{
"type": "object",
"required": [
"subscription_id"
],
"properties": {
"subscription_id": {
"type": "string",
"description": "Subscription ID"
}
}
}square_pause_subscriptionPause a subscription.
Args:
Returns: The paused subscription.
{
"type": "object",
"required": [
"subscription_id"
],
"properties": {
"subscription_id": {
"type": "string",
"description": "Subscription ID"
}
}
}square_resume_subscriptionResume a paused subscription.
Args:
Returns: The resumed subscription.
{
"type": "object",
"required": [
"subscription_id"
],
"properties": {
"subscription_id": {
"type": "string",
"description": "Subscription ID"
}
}
}square_list_team_membersList team members.
Args:
Returns: Paginated list of team members.
{
"type": "object",
"properties": {
"limit": {
"type": "integer",
"default": 20,
"maximum": 100,
"minimum": 1
},
"cursor": {
"type": "string"
},
"format": {
"enum": [
"json",
"markdown"
],
"type": "string"
},
"status": {
"enum": [
"ACTIVE",
"INACTIVE"
],
"type": "string"
},
"location_ids": {
"type": "array",
"items": {
"type": "string"
}
}
}
}square_get_team_memberGet a team member by ID.
Args:
Returns: The team member.
{
"type": "object",
"required": [
"team_member_id"
],
"properties": {
"format": {
"enum": [
"json",
"markdown"
],
"type": "string"
},
"team_member_id": {
"type": "string",
"description": "Team member ID"
}
}
}square_create_team_memberCreate a new team member.
Args:
Returns: The created team member.
{
"type": "object",
"properties": {
"status": {
"enum": [
"ACTIVE",
"INACTIVE"
],
"type": "string"
},
"given_name": {
"type": "string"
},
"family_name": {
"type": "string"
},
"location_ids": {
"type": "array",
"items": {
"type": "string"
}
},
"phone_number": {
"type": "string"
},
"email_address": {
"type": "string"
}
}
}square_update_team_memberUpdate a team member.
Args:
Returns: The updated team member.
{
"type": "object",
"required": [
"team_member_id"
],
"properties": {
"status": {
"enum": [
"ACTIVE",
"INACTIVE"
],
"type": "string"
},
"given_name": {
"type": "string"
},
"family_name": {
"type": "string"
},
"phone_number": {
"type": "string"
},
"email_address": {
"type": "string"
},
"team_member_id": {
"type": "string",
"description": "Team member ID"
}
}
}square_create_terminal_actionCreate a Terminal action.
Args:
Returns: The created Terminal action.
{
"type": "object",
"required": [
"device_id"
],
"properties": {
"device_id": {
"type": "string",
"description": "Device ID"
},
"deadline_duration": {
"type": "string",
"description": "Duration in ISO 8601 format"
}
}
}square_get_terminal_actionGet a Terminal action by ID.
Args:
Returns: The Terminal action.
{
"type": "object",
"required": [
"action_id"
],
"properties": {
"format": {
"enum": [
"json",
"markdown"
],
"type": "string"
},
"action_id": {
"type": "string",
"description": "Action ID"
}
}
}square_search_terminal_actionsSearch for Terminal actions.
Args:
Returns: List of Terminal actions.
{
"type": "object",
"properties": {
"limit": {
"type": "integer",
"default": 20,
"maximum": 100,
"minimum": 1
},
"cursor": {
"type": "string"
},
"format": {
"enum": [
"json",
"markdown"
],
"type": "string"
}
}
}square_cancel_terminal_actionCancel a Terminal action.
Args:
Returns: The cancelled Terminal action.
{
"type": "object",
"required": [
"action_id"
],
"properties": {
"action_id": {
"type": "string",
"description": "Action ID"
}
}
}square_create_terminal_checkoutCreate a Terminal checkout to take a payment.
Args:
Returns: The created Terminal checkout.
{
"type": "object",
"properties": {
"note": {
"type": "string"
},
"order_id": {
"type": "string"
},
"customer_id": {
"type": "string"
},
"payment_type": {
"enum": [
"CARD_PRESENT",
"FELICA_ID",
"FELICA_QUICPAY",
"FELICA_TRANSPORTATION_GROUP",
"FELICA_ALL"
],
"type": "string"
},
"reference_id": {
"type": "string"
},
"deadline_duration": {
"type": "string"
}
}
}square_get_terminal_checkoutGet a Terminal checkout by ID.
Args:
Returns: The Terminal checkout.
{
"type": "object",
"required": [
"checkout_id"
],
"properties": {
"format": {
"enum": [
"json",
"markdown"
],
"type": "string"
},
"checkout_id": {
"type": "string",
"description": "Checkout ID"
}
}
}square_search_terminal_checkoutsSearch for Terminal checkouts.
Args:
Returns: List of Terminal checkouts.
{
"type": "object",
"properties": {
"limit": {
"type": "integer",
"default": 20,
"maximum": 100,
"minimum": 1
},
"cursor": {
"type": "string"
},
"format": {
"enum": [
"json",
"markdown"
],
"type": "string"
}
}
}square_cancel_terminal_checkoutCancel a Terminal checkout.
Args:
Returns: The cancelled Terminal checkout.
{
"type": "object",
"required": [
"checkout_id"
],
"properties": {
"checkout_id": {
"type": "string",
"description": "Checkout ID"
}
}
}square_create_terminal_refundCreate a Terminal refund.
Args:
Returns: The created Terminal refund.
{
"type": "object",
"required": [
"payment_id",
"device_id"
],
"properties": {
"reason": {
"type": "string"
},
"device_id": {
"type": "string",
"description": "Device ID"
},
"payment_id": {
"type": "string",
"description": "Payment ID"
},
"deadline_duration": {
"type": "string"
}
}
}square_get_terminal_refundGet a Terminal refund by ID.
Args:
Returns: The Terminal refund.
{
"type": "object",
"required": [
"terminal_refund_id"
],
"properties": {
"format": {
"enum": [
"json",
"markdown"
],
"type": "string"
},
"terminal_refund_id": {
"type": "string",
"description": "Terminal refund ID"
}
}
}square_cancel_terminal_refundCancel a Terminal refund.
Args:
Returns: The cancelled Terminal refund.
{
"type": "object",
"required": [
"terminal_refund_id"
],
"properties": {
"terminal_refund_id": {
"type": "string",
"description": "Terminal refund ID"
}
}
}