Decogro icon

Decogro

Decogro integration for n8n

Company → Get Companies

AI-generated

Overview

This node integrates with the Decogro API to manage company data. Specifically, the 'Get Companies' operation retrieves a list of companies from Decogro, supporting pagination and optional search filtering. This is useful for workflows that need to fetch company information for reporting, synchronization, or further processing within n8n.

Use Case Examples

  1. Retrieve a list of companies with a limit of 10 and offset of 0 to display the first page of companies.
  2. Search for companies by name or company ID to filter the results based on a search term.

Properties

Name Meaning
Limit Number of company items to return, with a minimum of 1 and a maximum of 100.
Offset Number of company items to skip, used for pagination, minimum value is 0.
Search Optional search term to filter companies by attributes such as company name or company ID.

Output

JSON

  • operation - The operation performed, e.g., 'getCompanies'.
  • data - The array or object containing the retrieved company data from Decogro.
  • metadata
    • method - HTTP method used for the API request, typically 'GET'.
    • endpoint - API endpoint accessed, e.g., 'company'.
    • timestamp - Timestamp of when the API request was made.
    • limit - The limit parameter used in the request, indicating the number of items requested.
    • offset - The offset parameter used in the request, indicating how many items were skipped.
    • page - The calculated page number based on limit and offset.

Dependencies

  • Requires an API key credential for Decogro API access, including base URL and API key.

Troubleshooting

  • Common issues include invalid API credentials, resulting in authentication errors. Verify the API key and base URL are correct.
  • Invalid JSON in the 'jsonBody' parameter for other operations can cause errors; ensure JSON is well-formed.
  • If no binary data is found for file upload operations, an error is thrown; ensure the binary property name is correct and data exists.
  • Pagination parameters (limit and offset) must be within allowed ranges; otherwise, the API may reject the request.

Links

Discussion