PortaOne icon

PortaOne

Consume PortaOne API (v.1.0.24)

Overview

The PortaOne node for n8n enables users to interact with the PortaOne API, specifically targeting the "Rate Management" resource and its "Search Rate List" operation. This operation allows users to search and retrieve lists of rate entries (such as call rates or tariffs) from their PortaOne system, applying various filters and options.

Common scenarios:

  • Fetching a list of call rates for specific countries or destinations.
  • Filtering rates by product, tariff, or description.
  • Paginating through large sets of rate data.
  • Integrating rate management data into automated workflows for reporting, billing, or analysis.

Practical examples:

  • Retrieve all rates for a given country code to update a pricing table.
  • Search for rates with a specific destination prefix for routing configuration.
  • Export a filtered list of rates for auditing or compliance purposes.

Properties

Name Meaning
Authentication The authentication method to use. Options: Token Authentication, Basic Authentication.
AdditionalFields A collection of optional filters and parameters:
- Country: The code of the country in ISO 3166-1 alpha-2 format.
- Description: Filters DID numbers using a description search pattern.
- Destination: The pattern of the destination prefix.
- Get Total: Get the total number of the retrieved customers (Yes/No).
- Hidden: Indicates that the rate is excessive and may be omitted when making the list of rates.
- Product ID: Product identifier.
- Tariff ID: Tariff identifier.
- ISO 3166 1 A2: The ISO 3166 two-letter country code.
- Limit: The number of rows to retrieve. Mandatory if offset is specified.
- Offset: The number of rows to skip at the beginning of the list. Requires limit to be specified.
- Number: Filters DID numbers using a number search pattern.
Simplify Whether to simplify the output data. If enabled, only the property defined by "SimplifyPath" will be returned.
SimplifyPath Path to the property that should be returned when "Simplify" is enabled. Default: rate_list.

Output

  • By default, the node outputs the full JSON response from the PortaOne API for the "Search Rate List" operation.
  • If Simplify is enabled, only the property specified by SimplifyPath (default: rate_list) is returned.
  • The structure of the output typically includes:
    • rate_list: An array of rate objects, each containing details such as country, destination, rate, tariff, etc.
    • Other metadata fields may be present depending on the API response and selected options (e.g., total count if "Get Total" is enabled).

Example output (simplified):

{
  "rate_list": [
    {
      "country": "US",
      "destination": "123",
      "rate": 0.05,
      "tariff_id": 42,
      ...
    },
    ...
  ],
  "total": 100
}
  • The actual fields inside each rate object depend on the PortaOne API schema.

Binary Data:
This node does not output binary data; all output is in JSON format.


Dependencies

  • External Services: Requires access to a PortaOne API endpoint.
  • API Credentials:
    • For Token Authentication: portaOneTokenApi credentials.
    • For Basic Authentication: portaOneBasicApi credentials.
  • n8n Configuration: Ensure the appropriate credentials are set up in n8n under the node's credential types.

Troubleshooting

Common issues:

  • Authentication errors:

    • Error message: "Invalid credentials" or "Unauthorized".
      • Resolution: Check that the correct authentication method and valid credentials are provided in n8n.
  • Missing required fields:

    • Error message: "limit must be specified if offset is used" or similar.
      • Resolution: When specifying an offset, ensure you also provide a limit value.
  • Empty results:

    • Possible causes: Filters are too restrictive, or there are no matching rates in the system.
      • Resolution: Adjust filter criteria in AdditionalFields.
  • API connection errors:

    • Error message: "Unable to connect to PortaOne API".
      • Resolution: Verify network connectivity and correct API endpoint configuration.

Links and References

Discussion