Skip to main content
Version: 8.4.x

Shipments

A shipment lists the shipments created by a purchase.

Read Shipments For Purchase​

Retrieve the shipments associated with a purchase.

Workflow​

  1. Start with purchase
  2. GET the link with rel: shipments
  3. GET the link with rel: element
  4. Render the response

Response Fields​

Type: shipments.shipment​

NameDescriptionType
statusIndicates the status of the shipment.object
  codeThe status code.string

Read Shipment Line Items​

Retrieve the shipment line items associated with a shipment.

Workflow​

  1. Start with shipment
  2. GET the link with rel: lineitems
  3. Render the response

Read Shipment Line Item​

Read a shipment line item.

Workflow​

  1. Start with shipment-line-items
  2. GET the link with rel: element
  3. Render the response

Response Fields​

Type: shipments.line-item​

NameDescriptionType
nameThe name.string
quantityThe quantity.integer

Read Shipment Line Item Options​

Retrieve the options associated with a shipment line item.

Workflow​

  1. Start with shipment-line-item
  2. GET the link with rel: options
  3. Render the response

Read Shipment Line Item Option​

Read a shipment line item option.

Workflow​

  1. Start with shipment-line-item-options
  2. GET the link with rel: element
  3. Render the response

Response Fields​

Type: shipments.option​

NameDescriptionType
nameThe name.string
display-nameThe display name.string

Read Shipment Line Item Option Value​

Retrieve the option value associated with a shipment line item.

Workflow​

  1. Start with shipment-line-item-option
  2. GET the link with rel: value
  3. Render the response

Response Fields​

Type: shipments.value​

NameDescriptionType
nameThe name.string
display-nameThe display name.string

Read Shipping Address For Shipment​

Retrieve the shipment address associated with a shipment.

Workflow​

  1. Start with shipment
  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

Read Shipping Option For Shipment​

Retrieve the shipment options associated with a shipment.

Workflow​

  1. Start with shipment
  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