quote and shipping

FREE
By leassis
Updated 5 months ago
Commerce
-/10
Popularity Score
-
Latency
-
Success Rate

quote and shipping API Documentation

quote volumes to ecommerce stores

View API Details
POSTQuote
POSTQuote
Authorization:

description

Header Parameters
X-RapidAPI-HostSTRING
REQUIRED
X-RapidAPI-KeySTRING
REQUIRED
api-keyHEADER
REQUIREDdescription
Required Parameters
quoteJSON_STRING
REQUIRED
Code Snippet
unirest.post("https://leassis-quote-and-shipping-v1.p.rapidapi.com/quote")
.header("X-RapidAPI-Host", "leassis-quote-and-shipping-v1.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.header("Content-Type", "application/json")
.send({"origin_zip_code":"03068000","destination_zip_code":"20920-440","volumes":[{"weight":2,"volume_type":"BOX","cost_of_goods":30.99,"width":20,"height":10,"length":25}],"additional_information":{"extra_cost_absolute":2},"identification":{}})
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
Sample Response
General
Request URL: https://leassis-quote-and-shipping-v1.p.rapidapi.com/quote
Request Method: POST
Response Headers
Response Body

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.post("https://leassis-quote-and-shipping-v1.p.rapidapi.com/quote")
.header("X-RapidAPI-Host", "leassis-quote-and-shipping-v1.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.header("Content-Type", "application/json")
.send({"origin_zip_code":"03068000","destination_zip_code":"20920-440","volumes":[{"weight":2,"volume_type":"BOX","cost_of_goods":30.99,"width":20,"height":10,"length":25}],"additional_information":{"extra_cost_absolute":2},"identification":{}})
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
OAuth2 Authentication
Client ID
Client Secret
OAuth2 Authentication