Skip to main content
Version: 8.1.x

Shipmentdetails

The shipmentdetails resource defines how and where the physical goods you’re purchasing are shipped. The where you’re shipping is the shipping address, while the how are the shipping options (i.e. Canada Post, FedEx, etc) available for your store.

Read Order Destination Info​

Retrieves the order’s destinationinfo, which contains links to:

Workflow​

  1. Start with delivery
  2. GET the link with rel: destinationinfo
  3. Render the response

Response Fields​

Type: controls.info​

NameDescriptionType
nameThe info object’s name.string

Read Order Shipping Address​

Retrieve the shipping address that is currently selected for the order.

Workflow​

  1. Start with destination-info
  2. GET the link with rel: destination
  3. Render the response

Response Fields​

Type: addresses.address​

NameDescriptionType
nameThe customer name.object
  given-nameThe person’s given name.string
  family-nameThe person’s family name.string
addressThe customer address. Address field names are based on the v.card specification. For more information on this specification, see v.card.object
  street-addressThe street address.string
  extended-addressExtra field for address information. This field is optional.string
  localityThe city name.string
  regionThe region name. A region typically corresponds to a province or a state of a country.string
  postal-codePostal code or zip code.string
  country-nameThe country name.string
phone-numberPhone numberstring
organizationThe organizationstring

Select Shipping Address​

Uses a Selector to select a shipping address to use for the order.

Workflow​

  1. Start with destination-info
  2. GET the link with rel: selector
  3. GET the link with rel: choice
  4. GET the link with rel: chosen
  5. GET the link with rel: description
  6. POST the choice using the link with rel: selectaction

Read Order Shipping Address Form​

Retrieve the address form to create a new shipping address for the order.

Workflow​

  1. Start with destination-info
  2. GET the link with rel: addressform
  3. Render the response

Response Fields​

Type: addresses.address​

NameDescriptionType
nameThe customer name.object
  given-nameThe person’s given name.string
  family-nameThe person’s family name.string
addressThe customer address. Address field names are based on the v.card specification. For more information on this specification, see v.card.object
  street-addressThe street address.string
  extended-addressExtra field for address information. This field is optional.string
  localityThe city name.string
  regionThe region name. A region typically corresponds to a province or a state of a country.string
  postal-codePostal code or zip code.string
  country-nameThe country name.string
phone-numberPhone numberstring
organizationThe organizationstring

Add Shipping Address From Delivery​

Create a shipping address from the delivery.

Workflow​

  1. Start with delivery
  2. GET the link with rel: destinationinfo
  3. GET the link with rel: addressform
  4. Fill out the form
  5. POST the form using the link with rel: createaddressaction

Request Fields​

Type: addresses.address​

NameDescriptionType
nameThe customer name.object
  given-nameThe person’s given name.string
  family-nameThe person’s family name.string
addressThe customer address. Address field names are based on the v.card specification. For more information on this specification, see v.card.object
  street-addressThe street address.string
  extended-addressExtra field for address information. This field is optional.string
  localityThe city name.string
  regionThe region name. A region typically corresponds to a province or a state of a country.string
  postal-codePostal code or zip code.string
  country-nameThe country name.string
phone-numberPhone numberstring
organizationThe organizationstring

Read Order Shipping Option Info​

Retrieves the order’s shippingoptioninfo, which contains links to:

Workflow​

  1. Start with delivery
  2. GET the link with rel: shippingoptioninfo
  3. Render the response

Response Fields​

Type: controls.info​

NameDescriptionType
nameThe info object’s name.string

Read Order Shipping Option​

Retrieves the shipping option that is currently selected for the order. The shipping option is how the order will be shipped, i.e. (FedEx, Canada Post, etc). If a shipping option has not been selected for the order, the shipping option link will not appear on the shippingoptioninfo. For information on how to select the shippingoption, see Select Shipping Choice

Workflow​

  1. Start with shipping-option-info
  2. GET the link with rel: shippingoption
  3. Render the response

Response Fields​

Type: shipmentdetails.shipping-option​

NameDescriptionType
nameName of the shipping option.string
display-nameThe localized name of the carrier, intended for display in the client application.string
carrierName of the carrier.string
costThe shipping costs for shipping the item(s) to the selected shipping address.array
  currencyThe currency the cost is in.string
  amountThe decimal value of the cost.decimal
  displayFormatted currency string that can be displayed on the client application.string

Select Shipping Option​

Uses a Selector to choose the shipping option for the order. The shipping option is how the order will be shipped, i.e. (FedEx, Canada Post, etc). The shipping options available for your shipment depend on which shipping regions and shipping options are configured for your store. Check with your store’s administrator for more information on these options.

Workflow​

  1. Start with shipping-option-info
  2. GET the link with rel: selector
  3. GET the link with rel: choice
  4. GET the link with rel: chosen
  5. GET the link with rel: description
  6. POST the choice using the link with rel: selectaction

Read Destination Needinfo From Order​

Read the needinfo link for the shipping address. If this link appears on the order, it means the shipping address has not been selected or created for the order. Needinfo links can appear on the order, the purchase form, and the delivery.

Workflow​

  1. Start with order
  2. GET the link with rel: needinfo
  3. Render the response

Response Fields​

Type: controls.info​

NameDescriptionType
nameThe info object’s name.string

Read Destination Needinfo From Delivery​

Read the needinfo link for the shipping address from the delivery. Needinfo links can appear on the order, the purchase form, and the delivery.

Workflow​

  1. Start with delivery
  2. GET the link with rel: needinfo
  3. Render the response

Response Fields​

Type: controls.info​

NameDescriptionType
nameThe info object’s name.string

Read Destination Needinfo From Purchaseform​

Read the needinfo link for the shipping address from the purchase form. Needinfo links can appear on the order, the purchase form, and the delivery.

Workflow​

  1. Start with create-purchase-form
  2. GET the link with rel: needinfo
  3. Render the response

Response Fields​

Type: controls.info​

NameDescriptionType
nameThe info object’s name.string

Read Shippingoption Needinfo From Order​

Read the needinfo for the shipping option from the order. This needinfo appears when a shipping option has not been selected for the order. Needinfo links can appear on the order, the purchase form, and the delivery.

Workflow​

  1. Start with order
  2. GET the link with rel: needinfo
  3. Render the response

Response Fields​

Type: controls.info​

NameDescriptionType
nameThe info object’s name.string

Read Shippingoption Needinfo From Delivery​

Read the needinfo for the shipping option from the order. This needinfo appears when a shipping option has not been selected for the order. Needinfo links can appear on the order, the purchase form, and the delivery.

Workflow​

  1. Start with delivery
  2. GET the link with rel: needinfo
  3. Render the response

Response Fields​

Type: controls.info​

NameDescriptionType
nameThe info object’s name.string

Read Shippingoption Needinfo From Purchaseform​

Read the needinfo for the shipping option from the purchaseform. This needinfo appears when a shipping option has not been selected for the order. Needinfo links can appear on the order, the purchase form, and the delivery.

Workflow​

  1. Start with create-purchase-form
  2. GET the link with rel: needinfo
  3. Render the response

Response Fields​

Type: controls.info​

NameDescriptionType
nameThe info object’s name.string