Square icon

Square

Consume Square API

Invoice → Get Many

AI-generated

Overview

This node interacts with the Square API to retrieve multiple invoice records. It supports fetching either all invoices or a limited number based on user input. This is useful for scenarios where users need to list invoices for reporting, auditing, or further processing within an automation workflow.

Use Case Examples

  1. Retrieve all invoices from a Square account to generate a comprehensive report.
  2. Fetch a limited number of invoices to display recent transactions in a dashboard.

Properties

Name Meaning
Return All Whether to return all invoice results or only up to a given limit.
Limit Maximum number of invoice results to return when 'Return All' is false.

Output

JSON

  • invoiceId - Unique identifier of the invoice.
  • location_id - Location associated with the invoice.
  • version - Version number of the invoice.
  • status - Current status of the invoice.
  • due_date - Due date of the invoice.
  • customer_id - Identifier of the customer associated with the invoice.
  • invoice_data - Additional invoice details returned by the Square API.

Dependencies

  • Square API with an API key credential

Troubleshooting

  • Ensure the Square API credentials are correctly configured and have the necessary permissions to access invoice data.
  • If the node returns an error related to limits, verify that the 'Limit' parameter is set within allowed bounds.
  • For JSON parsing errors, ensure that any additional fields or filters provided are correctly formatted JSON if applicable.

Links

Discussion