RapidAPI logo

Sign Up

Log In

ShippingAPI

FREE
By ParcelBright
Updated 3 months ago
Commerce
1.4/10
Popularity Score
245ms
Latency
-
Success Rate

ShippingAPI API Documentation

ParcelBright Shipping API - Generate labels, verify addresses, track progress and much more. More information here: https://github.com/parcelbright/api-docs

View API Details
Countries
GETList of countries
Liabilities
GETLiability options for a carrier
Shipments
POSTCreate a shipment
GETView a shipment
POSTBook a shipment
GETTrack a shipment
POSTCancel a shipment
GETList of countries

We provide a list of countries, including their name and code, so that you can use the correct country code when booking a shipment.

Header Parameters
X-RapidAPI-HostSTRING
REQUIRED
X-RapidAPI-KeySTRING
REQUIRED
AcceptSTRING
OPTIONALThe Accept header indicates the version of the API requested and the format accepted.
Content-TypeSTRING
OPTIONALThe content type you are sending to ParcelBright.
AuthorizationSTRING
REQUIREDThe ParcelBright's API token
Request Snippet
unirest.get("https://parcelbright-parcelbright-v1.p.rapidapi.com/countries")
.header("X-RapidAPI-Host", "parcelbright-parcelbright-v1.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.header("Accept", "application/vnd.parcelbright.v1+json")
.header("Content-Type", "application/json")
.header("Authorization", "Token token="{your_token}"")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
Sample Response
Log inSign up

Install SDK for NodeJS

Installing

To utilize unirest for node.js install the the npm module:

$ npm install unirest

After installing the npm package you can now start simplifying requests like so:

var unirest = require('unirest');

Creating Request

unirest.get("https://parcelbright-parcelbright-v1.p.rapidapi.com/countries")
.header("X-RapidAPI-Host", "parcelbright-parcelbright-v1.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.header("Accept", "application/vnd.parcelbright.v1+json")
.header("Content-Type", "application/json")
.header("Authorization", "Token token="{your_token}"")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
OAuth2 Authentication
Client ID
Client Secret
OAuth2 Authentication