Decogro icon

Decogro

Decogro integration for n8n

Admin → Get Pricing Matrices

AI-generated

Overview

This node integrates with the Decogro API to perform administrative operations related to pricing matrices. Specifically, the 'Get Pricing Matrices' operation retrieves a list of pricing matrices from the Decogro admin endpoint. This is useful for users who need to access pricing configurations for decorations or products managed within Decogro, enabling automation of pricing data retrieval for further processing or reporting.

Use Case Examples

  1. A user wants to fetch the current pricing matrices to update a pricing dashboard automatically.
  2. An admin needs to retrieve pricing matrices to validate or audit pricing rules in their workflow.

Properties

Name Meaning
Limit Number of items to return, controls the maximum number of pricing matrices retrieved in one request.
Offset Number of items to skip, used for pagination to skip a certain number of pricing matrices before starting to return results.

Output

JSON

  • operation - The operation performed, e.g., 'getPricingMatrices'.
  • data - The data returned from the Decogro API, containing the list of pricing matrices.
  • metadata
    • method - HTTP method used for the request, typically 'GET'.
    • endpoint - API endpoint accessed, e.g., 'admin/decorations/pricing-matrices'.
    • 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 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 this GET operation).
  • Pagination parameters (limit and offset) must be within allowed ranges; limit between 1 and 100, offset 0 or greater.
  • Network or authentication errors may occur if the base URL or API key is incorrect.

Links

Discussion