Square icon

Square

Consume Square API

Customer → Update

AI-generated

Overview

This node updates an existing customer in the Square system. It is useful for scenarios where you need to modify customer details such as address, birthday, company name, email, phone number, or other personal information. For example, you can update a customer's address or email after they provide new information.

Use Case Examples

  1. Updating a customer's address after they move to a new location.
  2. Changing a customer's email address to keep contact information current.

Properties

Name Meaning
Customer ID The unique identifier of the customer to update.
Update Fields The fields of the customer to update, including address details, birthday, company name, email address, family name, given name, nickname, note, phone number, and reference ID.

Output

JSON

  • id - The unique identifier of the updated customer.
  • given_name - The given (first) name of the customer.
  • family_name - The family (last) name of the customer.
  • email_address - The email address of the customer.
  • phone_number - The phone number of the customer.
  • address - The address details of the customer.
  • birthday - The birthday of the customer.
  • company_name - The company name associated with the customer.
  • nickname - The nickname of the customer.
  • note - Additional notes about the customer.
  • reference_id - A reference ID associated with the customer.

Dependencies

  • Square API with an API key credential

Troubleshooting

  • If no fields are provided to update, the node throws an error prompting to enter at least one field to update.
  • If the customer ID is invalid or the customer does not exist, the API may return an error which the node will throw unless 'Continue On Fail' is enabled.
  • Ensure the API credentials are correctly set and have permissions to update customer data.

Discussion