Create a rate

POST/shipping/{connection_id}/rate

Parameters

fieldsstring array
Fields to return
rawstring
Raw parameters to include in the 3rd-party request. Encoded as a URL component. eg. raw parameters: foo=bar&zoo=bar -> raw=foo%3Dbar%26zoo%3Dbar
connection_idstring required
ID of the connection

Payload

shipment_idstring
Reference to the shipping object (if rate is for existing shipment)
currencystring
from_addressobject
Origin address
to_addressobject
Destination address
packages array
Multiple packages (alternative to package)
ship_by_atdate
Latest date to ship (from order) (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
carrier_idstring
Reference to the carrier
idstring
Unique identifier for this rate object
rates array

Returns

shipment_idstring
Reference to the shipping object (if rate is for existing shipment)
currencystring
from_addressobject
Origin address
to_addressobject
Destination address
packages array
Multiple packages (alternative to package)
ship_by_atdate
Latest date to ship (from order) (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
carrier_idstring
Reference to the carrier
idstring
Unique identifier for this rate object
rates array
const options = {
  method: 'POST',
  url: 'https://api.unified.to/shipping/5de520f96e439b002043d8dc/rate',
  headers: {
    authorization: 'bearer .....'
  },
  data: undefined,
  params: {
    fields: '',
    raw: '',
  }
};

const results = await axios.request(options);
Are we missing anything? Let us know
Was this page helpful?