Shipping Options for a Cart

The POST shippingprices endpoint can be used to retrive available shipping options for a cart.

The POST data should be JSON object with following properties set:

  • ShipToPostalCode - required - postal code
  • ShipToCountry - required - 2-letter country code
  • ShipToState - optional - state code if exists
  • CurrencyCode - required - currency code
  • LanguageCode - required - 2-letter language code
  • Items - required - list of SKU & quantity pairs. Each item must have the following properties defined:
    • SKU - required - SKU of product variant
    • Quantity - required - quantity of items with this SKU

Example:

This request yields following response:

{
  "Result": [
    {
      "SKUs": [
        "PhoneCase-GalaxyNote2-Matte"
      ],
      "ShipOptions": [
        {
          "CarrierName": "Expedited",
          "MethodType": "Expedited",
          "Name": "Expedited",
          "Price": {
            "Price": 24.2,
            "CurrencyCode": "USD",
            "FormattedPrice": "$24.20",
            "CurrencyFormat": "${1}",
            "CurrencyDigits": 2
          },
          "Id": 2,
          "EstBusinessDaysTilDelivery": 4,
          "MethodId": 5
        },
        {
          "CarrierName": "Standard",
          "MethodType": "Standard",
          "Name": "Standard",
          "Price": {
            "Price": 4.79,
            "CurrencyCode": "USD",
            "FormattedPrice": "$4.79",
            "CurrencyFormat": "${1}",
            "CurrencyDigits": 2
          },
          "Id": 1,
          "EstBusinessDaysTilDelivery": 12,
          "MethodId": 3
        }
      ]
    },
    {
      "SKUs": [
        "PhoneCase-Glossy-GalaxyNote3"
      ],
      "ShipOptions": [
        {
          "CarrierName": "Standard",
          "MethodType": "Standard",
          "Name": "Standard",
          "Price": {
            "Price": 4.5,
            "CurrencyCode": "USD",
            "FormattedPrice": "$4.50",
            "CurrencyFormat": "${1}",
            "CurrencyDigits": 2
          },
          "Id": 1,
          "EstBusinessDaysTilDelivery": 12,
          "MethodId": 3
        }
      ]
    }
  ]
}

Next Step: Getting Price Estimate for an Order