AI agent? Read this page as Markdown at /shipping/rate/Create_a_rate.md — append .md to any docs URL, or start from /llms.txt.
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
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
Returns
shipment_idstring
Reference to the shipping object (if rate is for existing shipment)
currencystring
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
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