Rates

Carrier offers for the route and parcel. The price price_cents is what the customer will pay. To purchase a label, provide the rate_id of the selected rate.

POST /rates

Parameters

NameTypeRequiredDescription
from.country string yes Country, two-letter ISO 3166-1 code (US, DE).
from.postal_code string yes Postal code.
from.city string no City.
from.line1 string no Address: street and house number.
from.line2 string no Apartment, office, floor.
from.state string no State or region, e.g., NY.
to.country string yes Country, two-letter ISO 3166-1 code (US, DE).
to.postal_code string yes Postal code.
to.city string no City.
to.line1 string no Address: street and house number.
to.line2 string no Apartment, office, floor.
to.state string no State or region, e.g., NY.
parcel.weight_g integer yes Weight in grams, integer, no more than 70000.
parcel.length_mm integer yes Length in millimeters, integer, no more than 2000.
parcel.width_mm integer yes Width in millimeters, integer, no more than 2000.
parcel.height_mm integer yes Height in millimeters, integer, no more than 2000.
declared_value_cents integer no Declared value in US cents. In the purchase method, defaults to the sum of the items.

Important to know

Request example

curl -X POST https://api.shippickup.com/v1/rates \
  -H "Authorization: Bearer $SHIPPICKUP_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "from": {
        "country": "US",
        "postal_code": "10001",
        "city": "New York"
    },
    "to": {
        "country": "DE",
        "postal_code": "10117",
        "city": "Berlin"
    },
    "parcel": {
        "weight_g": 800,
        "length_mm": 250,
        "width_mm": 180,
        "height_mm": 80
    },
    "declared_value_cents": 5000
}'

Response example 200

JSON
{
    "data": [
        {
            "rate_id": "<rate_id>",
            "carrier": "UPS",
            "service": "Express Saver",
            "price_cents": 4120,
            "price": "41.20",
            "currency": "USD",
            "eta_days_min": 3,
            "eta_days_max": 5,
            "pickup_supported": true,
            "chargeable_weight_g": 800
        }
    ],
    "meta": {
        "count": 1,
        "partial": false
    }
}

Possible errors

HTTPCodeDescription
422validation_failedError in request fields. error.details specifies the reason for each field.
403insufficient_scopeKey lacks the required permission, specified in error.details.required_scope.
429rate_limitedKey request limit exceeded. Retry after the time specified in the Retry-After header.

Full list of error codes →