getShippingMethod

get

/ccagent/v1/shippingMethods/{id}

Get Shipping Method. Get a shipping method.This Endpoint is clone of StoreFront endpoint and it can be used if application running on agent/admin server need access to shipping methods data configured for StoreFront.

Request

Supported Media Types
  • application/json
Path Parameters
id
Type: string
Required: true
the id of the shipping method to get

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

{
    "shippingCalculator":"priceRange",
    "eligibleForProductWithSurcharges":null,
    "ranges":[
        {
            "amount":4.5,
            "high":49.99,
            "low":0,
            "repositoryId":"groundRange_01"
        },
        {
            "amount":8.5,
            "high":99.99,
            "low":50,
            "repositoryId":"groundRange_02"
        },
        {
            "amount":11,
            "high":null,
            "low":100,
            "repositoryId":"groundRange_03"
        }
    ],
    "displayName":"Ground",
    "displaySequence":7,
    "repositoryId":"groundShippingMethod",
    "description":null,
    "type":0,
    "taxCode":null,
    "shippingGroupType":"hardgoodShippingGroup",
    "enabled":true,
    "shipToLocations":[
        {
            "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|No shipping method found with id: {0}|
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:

{
  "shippingCalculator": "priceRange",
  "eligibleForProductWithSurcharges": null,
  "ranges": [
    {
      "amount": 4.5,
      "high": 49.99,
      "low": 0,
      "repositoryId": "groundRange_01"
    },
    {
      "amount": 8.5,
      "high": 99.99,
      "low": 50,
      "repositoryId": "groundRange_02"
    },
    {
      "amount": 11,
      "high": null,
      "low": 100,
      "repositoryId": "groundRange_03"
    }
  ],
  "displayName": "Ground",
  "displaySequence": 7,
  "repositoryId": "groundShippingMethod",
  "description": null,
  "type": 0,
  "taxCode": null,
  "shippingGroupType": "hardgoodShippingGroup",
  "enabled": true,
  "shipToLocations": [{"repositoryId": "100001"}]
}