Actions22
Overview
This node integrates with the Distru API to retrieve or manipulate various resources related to inventory, orders, contacts, products, and more. Specifically, the Get Contact operation fetches contact records from Distru, supporting filtering by creation or update datetime and pagination controls.
Use cases include:
- Synchronizing contact data from Distru into other systems.
- Filtering contacts created or updated within a specific timeframe.
- Retrieving paginated lists of contacts for batch processing or reporting.
Example: Fetch all contacts updated after a certain date, 100 per page, to keep your CRM up to date.
Properties
| Name | Meaning |
|---|---|
| Additional Fields | Collection of optional filters and pagination parameters: |
| - Inserted Datetime | Filter contacts by their creation datetime (ISO 8601 format). |
| - Updated Datetime | Filter contacts by their last updated datetime (ISO 8601 format). |
| - Page Number | The page number of results to return (for pagination). Defaults to 1. |
| - Page Size | Number of results per page (pagination size). Defaults to 100. |
Output
The output is an array of items where each item contains a json object representing a contact record retrieved from the Distru API.
- Each
jsonobject corresponds to one contact's data as returned by the API. - If a specific contact ID is provided, the output will be a single contact object.
- If no ID is specified, the output is a list of contacts matching the filter criteria.
- No binary data is produced by this operation.
Dependencies
- Requires an API token credential for authenticating requests to the Distru API.
- The base URL depends on whether staging mode is enabled in credentials (
https://staging.distru.com/public/v1orhttps://app.distru.com/public/v1). - Uses HTTP GET requests with Bearer token authorization header.
Troubleshooting
- Missing API Token: Error "Distru API token is not set!" occurs if the API token credential is missing or empty. Ensure you configure the API key credential properly.
- Invalid Date Filters: Providing incorrectly formatted dates for inserted or updated datetime filters may cause API errors or no results. Use ISO 8601 format.
- Pagination Issues: Requesting pages beyond available data returns empty arrays. Adjust page number or size accordingly.
- Network/Authorization Errors: Check network connectivity and validity of the API token if requests fail.
Links and References
- Distru API Documentation (general reference for API endpoints and data models)
- ISO 8601 Date Format (for date/time filter formatting)