> ## Documentation Index
> Fetch the complete documentation index at: https://composio-preview.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Square

> Square provides payment processing, POS systems, invoicing, and e-commerce tools, enabling sellers to accept card payments and manage their business

![Square logo](https://mintcdn.com/composio-preview/B09iGux45A5cYDuO/images/toolkits/square.svg?fit=max\&auto=format\&n=B09iGux45A5cYDuO\&q=85\&s=fe9e22e183c91f7ff690a0662a59b438)

* **Category:** payment processing
* **Auth:** OAUTH2
* **Composio-managed OAuth available?** Yes
* **Tools:** 122
* **Triggers:** 0
* **Slug:** `SQUARE`
* **Version:** 20261103\_00

## Tools

> [accordion] Accept Dispute
>
> **Slug:** `SQUARE_ACCEPT_DISPUTE`
>
> Accepts a dispute, acknowledging liability and returning funds to the cardholder; acceptance is irreversible and requires DISPUTES\_WRITE permission. Non-JSON responses, including HTTP failures, can produce an empty result, so check the returned dispute and errors.
>
> #### Input Parameters
>
> **dispute\_id** `string` *required*
>
> The Square-generated unique ID of the dispute to accept. Accepting a dispute acknowledges liability and cannot be reversed.
>
> #### Output
>
> **data** `string` *required*
>
> Data from the action execution
>
> **error** `string`
>
> Error if any occurred during the execution of the action
>
> **successful** `boolean` *required*
>
> Whether or not the action execution was successful or not

> [accordion] Add Group to Customer
>
> **Slug:** `SQUARE_ADD_GROUP_TO_CUSTOMER`
>
> Tool to add a customer to a customer group. Use when you need to associate a customer with a specific group for targeted marketing, loyalty programs, or customer segmentation.
>
> #### Input Parameters
>
> **group\_id** `string` *required*
>
> The ID of the customer group to add the customer to. This is the unique Square-generated group identifier.
>
> **customer\_id** `string` *required*
>
> The ID of the customer to add to a group. This is the unique Square-generated customer identifier.
>
> #### Output
>
> **data** `string` *required*
>
> Data from the action execution
>
> **error** `string`
>
> Error if any occurred during the execution of the action
>
> **successful** `boolean` *required*
>
> Whether or not the action execution was successful or not

> [accordion] Calculate Order
>
> **Slug:** `SQUARE_CALCULATE_ORDER`
>
> Tool to preview order pricing without creating an order. Use when you need to calculate the total cost, taxes, discounts, and other pricing details for an order before finalizing it. Particularly useful for integrating rewards, discounts, and complex pricing scenarios.
>
> #### Input Parameters
>
> **order** `object` *required*
>
> The order to be calculated. Expects the entire order, not a sparse update. Must include location\_id and line\_items with pricing information.
>
> **proposed\_rewards** `array`
>
> Identifies one or more loyalty reward tiers to apply during the order calculation. These are preview-only; no actual redemptions occur.
>
> #### Output
>
> **data** `string` *required*
>
> Data from the action execution
>
> **error** `string`
>
> Error if any occurred during the execution of the action
>
> **successful** `boolean` *required*
>
> Whether or not the action execution was successful or not

> [accordion] Cancel Booking
>
> **Slug:** `SQUARE_CANCEL_BOOKING`
>
> Cancels an existing Square booking, terminating the reservation. Use this action when a customer or seller needs to cancel a scheduled appointment. The booking must be in a cancellable state, and the cancellation will update the booking status accordingly. This action is irreversible - once a booking is cancelled, it cannot be restored and must be rebooked if needed. Use the booking\_version parameter to ensure safe concurrent updates.
>
> #### Input Parameters
>
> **booking\_id** `string` *required*
>
> The ID of the Booking object representing the to-be-cancelled booking. Obtain this from booking creation responses or booking retrieval endpoints.
>
> **booking\_version** `integer`
>
> The revision number for the booking, used for optimistic concurrency control. If provided, the booking will only be cancelled if this version matches the current version on the server.
>
> **idempotency\_key** `string`
>
> A unique identifier ensuring idempotent operations. Recommended for all create and update operations to prevent duplicate processing.
>
> #### Output
>
> **data** `string` *required*
>
> Data from the action execution
>
> **error** `string`
>
> Error if any occurred during the execution of the action
>
> **successful** `boolean` *required*
>
> Whether or not the action execution was successful or not

> [accordion] Cancel Invoice
>
> **Slug:** `SQUARE_CANCEL_INVOICE`
>
> Cancels a Square invoice, preventing further payments from being collected. Requirements: - Invoice must be in SCHEDULED, UNPAID, or PARTIALLY\_PAID state - Cannot cancel invoices in DRAFT state or terminal states (PAID, REFUNDED, CANCELED, FAILED) - Requires INVOICES\_WRITE and ORDERS\_WRITE OAuth scopes - Version number must match the current invoice version to prevent conflicts After cancellation, the associated order status is set to CANCELED and webhook events are triggered.
>
> #### Input Parameters
>
> **version** `integer` *required*
>
> The current version number of the invoice. This must exactly match the invoice's current version on the server to prevent race conditions. Obtain the version from GET\_INVOICE or LIST\_INVOICES actions.
>
> **invoice\_id** `string` *required*
>
> The Square-assigned ID of the invoice to cancel. Obtain this from GET\_INVOICE or LIST\_INVOICES actions.
>
> #### Output
>
> **data** `string` *required*
>
> Data from the action execution
>
> **error** `string`
>
> Error if any occurred during the execution of the action
>
> **successful** `boolean` *required*
>
> Whether or not the action execution was successful or not

> [accordion] Cancel Payment
>
> **Slug:** `SQUARE_CANCEL_PAYMENT`
>
> Cancels (voids) a payment that is in APPROVED status. This is typically used in delayed capture scenarios where a payment was authorized but not yet captured, allowing you to void the authorization before settlement. Important: Only payments with APPROVED status can be canceled. Attempting to cancel a payment in any other status (COMPLETED, PENDING, CANCELED, FAILED) will result in an error. Once canceled, the payment status changes to CANCELED and the card details status changes to VOIDED. Required permissions: PAYMENTS\_WRITE
>
> #### Input Parameters
>
> **payment\_id** `string` *required*
>
> The unique ID of the payment to cancel. The payment must be in APPROVED status. You can obtain payment IDs from the List Payments endpoint or from payment creation responses.
>
> #### Output
>
> **data** `string` *required*
>
> Data from the action execution
>
> **error** `string`
>
> Error if any occurred during the execution of the action
>
> **successful** `boolean` *required*
>
> Whether or not the action execution was successful or not

> [accordion] Batch Create Inventory Changes
>
> **Slug:** `SQUARE_CREATE_BATCH_INVENTORY_CHANGES`
>
> Applies multiple inventory adjustments and physical counts in a single batch request. Returns the created changes and current inventory counts for all affected items. Use this action when you need to update inventory quantities for multiple items or locations at once, either through physical stock counts or adjustments (e.g., receiving stock, recording waste, or correcting discrepancies). Supports up to 100 inventory changes per request. Each change can be either a PHYSICAL\_COUNT (setting absolute quantity) or an ADJUSTMENT (modifying quantity with state transitions). The ignore\_unchanged\_counts parameter controls whether calculated counts are returned in the response.
>
> #### Input Parameters
>
> **changes** `array` *required*
>
> The set of physical counts and inventory adjustments to be made. Maximum 100 changes per request.
>
> **idempotency\_key** `string` *required*
>
> A client-supplied, universally unique identifier (UUID) for the request to ensure idempotency.
>
> **ignore\_unchanged\_counts** `boolean`
>
> If true, calculated inventory counts are not returned. This can be useful if the counts are not needed. Defaults to true.
>
> #### Output
>
> **data** `string` *required*
>
> Data from the action execution
>
> **error** `string`
>
> Error if any occurred during the execution of the action
>
> **successful** `boolean` *required*
>
> Whether or not the action execution was successful or not

> [accordion] Create Bulk Customers
>
> **Slug:** `SQUARE_CREATE_BULK_CUSTOMERS`
>
> Tool to create multiple customer profiles in a single request. Use when you need to efficiently create up to 100 customers at once. Each customer is identified by a unique idempotency key.
>
> #### Input Parameters
>
> **customers** `object` *required*
>
> A map containing 1 to 100 individual customer creation requests. Each entry uses an idempotency key as the key and customer data as the value. Each customer must include at least one of: given\_name, family\_name, company\_name, email\_address, or phone\_number.
>
> #### Output
>
> **data** `string` *required*
>
> Data from the action execution
>
> **error** `string`
>
> Error if any occurred during the execution of the action
>
> **successful** `boolean` *required*
>
> Whether or not the action execution was successful or not

> [accordion] Create Card
>
> **Slug:** `SQUARE_CREATE_CARD`
>
> Tool to create a card on file. Use when you need to securely store a customer's card for future payments. Requires a valid nonce or payment ID.
>
> #### Input Parameters
>
> **card** `object` *required*
>
> Details of the card and customer to store on file.
>
> **source\_id** `string` *required*
>
> Card nonce or payment ID used as the source of card data.
>
> **idempotency\_key** `string` *required*
>
> Unique key for this CreateCard request (1–45 characters).
>
> **verification\_token** `string`
>
> Token from Payments.verifyBuyer() for SCA/3-D Secure verification.
>
> #### Output
>
> **data** `string` *required*
>
> Data from the action execution
>
> **error** `string`
>
> Error if any occurred during the execution of the action
>
> **successful** `boolean` *required*
>
> Whether or not the action execution was successful or not

> [accordion] Create Customer
>
> **Slug:** `SQUARE_CREATE_CUSTOMER`
>
> Tool to create a new customer profile in Square. Use when you need to add a customer to the Square account. At least one of given\_name, family\_name, company\_name, email\_address, or phone\_number is required.
>
> #### Input Parameters
>
> **note** `string`
>
> A custom note associated with the customer profile.
>
> **address** `object`
>
> Represents a physical postal address.
>
> **tax\_ids** `object`
>
> Tax ID information for EU/UK sellers.
>
> **birthday** `string`
>
> The birthday associated with the customer profile. Format: YYYY-MM-DD or MM-DD. Returns as YYYY-MM-DD.
>
> **nickname** `string`
>
> A nickname for the customer profile.
>
> **given\_name** `string`
>
> The given name (first name) associated with the customer profile. At least one of given\_name, family\_name, company\_name, email\_address, or phone\_number is required.
>
> **family\_name** `string`
>
> The family name (last name) associated with the customer profile. At least one of given\_name, family\_name, company\_name, email\_address, or phone\_number is required.
>
> **company\_name** `string`
>
> A business name associated with the customer profile. At least one of given\_name, family\_name, company\_name, email\_address, or phone\_number is required.
>
> **phone\_number** `string`
>
> The phone number associated with the customer profile. Should be 9-16 digits, with optional '+' prefix. At least one of given\_name, family\_name, company\_name, email\_address, or phone\_number is required.
>
> **reference\_id** `string`
>
> An optional second ID used to associate the customer profile with an entity in another system.
>
> **email\_address** `string`
>
> The email address associated with the customer profile. Must be a valid email format. At least one of given\_name, family\_name, company\_name, email\_address, or phone\_number is required.
>
> **idempotency\_key** `string`
>
> A unique key to ensure idempotent request processing. Recommended for all create operations.
>
> #### Output
>
> **data** `string` *required*
>
> Data from the action execution
>
> **error** `string`
>
> Error if any occurred during the execution of the action
>
> **successful** `boolean` *required*
>
> Whether or not the action execution was successful or not

> [accordion] Create Customer Custom Attribute Definition
>
> **Slug:** `SQUARE_CREATE_CUSTOMER_CUSTOM_ATTRIBUTE_DEFINITION`
>
> Tool to create a customer-related custom attribute definition. Use when you need to define a new custom attribute that can be applied to customer profiles. Custom attributes allow storing additional structured data on customers beyond the standard fields.
>
> #### Input Parameters
>
> **idempotency\_key** `string`
>
> Unique key for this request to ensure idempotency. Prevents duplicate definitions from being created if the request is retried.
>
> **custom\_attribute\_definition** `object` *required*
>
> The custom attribute definition to create for customers.
>
> #### Output
>
> **data** `string` *required*
>
> Data from the action execution
>
> **error** `string`
>
> Error if any occurred during the execution of the action
>
> **successful** `boolean` *required*
>
> Whether or not the action execution was successful or not

> [accordion] Create Customer Group
>
> **Slug:** `SQUARE_CREATE_CUSTOMER_GROUP`
>
> Tool to create a new customer group for a business. Use when you need to organize customers into groups for targeted marketing or segmentation.
>
> #### Input Parameters
>
> **group** `object` *required*
>
> The customer group object containing the name and other properties.
>
> **idempotency\_key** `string`
>
> A unique identifier for this request to ensure idempotent behavior. If the same idempotency key is reused, Square returns the cached response from the original request.
>
> #### Output
>
> **data** `string` *required*
>
> Data from the action execution
>
> **error** `string`
>
> Error if any occurred during the execution of the action
>
> **successful** `boolean` *required*
>
> Whether or not the action execution was successful or not

> [accordion] Create Dispute Evidence File
>
> **Slug:** `SQUARE_CREATE_DISPUTE_EVIDENCE_FILE`
>
> Uploads a file as supporting evidence for an existing Square dispute, such as a PDF or image. File content can be supplied inline as base64, and an idempotency key identifies the upload.
>
> #### Input Parameters
>
> **file** `object` *required*
>
> The file to upload as dispute evidence (max 5 MB).
>
> **dispute\_id** `string` *required*
>
> The ID of the dispute to upload evidence for.
>
> **content\_type** `string`
>
> Optional MIME type of the uploaded file. Must be one of image/heic, image/heif, image/jpeg, application/pdf, image/png, image/tiff.
>
> **evidence\_type** `string`
>
> Optional type of evidence. Allowed values include GENERIC\_EVIDENCE, ONLINE\_OR\_APP\_ACCESS\_LOG, AUTHORIZATION\_DOCUMENTATION, CANCELLATION\_OR\_REFUND\_DOCUMENTATION, CARDHOLDER\_COMMUNICATION, CARDHOLDER\_INFORMATION, PURCHASE\_ACKNOWLEDGEMENT, DUPLICATE\_CHARGE\_DOCUMENTATION, PRODUCT\_OR\_SERVICE\_DESCRIPTION, RECEIPT, SERVICE\_RECEIVED\_DOCUMENTATION, PROOF\_OF\_DELIVERY\_DOCUMENTATION, RELATED\_TRANSACTION\_DOCUMENTATION, REBUTTAL\_EXPLANATION, TRACKING\_NUMBER.
>
> **idempotency\_key** `string` *required*
>
> A unique key for this upload to ensure idempotency (max 45 characters).
>
> **inline\_file\_name** `string`
>
> Optional filename for inline file content. Defaults to the original filename.
>
> **inline\_file\_mimetype** `string`
>
> Optional MIME type for inline file content. Defaults to the FileUploadable mimetype or application/octet-stream.
>
> **inline\_file\_content\_base64** `string`
>
> Optional base64-encoded file content. When provided, the file will be uploaded from this inline content instead of fetching from FileUploadable storage.
>
> #### Output
>
> **data** `string` *required*
>
> Data from the action execution
>
> **error** `string`
>
> Error if any occurred during the execution of the action
>
> **successful** `boolean` *required*
>
> Whether or not the action execution was successful or not

> [accordion] Create Dispute Evidence Text
>
> **Slug:** `SQUARE_CREATE_DISPUTE_EVIDENCE_TEXT`
>
> Upload text evidence for a dispute challenge. Use this to submit textual information (up to 500 characters) that supports your case in a payment dispute. After uploading all evidence, you must call SubmitEvidence to finalize the dispute challenge. Endpoint: POST /v2/disputes/\{dispute\_id}/evidence-text
>
> #### Input Parameters
>
> **dispute\_id** `string` *required*
>
> The ID of the dispute to upload text evidence for.
>
> **evidence\_text** `string` *required*
>
> The text string to upload as evidence (max 500 characters).
>
> **evidence\_type** `string`
>
> Optional type of evidence. If not provided, defaults to GENERIC\_EVIDENCE. Allowed values: GENERIC\_EVIDENCE, ONLINE\_OR\_APP\_ACCESS\_LOG, AUTHORIZATION\_DOCUMENTATION, CANCELLATION\_OR\_REFUND\_DOCUMENTATION, CARDHOLDER\_COMMUNICATION, CARDHOLDER\_INFORMATION, PURCHASE\_ACKNOWLEDGEMENT, DUPLICATE\_CHARGE\_DOCUMENTATION, PRODUCT\_OR\_SERVICE\_DESCRIPTION, RECEIPT, SERVICE\_RECEIVED\_DOCUMENTATION, PROOF\_OF\_DELIVERY\_DOCUMENTATION, RELATED\_TRANSACTION\_DOCUMENTATION, REBUTTAL\_EXPLANATION, TRACKING\_NUMBER.
>
> **idempotency\_key** `string` *required*
>
> A unique key identifying the request (max 45 characters).
>
> #### Output
>
> **data** `string` *required*
>
> Data from the action execution
>
> **error** `string`
>
> Error if any occurred during the execution of the action
>
> **successful** `boolean` *required*
>
> Whether or not the action execution was successful or not

> [accordion] Create Gift Card Activity
>
> **Slug:** `SQUARE_CREATE_GIFT_CARD_ACTIVITY`
>
> Creates a gift card activity to manage gift card balances. This action supports multiple activity types including ACTIVATE (initiate a gift card with an opening balance), LOAD (add funds), REDEEM (withdraw funds), CLEAR\_BALANCE (set balance to zero), DEACTIVATE (permanently block), ADJUST\_INCREMENT/ADJUST\_DECREMENT (manual adjustments), REFUND (restore funds from refunds), and others. Use this action when you need to modify a gift card's balance or state. Each activity type requires specific details in the corresponding activity\_details field (e.g., activate\_activity\_details for ACTIVATE type). Either gift\_card\_id or gift\_card\_gan must be provided to identify the target gift card. Important: DEACTIVATE and CLEAR\_BALANCE are destructive operations - DEACTIVATE permanently blocks the card from future balance changes, and CLEAR\_BALANCE sets the balance to zero.
>
> #### Input Parameters
>
> **idempotency\_key** `string` *required*
>
> A unique string that identifies this CreateGiftCardActivity request. Ensures idempotent processing to prevent duplicate activities.
>
> **gift\_card\_activity** `object` *required*
>
> The gift card activity to create. Must include type, location\_id, either gift\_card\_id or gift\_card\_gan, and the appropriate activity\_details for the type.
>
> #### Output
>
> **data** `string` *required*
>
> Data from the action execution
>
> **error** `string`
>
> Error if any occurred during the execution of the action
>
> **successful** `boolean` *required*
>
> Whether or not the action execution was successful or not

> [accordion] Create Invoice Attachment
>
> **Slug:** `SQUARE_CREATE_INVOICE_ATTACHMENT`
>
> Upload and attach a file to a Square invoice. Use this action to add supplementary documents (receipts, contracts, supporting documentation) to an existing invoice. Attachments can only be added to invoices in DRAFT, SCHEDULED, UNPAID, or PARTIALLY\_PAID state. Square supports up to 10 attachments per invoice with a combined maximum size of 25 MB in production (1 KB in Sandbox). Supported file formats: GIF, JPEG, PNG, TIFF, BMP, PDF. Creating an attachment increments the invoice version and triggers an invoice.updated webhook event.
>
> #### Input Parameters
>
> **file** `object` *required*
>
> File to upload and attach to the invoice. Supported formats: GIF, JPEG, PNG, TIFF, BMP, or PDF.
>
> **invoice\_id** `string` *required*
>
> The ID of the invoice to attach the file to. The invoice must be in DRAFT, SCHEDULED, UNPAID, or PARTIALLY\_PAID state.
>
> **description** `string`
>
> Description text for the attachment that will be displayed on the invoice. Maximum 128 characters.
>
> **idempotency\_key** `string`
>
> A unique string to ensure idempotency for this request. Prevents duplicate attachments if the same request is sent multiple times. Maximum 128 characters.
>
> #### Output
>
> **data** `string` *required*
>
> Data from the action execution
>
> **error** `string`
>
> Error if any occurred during the execution of the action
>
> **successful** `boolean` *required*
>
> Whether or not the action execution was successful or not

> [accordion] Create Location
>
> **Slug:** `SQUARE_CREATE_LOCATION`
>
> Tool to create a new business location in a Square account. Use when you need to add a new physical or mobile location for the merchant.
>
> #### Input Parameters
>
> **location** `object` *required*
>
> Details of the location to create.
>
> #### Output
>
> **data** `string` *required*
>
> Data from the action execution
>
> **error** `string`
>
> Error if any occurred during the execution of the action
>
> **successful** `boolean` *required*
>
> Whether or not the action execution was successful or not

> [accordion] Create Location Custom Attribute Definition
>
> **Slug:** `SQUARE_CREATE_LOCATION_CUSTOM_ATTRIBUTE_DEFINITION`
>
> Tool to create a location-related custom attribute definition. Use when you need to define new custom attributes for Square location objects to store additional business-specific data.
>
> #### Input Parameters
>
> **idempotency\_key** `string`
>
> Unique string ensuring idempotency for safe request retry (maximum 45 characters).
>
> **custom\_attribute\_definition** `object` *required*
>
> The custom attribute definition to create for locations.
>
> #### Output
>
> **data** `string` *required*
>
> Data from the action execution
>
> **error** `string`
>
> Error if any occurred during the execution of the action
>
> **successful** `boolean` *required*
>
> Whether or not the action execution was successful or not

> [accordion] Create Order
>
> **Slug:** `SQUARE_CREATE_ORDER`
>
> Creates a new Square order with line items, taxes, discounts, and fulfillment details. Use this action when you need to create an order for processing payments or tracking sales. The created order will have a state of DRAFT or OPEN depending on the configuration. Each line item must have a quantity and either a catalog\_object\_id (for catalog items) or both name and base\_price\_money (for custom items). You can optionally include taxes, discounts, service charges, and fulfillment information. Use when: Creating a new order for a customer transaction, building a cart for checkout, or initiating a sales order workflow.
>
> #### Input Parameters
>
> **order** `object` *required*
>
> The order to be created. Must include location\_id and line\_items. Each line item requires quantity and either catalog\_object\_id or both name and base\_price\_money.
>
> **idempotency\_key** `string` *required*
>
> A unique key to ensure idempotent request processing. Generate a unique value for each create order request to prevent duplicate orders.
>
> #### Output
>
> **data** `string` *required*
>
> Data from the action execution
>
> **error** `string`
>
> Error if any occurred during the execution of the action
>
> **successful** `boolean` *required*
>
> Whether or not the action execution was successful or not

> [accordion] Create Refund
>
> **Slug:** `SQUARE_CREATE_REFUND`
>
> Refunds a Square payment in full or partially. Use this action when you need to return funds to a customer for a completed payment, such as for returned products, cancelled services, or billing errors. The refund amount cannot exceed the original payment total minus any prior refunds.
>
> #### Input Parameters
>
> **reason** `string`
>
> A description of the reason for the refund. Visible to the customer on their receipt and transaction history.
>
> **payment\_id** `string` *required*
>
> The Square payment ID to refund. Required for linked refunds. You can obtain payment IDs from the List Payments endpoint or from payment creation responses.
>
> **amount\_money** `object` *required*
>
> The amount to refund. Cannot exceed the original payment total minus any prior refunds. Must be in the same currency as the original payment.
>
> **app\_fee\_money** `object`
>
> Represents an amount of money.
>
> **team\_member\_id** `string`
>
> An optional ID of the team member associated with processing the refund.
>
> **idempotency\_key** `string` *required*
>
> A unique key to ensure idempotent request processing. Required for all refund operations to prevent duplicate refunds.
>
> **payment\_version\_token** `string`
>
> Used for optimistic concurrency control. This opaque token identifies a specific version of the Payment object to ensure the payment hasn't been modified since retrieval.
>
> #### Output
>
> **data** `string` *required*
>
> Data from the action execution
>
> **error** `string`
>
> Error if any occurred during the execution of the action
>
> **successful** `boolean` *required*
>
> Whether or not the action execution was successful or not

> [accordion] Create Team Member
>
> **Slug:** `SQUARE_CREATE_TEAM_MEMBER`
>
> Tool to create a new team member in Square. Creates a team member profile that can be used to assign permissions and track employee data. Use when you need to add a new employee or staff member to the Square account. The team member can then be assigned to locations and given access to Square products like Point of Sale. Requires given\_name and family\_name at minimum. Optionally specify email, phone, status (ACTIVE/INACTIVE), and location assignments.
>
> #### Input Parameters
>
> **team\_member** `object` *required*
>
> The data used to create the TeamMember object. Requires at minimum given\_name and family\_name.
>
> **idempotency\_key** `string` *required*
>
> A unique string that identifies this CreateTeamMember request. Used to ensure idempotent request processing. Max 45 characters.
>
> #### Output
>
> **data** `string` *required*
>
> Data from the action execution
>
> **error** `string`
>
> Error if any occurred during the execution of the action
>
> **successful** `boolean` *required*
>
> Whether or not the action execution was successful or not

> [accordion] Delete Catalog Object
>
> **Slug:** `SQUARE_DELETE_CATALOG_OBJECT`
>
> Tool to delete a Square catalog object by ID. When an object is deleted, other objects in the graph that depend on that object will be deleted as well (cascading deletion). Use this action when you need to permanently remove a catalog item, category, modifier, or other catalog object from Square. This action is irreversible — the catalog object cannot be recovered once deleted. Note: Only one delete request is processed at a time per seller account.
>
> #### Input Parameters
>
> **object\_id** `string` *required*
>
> The ID of the catalog object to delete. When an object is deleted, other objects in the graph that depend on that object will be deleted as well.
>
> #### Output
>
> **data** `string` *required*
>
> Data from the action execution
>
> **error** `string`
>
> Error if any occurred during the execution of the action
>
> **successful** `boolean` *required*
>
> Whether or not the action execution was successful or not

> [accordion] Delete Catalog Objects (Batch)
>
> **Slug:** `SQUARE_DELETE_CATALOG_OBJECTS_BATCH`
>
> Deletes a set of CatalogObjects based on a list of target object IDs and returns a set of successfully deleted IDs in the response. Deletion is a cascading event such that all children of the targeted object are also deleted. Use this action when you need to remove multiple catalog objects (items, categories, modifiers, etc.) at once. This action is irreversible — the catalog objects cannot be recovered once deleted.
>
> #### Input Parameters
>
> **object\_ids** `array` *required*
>
> The IDs of the CatalogObjects to be deleted. When an object is deleted, other objects in the graph that depend on that object will be deleted as well (for example, deleting a CatalogItem will delete its CatalogItemVariation). Minimum 1 and maximum 200 object IDs.
>
> #### Output
>
> **data** `string` *required*
>
> Data from the action execution
>
> **error** `string`
>
> Error if any occurred during the execution of the action
>
> **successful** `boolean` *required*
>
> Whether or not the action execution was successful or not

> [accordion] Delete Customer
>
> **Slug:** `SQUARE_DELETE_CUSTOMER`
>
> Tool to delete a Square customer profile. Use when you need to permanently remove a customer record from Square.
>
> #### Input Parameters
>
> **version** `integer`
>
> The current version of the customer profile. As a best practice, you should include this parameter to enable optimistic concurrency control. For more information, see Delete a customer profile documentation.
>
> **customer\_id** `string` *required*
>
> The ID of the customer to delete.
>
> #### Output
>
> **data** `string` *required*
>
> Data from the action execution
>
> **error** `string`
>
> Error if any occurred during the execution of the action
>
> **successful** `boolean` *required*
>
> Whether or not the action execution was successful or not

> [accordion] Delete Customer Custom Attribute
>
> **Slug:** `SQUARE_DELETE_CUSTOMER_CUSTOM_ATTRIBUTE`
>
> Tool to delete a custom attribute from a customer profile. Use when you need to remove custom data associated with a specific customer. Requires the CUSTOMERS\_WRITE OAuth permission scope.
>
> #### Input Parameters
>
> **key** `string` *required*
>
> The key of the custom attribute to delete. This key must match the key of a custom attribute definition in the Square seller account. If the requesting application is not the definition owner, you must use the qualified key.
>
> **customer\_id** `string` *required*
>
> The ID of the target customer profile. You can obtain this from listing customers or from a specific customer retrieval.
>
> #### Output
>
> **data** `string` *required*
>
> Data from the action execution
>
> **error** `string`
>
> Error if any occurred during the execution of the action
>
> **successful** `boolean` *required*
>
> Whether or not the action execution was successful or not

> [accordion] Delete Customer Custom Attribute Definition
>
> **Slug:** `SQUARE_DELETE_CUSTOMER_CUSTOM_ATTRIBUTE_DEFINITION`
>
> Tool to delete a customer-related custom attribute definition. Use when you need to remove a custom attribute definition that is no longer needed. This action requires CUSTOMERS\_WRITE permission.
>
> #### Input Parameters
>
> **key** `string` *required*
>
> The key of the custom attribute definition to delete.
>
> #### Output
>
> **data** `string` *required*
>
> Data from the action execution
>
> **error** `string`
>
> Error if any occurred during the execution of the action
>
> **successful** `boolean` *required*
>
> Whether or not the action execution was successful or not

> [accordion] Delete Customer Group
>
> **Slug:** `SQUARE_DELETE_CUSTOMER_GROUP`
>
> Tool to delete a customer group by its ID. Use when you need to permanently remove a customer group from Square.
>
> #### Input Parameters
>
> **group\_id** `string` *required*
>
> The ID of the customer group to delete.
>
> #### Output
>
> **data** `string` *required*
>
> Data from the action execution
>
> **error** `string`
>
> Error if any occurred during the execution of the action
>
> **successful** `boolean` *required*
>
> Whether or not the action execution was successful or not

> [accordion] Bulk Delete Customers
>
> **Slug:** `SQUARE_DELETE_CUSTOMERS_BULK`
>
> Tool to bulk delete customer profiles from Square. Use when you need to delete multiple customer profiles at once (1-100 customers per request). Each successful deletion returns an empty object; failed deletions include error details. Note that delete events trigger separate webhook notifications per customer.
>
> #### Input Parameters
>
> **customer\_ids** `array` *required*
>
> An array containing the IDs of the customer profiles to delete. Minimum 1 and maximum 100 customer IDs.
>
> #### Output
>
> **data** `string` *required*
>
> Data from the action execution
>
> **error** `string`
>
> Error if any occurred during the execution of the action
>
> **successful** `boolean` *required*
>
> Whether or not the action execution was successful or not

> [accordion] Delete Dispute Evidence
>
> **Slug:** `SQUARE_DELETE_DISPUTE_EVIDENCE`
>
> Removes a specific piece of evidence from a dispute. Evidence that is removed will NOT be sent to the bank. This action requires the DISPUTES\_WRITE permission scope. Important: You CANNOT remove evidence after it has been submitted to the bank using the SubmitEvidence endpoint. The deletion is permanent and cannot be undone. Use this when: - You need to remove evidence that was uploaded by mistake - You want to replace evidence with a better version (delete old, upload new) - The evidence is no longer relevant to the dispute case Prerequisites: - A valid dispute\_id (obtain from list/retrieve disputes) - A valid evidence\_id (obtain from list evidence or create evidence response) - The evidence must not have been submitted to the bank yet
>
> #### Input Parameters
>
> **dispute\_id** `string` *required*
>
> The unique ID of the dispute from which to remove evidence. You can obtain this from listing disputes or from a specific dispute retrieval.
>
> **evidence\_id** `string` *required*
>
> The unique ID of the evidence item to delete. You can obtain this from the list dispute evidence endpoint or from the response when creating evidence.
>
> #### Output
>
> **data** `string` *required*
>
> Data from the action execution
>
> **error** `string`
>
> Error if any occurred during the execution of the action
>
> **successful** `boolean` *required*
>
> Whether or not the action execution was successful or not

> [accordion] Delete Invoice
>
> **Slug:** `SQUARE_DELETE_INVOICE`
>
> Tool to delete a Square invoice (only DRAFT invoices can be deleted).
>
> #### Input Parameters
>
> **version** `integer`
>
> The version of the invoice to delete. If you do not know the version, retrieve the invoice first via Get Invoice or List Invoices.
>
> **invoice\_id** `string` *required*
>
> The Square-assigned ID of the invoice to delete. Format: 'inv:0-' followed by an alphanumeric string.
>
> #### Output
>
> **data** `string` *required*
>
> Data from the action execution
>
> **error** `string`
>
> Error if any occurred during the execution of the action
>
> **successful** `boolean` *required*
>
> Whether or not the action execution was successful or not

> [accordion] Delete Invoice Attachment
>
> **Slug:** `SQUARE_DELETE_INVOICE_ATTACHMENT`
>
> Tool to delete an attachment from a Square invoice. Endpoint: DELETE /v2/invoices/\{invoice\_id}/attachments/\{attachment\_id}
>
> #### Input Parameters
>
> **invoice\_id** `string` *required*
>
> The Square-assigned ID of the invoice to delete the attachment from. Format: 'inv:0-' followed by an alphanumeric string.
>
> **attachment\_id** `string` *required*
>
> The ID of the attachment to delete.
>
> #### Output
>
> **data** `string` *required*
>
> Data from the action execution
>
> **error** `string`
>
> Error if any occurred during the execution of the action
>
> **successful** `boolean` *required*
>
> Whether or not the action execution was successful or not

> [accordion] Delete Location Custom Attribute
>
> **Slug:** `SQUARE_DELETE_LOCATION_CUSTOM_ATTRIBUTE`
>
> Tool to delete a custom attribute from a location. Use when you need to remove custom data associated with a specific business location. Requires the MERCHANT\_PROFILE\_WRITE OAuth permission scope.
>
> #### Input Parameters
>
> **key** `string` *required*
>
> The key of the custom attribute to delete. This key must match the key of a custom attribute definition in the Square seller account. If the requesting application is not the definition owner, you must use the qualified key.
>
> **location\_id** `string` *required*
>
> The ID of the target location. You can obtain this from the List Locations endpoint.
>
> #### Output
>
> **data** `string` *required*
>
> Data from the action execution
>
> **error** `string`
>
> Error if any occurred during the execution of the action
>
> **successful** `boolean` *required*
>
> Whether or not the action execution was successful or not

> [accordion] Delete Location Custom Attribute Definition
>
> **Slug:** `SQUARE_DELETE_LOCATION_CUSTOM_ATTRIBUTE_DEFINITION`
>
> Tool to delete a location-related custom attribute definition. Once deleted, the custom attribute definition cannot be used to add custom attributes to locations. Use when you need to remove obsolete or incorrect custom attribute definitions from your Square account.
>
> #### Input Parameters
>
> **key** `string` *required*
>
> The key of the custom attribute definition to delete.
>
> #### Output
>
> **data** `string` *required*
>
> Data from the action execution
>
> **error** `string`
>
> Error if any occurred during the execution of the action
>
> **successful** `boolean` *required*
>
> Whether or not the action execution was successful or not

> [accordion] Delete Locations Custom Attributes (Batch)
>
> **Slug:** `SQUARE_DELETE_LOCATIONS_CUSTOM_ATTRIBUTES_BATCH`
>
> Tool to delete custom attributes from multiple locations in a single batch request. Use when you need to remove custom metadata from multiple business locations efficiently. To delete custom attributes owned by other applications, the attribute's visibility must be set to VISIBILITY\_READ\_WRITE\_VALUES.
>
> #### Input Parameters
>
> **values** `object` *required*
>
> A map of unique identifiers to delete request objects. Each key is a unique identifier for mapping the request to the response. Each value contains location\_id and key fields for the custom attribute to delete.
>
> #### Output
>
> **data** `string` *required*
>
> Data from the action execution
>
> **error** `string`
>
> Error if any occurred during the execution of the action
>
> **successful** `boolean` *required*
>
> Whether or not the action execution was successful or not

> [accordion] Delete Merchant Custom Attribute
>
> **Slug:** `SQUARE_DELETE_MERCHANT_CUSTOM_ATTRIBUTE`
>
> Tool to delete a custom attribute from a merchant profile. Use when you need to remove custom data associated with a specific merchant. Requires the MERCHANT\_PROFILE\_WRITE OAuth permission scope.
>
> #### Input Parameters
>
> **key** `string` *required*
>
> The key of the custom attribute to delete. This key must match the key of a custom attribute definition in the Square seller account. If the requesting application is not the definition owner, you must use the qualified key.
>
> **merchant\_id** `string` *required*
>
> The ID of the target merchant. You can obtain this from the List Merchants endpoint or from your Square dashboard.
>
> #### Output
>
> **data** `string` *required*
>
> Data from the action execution
>
> **error** `string`
>
> Error if any occurred during the execution of the action
>
> **successful** `boolean` *required*
>
> Whether or not the action execution was successful or not

> [accordion] Delete Merchant Custom Attribute Definition
>
> **Slug:** `SQUARE_DELETE_MERCHANT_CUSTOM_ATTRIBUTE_DEFINITION`
>
> Tool to delete a merchant-related custom attribute definition. Once deleted, the custom attribute definition cannot be used to add custom attributes to merchants. Use when you need to remove obsolete or incorrect custom attribute definitions from your Square account.
>
> #### Input Parameters
>
> **key** `string` *required*
>
> The key of the custom attribute definition to delete.
>
> #### Output
>
> **data** `string` *required*
>
> Data from the action execution
>
> **error** `string`
>
> Error if any occurred during the execution of the action
>
> **successful** `boolean` *required*
>
> Whether or not the action execution was successful or not

> [accordion] Delete Merchants Custom Attributes (Batch)
>
> **Slug:** `SQUARE_DELETE_MERCHANTS_CUSTOM_ATTRIBUTES_BATCH`
>
> Tool to delete custom attributes from multiple merchants in a single batch request. Use when you need to remove custom metadata from merchant profiles efficiently. To delete custom attributes owned by other applications, the attribute's visibility must be set to VISIBILITY\_READ\_WRITE\_VALUES.
>
> #### Input Parameters
>
> **values** `object` *required*
>
> A map of unique identifiers to delete request objects. Each key is a unique identifier for mapping the request to the response. Each value contains merchant\_id and key fields for the custom attribute to delete.
>
> #### Output
>
> **data** `string` *required*
>
> Data from the action execution
>
> **error** `string`
>
> Error if any occurred during the execution of the action
>
> **successful** `boolean` *required*
>
> Whether or not the action execution was successful or not

> [accordion] Delete Webhook Subscription
>
> **Slug:** `SQUARE_DELETE_WEBHOOK_SUBSCRIPTION`
>
> Permanently deletes a webhook subscription by its ID. Once deleted, the subscription will no longer receive event notifications. This action cannot be undone. Note: Webhook subscriptions are application-level resources and require personal access token authentication (not OAuth tokens).
>
> #### Input Parameters
>
> **subscription\_id** `string` *required*
>
> ID of the webhook subscription to delete.
>
> #### Output
>
> **data** `string` *required*
>
> Data from the action execution
>
> **error** `string`
>
> Error if any occurred during the execution of the action
>
> **successful** `boolean` *required*
>
> Whether or not the action execution was successful or not

> [accordion] Get Booking
>
> **Slug:** `SQUARE_GET_BOOKING`
>
> Retrieves detailed information about a specific Square booking by its ID. Returns the complete booking object including appointment segments, customer notes, seller notes, location details, creator information, and current status. Use this action when you need to view or verify booking details for a known booking ID, check appointment times, or retrieve information about services and team members assigned to the booking. Required permission: APPOINTMENTS\_READ (buyer-level) or both APPOINTMENTS\_ALL\_READ and APPOINTMENTS\_READ (seller-level).
>
> #### Input Parameters
>
> **booking\_id** `string` *required*
>
> The ID of the booking to retrieve. This is the unique Square-generated booking identifier.
>
> #### Output
>
> **data** `string` *required*
>
> Data from the action execution
>
> **error** `string`
>
> Error if any occurred during the execution of the action
>
> **successful** `boolean` *required*
>
> Whether or not the action execution was successful or not

> [accordion] Get Business Booking Profile
>
> **Slug:** `SQUARE_GET_BUSINESS_BOOKING_PROFILE`
>
> Tool to retrieve the business booking profile for a Square merchant via GraphQL. Use when you need to check if bookings are enabled, view cancellation policies, or access booking configuration settings. This is an alpha feature.
>
> #### Input Parameters
>
> **merchant\_ids** `array` *required*
>
> List of merchant IDs to query booking profiles for. Use the merchant ID from your Square account (e.g., 'MLBN7K732KMAD'). At least one merchant ID is required.
>
> #### Output
>
> **data** `string` *required*
>
> Data from the action execution
>
> **error** `string`
>
> Error if any occurred during the execution of the action
>
> **successful** `boolean` *required*
>
> Whether or not the action execution was successful or not

> [accordion] Get Current Merchant
>
> **Slug:** `SQUARE_GET_CURRENT_MERCHANT`
>
> Tool to retrieve merchant information associated with the access token using Square's GraphQL API. Use when you need to obtain the merchant ID required for other GraphQL queries, or to get merchant details like business name, status, currency, and main location.
>
> #### Output
>
> **data** `string` *required*
>
> Data from the action execution
>
> **error** `string`
>
> Error if any occurred during the execution of the action
>
> **successful** `boolean` *required*
>
> Whether or not the action execution was successful or not

> [accordion] Get Customer Custom Attribute
>
> **Slug:** `SQUARE_GET_CUSTOMER_CUSTOM_ATTRIBUTE`
>
> Retrieves a custom attribute from a customer profile in Square. Use this when you need to access specific custom data associated with a customer, such as preferences, external IDs, or other merchant-defined information. Requires CUSTOMERS\_READ permission.
>
> #### Input Parameters
>
> **key** `string` *required*
>
> The key of the custom attribute to retrieve. This key must match the key of a custom attribute definition in the Square seller account. If the requesting application is not the definition owner, you must use the qualified key.
>
> **version** `integer`
>
> The current version of the custom attribute, which is used for strongly consistent reads to guarantee that you receive the most up-to-date data. When included in the request, Square returns the specified version or a higher version if one exists. If the specified version is higher than the current version, Square returns a BAD\_REQUEST error.
>
> **customer\_id** `string` *required*
>
> The ID of the target customer profile. This is the unique Square-assigned ID that identifies the customer.
>
> **with\_definition** `boolean`
>
> Indicates whether to return the custom attribute definition in the definition field of the custom attribute. Set this parameter to true to get the name and description of the custom attribute, information about the data type, or other definition details. The default value is false.
>
> #### Output
>
> **data** `string` *required*
>
> Data from the action execution
>
> **error** `string`
>
> Error if any occurred during the execution of the action
>
> **successful** `boolean` *required*
>
> Whether or not the action execution was successful or not

> [accordion] Get Customer Custom Attribute Definition
>
> **Slug:** `SQUARE_GET_CUSTOMERS_CUSTOM_ATTRIBUTE_DEFINITIONS`
>
> Tool to retrieve a customer-related custom attribute definition from Square. Use when you need to fetch the schema, visibility, or metadata of a specific custom attribute definition by its key.
>
> #### Input Parameters
>
> **key** `string` *required*
>
> The key of the custom attribute definition to retrieve. If the requesting application is not the definition owner, you must use the qualified key.
>
> **version** `integer`
>
> The current version of the custom attribute definition, which is used for strongly consistent reads to guarantee that you receive the most up-to-date data. When included in the request, Square returns the specified version or a higher version if one exists. If the specified version is higher than the current version, Square returns a BAD\_REQUEST error.
>
> #### Output
>
> **data** `string` *required*
>
> Data from the action execution
>
> **error** `string`
>
> Error if any occurred during the execution of the action
>
> **successful** `boolean` *required*
>
> Whether or not the action execution was successful or not

> [accordion] Get Customers via GraphQL
>
> **Slug:** `SQUARE_GET_CUSTOMERS_GRAPHQL`
>
> Tool to retrieve customer profiles from Square Customer Directory using GraphQL API. Use when you need to fetch customer information including name, contact details, and profile data for a specific merchant. Requires merchant ID filter.
>
> #### Input Parameters
>
> **limit** `integer`
>
> Maximum number of customer records to return in a single request (1-100). If not specified, the API default applies.
>
> **merchant\_id** `string` *required*
>
> The merchant ID to filter customers. Required to retrieve customers from the Customer Directory. This is the Square location or business identifier.
>
> #### Output
>
> **data** `string` *required*
>
> Data from the action execution
>
> **error** `string`
>
> Error if any occurred during the execution of the action
>
> **successful** `boolean` *required*
>
> Whether or not the action execution was successful or not

> [accordion] Get Dispute Evidence
>
> **Slug:** `SQUARE_GET_DISPUTE_EVIDENCE`
>
> Retrieves detailed information about a specific piece of evidence that was uploaded for a dispute. Use this action to: - Get metadata about evidence (file details, upload time, evidence type) - Verify evidence was uploaded successfully - Review evidence details before submitting a dispute response Note: This returns metadata only, not the actual file content. To upload evidence, use the Create Dispute Evidence File or Create Dispute Evidence Text actions. Endpoint: GET /v2/disputes/\{dispute\_id}/evidence/\{evidence\_id}
>
> #### Input Parameters
>
> **dispute\_id** `string` *required*
>
> The ID of the dispute for which to retrieve evidence. You can obtain dispute IDs by listing disputes or from dispute webhooks.
>
> **evidence\_id** `string` *required*
>
> The ID of the specific evidence item to retrieve. You can obtain evidence IDs by listing evidence for a dispute or from the response when creating evidence.
>
> #### Output
>
> **data** `string` *required*
>
> Data from the action execution
>
> **error** `string`
>
> Error if any occurred during the execution of the action
>
> **successful** `boolean` *required*
>
> Whether or not the action execution was successful or not

> [accordion] Get Gift Card From GAN
>
> **Slug:** `SQUARE_GET_GIFT_CARD_FROM_GAN`
>
> Retrieves gift card information by its GAN (gift card account number), including available ID, type, state, balance, and associated customer IDs.
>
> #### Input Parameters
>
> **gan** `string` *required*
>
> The gift card account number (GAN) of the gift card to retrieve. Square-issued gift cards have 16-digit GANs. The 255-digit maximum accommodates third-party imported GANs.
>
> #### Output
>
> **data** `string` *required*
>
> Data from the action execution
>
> **error** `string`
>
> Error if any occurred during the execution of the action
>
> **successful** `boolean` *required*
>
> Whether or not the action execution was successful or not

> [accordion] Get Invoice
>
> **Slug:** `SQUARE_GET_INVOICE`
>
> Retrieves detailed information about a specific Square invoice by its ID. Returns the complete invoice object including payment requests, recipient details, accepted payment methods, custom fields, attachments, and current status. Use this when you need to view or verify invoice details for a known invoice ID. Required permission: INVOICES\_READ
>
> #### Input Parameters
>
> **invoice\_id** `string` *required*
>
> The Square-assigned ID of the invoice to retrieve. Format: 'inv:0-' followed by an alphanumeric string.
>
> #### Output
>
> **data** `string` *required*
>
> Data from the action execution
>
> **error** `string`
>
> Error if any occurred during the execution of the action
>
> **successful** `boolean` *required*
>
> Whether or not the action execution was successful or not

> [accordion] Get Loyalty Account
>
> **Slug:** `SQUARE_GET_LOYALTY_ACCOUNT`
>
> Tool to retrieve detailed information about a specific Square loyalty account by ID. Use when you need to fetch loyalty account data including balance, lifetime points, customer association, and point expiration schedules. This action provides read-only access to loyalty program membership details.
>
> #### Input Parameters
>
> **account\_id** `string` *required*
>
> The ID of the loyalty account to retrieve. This is the unique Square-generated loyalty account identifier.
>
> #### Output
>
> **data** `string` *required*
>
> Data from the action execution
>
> **error** `string`
>
> Error if any occurred during the execution of the action
>
> **successful** `boolean` *required*
>
> Whether or not the action execution was successful or not

> [accordion] Get Merchant
>
> **Slug:** `SQUARE_GET_MERCHANT`
>
> Tool to retrieve detailed information about a specific Square merchant by ID. Use when you need to fetch merchant profile data including business name, country, currency, and main location ID. Use 'me' as the merchant\_id to retrieve the currently authenticated merchant.
>
> #### Input Parameters
>
> **merchant\_id** `string` *required*
>
> The ID of the merchant to retrieve. Use 'me' to retrieve the merchant that is currently accessible to this call.
>
> #### Output
>
> **data** `string` *required*
>
> Data from the action execution
>
> **error** `string`
>
> Error if any occurred during the execution of the action
>
> **successful** `boolean` *required*
>
> Whether or not the action execution was successful or not

> [accordion] Get Online Checkout Location Settings
>
> **Slug:** `SQUARE_GET_ONLINE_CHECKOUT_LOCATION_SETTINGS`
>
> Tool to retrieve location-level settings for Square online checkout. Use when you need to get checkout configuration including customer notes, policies, branding, and tipping options for a specific location.
>
> #### Input Parameters
>
> **location\_id** `string` *required*
>
> The ID of the location for which to retrieve online checkout settings. This is the unique Square-generated identifier for the location.
>
> #### Output
>
> **data** `string` *required*
>
> Data from the action execution
>
> **error** `string`
>
> Error if any occurred during the execution of the action
>
> **successful** `boolean` *required*
>
> Whether or not the action execution was successful or not

> [accordion] Get Payment Refund
>
> **Slug:** `SQUARE_GET_REFUND`
>
> Retrieves a specific payment refund by its unique ID from Square. Returns complete refund details including amount, status, associated payment and order IDs, and refund destination information. Use this action when you need to retrieve detailed information about a specific refund, such as verifying refund status, checking refund amounts, or accessing refund metadata for reconciliation or customer service purposes.
>
> #### Input Parameters
>
> **refund\_id** `string` *required*
>
> The unique ID for the desired PaymentRefund. You can obtain refund IDs from the List Payment Refunds endpoint or from refund creation responses.
>
> #### Output
>
> **data** `string` *required*
>
> Data from the action execution
>
> **error** `string`
>
> Error if any occurred during the execution of the action
>
> **successful** `boolean` *required*
>
> Whether or not the action execution was successful or not

> [accordion] Get Subscription
>
> **Slug:** `SQUARE_GET_SUBSCRIPTION`
>
> Retrieves detailed information about a specific Square customer subscription by its ID. Use this action when you need to fetch subscription details including status, billing information, plan variation, associated customer, and scheduled actions. Returns comprehensive subscription data including payment information, invoices, phases, and configured actions. Required permission: SUBSCRIPTIONS\_READ.
>
> #### Input Parameters
>
> **include** `string`
>
> Optional parameter to include related information. Supported value: 'actions' to include scheduled actions on the subscription. Beta feature.
>
> **subscription\_id** `string` *required*
>
> The Square-assigned ID of the subscription to retrieve. This is the unique identifier for the subscription.
>
> #### Output
>
> **data** `string` *required*
>
> Data from the action execution
>
> **error** `string`
>
> Error if any occurred during the execution of the action
>
> **successful** `boolean` *required*
>
> Whether or not the action execution was successful or not

> [accordion] Get Team Member
>
> **Slug:** `SQUARE_GET_TEAM_MEMBER`
>
> Tool to retrieve detailed information about a specific Square team member by ID. Use when you need to fetch team member profile data including name, contact information, location assignments, and wage settings.
>
> #### Input Parameters
>
> **team\_member\_id** `string` *required*
>
> The ID of the team member to retrieve. This is the unique Square-generated team member identifier.
>
> #### Output
>
> **data** `string` *required*
>
> Data from the action execution
>
> **error** `string`
>
> Error if any occurred during the execution of the action
>
> **successful** `boolean` *required*
>
> Whether or not the action execution was successful or not

> [accordion] Link Customer to Gift Card
>
> **Slug:** `SQUARE_LINK_CUSTOMER_TO_GIFT_CARD`
>
> Tool to link a customer to a gift card in Square. Links the customer profile to the gift card, adding their ID to the gift card's customer\_ids list. Use when you need to associate a customer with a gift card for tracking purchases, balances, or gifting purposes.
>
> #### Input Parameters
>
> **customer\_id** `string` *required*
>
> The ID of the customer to link to the gift card. This is the unique Square-generated customer identifier.
>
> **gift\_card\_id** `string` *required*
>
> The ID of the gift card to be linked. This is the unique Square-generated gift card identifier.
>
> #### Output
>
> **data** `string` *required*
>
> Data from the action execution
>
> **error** `string`
>
> Error if any occurred during the execution of the action
>
> **successful** `boolean` *required*
>
> Whether or not the action execution was successful or not

> [accordion] List Cards
>
> **Slug:** `SQUARE_LIST_CARDS`
>
> Tool to retrieve cards on file associated with a Square account. Use when you need to list saved payment methods for a merchant or customer for payment processing or management purposes. Returns a maximum of 25 cards per request with pagination support.
>
> #### Input Parameters
>
> **cursor** `string`
>
> A pagination cursor returned by a previous call to this endpoint. Provide this cursor to retrieve the next set of results for your original query.
>
> **sort\_order** `string ("ASC" | "DESC")`
>
> Enum for sort order options.
>
> **customer\_id** `string`
>
> Limit results to cards associated with the customer supplied. By default, all cards owned by the merchant are returned.
>
> **reference\_id** `string`
>
> Limit results to cards associated with the reference\_id supplied.
>
> **include\_disabled** `boolean`
>
> Includes disabled cards. By default, list cards returns only cards with status enabled.
>
> #### Output
>
> **data** `string` *required*
>
> Data from the action execution
>
> **error** `string`
>
> Error if any occurred during the execution of the action
>
> **successful** `boolean` *required*
>
> Whether or not the action execution was successful or not

> [accordion] List Channels
>
> **Slug:** `SQUARE_LIST_CHANNELS`
>
> Tool to list requested channels from Square. Use when you need to retrieve channel information for a specific reference type, reference ID, or status.
>
> #### Input Parameters
>
> **limit** `integer`
>
> Maximum number of results to return. When not provided the returned results will be capped at 100 channels.
>
> **cursor** `string`
>
> Cursor to fetch the next result. Pagination cursor returned by a previous call to this endpoint.
>
> **status** `string`
>
> Status of channel. Filter channels by their status (e.g., ACTIVE, INACTIVE).
>
> **reference\_id** `string`
>
> ID of reference associated to channel. Filter channels by the reference ID.
>
> **reference\_type** `string`
>
> Type of reference associated to channel. Filter channels by the reference type.
>
> #### Output
>
> **data** `string` *required*
>
> Data from the action execution
>
> **error** `string`
>
> Error if any occurred during the execution of the action
>
> **successful** `boolean` *required*
>
> Whether or not the action execution was successful or not

> [accordion] List Customer Custom Attribute Definitions
>
> **Slug:** `SQUARE_LIST_CUSTOMER_CUSTOM_ATTRIBUTE_DEFINITIONS`
>
> Tool to list customer-related custom attribute definitions from Square. Use when you need to discover available custom attributes that can be attached to customer profiles.
>
> #### Input Parameters
>
> **limit** `integer`
>
> The maximum number of results to return in a single paged response. This limit is advisory. The response might contain more or fewer results. The minimum value is 1 and the maximum value is 100. The default value is 20. For more information, see Pagination.
>
> **cursor** `string`
>
> The cursor returned in the paged response from the previous call to this endpoint. Provide this cursor to retrieve the next page of results for your original request. For more information, see Pagination.
>
> #### Output
>
> **data** `string` *required*
>
> Data from the action execution
>
> **error** `string`
>
> Error if any occurred during the execution of the action
>
> **successful** `boolean` *required*
>
> Whether or not the action execution was successful or not

> [accordion] List Customer Custom Attribute Definitions (GraphQL)
>
> **Slug:** `SQUARE_LIST_CUSTOMER_CUSTOM_ATTRIBUTE_DEFINITIONS_GRAPH_QL`
>
> Queries customer custom attribute definitions and their metadata via Square's GraphQL API, filtered by the supplied merchant IDs. Alpha feature.
>
> #### Input Parameters
>
> **merchant\_ids** `array` *required*
>
> List of merchant IDs to filter custom attribute definitions. Only definitions associated with these merchant IDs will be returned.
>
> #### Output
>
> **data** `string` *required*
>
> Data from the action execution
>
> **error** `string`
>
> Error if any occurred during the execution of the action
>
> **successful** `boolean` *required*
>
> Whether or not the action execution was successful or not

> [accordion] List Customer Custom Attributes
>
> **Slug:** `SQUARE_LIST_CUSTOMER_CUSTOM_ATTRIBUTES`
>
> Lists a page of custom attributes for a customer profile, optionally including definitions that provide metadata about each attribute. Use the returned cursor to request additional pages.
>
> #### Input Parameters
>
> **limit** `integer`
>
> The maximum number of results to return in a single paged response. This limit is advisory. The response might contain more or fewer results. The minimum value is 1 and the maximum value is 100. The default value is 20.
>
> **cursor** `string`
>
> The cursor returned in the paged response from the previous call to this endpoint. Provide this cursor to retrieve the next page of results for your original request.
>
> **customer\_id** `string` *required*
>
> The ID of the target customer profile. You can obtain this from listing customers or from a specific customer retrieval.
>
> **with\_definitions** `boolean`
>
> Indicates whether to return the custom attribute definition in the definition field of each custom attribute. Set this parameter to true to get the name and description of each custom attribute, information about the data type, or other definition details. The default value is false.
>
> #### Output
>
> **data** `string` *required*
>
> Data from the action execution
>
> **error** `string`
>
> Error if any occurred during the execution of the action
>
> **successful** `boolean` *required*
>
> Whether or not the action execution was successful or not

> [accordion] List Customer Groups
>
> **Slug:** `SQUARE_LIST_CUSTOMER_GROUPS`
>
> Tool to retrieve the list of customer groups of a business. Use when you need to discover customer group IDs or list all customer groups for segmentation and targeting purposes.
>
> #### Input Parameters
>
> **limit** `integer`
>
> The maximum number of results to return in a single page. This limit is advisory. The response might contain more or fewer results. If the limit is less than 1 or greater than 50, Square returns a 400 VALUE\_TOO\_LOW or 400 VALUE\_TOO\_HIGH error. The default value is 50.
>
> **cursor** `string`
>
> A pagination cursor returned by a previous call to this endpoint. Provide this cursor to retrieve the next set of results for your original query. For more information, see Pagination.
>
> #### Output
>
> **data** `string` *required*
>
> Data from the action execution
>
> **error** `string`
>
> Error if any occurred during the execution of the action
>
> **successful** `boolean` *required*
>
> Whether or not the action execution was successful or not

> [accordion] List Customers
>
> **Slug:** `SQUARE_LIST_CUSTOMERS`
>
> Tool to retrieve customer profiles associated with a Square account. Use when you need to list customers for CRM, reporting, or customer management purposes. Only returns profiles with public information (given\_name, family\_name, company\_name, email\_address, or phone\_number).
>
> #### Input Parameters
>
> **count** `boolean`
>
> Indicates whether to return the total count of customers in the count field of the response. The default value is false.
>
> **limit** `integer`
>
> The maximum number of results to return in a single page (1-100). If the specified limit is less than 1 or greater than 100, Square returns a 400 VALUE\_TOO\_LOW or 400 VALUE\_TOO\_HIGH error. The default value is 100.
>
> **cursor** `string`
>
> A pagination cursor returned by a previous call to this endpoint. Provide this cursor to retrieve the next set of results for your original query.
>
> **sort\_field** `string ("DEFAULT" | "CREATED_AT")`
>
> Enum for customer sort field options.
>
> **sort\_order** `string ("ASC" | "DESC")`
>
> Enum for sort order options.
>
> #### Output
>
> **data** `string` *required*
>
> Data from the action execution
>
> **error** `string`
>
> Error if any occurred during the execution of the action
>
> **successful** `boolean` *required*
>
> Whether or not the action execution was successful or not

> [accordion] List Customer Segments
>
> **Slug:** `SQUARE_LIST_CUSTOMER_SEGMENTS`
>
> Tool to retrieve the list of customer segments of a business. Use when you need to discover customer segment IDs for targeting or filtering customer groups in Square.
>
> #### Input Parameters
>
> **limit** `integer`
>
> The maximum number of results to return in a single page. This limit is advisory. The response might contain more or fewer results. If the specified limit is less than 1 or greater than 50, Square returns a 400 VALUE\_TOO\_LOW or 400 VALUE\_TOO\_HIGH error. The default value is 50. For more information, see Pagination ([https://developer.squareup.com/docs/build-basics/common-api-patterns/pagination](https://developer.squareup.com/docs/build-basics/common-api-patterns/pagination)).
>
> **cursor** `string`
>
> A pagination cursor returned by previous calls to ListCustomerSegments. This cursor is used to retrieve the next set of query results. For more information, see Pagination ([https://developer.squareup.com/docs/build-basics/common-api-patterns/pagination](https://developer.squareup.com/docs/build-basics/common-api-patterns/pagination)).
>
> #### Output
>
> **data** `string` *required*
>
> Data from the action execution
>
> **error** `string`
>
> Error if any occurred during the execution of the action
>
> **successful** `boolean` *required*
>
> Whether or not the action execution was successful or not

> [accordion] List Dispute Evidence
>
> **Slug:** `SQUARE_LIST_DISPUTE_EVIDENCE`
>
> Tool to list evidence items associated with a given dispute. Endpoint: GET /v2/disputes/\{dispute\_id}/evidence
>
> #### Input Parameters
>
> **cursor** `string`
>
> A pagination cursor returned by a previous call to this endpoint. Provide this to retrieve the next set of results.
>
> **dispute\_id** `string` *required*
>
> ID of the dispute to list evidence for.
>
> #### Output
>
> **data** `string` *required*
>
> Data from the action execution
>
> **error** `string`
>
> Error if any occurred during the execution of the action
>
> **successful** `boolean` *required*
>
> Whether or not the action execution was successful or not

> [accordion] List Invoices
>
> **Slug:** `SQUARE_LIST_INVOICES`
>
> Tool to list invoices for a Square location.
>
> #### Input Parameters
>
> **limit** `integer`
>
> Maximum number of invoices to return (1-200). Defaults to Square's default if unset.
>
> **cursor** `string`
>
> Pagination cursor from a previous ListInvoices call; use to fetch the next page.
>
> **location\_id** `string` *required*
>
> The Square location ID for which to list invoices.
>
> #### Output
>
> **data** `string` *required*
>
> Data from the action execution
>
> **error** `string`
>
> Error if any occurred during the execution of the action
>
> **successful** `boolean` *required*
>
> Whether or not the action execution was successful or not

> [accordion] List Location Custom Attribute Definitions
>
> **Slug:** `SQUARE_LIST_LOCATION_CUSTOM_ATTRIBUTE_DEFINITIONS`
>
> Tool to list location-related custom attribute definitions from Square. Use when you need to discover available custom attributes that can be attached to location profiles.
>
> #### Input Parameters
>
> **limit** `integer`
>
> The maximum number of results to return in a single paged response. This limit is advisory. The response might contain more or fewer results. The minimum value is 1 and the maximum value is 100. The default value is 20. For more information, see Pagination.
>
> **cursor** `string`
>
> The cursor returned in the paged response from the previous call to this endpoint. Provide this cursor to retrieve the next page of results for your original request. For more information, see Pagination.
>
> **visibilityFilter** `string`
>
> Filters the CustomAttributeDefinition results by their visibility values.
>
> #### Output
>
> **data** `string` *required*
>
> Data from the action execution
>
> **error** `string`
>
> Error if any occurred during the execution of the action
>
> **successful** `boolean` *required*
>
> Whether or not the action execution was successful or not

> [accordion] List Locations
>
> **Slug:** `SQUARE_LIST_LOCATIONS`
>
> Tool to retrieve all business locations from a Square account. Use when you need to discover available location IDs for other Square API calls that require location\_id parameter (like listing invoices or payments).
>
> #### Output
>
> **data** `string` *required*
>
> Data from the action execution
>
> **error** `string`
>
> Error if any occurred during the execution of the action
>
> **successful** `boolean` *required*
>
> Whether or not the action execution was successful or not

> [accordion] List Locations Custom Attributes
>
> **Slug:** `SQUARE_LIST_LOCATIONS_CUSTOM_ATTRIBUTES`
>
> Lists a page of custom attributes for a specific Square location. Use the returned cursor to retrieve further pages; results can be filtered by visibility.
>
> #### Input Parameters
>
> **limit** `integer`
>
> The maximum number of results to return in a single paged response. This limit is advisory. The response might contain more or fewer results. The minimum value is 1 and the maximum value is 100. The default value is 20. For more information, see Pagination.
>
> **cursor** `string`
>
> The cursor returned in the paged response from the previous call to this endpoint. Provide this cursor to retrieve the next page of results for your original request. For more information, see Pagination.
>
> **location\_id** `string` *required*
>
> The ID of the target location. This is the unique Square-assigned ID that identifies the location.
>
> **with\_definitions** `boolean`
>
> Indicates whether to return the custom attribute definition in the definition field of each custom attribute. Set this parameter to true to get the name and description of each custom attribute, information about the data type, or other definition details. The default value is false.
>
> **visibility\_filter** `string`
>
> Filters the CustomAttributeDefinition results by their visibility values. Possible values include VISIBILITY\_READ\_ONLY, VISIBILITY\_READ\_WRITE\_VALUES, and VISIBILITY\_HIDDEN.
>
> #### Output
>
> **data** `string` *required*
>
> Data from the action execution
>
> **error** `string`
>
> Error if any occurred during the execution of the action
>
> **successful** `boolean` *required*
>
> Whether or not the action execution was successful or not

> [accordion] List Merchant Custom Attribute Definitions
>
> **Slug:** `SQUARE_LIST_MERCHANT_CUSTOM_ATTRIBUTE_DEFINITIONS`
>
> Tool to list merchant-related custom attribute definitions from Square. Use when you need to discover available custom attributes that can be attached to merchant profiles.
>
> #### Input Parameters
>
> **limit** `integer`
>
> The maximum number of results to return in a single paged response. This limit is advisory. The response might contain more or fewer results. The minimum value is 1 and the maximum value is 100. The default value is 20. For more information, see Pagination.
>
> **cursor** `string`
>
> The cursor returned in the paged response from the previous call to this endpoint. Provide this cursor to retrieve the next page of results for your original request. For more information, see Pagination.
>
> **visibility\_filter** `string`
>
> Filters the `CustomAttributeDefinition` results by their `visibility` values.
>
> #### Output
>
> **data** `string` *required*
>
> Data from the action execution
>
> **error** `string`
>
> Error if any occurred during the execution of the action
>
> **successful** `boolean` *required*
>
> Whether or not the action execution was successful or not

> [accordion] List Merchants
>
> **Slug:** `SQUARE_LIST_MERCHANTS`
>
> Tool to retrieve merchant account information associated with the access token. Use when you need to get merchant profile details including business name, country, currency, and main location ID.
>
> #### Input Parameters
>
> **cursor** `integer`
>
> The cursor generated by the previous response. Provide this cursor to retrieve the next set of results.
>
> #### Output
>
> **data** `string` *required*
>
> Data from the action execution
>
> **error** `string`
>
> Error if any occurred during the execution of the action
>
> **successful** `boolean` *required*
>
> Whether or not the action execution was successful or not

> [accordion] List Merchants Custom Attributes
>
> **Slug:** `SQUARE_LIST_MERCHANTS_CUSTOM_ATTRIBUTES`
>
> Lists a page of custom attributes for a specific Square merchant. Use the returned cursor to retrieve further pages; results can be filtered by visibility.
>
> #### Input Parameters
>
> **limit** `integer`
>
> The maximum number of results to return in a single paged response. This limit is advisory. The response might contain more or fewer results. The minimum value is 1 and the maximum value is 100. The default value is 20. For more information, see Pagination.
>
> **cursor** `string`
>
> The cursor returned in the paged response from the previous call to this endpoint. Provide this cursor to retrieve the next page of results for your original request. For more information, see Pagination.
>
> **merchant\_id** `string` *required*
>
> The ID of the target merchant. This is the unique Square-assigned ID that identifies the merchant.
>
> **with\_definitions** `boolean`
>
> Indicates whether to return the custom attribute definition in the definition field of each custom attribute. Set this parameter to true to get the name and description of each custom attribute, information about the data type, or other definition details. The default value is false.
>
> **visibility\_filter** `string`
>
> Filters the CustomAttributeDefinition results by their visibility values. Possible values include VISIBILITY\_READ\_ONLY, VISIBILITY\_READ\_WRITE\_VALUES, and VISIBILITY\_HIDDEN.
>
> #### Output
>
> **data** `string` *required*
>
> Data from the action execution
>
> **error** `string`
>
> Error if any occurred during the execution of the action
>
> **successful** `boolean` *required*
>
> Whether or not the action execution was successful or not

> [accordion] List Payments
>
> **Slug:** `SQUARE_LIST_PAYMENTS`
>
> Tool to list payments by location and time range to enable reconciliation and net sales reporting from Square POS. Use when you need to retrieve payment records for reporting, analytics, or reconciliation purposes.
>
> #### Input Parameters
>
> **limit** `integer`
>
> Maximum number of payments to return per page (1-100). Defaults to 100.
>
> **total** `integer`
>
> Filter by exact amount in the smallest currency unit (e.g., cents for USD) in total\_money for a payment.
>
> **cursor** `string`
>
> Pagination cursor returned by a previous call to this endpoint. Use to fetch the next page of results.
>
> **last\_4** `string`
>
> Filter by the last four digits of a payment card.
>
> **end\_time** `string`
>
> Indicates the end of the time range to retrieve payments for, in RFC 3339 format (e.g., '2024-12-31T23:59:59Z'). Defaults to current time if not provided.
>
> **begin\_time** `string`
>
> Indicates the start of the time range to retrieve payments for, in RFC 3339 format (e.g., '2024-01-01T00:00:00Z'). Defaults to one year prior to current time if not provided.
>
> **card\_brand** `string`
>
> Filter by brand of the payment card (e.g., 'VISA', 'MASTERCARD', 'AMEX').
>
> **sort\_field** `string`
>
> Field to use for sorting results (e.g., 'CREATED\_AT'). Defaults to CREATED\_AT.
>
> **sort\_order** `string`
>
> Sort direction for results: 'ASC' (oldest first) or 'DESC' (newest first). Defaults to DESC.
>
> **location\_id** `string`
>
> Limit results to the location supplied. If not provided, defaults to the main location.
>
> **offline\_end\_time** `string`
>
> End of the time range for offline payments, in RFC 3339 format.
>
> **is\_offline\_payment** `boolean`
>
> Whether the payment was taken offline or not.
>
> **offline\_begin\_time** `string`
>
> Start of the time range for offline payments, in RFC 3339 format.
>
> **updated\_at\_end\_time** `string`
>
> End of the time range to retrieve payments for based on updated\_at field, in RFC 3339 format.
>
> **updated\_at\_begin\_time** `string`
>
> Start of the time range to retrieve payments for based on updated\_at field, in RFC 3339 format.
>
> #### Output
>
> **data** `string` *required*
>
> Data from the action execution
>
> **error** `string`
>
> Error if any occurred during the execution of the action
>
> **successful** `boolean` *required*
>
> Whether or not the action execution was successful or not

> [accordion] List Subscriptions
>
> **Slug:** `SQUARE_LIST_SUBSCRIPTIONS`
>
> Tool to search and list Square customer billing subscriptions. Use this action when you need to retrieve subscription information for customers, filter subscriptions by location, or view all active subscriptions. Results are ordered chronologically by subscription creation date.
>
> #### Input Parameters
>
> **limit** `integer`
>
> Maximum number of results to return per page (minimum: 1). Default: 25.
>
> **query** `object`
>
> Query parameters for filtering subscriptions.
>
> **cursor** `string`
>
> Pagination cursor returned by a previous call. Use to retrieve the next set of results.
>
> **include** `array`
>
> Related information to include in the response. This is a Beta feature; currently supports 'actions' value to include scheduled subscription actions.
>
> #### Output
>
> **data** `string` *required*
>
> Data from the action execution
>
> **error** `string`
>
> Error if any occurred during the execution of the action
>
> **successful** `boolean` *required*
>
> Whether or not the action execution was successful or not

> [accordion] List Webhook Event Types
>
> **Slug:** `SQUARE_LIST_WEBHOOK_EVENT_TYPES`
>
> Tool to list available webhook event types. Use when you need to discover event types before creating or updating a webhook subscription.
>
> #### Input Parameters
>
> **api\_version** `string`
>
> Overrides the application default API version (YYYY-MM-DD) for listing event types.
>
> #### Output
>
> **data** `string` *required*
>
> Data from the action execution
>
> **error** `string`
>
> Error if any occurred during the execution of the action
>
> **successful** `boolean` *required*
>
> Whether or not the action execution was successful or not

> [accordion] List Webhook Subscriptions
>
> **Slug:** `SQUARE_LIST_WEBHOOK_SUBSCRIPTIONS`
>
> List all webhook subscriptions owned by your application. Returns webhook subscriptions with their event types, notification URLs, and status. Supports filtering by enabled/disabled status, sorting by creation date, and pagination for large result sets. Note: Webhook subscriptions are application-level resources and require personal access token authentication (not OAuth tokens).
>
> #### Input Parameters
>
> **limit** `integer`
>
> Maximum number of subscriptions to return (1-100). Defaults to Square's default if unset.
>
> **cursor** `string`
>
> Pagination cursor from a previous call; use to fetch the next page.
>
> **sort\_order** `string`
>
> Sort order by creation time. Allowed values: 'ASC' or 'DESC'.
>
> **include\_disabled** `boolean`
>
> If true, include disabled subscriptions in the response. Defaults to false.
>
> #### Output
>
> **data** `string` *required*
>
> Data from the action execution
>
> **error** `string`
>
> Error if any occurred during the execution of the action
>
> **successful** `boolean` *required*
>
> Whether or not the action execution was successful or not

> [accordion] Pay Order
>
> **Slug:** `SQUARE_PAY_ORDER`
>
> Pays an existing Square order by processing approved payments and completing the transaction. Use this action when you need to finalize payment on an order that has already been created and has associated approved payments. The total amount of the payment\_ids provided must equal the order total, and upon success, the order state transitions to COMPLETED. Important: The payments referenced in payment\_ids must be in APPROVED status and must have been created with a reference to this order\_id. For orders with a zero total, you can pass an empty payment\_ids array or omit it entirely. Using the idempotency\_key prevents duplicate payment processing if the request is retried. Required permissions: ORDERS\_WRITE, PAYMENTS\_WRITE
>
> #### Input Parameters
>
> **order\_id** `string` *required*
>
> The unique Square-generated ID of the order to pay. This is typically a long alphanumeric string (e.g., 'CAISENgvlJ6jLWAzERDzjyHVybY'). You can obtain order IDs from the Search Orders endpoint or from webhook notifications.
>
> **payment\_ids** `array`
>
> Identifiers of approved payments to collect. The total of all listed payments must equal the order total. These payments must have been created with reference to this order and be in APPROVED status. For orders with zero total, you may pass an empty array.
>
> **order\_version** `integer`
>
> The version of the order to pay. If not provided, the latest version is used. Use this for optimistic concurrency control to ensure you're paying the expected version of the order.
>
> **idempotency\_key** `string` *required*
>
> A unique key to ensure idempotency and prevent duplicate payments. Generate a new unique key per payment request. This is critical for preventing accidental double-charging.
>
> #### Output
>
> **data** `string` *required*
>
> Data from the action execution
>
> **error** `string`
>
> Error if any occurred during the execution of the action
>
> **successful** `boolean` *required*
>
> Whether or not the action execution was successful or not

> [accordion] Remove Group From Customer
>
> **Slug:** `SQUARE_REMOVE_GROUP_FROM_CUSTOMER`
>
> Removes a customer from a customer group. Use this when you need to disassociate a customer from a specific group. Once removed, the customer will no longer be part of the group and won't receive group-specific benefits or targeting.
>
> #### Input Parameters
>
> **group\_id** `string` *required*
>
> The ID of the customer group to remove the customer from.
>
> **customer\_id** `string` *required*
>
> The ID of the customer to remove from the group.
>
> #### Output
>
> **data** `string` *required*
>
> Data from the action execution
>
> **error** `string`
>
> Error if any occurred during the execution of the action
>
> **successful** `boolean` *required*
>
> Whether or not the action execution was successful or not

> [accordion] Retrieve Bulk Customers
>
> **Slug:** `SQUARE_RETRIEVE_BULK_CUSTOMERS`
>
> Tool to retrieve multiple customer profiles in a single request. Use when you need to efficiently fetch up to 100 customer profiles by their IDs.
>
> #### Input Parameters
>
> **customer\_ids** `array` *required*
>
> The IDs of the customer profiles to retrieve. Must contain between 1 and 100 customer IDs. Provide the Square-assigned unique identifiers for each customer you want to retrieve.
>
> #### Output
>
> **data** `string` *required*
>
> Data from the action execution
>
> **error** `string`
>
> Error if any occurred during the execution of the action
>
> **successful** `boolean` *required*
>
> Whether or not the action execution was successful or not

> [accordion] Retrieve Channel
>
> **Slug:** `SQUARE_RETRIEVE_CHANNEL`
>
> Retrieve a Square channel by its ID. Channels represent different distribution points for catalog content, including physical locations and online platforms. Use this to get detailed information about a specific channel, including its status, associated references, and metadata.
>
> #### Input Parameters
>
> **channel\_id** `string` *required*
>
> The unique Square-generated ID of the channel to retrieve. This is typically an alphanumeric string starting with 'CH\_' (e.g., 'CH\_6RMv8wKc6TGsx9yuIG1eIUxR2ZKkGBeBuirfYRlQuYC').
>
> #### Output
>
> **data** `string` *required*
>
> Data from the action execution
>
> **error** `string`
>
> Error if any occurred during the execution of the action
>
> **successful** `boolean` *required*
>
> Whether or not the action execution was successful or not

> [accordion] Bulk Retrieve Channels
>
> **Slug:** `SQUARE_RETRIEVE_CHANNELS_BULK`
>
> Tool to bulk retrieve multiple Square channels by their IDs in a single request. Use when you need to fetch specific channels by their unique identifiers rather than listing all channels.
>
> #### Input Parameters
>
> **channel\_ids** `array` *required*
>
> Array of channel IDs to retrieve in bulk. Each ID uniquely identifies a channel to fetch.
>
> #### Output
>
> **data** `string` *required*
>
> Data from the action execution
>
> **error** `string`
>
> Error if any occurred during the execution of the action
>
> **successful** `boolean` *required*
>
> Whether or not the action execution was successful or not

> [accordion] Retrieve Customer
>
> **Slug:** `SQUARE_RETRIEVE_CUSTOMER`
>
> Tool to retrieve detailed information about a specific Square customer by ID. Use when you need to fetch customer profile data including contact information, preferences, and group memberships.
>
> #### Input Parameters
>
> **customer\_id** `string` *required*
>
> The ID of the customer to retrieve. This is the unique Square-generated customer identifier.
>
> #### Output
>
> **data** `string` *required*
>
> Data from the action execution
>
> **error** `string`
>
> Error if any occurred during the execution of the action
>
> **successful** `boolean` *required*
>
> Whether or not the action execution was successful or not

> [accordion] Retrieve Customer Group
>
> **Slug:** `SQUARE_RETRIEVE_CUSTOMER_GROUP`
>
> Tool to retrieve a specific Square customer group by ID. Use when you need to fetch details about a customer group including its name and timestamps.
>
> #### Input Parameters
>
> **group\_id** `string` *required*
>
> The ID of the customer group to retrieve. This is a unique Square-assigned identifier.
>
> #### Output
>
> **data** `string` *required*
>
> Data from the action execution
>
> **error** `string`
>
> Error if any occurred during the execution of the action
>
> **successful** `boolean` *required*
>
> Whether or not the action execution was successful or not

> [accordion] Retrieve Customer Segment
>
> **Slug:** `SQUARE_RETRIEVE_CUSTOMER_SEGMENT`
>
> Tool to retrieve a specific customer segment by its ID. Use when you need to get details about a customer segment including its name and timestamps.
>
> #### Input Parameters
>
> **segment\_id** `string` *required*
>
> The Square-issued ID of the customer segment to retrieve. This is a unique identifier for the segment (e.g., 'MLBN7K732KMAD.CARDS\_ON\_FILE'). You can obtain segment IDs from the List Customer Segments endpoint.
>
> #### Output
>
> **data** `string` *required*
>
> Data from the action execution
>
> **error** `string`
>
> Error if any occurred during the execution of the action
>
> **successful** `boolean` *required*
>
> Whether or not the action execution was successful or not

> [accordion] Retrieve Dispute
>
> **Slug:** `SQUARE_RETRIEVE_DISPUTE`
>
> Tool to retrieve a Square dispute by ID. Endpoint: GET /v2/disputes/\{dispute\_id}
>
> #### Input Parameters
>
> **dispute\_id** `string` *required*
>
> ID of the dispute to retrieve.
>
> #### Output
>
> **data** `string` *required*
>
> Data from the action execution
>
> **error** `string`
>
> Error if any occurred during the execution of the action
>
> **successful** `boolean` *required*
>
> Whether or not the action execution was successful or not

> [accordion] Retrieve Inventory Changes
>
> **Slug:** `SQUARE_RETRIEVE_INVENTORY_CHANGES`
>
> Retrieves physical counts and inventory adjustments for a catalog object at selected locations, or all locations if none are specified. Results are paginated newest first, supporting inventory history review and reconciliation; INVENTORY\_READ permission is required. DEPRECATED: Square retired this endpoint; use BatchRetrieveInventoryChanges with a single catalog object ID instead.
>
> #### Input Parameters
>
> **cursor** `string`
>
> A pagination cursor returned by a previous call to this endpoint. Provide this to retrieve the next set of results for the original query.
>
> **location\_ids** `string`
>
> The Location IDs to look up as a comma-separated list. An empty value queries all locations.
>
> **catalog\_object\_id** `string` *required*
>
> The Square-generated ID of the CatalogObject to retrieve inventory changes for. This is typically an ITEM\_VARIATION ID.
>
> #### Output
>
> **data** `string` *required*
>
> Data from the action execution
>
> **error** `string`
>
> Error if any occurred during the execution of the action
>
> **successful** `boolean` *required*
>
> Whether or not the action execution was successful or not

> [accordion] Batch Retrieve Inventory Counts
>
> **Slug:** `SQUARE_RETRIEVE_INVENTORY_COUNTS_BATCH`
>
> Retrieve inventory counts for multiple catalog objects and locations in a single batch request. Filter by catalog objects, locations, states, or an updated-after timestamp for inventory sync and reporting.
>
> #### Input Parameters
>
> **limit** `integer`
>
> Maximum number of inventory count records to return per page. Must be between 1 and 1000. Defaults to 25.
>
> **cursor** `string`
>
> Pagination cursor returned by a previous call to this endpoint. Provide this to retrieve the next page of results.
>
> **states** `array`
>
> Filter results by inventory states. Provide one or more inventory states to filter by. Note: NONE, SOLD, and UNLINKED\_RETURN states are ignored by this filter.
>
> **location\_ids** `array`
>
> Filter results by location IDs. Provide Square-assigned location IDs to retrieve inventory counts for specific locations only. If not provided, returns counts for all locations.
>
> **updated\_after** `string`
>
> Filter to return inventory counts updated after this timestamp, in RFC 3339 format (e.g., '2024-01-01T00:00:00Z'). Useful for syncing inventory changes since a specific time.
>
> **catalog\_object\_ids** `array`
>
> Filter results by catalog object IDs. Provide Square-assigned IDs for the catalog objects (item variations or items) you want to retrieve inventory counts for. Maximum 1000 IDs.
>
> #### Output
>
> **data** `string` *required*
>
> Data from the action execution
>
> **error** `string`
>
> Error if any occurred during the execution of the action
>
> **successful** `boolean` *required*
>
> Whether or not the action execution was successful or not

> [accordion] Retrieve Location
>
> **Slug:** `SQUARE_RETRIEVE_LOCATION`
>
> Tool to retrieve detailed information about a specific Square location by ID. Use when you need to get complete details about a specific location, including address, business hours, contact information, and capabilities.
>
> #### Input Parameters
>
> **location\_id** `string` *required*
>
> The ID of the location to retrieve. Specify the string 'main' to return the main location, or provide a specific location ID obtained from the List Locations endpoint.
>
> #### Output
>
> **data** `string` *required*
>
> Data from the action execution
>
> **error** `string`
>
> Error if any occurred during the execution of the action
>
> **successful** `boolean` *required*
>
> Whether or not the action execution was successful or not

> [accordion] Retrieve Location Custom Attribute
>
> **Slug:** `SQUARE_RETRIEVE_LOCATION_CUSTOM_ATTRIBUTE`
>
> Retrieves a custom attribute associated with a location in Square. Use this when you need to access specific custom data associated with a location, such as metadata, external IDs, or other merchant-defined information.
>
> #### Input Parameters
>
> **key** `string` *required*
>
> The key of the custom attribute to retrieve. This key must match the key of a custom attribute definition in the Square seller account. If the requesting application is not the definition owner, you must use the qualified key.
>
> **version** `integer`
>
> The current version of the custom attribute, which is used for strongly consistent reads to guarantee that you receive the most up-to-date data. When included in the request, Square returns the specified version or a higher version if one exists. If the specified version is higher than the current version, Square returns a BAD\_REQUEST error.
>
> **location\_id** `string` *required*
>
> The ID of the target location. You can obtain this from the List Locations endpoint.
>
> **with\_definition** `boolean`
>
> Indicates whether to return the custom attribute definition in the definition field of the custom attribute. Set this parameter to true to get the name and description of the custom attribute, information about the data type, or other definition details. The default value is false.
>
> #### Output
>
> **data** `string` *required*
>
> Data from the action execution
>
> **error** `string`
>
> Error if any occurred during the execution of the action
>
> **successful** `boolean` *required*
>
> Whether or not the action execution was successful or not

> [accordion] Retrieve Location Custom Attribute Definition
>
> **Slug:** `SQUARE_RETRIEVE_LOCATION_CUSTOM_ATTRIBUTE_DEFINITION`
>
> Tool to retrieve a location-related custom attribute definition. Use when you need to get the schema, visibility, and metadata for a custom attribute associated with locations.
>
> #### Input Parameters
>
> **key** `string` *required*
>
> The key of the custom attribute definition to retrieve. If the requesting application is not the definition owner, you must use the qualified key.
>
> **version** `integer`
>
> The current version of the custom attribute definition, which is used for strongly consistent reads to guarantee that you receive the most up-to-date data. When included in the request, Square returns the specified version or a higher version if one exists. If the specified version is higher than the current version, Square returns a BAD\_REQUEST error.
>
> #### Output
>
> **data** `string` *required*
>
> Data from the action execution
>
> **error** `string`
>
> Error if any occurred during the execution of the action
>
> **successful** `boolean` *required*
>
> Whether or not the action execution was successful or not

> [accordion] Retrieve Merchant Custom Attribute
>
> **Slug:** `SQUARE_RETRIEVE_MERCHANT_CUSTOM_ATTRIBUTE`
>
> Retrieves a custom attribute associated with a merchant in Square. Use this when you need to access specific custom data associated with a merchant, such as metadata, external IDs, or other merchant-defined information.
>
> #### Input Parameters
>
> **key** `string` *required*
>
> The key of the custom attribute to retrieve. This key must match the key of a custom attribute definition in the Square seller account. If the requesting application is not the definition owner, you must use the qualified key.
>
> **version** `integer`
>
> The current version of the custom attribute, which is used for strongly consistent reads to guarantee that you receive the most up-to-date data. When included in the request, Square returns the specified version or a higher version if one exists. If the specified version is higher than the current version, Square returns a BAD\_REQUEST error.
>
> **merchant\_id** `string` *required*
>
> The ID of the target merchant. This is the unique Square-assigned ID that identifies the merchant.
>
> **with\_definition** `boolean`
>
> Indicates whether to return the custom attribute definition in the definition field of the custom attribute. Set this parameter to true to get the name and description of the custom attribute, information about the data type, or other definition details. The default value is false.
>
> #### Output
>
> **data** `string` *required*
>
> Data from the action execution
>
> **error** `string`
>
> Error if any occurred during the execution of the action
>
> **successful** `boolean` *required*
>
> Whether or not the action execution was successful or not

> [accordion] Retrieve Merchant Custom Attribute Definition
>
> **Slug:** `SQUARE_RETRIEVE_MERCHANT_CUSTOM_ATTRIBUTE_DEFINITION`
>
> Tool to retrieve a merchant-related custom attribute definition from Square. Use when you need to fetch the schema, visibility, or metadata of a specific custom attribute definition by its key.
>
> #### Input Parameters
>
> **key** `string` *required*
>
> The key of the custom attribute definition to retrieve. If the requesting application is not the definition owner, you must use the qualified key.
>
> **version** `integer`
>
> The current version of the custom attribute definition, which is used for strongly consistent reads to guarantee that you receive the most up-to-date data. When included in the request, Square returns the specified version or a higher version if one exists. If the specified version is higher than the current version, Square returns a BAD\_REQUEST error.
>
> #### Output
>
> **data** `string` *required*
>
> Data from the action execution
>
> **error** `string`
>
> Error if any occurred during the execution of the action
>
> **successful** `boolean` *required*
>
> Whether or not the action execution was successful or not

> [accordion] Retrieve Merchants
>
> **Slug:** `SQUARE_RETRIEVE_MERCHANTS`
>
> Tool to retrieve merchant information including status, main location details, and capabilities using Square's GraphQL API. Use when you need to fetch merchant profile data for specific merchant IDs.
>
> #### Input Parameters
>
> **merchant\_ids** `array` *required*
>
> List of merchant IDs to retrieve information for. Each ID must be a valid Square merchant identifier.
>
> #### Output
>
> **data** `string` *required*
>
> Data from the action execution
>
> **error** `string`
>
> Error if any occurred during the execution of the action
>
> **successful** `boolean` *required*
>
> Whether or not the action execution was successful or not

> [accordion] Retrieve Order
>
> **Slug:** `SQUARE_RETRIEVE_ORDER`
>
> Retrieves detailed information about a specific Square order by its ID. Use this tool when you need to: - Fetch complete details of an order including line items, pricing, taxes, and discounts - Check order status and fulfillment information - View payment tenders and refunds associated with an order - Access order metadata and timestamps Requires: ORDERS\_READ permission scope.
>
> #### Input Parameters
>
> **order\_id** `string` *required*
>
> The unique Square-generated ID of the order to retrieve. This is typically a long alphanumeric string (e.g., 'CAISENgvlJ6jLWAzERDzjyHVybY'). You can obtain order IDs from the Search Orders endpoint or from webhook notifications.
>
> #### Output
>
> **data** `string` *required*
>
> Data from the action execution
>
> **error** `string`
>
> Error if any occurred during the execution of the action
>
> **successful** `boolean` *required*
>
> Whether or not the action execution was successful or not

> [accordion] Retrieve Payment Link
>
> **Slug:** `SQUARE_RETRIEVE_PAYMENT_LINK`
>
> Retrieves a Square-hosted payment link by ID. Returns complete payment link details including the checkout URL, associated order ID, checkout options, pre-populated buyer data, and creation timestamps. Requires ORDERS\_READ permission.
>
> #### Input Parameters
>
> **id** `string` *required*
>
> The Square-assigned ID of the payment link to retrieve.
>
> #### Output
>
> **data** `string` *required*
>
> Data from the action execution
>
> **error** `string`
>
> Error if any occurred during the execution of the action
>
> **successful** `boolean` *required*
>
> Whether or not the action execution was successful or not

> [accordion] Retrieve Token Status
>
> **Slug:** `SQUARE_RETRIEVE_TOKEN_STATUS`
>
> Tool to retrieve information about an OAuth access token or personal access token. Use when you need to verify token validity, check token expiration, inspect authorized scopes, or validate merchant association before making API calls.
>
> #### Output
>
> **data** `string` *required*
>
> Data from the action execution
>
> **error** `string`
>
> Error if any occurred during the execution of the action
>
> **successful** `boolean` *required*
>
> Whether or not the action execution was successful or not

> [accordion] Retrieve Webhook Subscription
>
> **Slug:** `SQUARE_RETRIEVE_WEBHOOK_SUBSCRIPTION`
>
> Retrieve a Square webhook subscription by its ID. Returns subscription details including name, enabled status, event types, notification URL, and signature key. Note: Requires personal access token authentication with DEVELOPER\_APPLICATION\_WEBHOOKS\_READ scope (OAuth tokens are not supported for webhook subscriptions).
>
> #### Input Parameters
>
> **subscription\_id** `string` *required*
>
> ID of the webhook subscription to retrieve. Square webhook subscription IDs typically start with 'wbhk\_'.
>
> #### Output
>
> **data** `string` *required*
>
> Data from the action execution
>
> **error** `string`
>
> Error if any occurred during the execution of the action
>
> **successful** `boolean` *required*
>
> Whether or not the action execution was successful or not

> [accordion] Search Booking Availability
>
> **Slug:** `SQUARE_SEARCH_BOOKING_AVAILABILITY`
>
> Searches for available appointment time slots for booking services at Square locations. Use this action when you need to find open booking slots for a specific service, location, and time range. This is essential for scheduling appointments as it shows which times are available for booking based on service requirements and team member availability.
>
> #### Input Parameters
>
> **query** `object` *required*
>
> Query object containing filter criteria for the availability search. Specifies the time range, location, and service details.
>
> #### Output
>
> **data** `string` *required*
>
> Data from the action execution
>
> **error** `string`
>
> Error if any occurred during the execution of the action
>
> **successful** `boolean` *required*
>
> Whether or not the action execution was successful or not

> [accordion] Search Catalog Objects
>
> **Slug:** `SQUARE_SEARCH_CATALOG_OBJECTS`
>
> Searches for catalog objects (items, categories, taxes, discounts, etc.) in the Square catalog. Use this action when you need to find specific catalog items by name, SKU, category, or other attributes, or when retrieving the entire catalog with filtering and sorting options. Supports full-text search, exact matching, prefix matching, range queries, and complex combinations of filters.
>
> #### Input Parameters
>
> **limit** `integer`
>
> Maximum number of results to return per page. This is advisory only; Square may return more or fewer results. Maximum: 1000. Default: 25.
>
> **query** `object`
>
> Composite query for filtering and sorting catalog objects.
>
> **cursor** `string`
>
> Pagination cursor returned by a previous call. Use to retrieve the next set of results.
>
> **begin\_time** `string`
>
> Return objects modified after this RFC 3339 timestamp (exclusive). Use for incremental sync.
>
> **object\_types** `array`
>
> The desired catalog object types to include in the result. If not specified, all object types may be returned. Common types include: ITEM, ITEM\_VARIATION, CATEGORY, DISCOUNT, TAX, MODIFIER, MODIFIER\_LIST, IMAGE, MEASUREMENT\_UNIT, ITEM\_OPTION, PRICING\_RULE, PRODUCT\_SET, TIME\_PERIOD, SUBSCRIPTION\_PLAN, CUSTOM\_ATTRIBUTE\_DEFINITION, QUICK\_AMOUNT\_SETTINGS.
>
> **include\_deleted\_objects** `boolean`
>
> If true, returns deleted objects with is\_deleted set to true. Cannot be true simultaneously with include\_category\_path\_to\_root. Default: false.
>
> **include\_related\_objects** `boolean`
>
> If true, includes related objects referenced by the result objects (one level deep). For example, if an ITEM is returned, its variations are included. Default: false.
>
> **include\_category\_path\_to\_root** `boolean`
>
> If true, includes the path\_to\_root field in category objects showing the hierarchy from root to the category. Cannot be true with include\_deleted\_objects. Default: false.
>
> #### Output
>
> **data** `string` *required*
>
> Data from the action execution
>
> **error** `string`
>
> Error if any occurred during the execution of the action
>
> **successful** `boolean` *required*
>
> Whether or not the action execution was successful or not

> [accordion] Search Customers
>
> **Slug:** `SQUARE_SEARCH_CUSTOMERS`
>
> Tool to search customer profiles in Square Customer Directory. Use when you need to find customers by email, phone, creation date, or other filters. Returns paginated results with optional total count.
>
> #### Input Parameters
>
> **count** `boolean`
>
> Whether to return the total count of matching customers in the response. Default: false.
>
> **limit** `integer`
>
> Maximum number of results to return per page (1-100). Default: 100.
>
> **query** `object`
>
> Query parameters for filtering and sorting customers.
>
> **cursor** `string`
>
> Pagination cursor returned by a previous call. Use to retrieve the next set of results.
>
> #### Output
>
> **data** `string` *required*
>
> Data from the action execution
>
> **error** `string`
>
> Error if any occurred during the execution of the action
>
> **successful** `boolean` *required*
>
> Whether or not the action execution was successful or not

> [accordion] Search Orders
>
> **Slug:** `SQUARE_SEARCH_ORDERS`
>
> Tool to search orders across one or more Square locations with filters. Use when you need to find orders within a date range, by state, by customer, or other criteria. This is the primary way Square exposes 'list orders for a date range' functionality.
>
> #### Input Parameters
>
> **limit** `integer`
>
> Maximum number of results to return per page. Default: 500, Maximum: 1000.
>
> **query** `object`
>
> Query parameters for filtering and sorting orders.
>
> **cursor** `string`
>
> A pagination cursor returned by a previous call to this endpoint. Provide this cursor to retrieve the next set of results for your original query.
>
> **location\_ids** `array` *required*
>
> The location IDs for the orders to query. All locations must belong to the same merchant. Maximum: 10 location IDs.
>
> **return\_entries** `boolean`
>
> Controls the format of the search results. If true, returns OrderEntry objects (lightweight with just order\_id, location\_id, version). If false, returns complete Order objects with full details. Default: false.
>
> #### Output
>
> **data** `string` *required*
>
> Data from the action execution
>
> **error** `string`
>
> Error if any occurred during the execution of the action
>
> **successful** `boolean` *required*
>
> Whether or not the action execution was successful or not

> [accordion] Submit Dispute Evidence
>
> **Slug:** `SQUARE_SUBMIT_DISPUTE_EVIDENCE`
>
> Submits evidence for a dispute to the cardholder's bank. IMPORTANT: You must upload evidence FIRST using CreateDisputeEvidenceText or CreateDisputeEvidenceFile before calling this endpoint. Once evidence is submitted, it cannot be modified or removed. The dispute state will change to PROCESSING after successful submission. Use this when: (1) You have uploaded all evidence files/text, (2) The dispute is in EVIDENCE\_REQUIRED state, and (3) You are ready to finalize and send evidence to the bank before the due date.
>
> #### Input Parameters
>
> **dispute\_id** `string` *required*
>
> The ID of the dispute to submit evidence for. Get this from ListDisputes or RetrieveDispute endpoints. Must be a dispute in EVIDENCE\_REQUIRED or INQUIRY\_EVIDENCE\_REQUIRED state.
>
> #### Output
>
> **data** `string` *required*
>
> Data from the action execution
>
> **error** `string`
>
> Error if any occurred during the execution of the action
>
> **successful** `boolean` *required*
>
> Whether or not the action execution was successful or not

> [accordion] Test Webhook Subscription
>
> **Slug:** `SQUARE_TEST_WEBHOOK_SUBSCRIPTION`
>
> Tests a webhook subscription by sending a test event to the configured notification URL. Use this to verify that your webhook endpoint is correctly receiving and processing Square events. The response includes the HTTP status code returned by your endpoint and the test payload that was sent. Useful after creating or updating a subscription to confirm proper integration.
>
> #### Input Parameters
>
> **event\_type** `string`
>
> The event type to use for testing (e.g., 'payment.created', 'order.updated'). Must match one of the subscription's configured event\_types. If omitted, Square uses the first event type from the subscription's event\_types list.
>
> **subscription\_id** `string` *required*
>
> The ID of the webhook subscription to test. Obtain this from the List Webhook Subscriptions or Create Webhook Subscription endpoints.
>
> #### Output
>
> **data** `string` *required*
>
> Data from the action execution
>
> **error** `string`
>
> Error if any occurred during the execution of the action
>
> **successful** `boolean` *required*
>
> Whether or not the action execution was successful or not

> [accordion] Update Booking
>
> **Slug:** `SQUARE_UPDATE_BOOKING`
>
> Updates an existing Square booking with new appointment details, times, notes, or team members. Use when you need to modify a booking's start time, change appointment segments, update customer or seller notes, or modify the location type. Requires the current booking version number for optimistic concurrency control - get this from a previous retrieve booking call. Seller must subscribe to Appointments Plus or Premium to use this action.
>
> #### Input Parameters
>
> **booking** `object` *required*
>
> The booking data to update. Must include version field for optimistic concurrency control.
>
> **booking\_id** `string` *required*
>
> The ID of the Booking object representing the to-be-updated booking.
>
> **idempotency\_key** `string`
>
> A unique key to ensure idempotency. Generate a new key per update request.
>
> #### Output
>
> **data** `string` *required*
>
> Data from the action execution
>
> **error** `string`
>
> Error if any occurred during the execution of the action
>
> **successful** `boolean` *required*
>
> Whether or not the action execution was successful or not

> [accordion] Update Customer
>
> **Slug:** `SQUARE_UPDATE_CUSTOMER`
>
> Updates an existing Square customer profile, including details such as name, email, address, or phone number. Supports sparse updates and an optional version for optimistic concurrency control; null values are omitted rather than sent to remove fields.
>
> #### Input Parameters
>
> **note** `string`
>
> A custom note associated with the customer profile.
>
> **address** `object`
>
> Physical address with sparse update support.
>
> **tax\_ids** `object`
>
> Tax ID for EU/UK sellers only.
>
> **version** `integer`
>
> Current customer profile version for optimistic concurrency control. Get this from a previous retrieve/search customer call.
>
> **birthday** `string`
>
> Birthday in date format: YYYY-MM-DD or MM-DD.
>
> **nickname** `string`
>
> A nickname for the customer profile. Max 100 characters.
>
> **given\_name** `string`
>
> The given name (first name) associated with the customer profile. Max 300 characters.
>
> **customer\_id** `string` *required*
>
> The ID of the customer to update.
>
> **family\_name** `string`
>
> The family name (last name) associated with the customer profile. Max 300 characters.
>
> **company\_name** `string`
>
> A business name associated with the customer profile. Max 500 characters.
>
> **phone\_number** `string`
>
> Phone number requiring 9-16 digits, optional + prefix, and country code.
>
> **reference\_id** `string`
>
> An optional second ID used to associate the customer profile with an entity in another system. Max 100 characters.
>
> **email\_address** `string`
>
> The email address associated with the customer profile. Max 254 characters.
>
> #### Output
>
> **data** `string` *required*
>
> Data from the action execution
>
> **error** `string`
>
> Error if any occurred during the execution of the action
>
> **successful** `boolean` *required*
>
> Whether or not the action execution was successful or not

> [accordion] Update Customer Custom Attribute Definition
>
> **Slug:** `SQUARE_UPDATE_CUSTOMER_CUSTOM_ATTRIBUTE_DEFINITION`
>
> Tool to update a customer-related custom attribute definition in Square. Use when you need to modify the name, description, visibility, or schema of an existing custom attribute definition. Supports sparse updates: only include fields you want to change. Use the version parameter for optimistic concurrency control to prevent conflicting updates.
>
> #### Input Parameters
>
> **key** `string` *required*
>
> The key of the custom attribute definition to update.
>
> **name** `string`
>
> Updated display name for the custom attribute definition.
>
> **schema** `object`
>
> Updated schema definition for the custom attribute. Required when the attribute type is Selection. Use JSON schema format to define allowed values and constraints.
>
> **version** `integer`
>
> Current version number for optimistic concurrency control. When provided, the update only succeeds if this version matches the current version on the server. Retrieve the current version first using the retrieve or list endpoints.
>
> **visibility** `string`
>
> Updated visibility setting for the custom attribute. Valid values: VISIBILITY\_HIDDEN (only accessible by the owner), VISIBILITY\_READ\_ONLY (readable by others), VISIBILITY\_READ\_WRITE\_VALUES (values readable/writable by others).
>
> **description** `string`
>
> Updated description of the custom attribute definition.
>
> #### Output
>
> **data** `string` *required*
>
> Data from the action execution
>
> **error** `string`
>
> Error if any occurred during the execution of the action
>
> **successful** `boolean` *required*
>
> Whether or not the action execution was successful or not

> [accordion] Update Customer Group
>
> **Slug:** `SQUARE_UPDATE_CUSTOMER_GROUP`
>
> Updates the name of an existing Square customer group identified by its ID.
>
> #### Input Parameters
>
> **group** `object` *required*
>
> The CustomerGroup object including all the updates you want to make.
>
> **group\_id** `string` *required*
>
> The ID of the customer group to update. This is the unique identifier for the group that will be modified.
>
> #### Output
>
> **data** `string` *required*
>
> Data from the action execution
>
> **error** `string`
>
> Error if any occurred during the execution of the action
>
> **successful** `boolean` *required*
>
> Whether or not the action execution was successful or not

> [accordion] Bulk Update Customers
>
> **Slug:** `SQUARE_UPDATE_CUSTOMERS_BULK`
>
> Updates multiple Square customer profiles in a single batch, using customer IDs and the fields to update. An optional version supports optimistic concurrency control; null-valued fields are omitted from the request.
>
> #### Input Parameters
>
> **customers** `object` *required*
>
> Map of customer IDs to BulkUpdateCustomerData objects. Each key is a customer profile ID to update, and each value contains the updated customer data. Supports 1-100 individual update requests.
>
> #### Output
>
> **data** `string` *required*
>
> Data from the action execution
>
> **error** `string`
>
> Error if any occurred during the execution of the action
>
> **successful** `boolean` *required*
>
> Whether or not the action execution was successful or not

> [accordion] Update Location
>
> **Slug:** `SQUARE_UPDATE_LOCATION`
>
> Tool to update an existing business location in a Square account. Use when you need to modify location details like name, description, address, business hours, contact information, or social media profiles.
>
> #### Input Parameters
>
> **location** `object` *required*
>
> The location object with only the fields to update. All fields are optional.
>
> **location\_id** `string` *required*
>
> The ID of the location to update.
>
> #### Output
>
> **data** `string` *required*
>
> Data from the action execution
>
> **error** `string`
>
> Error if any occurred during the execution of the action
>
> **successful** `boolean` *required*
>
> Whether or not the action execution was successful or not

> [accordion] Update Location Custom Attribute Definition
>
> **Slug:** `SQUARE_UPDATE_LOCATION_CUSTOM_ATTRIBUTE_DEFINITION`
>
> Tool to update a location-related custom attribute definition in Square. Use when you need to modify the description, name, visibility, or schema of an existing location custom attribute definition.
>
> #### Input Parameters
>
> **key** `string` *required*
>
> The key of the custom attribute definition to update. This is the unique identifier for the custom attribute definition.
>
> **idempotency\_key** `string`
>
> A unique identifier to ensure idempotent request handling. If you retry a request with the same idempotency key, Square returns the same response without re-executing the update.
>
> **custom\_attribute\_definition** `object` *required*
>
> The custom attribute definition fields to update. Only the provided fields will be updated; omitted fields remain unchanged.
>
> #### Output
>
> **data** `string` *required*
>
> Data from the action execution
>
> **error** `string`
>
> Error if any occurred during the execution of the action
>
> **successful** `boolean` *required*
>
> Whether or not the action execution was successful or not

> [accordion] Update Merchant Custom Attribute Definition
>
> **Slug:** `SQUARE_UPDATE_MERCHANT_CUSTOM_ATTRIBUTE_DEFINITION`
>
> Tool to update a merchant-related custom attribute definition in Square. Use when you need to modify the description, name, visibility, or schema of an existing merchant custom attribute definition.
>
> #### Input Parameters
>
> **key** `string` *required*
>
> The key of the custom attribute definition to update. This is the unique identifier for the custom attribute definition.
>
> **idempotency\_key** `string`
>
> A unique identifier to ensure idempotent request handling. If you retry a request with the same idempotency key, Square returns the same response without re-executing the update.
>
> **custom\_attribute\_definition** `object` *required*
>
> The custom attribute definition fields to update. Only the provided fields will be updated; omitted fields remain unchanged.
>
> #### Output
>
> **data** `string` *required*
>
> Data from the action execution
>
> **error** `string`
>
> Error if any occurred during the execution of the action
>
> **successful** `boolean` *required*
>
> Whether or not the action execution was successful or not

> [accordion] Update Online Checkout Location Settings
>
> **Slug:** `SQUARE_UPDATE_ONLINE_CHECKOUT_LOCATION_SETTINGS`
>
> Tool to update location-level settings for Square online checkout. Use when you need to modify checkout configuration including customer notes, policies, branding, and tipping options for a specific location. Supports sparse updates: only include fields you want to change.
>
> #### Input Parameters
>
> **location\_id** `string` *required*
>
> The ID of the location for which to update online checkout settings. This is the unique Square-generated identifier for the location.
>
> **location\_settings** `object` *required*
>
> The location settings to update. Only include the fields that you want to change.
>
> #### Output
>
> **data** `string` *required*
>
> Data from the action execution
>
> **error** `string`
>
> Error if any occurred during the execution of the action
>
> **successful** `boolean` *required*
>
> Whether or not the action execution was successful or not

> [accordion] Update Order
>
> **Slug:** `SQUARE_UPDATE_ORDER`
>
> Updates an existing Square order by adding, modifying, or removing fields. Use for OPEN or DRAFT orders only (COMPLETED/CANCELED orders cannot be updated). Requires the current order version number for optimistic concurrency control - get this from retrieve/search order first. Supports sparse updates: only include fields you want to change. To remove fields, use fields\_to\_clear array with dot notation paths. Common use cases: adding line items, updating quantities, applying discounts/taxes, modifying fulfillment details, updating metadata.
>
> #### Input Parameters
>
> **order** `object`
>
> Partial Order object with fields to add/update. Use 'sparse' requests by including only changed fields. REQUIRED field: 'version' (integer) - current order version for optimistic concurrency control. Common fields: 'location\_id', 'line\_items', 'taxes', 'discounts', 'service\_charges', 'fulfillments', 'metadata'. Example: \{'version': 1, 'line\_items': \[...]} to update line items on version 1 of the order.
>
> **order\_id** `string` *required*
>
> ID of the order to update.
>
> **fields\_to\_clear** `array`
>
> List of dot-notation paths of fields to clear/delete in the order, e.g., \['line\_items\[uid].note']. Only used when removing fields.
>
> **idempotency\_key** `string`
>
> A unique key to ensure idempotency. Generate a new key per update.
>
> #### Output
>
> **data** `string` *required*
>
> Data from the action execution
>
> **error** `string`
>
> Error if any occurred during the execution of the action
>
> **successful** `boolean` *required*
>
> Whether or not the action execution was successful or not

> [accordion] Update Team Member
>
> **Slug:** `SQUARE_UPDATE_TEAM_MEMBER`
>
> Tool to update an existing Square team member's information. Use when you need to modify team member details like name, email, phone number, status, location assignments, or wage settings. Supports sparse updates: only include fields you want to change. To update wage\_setting.job\_assignments, provide the complete list of job assignments.
>
> #### Input Parameters
>
> **team\_member** `object` *required*
>
> The team member fields to update. Only include fields you want to change. Fields can be cleared using a null value.
>
> **team\_member\_id** `string` *required*
>
> The ID of the team member to update.
>
> #### Output
>
> **data** `string` *required*
>
> Data from the action execution
>
> **error** `string`
>
> Error if any occurred during the execution of the action
>
> **successful** `boolean` *required*
>
> Whether or not the action execution was successful or not

> [accordion] Update Webhook Subscription
>
> **Slug:** `SQUARE_UPDATE_WEBHOOK_SUBSCRIPTION`
>
> Tool to update a Square webhook subscription. Use when you need to modify subscription settings such as name, enabled state, event types, notification URL, or API version of an existing webhook subscription.
>
> #### Input Parameters
>
> **name** `string`
>
> New display name for the subscription (max 64 characters).
>
> **enabled** `boolean`
>
> Whether the subscription should be active.
>
> **api\_version** `string`
>
> Webhook API version to use for this subscription, e.g., '2021-06-16'.
>
> **event\_types** `array`
>
> List of event types to subscribe to, e.g., \['payment.created'].
>
> **subscription\_id** `string` *required*
>
> ID of the webhook subscription to update.
>
> **notification\_url** `string`
>
> Destination URL for webhook notifications.
>
> #### Output
>
> **data** `string` *required*
>
> Data from the action execution
>
> **error** `string`
>
> Error if any occurred during the execution of the action
>
> **successful** `boolean` *required*
>
> Whether or not the action execution was successful or not

> [accordion] Update Webhook Subscription Signature Key
>
> **Slug:** `SQUARE_UPDATE_WEBHOOK_SUBSCRIPTION_SIGNATURE_KEY`
>
> Tool to rotate the signature key for a webhook subscription. Use when you need to replace the current signature key for security purposes.
>
> #### Input Parameters
>
> **idempotency\_key** `string`
>
> A unique string to make this request idempotent. Max 45 characters.
>
> **subscription\_id** `string` *required*
>
> The ID of the webhook subscription to rotate the signature key for.
>
> #### Output
>
> **data** `string` *required*
>
> Data from the action execution
>
> **error** `string`
>
> Error if any occurred during the execution of the action
>
> **successful** `boolean` *required*
>
> Whether or not the action execution was successful or not

> [accordion] Upsert Catalog Object
>
> **Slug:** `SQUARE_UPSERT_CATALOG_OBJECT`
>
> Creates or updates a catalog object in the Square catalog. Use when you need to add or modify items, variations, categories, taxes, discounts, or other catalog entities in the merchant's inventory system. For new objects, use a temporary ID starting with '#' (e.g., '#new-item-1'). For updates, provide the existing object ID and current version number. The object type field determines which data field should be populated (e.g., type=ITEM requires item\_data). Only one update request is processed at a time per seller account.
>
> #### Input Parameters
>
> **object** `object` *required*
>
> The catalog object to create or update. For new objects, use a temporary ID starting with '#'. For updates, include the existing object ID and current version number.
>
> **idempotency\_key** `string` *required*
>
> A unique key to ensure idempotent request processing. Use a UUID or similar unique identifier to prevent duplicate object creation if the request is retried.
>
> #### Output
>
> **data** `string` *required*
>
> Data from the action execution
>
> **error** `string`
>
> Error if any occurred during the execution of the action
>
> **successful** `boolean` *required*
>
> Whether or not the action execution was successful or not

> [accordion] Batch Upsert Catalog Objects
>
> **Slug:** `SQUARE_UPSERT_CATALOG_OBJECTS_BATCH`
>
> Creates or updates multiple catalog objects in a single batch operation. Use this action when you need to efficiently manage catalog items, categories, discounts, taxes, or other catalog entities in bulk. Supports up to 10,000 objects across all batches, with each batch containing up to 1,000 objects. Use temporary IDs starting with # (e.g., #Tea) for new objects, and existing IDs to update objects. Each batch is processed atomically (all succeed or all fail). Use when you need to create multiple catalog items at once, update existing catalog objects in bulk, or set up an initial product catalog. The idempotency\_key ensures safe retries without duplicate creation. Required permissions: ITEMS\_WRITE
>
> #### Input Parameters
>
> **batches** `array` *required*
>
> List of batches containing catalog objects to create or update. Each batch can contain up to 1,000 objects. Maximum 10,000 total objects across all batches. Each batch is processed atomically.
>
> **idempotency\_key** `string` *required*
>
> A unique key to ensure idempotent request processing. Prevents duplicate object creation on retries. Must be 1-128 characters long.
>
> #### Output
>
> **data** `string` *required*
>
> Data from the action execution
>
> **error** `string`
>
> Error if any occurred during the execution of the action
>
> **successful** `boolean` *required*
>
> Whether or not the action execution was successful or not

> [accordion] Upsert Customer Custom Attribute
>
> **Slug:** `SQUARE_UPSERT_CUSTOMER_CUSTOM_ATTRIBUTE`
>
> Tool to create or update a custom attribute for a customer profile. Use when you need to store custom data on a customer record, such as preferences, loyalty tiers, or external system IDs. The custom attribute key must match an existing custom attribute definition in the Square account.
>
> #### Input Parameters
>
> **key** `string` *required*
>
> The key of the custom attribute to create or update. This key must match the key of a custom attribute definition in the Square seller account. If the requesting application is not the definition owner, you must use the qualified key (e.g., 'app\_id:attribute\_key').
>
> **customer\_id** `string` *required*
>
> The ID of the target customer profile. You can retrieve customer IDs from the List Customers endpoint or when creating a customer.
>
> **idempotency\_key** `string`
>
> Optional unique identifier for this request to ensure idempotency. Use this to prevent duplicate requests from creating multiple custom attributes if the request is retried.
>
> **custom\_attribute** `object` *required*
>
> The custom attribute object containing the value and optional version number.
>
> #### Output
>
> **data** `string` *required*
>
> Data from the action execution
>
> **error** `string`
>
> Error if any occurred during the execution of the action
>
> **successful** `boolean` *required*
>
> Whether or not the action execution was successful or not

> [accordion] Batch Upsert Customer Custom Attributes
>
> **Slug:** `SQUARE_UPSERT_CUSTOMER_CUSTOM_ATTRIBUTES_BATCH`
>
> Tool to create or update custom attributes for multiple customers in a single batch request. Use when you need to set custom data on customer profiles (e.g., preferences, loyalty tiers, tags). Supports 1 to 25 upsert operations per request. Before using this action, ensure the custom attribute definitions exist in your Square seller account. The custom attribute keys must match existing definitions. Use optimistic concurrency (version field) to prevent overwriting concurrent updates. Required permissions: CUSTOMERS\_WRITE
>
> #### Input Parameters
>
> **values** `object` *required*
>
> A map of 1 to 25 individual upsert requests. Each key in the map is a unique identifier (request ID) that you define to track the request. The value is an object containing the customer\_id and custom\_attribute to upsert. Request IDs are case-sensitive and must be unique within the batch.
>
> #### Output
>
> **data** `string` *required*
>
> Data from the action execution
>
> **error** `string`
>
> Error if any occurred during the execution of the action
>
> **successful** `boolean` *required*
>
> Whether or not the action execution was successful or not

> [accordion] Upsert Location Custom Attribute
>
> **Slug:** `SQUARE_UPSERT_LOCATION_CUSTOM_ATTRIBUTE`
>
> Tool to create or update a custom attribute for a location. Use when you need to store custom data on a location record, such as capacity limits, special features, or external system IDs. The custom attribute key must match an existing custom attribute definition in the Square account.
>
> #### Input Parameters
>
> **key** `string` *required*
>
> The key of the custom attribute to create or update. This key must match the key of a custom attribute definition in the Square seller account. If the requesting application is not the definition owner, you must use the qualified key (e.g., 'app\_id:attribute\_key').
>
> **location\_id** `string` *required*
>
> The ID of the target location. You can retrieve location IDs from the List Locations endpoint.
>
> **idempotency\_key** `string`
>
> Optional unique identifier for this request to ensure idempotency. Use this to prevent duplicate requests from creating multiple custom attributes if the request is retried. Maximum 45 characters.
>
> **custom\_attribute** `object` *required*
>
> The custom attribute object containing the value and optional version number.
>
> #### Output
>
> **data** `string` *required*
>
> Data from the action execution
>
> **error** `string`
>
> Error if any occurred during the execution of the action
>
> **successful** `boolean` *required*
>
> Whether or not the action execution was successful or not

> [accordion] Batch Upsert Locations Custom Attributes
>
> **Slug:** `SQUARE_UPSERT_LOCATIONS_CUSTOM_ATTRIBUTES_BATCH`
>
> Tool to create or update custom attributes for multiple locations in a single batch request. Use when you need to set custom data on location records (e.g., store ratings, delivery zones, tags). Supports 1 to 25 upsert operations per request. Before using this action, ensure the custom attribute definitions exist in your Square seller account. The custom attribute keys must match existing definitions. Use optimistic concurrency (version field) to prevent overwriting concurrent updates. Required permissions: MERCHANT\_PROFILE\_WRITE
>
> #### Input Parameters
>
> **values** `object` *required*
>
> A map of 1 to 25 individual upsert requests. Each key in the map is a unique identifier (request ID) that you define to track the request. The value is an object containing the location\_id and custom\_attribute to upsert. Request IDs are case-sensitive and must be unique within the batch.
>
> #### Output
>
> **data** `string` *required*
>
> Data from the action execution
>
> **error** `string`
>
> Error if any occurred during the execution of the action
>
> **successful** `boolean` *required*
>
> Whether or not the action execution was successful or not

> [accordion] Upsert Merchant Custom Attribute
>
> **Slug:** `SQUARE_UPSERT_MERCHANT_CUSTOM_ATTRIBUTE`
>
> Tool to create or update a custom attribute for a merchant profile. Use when you need to store custom data on a merchant record, such as business notes, external system IDs, or configuration values. The custom attribute key must match an existing custom attribute definition in the Square account.
>
> #### Input Parameters
>
> **key** `string` *required*
>
> The key of the custom attribute to create or update. This key must match the key of a custom attribute definition in the Square seller account. If the requesting application is not the definition owner, you must use the qualified key (e.g., 'app\_id:attribute\_key').
>
> **merchant\_id** `string` *required*
>
> The ID of the target merchant. You can obtain this from the List Merchants endpoint or from your Square dashboard.
>
> **idempotency\_key** `string`
>
> Optional unique identifier for this request to ensure idempotency. Use this to prevent duplicate requests from creating multiple custom attributes if the request is retried. Maximum 5 KB.
>
> **custom\_attribute** `object` *required*
>
> The custom attribute object containing the value and optional version number.
>
> #### Output
>
> **data** `string` *required*
>
> Data from the action execution
>
> **error** `string`
>
> Error if any occurred during the execution of the action
>
> **successful** `boolean` *required*
>
> Whether or not the action execution was successful or not

> [accordion] Batch Upsert Merchants Custom Attributes
>
> **Slug:** `SQUARE_UPSERT_MERCHANTS_CUSTOM_ATTRIBUTES_BATCH`
>
> Tool to create or update custom attributes for multiple merchants in a single batch request. Use when you need to set custom data on merchant profiles (e.g., business types, establishment dates, merchant categories). Supports 1 to 25 upsert operations per request. Before using this action, ensure the custom attribute definitions exist in your Square seller account. The custom attribute keys must match existing definitions. Use optimistic concurrency (version field) to prevent overwriting concurrent updates. Required permissions: MERCHANT\_PROFILE\_WRITE
>
> #### Input Parameters
>
> **values** `object` *required*
>
> A map of 1 to 25 individual upsert requests. Each key in the map is a unique identifier (request ID) that you define to track the request. The value is an object containing the merchant\_id and custom\_attribute to upsert. Request IDs are case-sensitive and must be unique within the batch.
>
> #### Output
>
> **data** `string` *required*
>
> Data from the action execution
>
> **error** `string`
>
> Error if any occurred during the execution of the action
>
> **successful** `boolean` *required*
>
> Whether or not the action execution was successful or not
