getShippingMethod

get

/ccstore/v1/shippingMethods/{id}

Get Shipping Method. Get a shipping method. Optionally takes the x-ccasset-language header to get translated content in another language.

Request

Supported Media Types
  • application/json
Path Parameters
id
Type: string
Required: true
the id of the shipping method to get
Header Parameters
X-CCAsset-Language
Type: string
The asset language of the request

Response

Supported Media Types
  • application/json
200 Response
Following model is returned when operation succeeds.
Body
Root Schema : getShippingMethod_response
Nested Schema : ranges
Type: array
The price ranges for this shipping method.
Nested Schema : shipToLocations
Type: array
List 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"
        }
    ]
}
Default Response
The error response. The following are the internal error codes thrown by this API when the request processing fails in Oracle Commerce Cloud: |Error Code|Description| |------------------|------------------| |31015|If there was no shipping method found with the given id|
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 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"}
  ]
}