listShippingMethods

post

/ccstore/v1/shippingMethods

List Shipping Methods. Get a list of shipping methods that are valid for a given address. Optionally takes the x-ccasset-language header to get translated content in another language.

Request

Supported Media Types
  • application/json
Header Parameters
X-CCAsset-Language
Type: string
The asset language of the request
Body Parameter
Root Schema : listShippingMethods_request
Nested Schema : items
Type: array
The array of products in the shopping cart.
Nested Schema : priceInfo
Type: object
The price information.
Nested Schema : productIdForShippingSurcharge
Type: array
array of product ids present in the cart.
Nested Schema : shippingAddress
Type: object
shipping address of the profile
Nested Schema : items
Type: object
Nested Schema : discountInfo
Type: object
Discount information.

Response

Supported Media Types
  • application/json
200 Response
Following model is returned when operation succeeds.
Body
Root Schema : listShippingMethods_response
Nested Schema : object
Type: array
the array of shipping methods
Nested Schema : items
Type: object
Nested Schema : ranges
Type: array
the price ranges for this shipping method
Nested Schema : shipToLocations
Type: array
The array of repository IDs of shipping locations.
Nested Schema : items
Type: object
Nested Schema : items
Type: object
Example application/json

[
    {
        "eligibleForProductWithSurcharges":true,
        "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"
            }
        ],
        "displayName":"Ground",
        "displaySequence":0,
        "repositoryId":"ground",
        "description":null,
        "type":0,
        "taxCode":"FR020400",
        "shippingGroupType":"hardgoodShippingGroup",
        "enabled":true,
        "shipToLocations":[
            {
                "repositoryId":"100002"
            },
            {
                "repositoryId":"100001"
            }
        ]
    },
    {
        "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"
            }
        ],
        "displayName":"Two Day",
        "displaySequence":1,
        "repositoryId":"twoDay",
        "description":null,
        "type":0,
        "taxCode":"FR020400",
        "shippingGroupType":"hardgoodShippingGroup",
        "enabled":true,
        "shipToLocations":[
            {
                "repositoryId":"100002"
            },
            {
                "repositoryId":"100001"
            }
        ]
    },
    {
        "eligibleForProductWithSurcharges":true,
        "shippingCalculator":"priceRange",
        "ranges":[
            {
                "amount":16.4,
                "high":null,
                "low":0,
                "repositoryId":"overnightRange1"
            }
        ],
        "displayName":"Overnight",
        "displaySequence":2,
        "repositoryId":"overnight",
        "description":null,
        "type":0,
        "taxCode":"FR020400",
        "shippingGroupType":"hardgoodShippingGroup",
        "enabled":true,
        "shipToLocations":[
            {
                "repositoryId":"100002"
            },
            {
                "repositoryId":"100001"
            }
        ]
    }
]
Default Response
The error response
Body
Root Schema : errorModel
Type: object
Nested Schema : errors
Type: array
An optional list of errors if multiple errors were encountered
Nested Schema : items
Type: object

Examples

Sample Request:

{
  "priceInfo": {
    "amount": 22.98,
    "total": 22.98,
    "shipping": 0,
    "shippingSurchargeValue": 0,
    "tax": 0,
    "subTotal": 22.98,
    "currencyCode": "USD",
    "totalWithoutTax": 22.98
  },
  "shippingAddress": {
    "lastName": "kim",
    "country": "United States",
    "address2": "",
    "city": "ALS",
    "address1": "20 Cedar Ave",
    "postalCode": "36123",
    "county": "",
    "selectedCountry": "US",
    "firstName": "james",
    "phoneNumber": "",
    "state": "Alabama",
    "email": "james@example.com",
    "selectedState": "AL",
    "state_ISOCode": "US-AL"
  },
  "items": [
    {
      "quantity": 1,
      "discountInfo": [],
      "productId": "prod10020",
      "rawTotalPrice": 12.99,
      "price": 12.99,
      "invalid": false,
      "stockStatus": true,
      "currentPrice": 12.99,
      "catRefId": "Sku_15DE"
    },
    {
      "quantity": 1,
      "discountInfo": [],
      "productId": "prod10022",
      "rawTotalPrice": 9.99,
      "invalid": false,
      "stockStatus": true,
      "currentPrice": 9.99,
      "catRefId": "Sku_18Dyii"
    }
  ],
  "productIdForShippingSurcharge": [
    "prod10020",
    "prod10022"
  ]
}

Sample Response Payload returned by endpoint:

[
  {
    "eligibleForProductWithSurcharges": true,
    "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"
      }
    ],
    "displayName": "Ground",
    "displaySequence": 0,
    "repositoryId": "ground",
    "description": null,
    "type": 0,
    "taxCode": "FR020400",
    "shippingGroupType": "hardgoodShippingGroup",
    "enabled": true,
    "shipToLocations": [
      {"repositoryId": "100002"},
      {"repositoryId": "100001"}
    ]
  },
  {
    "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"
      }
    ],
    "displayName": "Two Day",
    "displaySequence": 1,
    "repositoryId": "twoDay",
    "description": null,
    "type": 0,
    "taxCode": "FR020400",
    "shippingGroupType": "hardgoodShippingGroup",
    "enabled": true,
    "shipToLocations": [
      {"repositoryId": "100002"},
      {"repositoryId": "100001"}
    ]
  },
  {
    "eligibleForProductWithSurcharges": true,
    "shippingCalculator": "priceRange",
    "ranges": [{
      "amount": 16.4,
      "high": null,
      "low": 0,
      "repositoryId": "overnightRange1"
    }],
    "displayName": "Overnight",
    "displaySequence": 2,
    "repositoryId": "overnight",
    "description": null,
    "type": 0,
    "taxCode": "FR020400",
    "shippingGroupType": "hardgoodShippingGroup",
    "enabled": true,
    "shipToLocations": [
      {"repositoryId": "100002"},
      {"repositoryId": "100001"}
    ]
  }
]