v1

latestOpenAPI 3.0.0Apache License 2.02026-07-263171,5614.1 MB
External Fulfillment Shipping v2024-09-11

retrieveShippingOptions

Get a list of shipping options for a package in a shipment given the shipment's marketplace and channel. If the marketplace and channel have a pre-determined shipping option, then this operation returns an empty response.

get/externalFulfillment/2024-09-11/shipments/{shipmentId}/shippingOptions

Path parameters

shipmentIdstring required

The ID of the shipment to which the package belongs.

Query parameters

packageIdstring required

The ID of the package for which you want to retrieve shipping options.

Response

Success.

Example response

{
  "shippingOptions": [
    {
      "shippingOptionId": "TEST_CASE_200_SHIPPING_OPTION_ID",
      "carrierName": "ATSPL",
      "shipBy": "MARKETPLACE",
      "pickupWindow": {
        "startTime": 1612933142,
        "endTime": 1612494142
      },
      "timeSlot": {
        "startTime": 1612933142,
        "endTime": 1612494142,
        "handoverMethod": "DROPOFF"
      },
      "handoverLocation": {
        "address": {
          "postalCode": "98101",
          "addressLine1": "123 Main St",
          "city": "Seattle",
          "stateOrRegion": "WA",
          "countryCode": "US",
          "geocodes": {
            "latitude": "47.6062",
            "longitude": "-122.3321"
          }
        },
        "distance": {
          "value": "3.5",
          "distanceUnit": "MI"
        },
        "mapUrl": "https://maps.example.com/location?lat=47.6062&lng=-122.3321"
      }
    }
  ],
  "recommendedShippingOption": {
    "shippingOptionId": "TEST_CASE_200_SHIPPING_OPTION_ID",
    "carrierName": "ATSPL",
    "shipBy": "MARKETPLACE",
    "pickupWindow": {
      "startTime": 1612933142,
      "endTime": 1612494142
    },
    "timeSlot": {
      "startTime": 1612933142,
      "endTime": 1612494142,
      "handoverMethod": "DROPOFF"
    },
    "handoverLocation": {
      "address": {
        "postalCode": "98101",
        "addressLine1": "123 Main St",
        "city": "Seattle",
        "stateOrRegion": "WA",
        "countryCode": "US",
        "geocodes": {
          "latitude": "47.6062",
          "longitude": "-122.3321"
        }
      },
      "distance": {
        "value": "3.5",
        "distanceUnit": "MI"
      },
      "mapUrl": "https://maps.example.com/location?lat=47.6062&lng=-122.3321"
    }
  }
}