Decogro icon

Decogro

Decogro integration for n8n

Admin → Get Categories

AI-generated

Overview

This node integrates with the Decogro API to perform various administrative operations, including retrieving categories. Specifically, the 'Get Categories' operation fetches a list of categories from the Decogro admin endpoint. This is useful for workflows that need to access or manage category data within Decogro, such as syncing categories with other systems or displaying them in reports.

Use Case Examples

  1. Retrieve a list of product or service categories from Decogro to populate a dropdown in a form.
  2. Fetch categories to synchronize with an external inventory or catalog system.

Properties

Name Meaning
Limit Number of items to return, with a minimum of 1 and a maximum of 100.
Offset Number of items to skip before starting to collect the result set, minimum value is 0.

Output

JSON

  • operation - The operation performed, e.g., 'getCategories'.
  • data - The JSON response data from the Decogro API containing the categories.
  • metadata
    • method - HTTP method used for the request, typically 'GET'.
    • endpoint - API endpoint accessed, e.g., 'admin/categories'.
    • timestamp - Timestamp when the request was made.
    • limit - The limit parameter used in the request.
    • offset - The offset parameter used in the request.
    • page - The calculated page number based on limit and offset.

Dependencies

  • Decogro API with API key authentication

Troubleshooting

  • Ensure the API key credential is correctly configured and has the necessary permissions to access admin endpoints.
  • If the node returns an error about invalid JSON, verify that any JSON body inputs are correctly formatted (not applicable for 'Get Categories' as it uses GET).
  • Check that the 'Limit' and 'Offset' values are within the allowed ranges to avoid request errors.
  • Network or API endpoint issues may cause request failures; verify the base URL and network connectivity.

Links

Discussion