Square

App · E-Commerce · 7 actions

Manage Square customers, catalog items, orders, and payment links.

Actions

ActionWhat it does
Create customerCreate a Square customer profile.
Create payment linkCreate a Square-hosted payment link to charge a single custom amount.
List catalog itemsList Square catalog items.
List locationsList Square business locations.
Retrieve orderRetrieve a Square order by ID.
Search customersSearch your Square customers.
Search ordersSearch Square orders.

Create customer

Create a Square customer profile.

Inputs

First namegiven_nametextRequired
Customer first name.
Last namefamily_nametext
Customer last name.
Email addressemail_addresstext
Customer email address.
Phone numberphone_numbertext
Customer phone number.

Outputs

customerobject
Created customer record.
Example output
{
  "customer": {
    "family_name": "Doe",
    "given_name": "Jane",
    "id": "cust_123"
  }
}

Create a Square-hosted payment link to charge a single custom amount.

Inputs

Location IDlocation_idtextRequired
Square location ID to associate with the checkout.
AmountamountnumberRequired
Amount to charge, in the smallest currency unit (e.g. cents for USD).At least 1.
CurrencycurrencytextRequired
ISO 4217 currency code, such as USD.

Outputs

payment_linkobject
Created payment link.
Example output
{
  "payment_link": {
    "id": "plink_123",
    "order_id": "order_123",
    "url": "https://square.link/u/example"
  }
}

List catalog items

List Square catalog items.

Inputs

Item typestypeslist
The kinds of catalog objects to include, such as ITEM, CATEGORY, or DISCOUNT. Defaults to ITEM.

Outputs

itemslist
Catalog items.
Example output
{
  "items": [
    {
      "id": "item_123",
      "name": "Coffee",
      "type": "ITEM"
    }
  ]
}

List locations

List Square business locations.

Inputs

None.

Outputs

locationslist
Square locations.
Example output
{
  "locations": [
    {
      "id": "location_123",
      "name": "Downtown Store",
      "status": "ACTIVE"
    }
  ]
}

Retrieve order

Retrieve a Square order by ID.

Inputs

Order IDorder_idtextRequired
Square order ID.

Outputs

orderobject
Order details.
Example output
{
  "order": {
    "id": "order_123",
    "state": "COMPLETED",
    "total_money": {
      "amount": 2500,
      "currency": "USD"
    }
  }
}

Search customers

Search your Square customers.

Inputs

Search textquery_texttextRequired
Text to fuzzy-match against customer email addresses.

Outputs

customerslist
Customer records.
Example output
{
  "customers": [
    {
      "family_name": "Doe",
      "given_name": "Jane",
      "id": "cust_123"
    }
  ]
}

Search orders

Search Square orders.

Inputs

Location IDlocation_idtextRequired
Square location ID to search for orders.
Statesstateslist
Optional order states to filter by, such as OPEN, COMPLETED, or CANCELED.

Outputs

orderslist
Order results.
Example output
{
  "orders": [
    {
      "id": "order_123",
      "state": "COMPLETED",
      "total_money": {
        "amount": 2500,
        "currency": "USD"
      }
    }
  ]
}

On this page