Get Rates
Deprecated
POST
api/get/rates
Request
Header Params
Content-Type
string
required
Example:
application/json
Authorization
array[string]
optional
Example:
["Basic {{apiKey}}"]
Body Params application/json
recipient
object
required
address_line1
string
required
address_line2
string | null
optional
city
string
required
state_code
string
required
postal_code
string
required
country_code
string
required
<= 2 characters
person_name
string
required
phone_number
string
required
parcels
array [object {7}]
required
length
number
required
width
number
required
height
number
required
dimension_unit
string
required
weight
number
required
weight_unit
string
required
count
integer
optional
Example
{
"recipient": {
"address_line1": "255 Park Center Drive",
"address_line2": null,
"state_code": "CA",
"city": "Patterson",
"postal_code": "95363",
"country_code": "US"
},
"parcels": [
{
"weight": "21.450000",
"length": "57.95",
"width": "33.25",
"height": "57.95",
"weight_unit": "KG",
"dimension_unit": "CM",
"count": 1
}
]
}
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://app.shipnitro.com/api/get/rates' \
--header 'Authorization: Basic {{apiKey}}' \
--header 'Content-Type: application/json' \
--data-raw '{
"recipient": {
"address_line1": "255 Park Center Drive",
"address_line2": null,
"state_code": "CA",
"city": "Patterson",
"postal_code": "95363",
"country_code": "US"
},
"parcels": [
{
"weight": "21.450000",
"length": "57.95",
"width": "33.25",
"height": "57.95",
"weight_unit": "KG",
"dimension_unit": "CM",
"count": 1
}
]
}'
Responses
🟢200Success
application/json
Body
error
boolean
required
message
array[string]
required
rates
object
required
fedex_home_delivery
object
optional
Example
{
"error": false,
"message": [],
"rates": {
"fedex_ground": {
"carrier_name": "fedex",
"currency": "USD",
"service": "fedex_ground",
"service_code": "FEDEX_GROUND",
"total_charge": 14.9,
"meta": {
"service_name": "FedEx Ground®",
"rate_provider": "fedex"
}
}
}
}
🟠400Bad Request
🟠400Bad Request: Package too large