Suite Portal icon

Suite Portal

Interact with Suite Portal API

Actions4

Purchase → Get Many

AI-generated

Overview

This node interacts with the Suite Portal API to perform various operations on different resources such as Invoice, Sale, Purchase, and Fulfillment. Specifically, for the Purchase resource with the Get Many operation, it retrieves multiple purchase records from the Suite Portal system, supporting pagination through page number and page size parameters. This is useful for workflows that need to fetch and process bulk purchase data, for example, to analyze purchase trends or synchronize purchase records with another system.

Use Case Examples

  1. Retrieve a list of purchases from Suite Portal, specifying the page number and page size to control the amount of data fetched per request.
  2. Use the node to paginate through all purchase records by incrementing the page number in subsequent executions.

Properties

Name Meaning
Page Page number for pagination, starting at 1, to specify which page of purchase records to retrieve.
Page Size Number of purchase items to retrieve per page, controlling the size of each data batch.

Output

JSON

  • json
    • data - Array of purchase records retrieved from the Suite Portal API.
    • total - Total number of purchase records available.
    • message - Informational message about the operation result, e.g., when no data is returned.
    • error - Error message if the operation fails or returns invalid data.
    • stack - Stack trace of the error if an error occurs during execution.
    • resource - The resource name related to the error, e.g., 'purchase'.

Dependencies

  • Suite Portal API with API key authentication

Troubleshooting

  • Ensure that the Suite Portal API credentials are correctly configured and include a valid API key, as missing or invalid credentials will cause the node to fail.
  • If the node returns an error indicating 'Unknown resource', verify that the resource parameter is set correctly to 'purchase' for this operation.
  • Pagination parameters (page and page size) must be positive integers; invalid values may cause unexpected results or errors.
  • If the operation returns no data, check that the Suite Portal account has purchase records and that the API endpoint is accessible.

Discussion