GET api/ShipmentOuts/OptimizedLocation?countryCode={countryCode}&stateCode={stateCode}

Returns the warehouse location that's optimized to send a package.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
countryCode

Country code of the destination country

string

Required

stateCode

State code of the destination state

string

Required

Body Parameters

None.

Response Information

Resource Description

ResponseApiInfoOfWAREHOUSE_LOCATION
NameDescriptionTypeAdditional information
data

WAREHOUSE_LOCATION

None.

UpdateResult

UPDATECODE

None.

isErrorOnRequest

boolean

None.

errorMessage

string

None.

errorMessages

Collection of ErrorInfo

None.

warningMessages

Collection of ErrorInfo

None.

isSuccess

boolean

None.

Response Formats

application/json, text/json

Sample:
{
  "isSuccess": true,
  "data": "ALL",
  "UpdateResult": "CREATE",
  "isErrorOnRequest": true,
  "errorMessage": null,
  "errorMessages": [],
  "warningMessages": []
}

application/xml, text/xml

Sample:
<xml xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <isSuccess>true</isSuccess>
  <UpdateResult>CREATE</UpdateResult>
  <isErrorOnRequest>true</isErrorOnRequest>
  <errorMessages />
  <warningMessages />
  <data>ALL</data>
</xml>