Skip to content
For LLMsView as Markdown·

Square ​

Process payments, manage catalog items, and handle orders with the Square API.

DetailValue
CategoryPayments
Base URLhttps://connect.squareup.com
AuthenticationBearer Token
Endpoints6
Connector keysquare

Using Square in a workflow ​

  1. Go to Connections and click New Connection.
  2. Pick Square from the marketplace.
  3. Enter your credentials (see Authentication above for what's expected).
  4. In a workflow, drop an API Call node and select this connection.
  5. Pick the operation you need from the Operation dropdown. The full list is below.

Available endpoints ​

EndpointSummary
POST /paymentsCreate a payment
GET /payments/{payment_id}Retrieve a payment
GET /paymentsList payments
POST /refundsRefund a payment
GET /customersList customers
POST /customersCreate a customer

Each endpoint is documented in full below. Use the outline on the right to jump to one.

POST /payments ​

Create a payment

DetailValue
Operation IDpayments.createPayment
MethodPOST
Path/payments

Parameters ​

No parameters.

Request Body ​

FieldType
source_idstring
amount_moneyobject
idempotency_keystring

Using this endpoint in a workflow ​

  1. Add an API Call node to your workflow.
  2. Pick your Square connection from the Connection dropdown.
  3. In the Operation dropdown, select payments.createPayment.
  4. Fill in the parameter fields that appear. Use {{...}} to reference upstream values.

Required fields are marked: fill them or the call will fail at runtime.

What it returns ​

The API Call node writes the response to the workflow context:

{
  status: 200,
  success: true,
  data: { ...response body from the API... },
  latencyMs: 142
}

Reference response fields downstream as {{nodeId.data.path}}. The exact response shape is documented on the upstream Square API reference.

GET /payments/{payment_id} ​

Retrieve a payment

DetailValue
Operation IDpayments.getPayment
MethodGET
Path/payments/{payment_id}

Parameters ​

NameLocationTypeRequired
payment_idpathstringYes

Using this endpoint in a workflow ​

  1. Add an API Call node to your workflow.
  2. Pick your Square connection from the Connection dropdown.
  3. In the Operation dropdown, select payments.getPayment.
  4. Fill in the parameter fields that appear. Use {{...}} to reference upstream values.

Required fields are marked: fill them or the call will fail at runtime.

What it returns ​

The API Call node writes the response to the workflow context:

{
  status: 200,
  success: true,
  data: { ...response body from the API... },
  latencyMs: 142
}

Reference response fields downstream as {{nodeId.data.path}}. The exact response shape is documented on the upstream Square API reference.

GET /payments ​

List payments

DetailValue
Operation IDpayments.listPayments
MethodGET
Path/payments

Parameters ​

NameLocationTypeRequired
begin_timequerystringNo
end_timequerystringNo

Using this endpoint in a workflow ​

  1. Add an API Call node to your workflow.
  2. Pick your Square connection from the Connection dropdown.
  3. In the Operation dropdown, select payments.listPayments.
  4. Fill in the parameter fields that appear. Use {{...}} to reference upstream values.

What it returns ​

The API Call node writes the response to the workflow context:

{
  status: 200,
  success: true,
  data: { ...response body from the API... },
  latencyMs: 142
}

Reference response fields downstream as {{nodeId.data.path}}. The exact response shape is documented on the upstream Square API reference.

POST /refunds ​

Refund a payment

DetailValue
Operation IDpayments.refundPayment
MethodPOST
Path/refunds

Parameters ​

No parameters.

Request Body ​

FieldType
payment_idstring
amount_moneyobject
idempotency_keystring

Using this endpoint in a workflow ​

  1. Add an API Call node to your workflow.
  2. Pick your Square connection from the Connection dropdown.
  3. In the Operation dropdown, select payments.refundPayment.
  4. Fill in the parameter fields that appear. Use {{...}} to reference upstream values.

Required fields are marked: fill them or the call will fail at runtime.

What it returns ​

The API Call node writes the response to the workflow context:

{
  status: 200,
  success: true,
  data: { ...response body from the API... },
  latencyMs: 142
}

Reference response fields downstream as {{nodeId.data.path}}. The exact response shape is documented on the upstream Square API reference.

GET /customers ​

List customers

DetailValue
Operation IDpayments.listCustomers
MethodGET
Path/customers

Parameters ​

NameLocationTypeRequired
cursorquerystringNo

Using this endpoint in a workflow ​

  1. Add an API Call node to your workflow.
  2. Pick your Square connection from the Connection dropdown.
  3. In the Operation dropdown, select payments.listCustomers.
  4. Fill in the parameter fields that appear. Use {{...}} to reference upstream values.

What it returns ​

The API Call node writes the response to the workflow context:

{
  status: 200,
  success: true,
  data: { ...response body from the API... },
  latencyMs: 142
}

Reference response fields downstream as {{nodeId.data.path}}. The exact response shape is documented on the upstream Square API reference.

POST /customers ​

Create a customer

DetailValue
Operation IDpayments.createCustomer
MethodPOST
Path/customers

Parameters ​

No parameters.

Request Body ​

FieldType
given_namestring
email_addressstring

Using this endpoint in a workflow ​

  1. Add an API Call node to your workflow.
  2. Pick your Square connection from the Connection dropdown.
  3. In the Operation dropdown, select payments.createCustomer.
  4. Fill in the parameter fields that appear. Use {{...}} to reference upstream values.

Required fields are marked: fill them or the call will fail at runtime.

What it returns ​

The API Call node writes the response to the workflow context:

{
  status: 200,
  success: true,
  data: { ...response body from the API... },
  latencyMs: 142
}

Reference response fields downstream as {{nodeId.data.path}}. The exact response shape is documented on the upstream Square API reference.