Socket
Book a DemoInstallSign in
Socket

@digitalnodecom/node-red-contrib-servicetrade

Package Overview
Dependencies
Maintainers
4
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@digitalnodecom/node-red-contrib-servicetrade

A custom Node-RED config node for ServiceTrade API authentication and GET method

1.2.0
latest
Source
npmnpm
Version published
Maintainers
4
Created
Source

ServiceTrade GET Data Node

Overview

The ServiceTrade GET Data Node is a Node-RED node that enables you to make GET requests to the ServiceTrade API. This node requires authentication through a separate Auth Config Node that manages your ServiceTrade credentials.

Prerequisites

  • Node-RED installed and running
  • Valid ServiceTrade account credentials
  • Auth Config Node installed and configured

Configuration Fields

FieldDescription
NameA name to identify this node in your flow
Auth ConfigSelect the Auth Config Node that contains your ServiceTrade credentials
URLThe base URL for the ServiceTrade API (typically https://api.servicetrade.com/api)
ObjectsSelect from a comprehensive list of ServiceTrade objects to query
LimitThe maximum number of records to return per request
PageThe page number for paginated results

Available ServiceTrade Objects

The node supports all ServiceTrade API objects, including:

  • Account
  • Activity
  • Appointment
  • Asset
  • Contact
  • Contract
  • Invoice
  • Job
  • Quote
  • User
  • ...and many more (see dropdown in the node configuration for the complete list)

Usage Examples

Basic GET Request

  • Configure the Auth Config Node with your ServiceTrade credentials
  • Configure the GET Data Node with:
    • Auth Config: Your auth node
    • URL: https://api.servicetrade.com/api
    • Objects: job
    • Limit: 10
    • Page: 1

This will retrieve the first 10 jobs from your ServiceTrade account.

Dynamic Requests

You can override the node's configuration using message properties:

msg.url = "https://api.servicetrade.com/api";
msg.payload = {
    servicetradeobject: "quote"
};
msg.limit = 20;
msg.page = 2;
return msg;

Input

The node accepts the following inputs through the incoming message:

PropertyTypeDescription
msg.urlStringOverrides the configured URL
msg.servicetradeobjectStringOverrides the configured ServiceTrade object
msg.limitNumberOverrides the configured limit
msg.pageNumberOverrides the configured page

Error Handling

The node will report errors in the following situations:

  • Auth Config is not set
  • URL is not specified
  • Authentication fails
  • API request fails

Notes on Authentication

This node works in conjunction with the Auth Config Node, which manages your ServiceTrade credentials. The Auth Config Node:

  • Securely stores your username and password
  • Obtains an authentication token from the ServiceTrade API
  • Provides this token to the GET Data Node for API requests

Troubleshooting

  • Error: Auth Config not set - Ensure you have created and selected an Auth Config Node
  • Error: URL not specified - Verify that either the URL field is configured or msg.url is provided
  • Authentication errors - Check your username and password in the Auth Config Node
  • API errors - Refer to the ServiceTrade API documentation for specific error codes

Keywords

node-red

FAQs

Package last updated on 07 Aug 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.