This API describes how to get the fulfillment shipping rate estimation.

Common Parameter

Test Endpoint: https://api-dev.gcparcelservice.com/openapi/fulfillment-shipment-rate

Production Endpoint: https://api.gcparcelservice.com/openapi/fulfillment-shipment-rate

Method: POST

Request Body

{
  "shipping_method": "STAND",
  "warehouse_code": "LAX01W", 
  "currency": "USD", 
  "to_address": {
    "address_1": "1 MAIN ST",
    "address_2": "",
    "city": "Anytown",
    "state": "CA",
    "zip": "90210",
    "country": "US"
  },
  "package": {
    "weight": 20.35,
    "width": 12.55,
    "length": 15.20,
    "height": 4.70
  }
}

Request Body Explanation

Attribute NameTypeDescription
shipping_methodStringshipping method name, you can get this value from the Get Warehouse List API
warehouse_codeStringcode of the warehouse shipping from, you can get this value from the Get Warehouse List API
currencyStringCurrency code, only support USD for now
to_addressObjectconsignee's address
address_1Stringaddress line 1
address_2Stringaddress line 2
cityStringcity name
stateStringstate or province
zipStringzip code
countryStringcountry name
packageObjectpackage information
weightFloatpackage weight, unit LB
widthFloatpackage width, unit inch
lengthFloatpackage length, unit inch
heightFloatpackage height, unit inch

Response Body

{
  "code": 200,
  "data": {
      "currency": "USD",
      "shipping_method": "STAND",
      "warehouse_code": "LAX01W",
      "estimated_cost": 17.60
   }
}

Response Body Explanation

Attribute NameTypeDescription
codeIntegerResponse code: 200 successful, 400/500 failed
dataObjectreturn value list of cost for different shipping methods
currencyStringCurrency code
shipping_methodStringShipping method name
warehouse_codeStringwarehouse code
estimated_costFloatestimated shipping cost. This is ONLY ESTIMATE and final quotation is determined once tracking number gets checked-in in the system.

Response Example (when zip code not in service area)

{
  "code": 400,
  "message": "zip code is not in service area."
}

Code Example

Estimate Fulfillment Shipping Rate API Code Example