Skip to main content

Rate

GET /v2/getRate

Returns calculated shipping rate.

  • URL: https://parcelconnect.apc-pli.com/v2/getRate/
  • Auth: HTTP Basic — see Authentication.

Request

curl -X GET -H "Authorization: Basic {{basic_token}}" \
"https://parcelconnect.apc-pli.com/v2/getRate/?country={{country}}&service={{service}}&value={{value}}&postalCode={{postalCode}}&weight={{weight}}&length={{length}}&width={{width}}&height={{height}}&currency={{currency}}&shipDate={{shipDate}}"

Response

{
"rate": 16.59,
"dimsFactor": 139.00
}

Request parameters

All parameters are case-sensitive.

ParameterTypeDescriptionRequiredExample
countrystringDestination 2-letter ISO country codeYesCA
servicestringService code (e.g., 26)Yes26
valuedecimalDeclared value of the shipment. In USD unless currency is provided.Yes25.00
postalCodestringDestination postal or ZIP code. Required for destinations that are priced by postal zone; recommended for all requests.ConditionalM5V3L9
weightdecimalTotal weight of the shipment (in pounds). Required unless length, width, and height are all provided.Conditional2.25
lengthdecimalLongest parcel dimension (in inches). Required together with width and height when weight is omitted.Conditional10.00
widthdecimalSecond longest parcel dimension (in inches). See length.Conditional8.50
heightdecimalShortest parcel dimension (in inches). See length.Conditional6.25
currencystringISO 4217 currency code for value and the returned rate. Defaults to USD.NoCAD
shipDatestringShipment date (MM/DD/YYYY)No01/01/2026

Response fields

FieldTypeDescription
ratedecimalCalculated shipping rate. In USD unless a currency conversion was requested.
dimsFactordecimalDimensional weight factor used in the calculation.
currencystringCurrency of the returned rate. Present only when currency was supplied on the request.
exchangeRatedecimalExchange rate applied to convert the rate. Present only when currency was supplied.
convertedRatedecimalRate converted into the requested currency. Present only when currency was supplied.
currencyConversionWarningstringWarning about the currency conversion, if any. Present only when currency was supplied.

All numeric values accept up to two decimal places. Available service codes can be retrieved from the Services endpoint.