Decogro icon

Decogro

Decogro integration for n8n

Admin → Get Approvals

AI-generated

Overview

This node integrates with the Decogro API to perform administrative operations related to approvals. Specifically, the 'Get Approvals' operation retrieves a list of approval records from the Decogro admin system. This is useful for workflows that need to monitor or process approval statuses within Decogro, such as automating order approval tracking or generating reports on approval activities.

Use Case Examples

  1. Retrieve the latest 10 approval records to monitor pending approvals.
  2. Fetch approvals with pagination by setting limit and offset to handle large datasets.

Properties

Name Meaning
Limit Number of approval items to return, with a minimum of 1 and a maximum of 100.
Offset Number of approval items to skip, used for pagination, minimum value is 0.

Output

JSON

  • operation - The operation performed, e.g., 'getApprovals'.
  • data - The array or object containing the retrieved approval records from Decogro.
  • metadata
    • method - HTTP method used for the API request, typically 'GET'.
    • endpoint - API endpoint accessed, e.g., 'admin/approvals'.
    • timestamp - Timestamp 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 authentication.

Troubleshooting

  • Ensure the API key credential is correctly configured and has sufficient permissions to access admin approvals.
  • If the node returns an error about invalid JSON, verify that the input parameters are correctly set and no malformed JSON is provided (though this operation does not require a JSON body).
  • Pagination parameters (limit and offset) must be within allowed ranges; otherwise, the API may reject the request.

Links

Discussion