← Back to catalog

Other

Square Connect

auto-generated
swirls add squareup
actionPOSTv1.0.0

CreateBreakType

Creates a new `BreakType`. A `BreakType` is a template for creating `Break` objects. You must provide the following values in your request to this endpoint: - `location_id` - `break_name` - `expected_duration` - `is_paid` You can only have three `BreakType` instances per location. If you attempt to add a fourth `BreakType` for a location, an `INVALID_REQUEST_ERROR` "Exceeded limit of 3 breaks per location." is returned.

Source
actionPOSTv1.0.0

CreateCard

Adds a card on file to an existing merchant.

Source
actionPOSTv1.0.0

CreateCustomerGroup

Creates a new customer group for a business. The request must include the `name` value of the group.

Source
actionPOSTv1.0.0

CreateDeviceCode

Creates a DeviceCode that can be used to login to a Square Terminal device to enter the connected terminal mode.

Source
actionPOSTv1.0.0

CreateGiftCard

Creates a digital gift card or registers a physical (plastic) gift card. You must activate the gift card before it can be used for payment. For more information, see [Selling gift cards](https://developer.squareup.com/docs/gift-cards/using-gift-cards-api#selling-square-gift-cards).

Source
actionPOSTv1.0.0

CreateGiftCardActivity

Creates a gift card activity. For more information, see [GiftCardActivity](https://developer.squareup.com/docs/gift-cards/using-gift-cards-api#giftcardactivity) and [Using activated gift cards](https://developer.squareup.com/docs/gift-cards/using-gift-cards-api#using-activated-gift-cards).

Source
actionPOSTv1.0.0

CreateInvoice

Creates a draft [invoice](https://developer.squareup.com/reference/square_2021-08-18/objects/Invoice) for an order created using the Orders API. A draft invoice remains in your account and no action is taken. You must publish the invoice before Square can process it (send it to the customer's email address or charge the customer’s card on file).

Source
actionPOSTv1.0.0

CreateLoyaltyAccount

Creates a loyalty account. To create a loyalty account, you must provide the `program_id` and a `mapping` with the `phone_number` of the buyer.

Source
actionPOSTv1.0.0

CreateLoyaltyReward

Creates a loyalty reward. In the process, the endpoint does following: - Uses the `reward_tier_id` in the request to determine the number of points to lock for this reward. - If the request includes `order_id`, it adds the reward and related discount to the order. After a reward is created, the points are locked and not available for the buyer to redeem another reward.

Source
actionPOSTv1.0.0

CreateMobileAuthorizationCode

Generates code to authorize a mobile application to connect to a Square card reader Authorization codes are one-time-use and expire __60 minutes__ after being issued. __Important:__ The `Authorization` header you provide to this endpoint must have the following format: ``` Authorization: Bearer ACCESS_TOKEN ``` Replace `ACCESS_TOKEN` with a [valid production authorization credential](https://developer.squareup.com/docs/build-basics/access-tokens).

Source
actionPOSTv1.0.0

CreateOrder

Creates a new [order](https://developer.squareup.com/reference/square_2021-08-18/objects/Order) that can include information about products for purchase and settings to apply to the purchase. To pay for a created order, see [Pay for Orders](https://developer.squareup.com/docs/orders-api/pay-for-orders). You can modify open orders using the [UpdateOrder](https://developer.squareup.com/reference/square_2021-08-18/orders-api/update-order) endpoint.

Source
actionPOSTv1.0.0

CreateShift

Creates a new `Shift`. A `Shift` represents a complete workday for a single employee. You must provide the following values in your request to this endpoint: - `location_id` - `employee_id` - `start_at` An attempt to create a new `Shift` can result in a `BAD_REQUEST` error when: - The `status` of the new `Shift` is `OPEN` and the employee has another shift with an `OPEN` status. - The `start_at` date is in the future. - The `start_at` or `end_at` date overlaps another shift for the same employee. - The `Break` instances are set in the request and a break `start_at` is before the `Shift.start_at`, a break `end_at` is after the `Shift.end_at`, or both.

Source
actionPOSTv1.0.0

CreateTeamMember

Creates a single `TeamMember` object. The `TeamMember` object is returned on successful creates. You must provide the following values in your request to this endpoint: - `given_name` - `family_name` Learn about [Troubleshooting the Team API](https://developer.squareup.com/docs/team/troubleshooting#createteammember).

Source
actionPOSTv1.0.0

CreateTerminalCheckout

Creates a Terminal checkout request and sends it to the specified device to take a payment for the requested amount.

Source
actionPOSTv1.0.0

CreateTerminalRefund

Creates a request to refund an Interac payment completed on a Square Terminal.

Source
actionGETv1.0.0

GetBankAccount

Returns details of a [BankAccount](https://developer.squareup.com/reference/square_2021-08-18/objects/BankAccount) linked to a Square account.

Source
actionGETv1.0.0

GetBankAccountByV1Id

Returns details of a [BankAccount](https://developer.squareup.com/reference/square_2021-08-18/objects/BankAccount) identified by V1 bank account ID.

Source
actionGETv1.0.0

GetBreakType

Returns a single `BreakType` specified by `id`.

Source
actionGETv1.0.0

GetDeviceCode

Retrieves DeviceCode with the associated ID.

Source
actionGETv1.0.0

GetEmployeeWage

Returns a single `EmployeeWage` specified by `id`.

Source
actionGETv1.0.0

GetInvoice

Retrieves an invoice by invoice ID.

Source
actionGETv1.0.0

GetPayment

Retrieves details for a specific payment.

Source
actionGETv1.0.0

GetPaymentRefund

Retrieves a specific refund using the `refund_id`.

Source
actionGETv1.0.0

GetShift

Returns a single `Shift` specified by `id`.

Source
actionGETv1.0.0

GetTeamMemberWage

Returns a single `TeamMemberWage` specified by `id `.

Source
actionGETv1.0.0

GetTerminalCheckout

Retrieves a Terminal checkout request by `checkout_id`.

Source
actionGETv1.0.0

GetTerminalRefund

Retrieves an Interac Terminal refund object by ID.

Source
actionGETv1.0.0

ListBankAccounts

Returns a list of [BankAccount](https://developer.squareup.com/reference/square_2021-08-18/objects/BankAccount) objects linked to a Square account.

Source
actionGETv1.0.0

ListBreakTypes

Returns a paginated list of `BreakType` instances for a business.

Source
actionGETv1.0.0

ListCards

Retrieves a list of cards owned by the account making the request. A max of 25 cards will be returned.

Source
actionGETv1.0.0

ListCashDrawerShiftEvents

Provides a paginated list of events for a single cash drawer shift.

Source
actionGETv1.0.0

ListCatalog

Returns a list of [CatalogObject](https://developer.squareup.com/reference/square_2021-08-18/objects/CatalogObject)s that includes all objects of a set of desired types (for example, all [CatalogItem](https://developer.squareup.com/reference/square_2021-08-18/objects/CatalogItem) and [CatalogTax](https://developer.squareup.com/reference/square_2021-08-18/objects/CatalogTax) objects) in the catalog. The `types` parameter is specified as a comma-separated list of valid [CatalogObject](https://developer.squareup.com/reference/square_2021-08-18/objects/CatalogObject) types: `ITEM`, `ITEM_VARIATION`, `MODIFIER`, `MODIFIER_LIST`, `CATEGORY`, `DISCOUNT`, `TAX`, `IMAGE`. __Important:__ ListCatalog does not return deleted catalog items. To retrieve deleted catalog items, use [SearchCatalogObjects](https://developer.squareup.com/reference/square_2021-08-18/catalog-api/search-catalog-objects) and set the `include_deleted_objects` attribute value to `true`.

Source
actionGETv1.0.0

ListCustomerGroups

Retrieves the list of customer groups of a business.

Source
actionGETv1.0.0

ListCustomers

Lists customer profiles associated with a Square account. Under normal operating conditions, newly created or updated customer profiles become available for the listing operation in well under 30 seconds. Occasionally, propagation of the new or updated profiles can take closer to one minute or longer, especially during network incidents and outages.

Source
actionGETv1.0.0

ListCustomerSegments

Retrieves the list of customer segments of a business.

Source
actionGETv1.0.0

ListDeviceCodes

Lists all DeviceCodes associated with the merchant.

Source
actionGETv1.0.0

ListDisputeEvidence

Returns a list of evidence associated with a dispute.

Source
actionGETv1.0.0

ListDisputes

Returns a list of disputes associated with a particular account.

Source
actionGETv1.0.0

ListEmployeeRoles

Provides summary information for all of a business's employee roles.

Source
actionGETv1.0.0

ListEmployeeWages

Returns a paginated list of `EmployeeWage` instances for a business.

Source
actionGETv1.0.0

ListGiftCards

Lists all gift cards. You can specify optional filters to retrieve a subset of the gift cards.

Source
actionGETv1.0.0

ListInvoices

Returns a list of invoices for a given location. The response is paginated. If truncated, the response includes a `cursor` that you use in a subsequent request to retrieve the next set of invoices.

Source
actionGETv1.0.0

ListLocations

Provides information of all locations of a business. Many Square API endpoints require a `location_id` parameter. The `id` field of the [`Location`](https://developer.squareup.com/reference/square_2021-08-18/objects/Location) objects returned by this endpoint correspond to that `location_id` parameter.

Source
actionGETv1.0.0

ListLoyaltyPrograms

Returns a list of loyalty programs in the seller's account. Loyalty programs define how buyers can earn points and redeem points for rewards. Square sellers can have only one loyalty program, which is created and managed from the Seller Dashboard. For more information, see [Loyalty Program Overview](https://developer.squareup.com/docs/loyalty/overview). Replaced with [RetrieveLoyaltyProgram](https://developer.squareup.com/reference/square_2021-08-18/loyalty-api/retrieve-loyalty-program) when used with the keyword `main`.

Source
actionGETv1.0.0

ListMerchants

Returns `Merchant` information for a given access token. If you don't know a `Merchant` ID, you can use this endpoint to retrieve the merchant ID for an access token. You can specify your personal access token to get your own merchant information or specify an OAuth token to get the information for the merchant that granted you access. If you know the merchant ID, you can also use the [RetrieveMerchant](https://developer.squareup.com/reference/square_2021-08-18/merchants-api/retrieve-merchant) endpoint to get the merchant information.

Source
actionGETv1.0.0

ListOrders

Provides summary information for a merchant's online store orders.

Source
actionGETv1.0.0

ListRefunds

Lists refunds for one of a business's locations. In addition to full or partial tender refunds processed through Square APIs, refunds may result from itemized returns or exchanges through Square's Point of Sale applications. Refunds with a `status` of `PENDING` are not currently included in this endpoint's response. Max results per [page](https://developer.squareup.com/docs/working-with-apis/pagination): 50

Source
actionGETv1.0.0

ListSites

Lists the Square Online sites that belong to a seller. __Note:__ Square Online APIs are publicly available as part of an early access program. For more information, see [Early access program for Square Online APIs](https://developer.squareup.com/docs/online-api#early-access-program-for-square-online-apis).

Source
actionGETv1.0.0

ListSubscriptionEvents

Lists all events for a specific subscription. In the current implementation, only `START_SUBSCRIPTION` and `STOP_SUBSCRIPTION` (when the subscription was canceled) events are returned.

Source
actionGETv1.0.0

ListTeamMemberWages

Returns a paginated list of `TeamMemberWage` instances for a business.

Source
actionGETv1.0.0

ListTransactions

Lists transactions for a particular location. Transactions include payment information from sales and exchanges and refund information from returns and exchanges. Max results per [page](https://developer.squareup.com/docs/working-with-apis/pagination): 50

Source
actionGETv1.0.0

ListWorkweekConfigs

Returns a list of `WorkweekConfig` instances for a business.

Source
actionGETv1.0.0

RetrieveCard

Retrieves details for a specific Card.

Source
actionGETv1.0.0

RetrieveCashDrawerShift

Provides the summary details for a single cash drawer shift. See [ListCashDrawerShiftEvents](https://developer.squareup.com/reference/square_2021-08-18/cash-drawers-api/list-cash-drawer-shift-events) for a list of cash drawer shift events.

Source
actionGETv1.0.0

RetrieveCatalogObject

Returns a single [CatalogItem](https://developer.squareup.com/reference/square_2021-08-18/objects/CatalogItem) as a [CatalogObject](https://developer.squareup.com/reference/square_2021-08-18/objects/CatalogObject) based on the provided ID. The returned object includes all of the relevant [CatalogItem](https://developer.squareup.com/reference/square_2021-08-18/objects/CatalogItem) information including: [CatalogItemVariation](https://developer.squareup.com/reference/square_2021-08-18/objects/CatalogItemVariation) children, references to its [CatalogModifierList](https://developer.squareup.com/reference/square_2021-08-18/objects/CatalogModifierList) objects, and the ids of any [CatalogTax](https://developer.squareup.com/reference/square_2021-08-18/objects/CatalogTax) objects that apply to it.

Source
actionGETv1.0.0

RetrieveCustomer

Returns details for a single customer.

Source
actionGETv1.0.0

RetrieveCustomerGroup

Retrieves a specific customer group as identified by the `group_id` value.

Source
actionGETv1.0.0

RetrieveCustomerSegment

Retrieves a specific customer segment as identified by the `segment_id` value.

Source
actionGETv1.0.0

RetrieveDispute

Returns details about a specific dispute.

Source
actionGETv1.0.0

RetrieveDisputeEvidence

Returns the evidence metadata specified by the evidence ID in the request URL path You must maintain a copy of the evidence you upload if you want to reference it later. You cannot download the evidence after you upload it.

Source
actionGETv1.0.0

RetrieveEmployee

Provides the details for a single employee.

Source
actionGETv1.0.0

RetrieveEmployeeRole

Provides the details for a single employee role.

Source
actionGETv1.0.0

RetrieveGiftCard

Retrieves a gift card using its ID.

Source
actionPOSTv1.0.0

RetrieveGiftCardFromGAN

Retrieves a gift card using the gift card account number (GAN).

Source
actionPOSTv1.0.0

RetrieveGiftCardFromNonce

Retrieves a gift card using a nonce (a secure token) that represents the gift card.

Source
actionGETv1.0.0

RetrieveInventoryAdjustment

Returns the [InventoryAdjustment](https://developer.squareup.com/reference/square_2021-08-18/objects/InventoryAdjustment) object with the provided `adjustment_id`.

Source
actionGETv1.0.0

RetrieveInventoryChanges

Returns a set of physical counts and inventory adjustments for the provided [CatalogObject](https://developer.squareup.com/reference/square_2021-08-18/objects/CatalogObject) at the requested [Location](https://developer.squareup.com/reference/square_2021-08-18/objects/Location)s. You can achieve the same result by calling [BatchRetrieveInventoryChanges](https://developer.squareup.com/reference/square_2021-08-18/inventory-api/batch-retrieve-inventory-changes) and having the `catalog_object_ids` list contain a single element of the `CatalogObject` ID. Results are paginated and sorted in descending order according to their `occurred_at` timestamp (newest first). There are no limits on how far back the caller can page. This endpoint can be used to display recent changes for a specific item. For more sophisticated queries, use a batch endpoint.

Source
actionGETv1.0.0

RetrieveInventoryCount

Retrieves the current calculated stock count for a given [CatalogObject](https://developer.squareup.com/reference/square_2021-08-18/objects/CatalogObject) at a given set of [Location](https://developer.squareup.com/reference/square_2021-08-18/objects/Location)s. Responses are paginated and unsorted. For more sophisticated queries, use a batch endpoint.

Source
actionGETv1.0.0

RetrieveInventoryPhysicalCount

Returns the [InventoryPhysicalCount](https://developer.squareup.com/reference/square_2021-08-18/objects/InventoryPhysicalCount) object with the provided `physical_count_id`.

Source
actionGETv1.0.0

RetrieveInventoryTransfer

Returns the [InventoryTransfer](https://developer.squareup.com/reference/square_2021-08-18/objects/InventoryTransfer) object with the provided `transfer_id`.

Source
actionGETv1.0.0

RetrieveLocation

Retrieves details of a location. You can specify "main" as the location ID to retrieve details of the main location.

Source
actionGETv1.0.0

RetrieveLoyaltyProgram

Retrieves the loyalty program in a seller's account, specified by the program ID or the keyword `main`. Loyalty programs define how buyers can earn points and redeem points for rewards. Square sellers can have only one loyalty program, which is created and managed from the Seller Dashboard. For more information, see [Loyalty Program Overview](https://developer.squareup.com/docs/loyalty/overview).

Source
actionGETv1.0.0

RetrieveMerchant

Retrieve a `Merchant` object for the given `merchant_id`.

Source
actionGETv1.0.0

RetrieveOrder

Retrieves an [Order](https://developer.squareup.com/reference/square_2021-08-18/objects/Order) by ID.

Source
actionGETv1.0.0

RetrieveOrder

Provides comprehensive information for a single online store order, including the order's history.

Source
actionGETv1.0.0

RetrievePayment

Provides comprehensive information for a single payment.

Source
actionGETv1.0.0

RetrieveSettlement

Provides comprehensive information for a single settlement. The returned `Settlement` objects include an `entries` field that lists the transactions that contribute to the settlement total. Most settlement entries correspond to a payment payout, but settlement entries are also generated for less common events, like refunds, manual adjustments, or chargeback holds. Square initiates its regular deposits as indicated in the [Deposit Options with Square](https://squareup.com/help/us/en/article/3807) help article. Details for a regular deposit are usually not available from Connect API endpoints before 10 p.m. PST the same day. Square does not know when an initiated settlement **completes**, only whether it has failed. A completed settlement is typically reflected in a bank account within 3 business days, but in exceptional cases it may take longer.

Source
actionGETv1.0.0

RetrieveSnippet

Retrieves your snippet from a Square Online site. A site can contain snippets from multiple snippet applications, but you can retrieve only the snippet that was added by your application. You can call [ListSites](https://developer.squareup.com/reference/square_2021-08-18/sites-api/list-sites) to get the IDs of the sites that belong to a seller. __Note:__ Square Online APIs are publicly available as part of an early access program. For more information, see [Early access program for Square Online APIs](https://developer.squareup.com/docs/online-api#early-access-program-for-square-online-apis).

Source
actionGETv1.0.0

RetrieveTeamMember

Retrieves a `TeamMember` object for the given `TeamMember.id`. Learn about [Troubleshooting the Team API](https://developer.squareup.com/docs/team/troubleshooting#retrieve-a-team-member).

Source
actionGETv1.0.0

RetrieveWageSetting

Retrieves a `WageSetting` object for a team member specified by `TeamMember.id`. Learn about [Troubleshooting the Team API](https://developer.squareup.com/docs/team/troubleshooting#retrievewagesetting).

Source
actionPOSTv1.0.0

SearchCustomers

Searches the customer profiles associated with a Square account using a supported query filter. Calling `SearchCustomers` without any explicit query filter returns all customer profiles ordered alphabetically based on `given_name` and `family_name`. Under normal operating conditions, newly created or updated customer profiles become available for the search operation in well under 30 seconds. Occasionally, propagation of the new or updated profiles can take closer to one minute or longer, especially during network incidents and outages.

Source
actionPOSTv1.0.0

SearchInvoices

Searches for invoices from a location specified in the filter. You can optionally specify customers in the filter for whom to retrieve invoices. In the current implementation, you can only specify one location and optionally one customer. The response is paginated. If truncated, the response includes a `cursor` that you use in a subsequent request to retrieve the next set of invoices.

Source
actionPOSTv1.0.0

SearchLoyaltyAccounts

Searches for loyalty accounts in a loyalty program. You can search for a loyalty account using the phone number or customer ID associated with the account. To return all loyalty accounts, specify an empty `query` object or omit it entirely. Search results are sorted by `created_at` in ascending order.

Source
actionPOSTv1.0.0

SearchLoyaltyEvents

Searches for loyalty events. A Square loyalty program maintains a ledger of events that occur during the lifetime of a buyer's loyalty account. Each change in the point balance (for example, points earned, points redeemed, and points expired) is recorded in the ledger. Using this endpoint, you can search the ledger for events. Search results are sorted by `created_at` in descending order.

Source
actionPOSTv1.0.0

SearchLoyaltyRewards

Searches for loyalty rewards in a loyalty account. In the current implementation, the endpoint supports search by the reward `status`. If you know a reward ID, use the [RetrieveLoyaltyReward](https://developer.squareup.com/reference/square_2021-08-18/loyalty-api/retrieve-loyalty-reward) endpoint. Search results are sorted by `updated_at` in descending order.

Source
actionPOSTv1.0.0

SearchOrders

Search all orders for one or more locations. Orders include all sales, returns, and exchanges regardless of how or when they entered the Square ecosystem (such as Point of Sale, Invoices, and Connect APIs). `SearchOrders` requests need to specify which locations to search and define a [SearchOrdersQuery](https://developer.squareup.com/reference/square_2021-08-18/objects/SearchOrdersQuery) object that controls how to sort or filter the results. Your `SearchOrdersQuery` can: Set filter criteria. Set the sort order. Determine whether to return results as complete `Order` objects or as [OrderEntry](https://developer.squareup.com/reference/square_2021-08-18/objects/OrderEntry) objects. Note that details for orders processed with Square Point of Sale while in offline mode might not be transmitted to Square for up to 72 hours. Offline orders have a `created_at` value that reflects the time the order was created, not the time it was subsequently transmitted to Square.

Source
Beyond the catalog

Any provider, on request.

01

Request it

Tell us which provider you need, and we will ship it in the registry.

02

Generate it

Point swirls add at an OpenAPI or GraphQL spec. Typed actions for any API you hold credentials for, today.

acme · integrations
terminal
~/acme $swirls add linear
✓ 12 typed actions · scopes and schemas included
 
~/acme $swirls add https://api.acme.dev/openapi.json
◆ Fetched spec · 38 operations
✓ 6 typed actions · generated from spec