DOCS

Rating object

/

Rating object

Explore the capabilities and functions of the Rating object.

The Rating object will provide shipping quotes by service level with a breakdown of surcharges, fees, and negotiated rate discounts that make up the quote.

Attributes 

FieldNotes
id STRINGThe unique identifier for the object. The id for the rating object will always be prefixed with ship.
currency HASHHash providing information on the base currency sent in the request and provided for the response.
currency.id STRINGThe unique identifier for the currency object.
currency.base STRINGThe base currency as sent in the rating request, represented by a three-letter ISO code. All amounts in the rating object are listed in the base currency.
currency.date TIMESTAMPThe date in which the currency rate was pulled, in the ISO 8601 format YYYY-MM-DDTHH:mm:ss.sssZ.
currency.rates HASHHash containing the currencies and exchange rates needed for conversion from the base currency.
errors HASHHash containing the details of any errors on the request.
errors.type STRINGThe origin of the error. Possible values include fedex_api ups_api dhl_api usps_api internal_error zonos_configuration.
errors.message STRINGThe descriptive reason for the error from the corresponding carrier.
errors.details HASHHash containing details on the service level that returned an error.
errors.details.id STRINGThe unique identifier for the service level.
errors.details.service_level STRINGThe service level with the carrier, e.g. standard.
errors.details.display_name STRINGThe display name for the service level.
quotes LISTThe list of shipping quotes by service level.
quotes.id STRINGThe unique identifier for the object. The id for the quotes object will always be prefixed with rtqt.
quotes.amount_subtotal DECIMALThe total calculated shipping cost for the service level.
quotes.weight HASHHash providing information about the weight used for the quoted shipping cost.
quotes.weight.billable DECIMALThe billable weight of the package used for the shipping quote.
quotes.weight.unit STRINGThe unit of measurement for the weight.Possible values are pound, ounce, kilogram, and null.When null, pound will be used.
quotes.mode HASHHash containing detailed information on the service level.
quotes.mode.service_level STRINGThe service_level with the carrier, e.g. standard.Common examples include: ups_express, ups_express_saver, ups_expedited, ups_economy, ups_standard, ups_mail_innovations_economy, ups_mail_innovations_priority, dhl_express, dhl_ecommerce_parcel_direct, fedex_priority, fedex_economy, usps_first_class_mail_international, usps_priority_mail_international, landmark_parcel, apc_parcel, point2point_standard, point2point_direct, point2point_packet, and fedex_international_groundSee the carrier docs for the full list of available service levels by carrier.
quotes.mode.display_name STRINGThe display name for the service level.
quotes.mode.delivery_date_estimate TIMESTAMPThe estimated delivery date for the service level, in the ISO 8601 format YYYY-MM-DDTHH:mm:ss.sssZ. This will be returned if available from the carrier API.
quotes.mode.transit_business_days INTEGERThe estimated number of transit days for the service level only counting business days as transit days. This will be returned if available from the carrier API.
quotes.mode.transit_days INTEGERThe estimated number of transit days for the service level. This will be returned if available from the carrier API.
quotes.mode.rates HASHHash containing detailed information on the breakdown of the shipping rate amount.
quotes.mode.rates.amount DECIMALThe amount of the specific rate item.
quotes.mode.rates.note STRINGAdditional details on what the rate item amount represents.
quotes.mode.rates.type STRINGThe type of the rate item. Possible values include retail_shipping fuel_surcharge carrier_fee negotiated_discount.
quotes.packages LISTA list of details on the packages being shipped.
quotes.packages.id STRINGThe unique identifier for the packages object.
quotes.packages.weight HASHHash containing details of the weight for the package.
quotes.packages.weight.billable DEMICALThe billable weight of the package.
quotes.packages.weight.dimensional DECIMALThe dimension weight of the package.
quotes.packages.weight.factor INTEGERThe international weight factored use to calculate the dimensional weight for the package.
quotes.packages.weight.weight_unit STRINGA string with the unit of measurement for the weight.Possible values are pound ounce kilogram null.When null, pound will be used.

Example response

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
{
  "id": "ship_5p67angIDnS91CyfpW55YZ",
  "currency": {
    "id": "curr_1Rp9lhXSRXvEWVs97k2PHE",
    "base": "USD",
    "date": "2020-02-04T18:47:04.629+0000",
    "rates": []
  },
  "errors": [
    {
      "details": {
        "id": "rtqt_7cz80Ny8dToSqoWlHTJJnP",
        "display_name": "FedEx Express Saver",
        "service_level": "FEDEX_EXPRESS_SAVER",
        "message": "[868] Service is not allowed.  ",
        "type": "fedex_api"
      }
    }
  ],
  "quotes": [
    {
      "id": "rtqt_4BUyxLEUeoU6zDdprCRoUV",
      "amount_subtotal": 943.18,
      "mode": {
        "delivery_date_estimate": null,
        "display_name": "UPS Expedited ",
        "rates": [
          {
            "amount": 848.31,
            "note": "UPS api: standard rate",
            "type": "retail_shipping"
          },
          {
            "amount": 64.4,
            "note": "UPS api: fuel surcharge",
            "type": "fuel_surcharge"
          },
          {
            "amount": 40.0,
            "note": "UPS api: extended area",
            "type": "carrier_fee"
          },
          {
            "amount": -9.53,
            "note": "UPS negotiated discount",
            "type": "negotiated_discount"
          }
        ],
        "service_level": "UPS_WORLDWIDE_EXPEDITED",
        "transit_business_days": null,
        "transit_days": null
      },
      "packages": [
        {
          "id": "1",
          "weight": {
            "billable": 32.0,
            "dimensional": 30.7554,
            "factor": 139,
            "weight_unit": "pound"
          }
        }
      ],
      "weight": {
        "billable": 32.0,
        "unit": "pound"
      }
    },
    {
      "id": "rtqt_1jyuPdiE5uIBcYzhO54DAb",
      "amount_subtotal": 1058.86,
      "mode": {
        "delivery_date_estimate": null,
        "display_name": "UPS Saver ",
        "rates": [
          {
            "amount": 957.26,
            "note": "UPS api: standard rate",
            "type": "retail_shipping"
          },
          {
            "amount": 72.3,
            "note": "UPS api: fuel surcharge",
            "type": "fuel_surcharge"
          },
          {
            "amount": 40.0,
            "note": "UPS api: extended area",
            "type": "carrier_fee"
          },
          {
            "amount": -10.7,
            "note": "UPS negotiated discount",
            "type": "negotiated_discount"
          }
        ],
        "service_level": "UPS_SAVER",
        "transit_business_days": null,
        "transit_days": null
      },
      "packages": [
        {
          "id": "1",
          "weight": {
            "billable": 32.0,
            "dimensional": 30.7554,
            "factor": 139,
            "weight_unit": "pound"
          }
        }
      ],
      "weight": {
        "billable": 32.0,
        "unit": "pound"
      }
    }
  ]
}

Was this page helpful?