Get Rates


This method is used to check pricing for Freight Orders from all allowed providers. The method also automatically creates an order that isn't visible from the dashboard


Available carriers are [Carriers are only available to registered users]

Endpoint

Method URI Headers
POST freight-orders/get-rates default

Request

Field Required Type Description
pickup_date Yes String Proposed pickup date, in Y-m-d
from_opening_time Yes String Opening time of pickup address, in H:i
from_closing_time Yes String Closing time of pickup address, in H:i
from_instructions No String Any special instructions for the pickup address
from_address {} Yes Object Sender address container, not required if a "from_address_id" was used
+name Yes String Name of the sender
+attention No String Attention of the sender
+street_1 Yes String Street line 1
+street_2 No String Street line 2
+street_3 No String Street line 3
+city Yes String City
+zip Yes String Postal Zip code
+state No* String State - This field is required for US or Canada addresses please refer to country-codes
+country Yes String Country (code) for the list please refer to country-codes
+telephone Yes String Telephone Number - This field will will avoid special characters (10-15 digits)
+email No String Email
+lift_gate No Boolean Default value is false
+residential No Boolean Default value is false
+inside No Boolean Default value is false
+limited_access No Boolean Default value is false
+appointment No Boolean Default value is false
to_opening_time Yes String Opening time of delivery address, in H:i
to_closing_time Yes String Closing time of delivery address, in H:i
to_address {} Yes Object Receiver address container
+name Yes String Name of the receiver
+attention No String Attention of the receiver
+street_1 Yes String Street line 1
+street_2 No String Street line 2
+street_3 No String Street line 3
+city Yes String City
+zip Yes String Postal Zip code
+state No* String State - This field is required for US or Canada addresses please refer to country-codes
+country Yes String Country (code) for the list please refer to country-codes
+telephone Yes String Telephone Number - This field will will avoid special characters (10-15 digits)
+email No String Email
+lift_gate No Boolean Default value is false
+residential No Boolean Default value is false
+inside No Boolean Default value is false
+limited_access No Boolean Default value is false
+appointment No Boolean Default value is false
items [] Yes Array An array containing all the information about items
+count Yes Integer Pieces count
+package_type No String Default value is "pallet_48x40". For a full list please check out freight packages
+length Yes Float Length (IN) - If selected package type has forced length this field will be overwritten with forced length
+width Yes Float Width (IN) - If selected package type has forced width this field will be overwritten with forced width
+height Yes Float Height (IN)
+weight Yes Float Weight (LBS)
+description Yes String Description of the item
+insurance No Boolean Default is false. Setting this to true would require price
+price No* Float Price (Commodity Value) of the item Condition:required only if insurance is selected
+is_hazmat No Boolean If the item is hazmat, default is false
+is_used_items No Boolean If the item is used or new, default is false
+is_stackable No Boolean If the item is stackable, default is false
+freight_class No String Preferred freight class, default is auto where we calculate the class automatically (recommended), for options please check freight classes
+sku No String PO number of the shipment
+smart_detection_enabled No Boolean Default is true. The system will check if the address is residential and select the residential delivery and lift gate options automatically if set to true

Request Example

{
    "pickup_date": "2022-05-25",
    "from_opening_time": "08:00",
    "from_closing_time": "17:00",
    "from_instructions": "Walk in",

    "from_address": {
        "name": "Acme Corp",
        "attention": "Jane Doe",
        "city": "Los Angeles",
        "street_1": "123 S Main St",
        "zip": "90012",
        "state": "CA",
        "country": "US",
        "telephone": "9999999999"
    },

    "to_opening_time": "08:00",
    "to_closing_time": "17:00",
    "to_instructions": "Wait at the gate",
    "to_address": {
        "name": "Example Corp",
        "attention": "John Doe",
        "city": "Flushing",
        "street_1": "123 Main St",
        "zip": "11354",
        "state": "NY",
        "country": "US",
        "telephone": "9999999999"
    },
    "items": [
        {
            "package_type": "pallet_48x40",
            "count": 1,
            "length": "48",
            "width": "40",
            "height": "50",
            "weight": "100",
            "sku": null,
            "description": "Some Description"
        }
    ]
}

Response

Field Type Description
success Boolean true or false
message String Error message (only exists if success is false)
data Array An array containing received rates or if request has failed an object containing validation errors
+id Integer This is the ID (rate_id) that you will need to use to ship this specific rate
+carrier String Carrier of this rate
+service String Service of this rate
+service_code String Service code of this rate, please refer to service names
+final_price Float Final price of the shipment including all costs
+fuel_price Float Fuel price
+restrictions Array Any extra information about this particular rate
+miscellaneous_charges Array Any miscellaneous surcharges
+freight_class String Only shown when the provider is UPS GFP type
+has_enough_credits Boolean Shows if organisation has enough credits for this particular rate
+is_guaranteed Boolean Shows if this particular rate is guaranteed
+load_type String Shows load type of freight either "ltl" or "ftl"

Response Examples

Successful

{
    "success": true,
    "data": [
        {
            "id": 123123123,
            "carrier": "forward_air",
            "service": "Forward Air",
            "service_code": "FORWARD_AIR-0",
            "final_price": 111.1,
            "fuel_price": 22.22,
            "discount_from": null,
            "restrictions": [],
            "miscellaneous_charges": [],
            "has_enough_credits": true,
            "eta": "4",
            "is_guaranteed": true,
            "load_type": "ltl"
        },
        {
            "id": 1212121212,
            "carrier": "forward_air",
            "service": "Forward Air",
            "service_code": "FORWARD_AIR-0",
            "final_price": 111.1,
            "fuel_price": 22.22,
            "discount_from": null,
            "restrictions": [],
            "miscellaneous_charges": [],
            "has_enough_credits": true,
            "eta": "4",
            "is_guaranteed": false,
            "load_type": "ftl"
        }
    ]
}

Failed

{
    "success": false,
    "message": "The given data was invalid.",
    "data": {
        "to_address.city": [
            "The to address.city field is required."
        ]
    }
}

Freight Packages

Name Code Forced Length Forced Width
Pallet (48" x 40") pallet_48x40 48 40
Pallet (48" x 48") pallet_48x48 48 48
Pallet (Custom Dimensions) pallet_custom - -
Bag bag - -
Bale bale - -
Box box - -
Crate crate - -
Cylinder cylinder - -
Drum drum - -
Pail pail - -
Reel reel - -
Roll roll - -
Loose loose - -

Freight Classes

Code Description
500
400
300
250
200
175
150
125
110
100
92.5
85
77.5
70
65
60
55
50
auto This the default recommended value. When this is chosen we will calculate the class automatically for your dimensions and weight