Actions21
Overview
This node integrates with the Square API to manage customers, bookings, and invoices. Specifically for the Customer - Delete operation, it deletes a customer from the Square system by their unique Customer ID. This is useful in scenarios where you want to remove outdated or incorrect customer records automatically as part of your workflow.
Practical examples:
- Automatically deleting customers who unsubscribe or request data removal.
- Cleaning up test or duplicate customer entries in your Square account.
- Integrating with CRM systems to keep customer data synchronized by removing deleted customers.
Properties
| Name | Meaning |
|---|---|
| Customer ID | The unique identifier of the customer to delete |
Output
The output is a JSON object representing the response from the Square API after attempting to delete the customer. Typically, this will be an empty object {} if the deletion was successful, or it may contain error information if the operation failed.
No binary data is output by this operation.
Dependencies
- Requires an active connection to the Square API via an API key credential configured in n8n.
- The node uses the Square API base URL, switching between sandbox and production environments based on the credential environment setting.
- No additional external dependencies beyond the Square API and n8n's HTTP request capabilities.
Troubleshooting
Common issues:
- Providing an invalid or non-existent Customer ID will cause the API to return an error.
- Network connectivity problems can prevent the node from reaching the Square API.
- Insufficient permissions or invalid API credentials will result in authentication errors.
Error messages:
- If the customer does not exist, the node throws an error with the message returned by the Square API.
- If no Customer ID is provided, the node will throw a validation error before making the API call.
- To handle errors gracefully, enable "Continue On Fail" in the node settings to process subsequent items even if one fails.