listShippingMethods
get
/ccadmin/v1/shippingMethods
List Shipping Methods. Get a list of shipping methods based on request parameters. Optionally takes the x-ccasset-language header to get translated content in another language.
Request
Supported Media Types
- application/json
Query Parameters
- enabledOnly
-
Type:
booleanOnly return shipping methods which are enabled. Defaults to true.- shippingGroupType
Type:stringIf set, only returns shipping methods of the given shipping group type.
Header Parameters
- X-CCAsset-Language
-
Type:
stringThe asset language of the request
Response
Supported Media Types
- application/json
200 Response
Following model is returned when operation succeeds.
Body
Root Schema : listShippingMethods_response
- items
-
Type:
arrayitemsthe array of shipping methods
Nested Schema : items
Type:
object- description
-
Type:
stringThe description of shipping group. - displayName
-
Type:
stringthe display name for the shipping method given the current locale. - displaySequence
-
Type:
integerused to determine the ordering of shipping methods in the UI. Lower values should appear first in any ordered list. - eligibleForProductWithSurcharges
-
Type:
booleanWhether this shipping method is enabled for products with surcharges or not. Defaults to null. - enabled
-
Type:
booleanwhether this shipping method is enabled or not. - ranges
-
Type:
arrayrangesthe price ranges for this shipping method - repositoryId
-
Type:
stringthe id of the shipping method item - shippingCalculator
-
Type:
stringa valid key for the available calculator types - shippingGroupType
-
Type:
stringThe shipping group type. - shipToLocations
-
Type:
arrayshipToLocationsThe array of repository IDs of shipping locations. - taxCode
-
Type:
stringa valid tax code for calculating tax on shipping. - type
-
Type:
integerThe type property of the shipping method.
Nested Schema : ranges
Nested Schema : shipToLocations
Nested Schema : items
Type:
object- amount
-
Type:
numberthe monetary value for the range - high
-
Type:
numberthe upper boundary of the range - low
-
Type:
numberthe lower boundary of the range - repositoryId
-
Type:
stringthe repository id of this priceRange item
Example application/json
[
{
"eligibleForProductWithSurcharges":false,
"shippingCalculator":"priceRange",
"ranges":[
{
"amount":4.75,
"high":14.99,
"low":0,
"repositoryId":"groundRange1"
},
{
"amount":5.95,
"high":49.99,
"low":15,
"repositoryId":"groundRange2"
},
{
"amount":6.5,
"high":null,
"low":50,
"repositoryId":"groundRange3"
}
],
"associatedPriceListGroups":[
{
"displayName":"UsDollar",
"listPriceList":{
"repositoryId":"listPrices"
},
"repositoryId":"UsDollar",
"active":true,
"salePriceList":{
"repositoryId":"salePrices"
},
"currency":{
"symbol":"$",
"displayName":"US Dollar",
"repositoryId":"en_US",
"fractionalDigits":2,
"currencyCode":"USD",
"numericCode":"840"
},
"id":"UsDollar",
"locale":"en_US",
"shippingSurchargePriceList":{
"repositoryId":"shippingSurchargePrices"
}
}
],
"displayName":"Ground",
"description":null,
"type":0,
"taxCode":"FR020400",
"shippingGroupType":"hardgoodShippingGroup",
"enabled":true,
"displaySequence":0,
"repositoryId":"ground",
"shipToLocations":[
{
"repositoryId":"SouthUS"
},
{
"repositoryId":"NorthUS"
}
]
},
{
"eligibleForProductWithSurcharges":true,
"shippingCalculator":"priceRange",
"ranges":[
{
"amount":8.75,
"high":14.99,
"low":0,
"repositoryId":"twoDayRange1"
},
{
"amount":9.95,
"high":49.99,
"low":15,
"repositoryId":"twoDayRange2"
},
{
"amount":10.5,
"high":null,
"low":50,
"repositoryId":"twoDayRange3"
}
],
"associatedPriceListGroups":[
{
"displayName":"UsDollar",
"listPriceList":{
"repositoryId":"listPrices"
},
"repositoryId":"UsDollar",
"active":true,
"salePriceList":{
"repositoryId":"salePrices"
},
"currency":{
"symbol":"$",
"displayName":"US Dollar",
"repositoryId":"en_US",
"fractionalDigits":2,
"currencyCode":"USD",
"numericCode":"840"
},
"id":"UsDollar",
"locale":"en_US",
"shippingSurchargePriceList":{
"repositoryId":"shippingSurchargePrices"
}
}
],
"displayName":"Two Day",
"description":null,
"type":0,
"taxCode":"FR020400",
"shippingGroupType":"hardgoodShippingGroup",
"enabled":true,
"displaySequence":1,
"repositoryId":"twoDay",
"shipToLocations":[
{
"repositoryId":"SouthUS"
},
{
"repositoryId":"EastUS"
}
]
},
{
"eligibleForProductWithSurcharges":false,
"shippingCalculator":"priceRange",
"ranges":[
{
"amount":16.4,
"high":null,
"low":0,
"repositoryId":"overnightRange1"
}
],
"associatedPriceListGroups":[
{
"displayName":"UsDollar",
"listPriceList":{
"repositoryId":"listPrices"
},
"repositoryId":"UsDollar",
"active":true,
"salePriceList":{
"repositoryId":"salePrices"
},
"currency":{
"symbol":"$",
"displayName":"US Dollar",
"repositoryId":"en_US",
"fractionalDigits":2,
"currencyCode":"USD",
"numericCode":"840"
},
"id":"UsDollar",
"locale":"en_US",
"shippingSurchargePriceList":{
"repositoryId":"shippingSurchargePrices"
}
}
],
"displayName":"Overnight",
"description":null,
"type":0,
"taxCode":"FR020400",
"shippingGroupType":"hardgoodShippingGroup",
"enabled":true,
"displaySequence":2,
"repositoryId":"overnight",
"shipToLocations":[
{
"repositoryId":"WestUS"
},
{
"repositoryId":"NorthUS"
}
]
},
{
"eligibleForProductWithSurcharges":false,
"shippingCalculator":"priceRange",
"ranges":[
{
"amount":66,
"high":59.99,
"low":0,
"repositoryId":"100001"
},
{
"amount":76,
"high":null,
"low":60,
"repositoryId":"100002"
}
],
"associatedPriceListGroups":[
],
"displayName":"asdfsdaf",
"description":null,
"type":0,
"taxCode":null,
"shippingGroupType":"hardgoodShippingGroup",
"enabled":true,
"displaySequence":3,
"repositoryId":"100001",
"shipToLocations":[
]
}
]
Default Response
The error response
Body
Root Schema : errorModel
Type:
object- devMessage
-
Type:
stringAn optional non-localized message containing technical information for developers - errorCode
-
Type:
stringThe numerical code identifying the error - errors
-
Type:
arrayerrorsAn optional list of errors if multiple errors were encountered - message
-
Type:
stringThe localized message describing the error - moreInfo
-
Type:
stringAn optional non-localized message with more information - o:errorPath
-
Type:
stringAn optional machine readable description of where the error occurred - status
-
Type:
stringThe HTTP status code - type
-
Type:
stringThe URI to the HTTP state code definition
Nested Schema : errors
Nested Schema : items
Type:
object- devMessage
-
Type:
stringAn optional non-localized message containing technical information for developers - errorCode
-
Type:
stringThe numerical code identifying the error - message
-
Type:
stringThe localized message describing the error - moreInfo
-
Type:
stringAn optional non-localized message with more information - o:errorPath
-
Type:
stringAn optional machine readable description of where the error occurred - status
-
Type:
stringThe HTTP status code
Examples
Sample Response Payload returned by endpoint:
[
{
"eligibleForProductWithSurcharges": false,
"shippingCalculator": "priceRange",
"ranges": [
{
"amount": 4.75,
"high": 14.99,
"low": 0,
"repositoryId": "groundRange1"
},
{
"amount": 5.95,
"high": 49.99,
"low": 15,
"repositoryId": "groundRange2"
},
{
"amount": 6.5,
"high": null,
"low": 50,
"repositoryId": "groundRange3"
}
],
"associatedPriceListGroups": [{
"displayName": "UsDollar",
"listPriceList": {"repositoryId": "listPrices"},
"repositoryId": "UsDollar",
"active": true,
"salePriceList": {"repositoryId": "salePrices"},
"currency": {
"symbol": "$",
"displayName": "US Dollar",
"repositoryId": "en_US",
"fractionalDigits": 2,
"currencyCode": "USD",
"numericCode": "840"
},
"id": "UsDollar",
"locale": "en_US",
"shippingSurchargePriceList": {"repositoryId": "shippingSurchargePrices"}
}],
"displayName": "Ground",
"description": null,
"type": 0,
"taxCode": "FR020400",
"shippingGroupType": "hardgoodShippingGroup",
"enabled": true,
"displaySequence": 0,
"repositoryId": "ground",
"shipToLocations": [
{"repositoryId": "SouthUS"},
{"repositoryId": "NorthUS"}
]
},
{
"eligibleForProductWithSurcharges": true,
"shippingCalculator": "priceRange",
"ranges": [
{
"amount": 8.75,
"high": 14.99,
"low": 0,
"repositoryId": "twoDayRange1"
},
{
"amount": 9.95,
"high": 49.99,
"low": 15,
"repositoryId": "twoDayRange2"
},
{
"amount": 10.5,
"high": null,
"low": 50,
"repositoryId": "twoDayRange3"
}
],
"associatedPriceListGroups": [{
"displayName": "UsDollar",
"listPriceList": {"repositoryId": "listPrices"},
"repositoryId": "UsDollar",
"active": true,
"salePriceList": {"repositoryId": "salePrices"},
"currency": {
"symbol": "$",
"displayName": "US Dollar",
"repositoryId": "en_US",
"fractionalDigits": 2,
"currencyCode": "USD",
"numericCode": "840"
},
"id": "UsDollar",
"locale": "en_US",
"shippingSurchargePriceList": {"repositoryId": "shippingSurchargePrices"}
}],
"displayName": "Two Day",
"description": null,
"type": 0,
"taxCode": "FR020400",
"shippingGroupType": "hardgoodShippingGroup",
"enabled": true,
"displaySequence": 1,
"repositoryId": "twoDay",
"shipToLocations": [
{"repositoryId": "SouthUS"},
{"repositoryId": "EastUS"}
]
},
{
"eligibleForProductWithSurcharges": false,
"shippingCalculator": "priceRange",
"ranges": [{
"amount": 16.4,
"high": null,
"low": 0,
"repositoryId": "overnightRange1"
}],
"associatedPriceListGroups": [{
"displayName": "UsDollar",
"listPriceList": {"repositoryId": "listPrices"},
"repositoryId": "UsDollar",
"active": true,
"salePriceList": {"repositoryId": "salePrices"},
"currency": {
"symbol": "$",
"displayName": "US Dollar",
"repositoryId": "en_US",
"fractionalDigits": 2,
"currencyCode": "USD",
"numericCode": "840"
},
"id": "UsDollar",
"locale": "en_US",
"shippingSurchargePriceList": {"repositoryId": "shippingSurchargePrices"}
}],
"displayName": "Overnight",
"description": null,
"type": 0,
"taxCode": "FR020400",
"shippingGroupType": "hardgoodShippingGroup",
"enabled": true,
"displaySequence": 2,
"repositoryId": "overnight",
"shipToLocations": [
{"repositoryId": "WestUS"},
{"repositoryId": "NorthUS"}
]
},
{
"eligibleForProductWithSurcharges": false,
"shippingCalculator": "priceRange",
"ranges": [
{
"amount": 66,
"high": 59.99,
"low": 0,
"repositoryId": "100001"
},
{
"amount": 76,
"high": null,
"low": 60,
"repositoryId": "100002"
}
],
"associatedPriceListGroups": [],
"displayName": "asdfsdaf",
"description": null,
"type": 0,
"taxCode": null,
"shippingGroupType": "hardgoodShippingGroup",
"enabled": true,
"displaySequence": 3,
"repositoryId": "100001",
"shipToLocations": []
}
]