Decogro icon

Decogro

Decogro integration for n8n

Admin → Get Payment Terms

AI-generated

Overview

This node integrates with the Decogro API to perform various administrative operations, including retrieving payment terms. Specifically, the 'Get Payment Terms' operation fetches a list of payment terms configured in the Decogro system. This is useful for workflows that need to access or display payment term options for orders or financial processing within Decogro.

Use Case Examples

  1. A user wants to retrieve available payment terms to populate a dropdown in a form for order creation.
  2. A workflow needs to validate or display payment terms associated with a customer or order.

Properties

Name Meaning
Limit Number of items to return, controls pagination size for the results.
Offset Number of items to skip, controls pagination offset for the results.

Output

JSON

  • operation - The operation performed, e.g., 'getPaymentTerms'.
  • data - The array or object containing the payment terms data returned from Decogro.
  • metadata
    • method - HTTP method used for the API request, typically 'GET'.
    • endpoint - API endpoint accessed, e.g., 'admin/payment-terms'.
    • 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 the input parameters are correctly set and no malformed JSON is provided.
  • Pagination parameters (limit and offset) must be within allowed ranges; otherwise, the API may reject the request.

Links

Discussion