POST api/mws/shipment/ExtractLabel

Returns the label content in a Base64-encoded string.

Request Information

URI Parameters

None.

Body Parameters

MWSMerchantFulfillmentService.Model.Label
NameDescriptionTypeAdditional information
CustomTextForLabel

Gets and sets the CustomTextForLabel property.

string

None.

Dimensions

Gets and sets the Dimensions property.

MWSMerchantFulfillmentService.Model.LabelDimensions

None.

FileContents

Gets and sets the FileContents property.

MWSMerchantFulfillmentService.Model.FileContents

None.

LabelFormat

Gets and sets the LabelFormat property.

string

None.

StandardIdForLabel

Gets and sets the StandardIdForLabel property.

string

None.

Request Formats

application/json, text/json

Sample:
{
  "CustomTextForLabel": "sample string 1",
  "Dimensions": {
    "Length": 1.0,
    "Width": 2.0,
    "Unit": "sample string 3"
  },
  "FileContents": {
    "Contents": "sample string 1",
    "FileType": "sample string 2",
    "Checksum": "sample string 3"
  },
  "LabelFormat": "sample string 2",
  "StandardIdForLabel": "sample string 3"
}

application/xml, text/xml

Sample:
<Label xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <CustomTextForLabel>sample string 1</CustomTextForLabel>
  <Dimensions>
    <Length>1</Length>
    <Width>2</Width>
    <Unit>sample string 3</Unit>
  </Dimensions>
  <FileContents>
    <Contents>sample string 1</Contents>
    <FileType>sample string 2</FileType>
    <Checksum>sample string 3</Checksum>
  </FileContents>
  <LabelFormat>sample string 2</LabelFormat>
  <StandardIdForLabel>sample string 3</StandardIdForLabel>
</Label>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

Get Service Status Response

MWSMerchantFulfillmentService.Model.Label
NameDescriptionTypeAdditional information
CustomTextForLabel

Gets and sets the CustomTextForLabel property.

string

None.

Dimensions

Gets and sets the Dimensions property.

MWSMerchantFulfillmentService.Model.LabelDimensions

None.

FileContents

Gets and sets the FileContents property.

MWSMerchantFulfillmentService.Model.FileContents

None.

LabelFormat

Gets and sets the LabelFormat property.

string

None.

StandardIdForLabel

Gets and sets the StandardIdForLabel property.

string

None.

Response Formats

application/json, text/json

Sample:
{
  "CustomTextForLabel": "sample string 1",
  "Dimensions": {
    "Length": 1.0,
    "Width": 2.0,
    "Unit": "sample string 3"
  },
  "FileContents": {
    "Contents": "sample string 1",
    "FileType": "sample string 2",
    "Checksum": "sample string 3"
  },
  "LabelFormat": "sample string 2",
  "StandardIdForLabel": "sample string 3"
}

application/xml, text/xml

Sample:
<Label xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <CustomTextForLabel>sample string 1</CustomTextForLabel>
  <Dimensions>
    <Length>1</Length>
    <Width>2</Width>
    <Unit>sample string 3</Unit>
  </Dimensions>
  <FileContents>
    <Contents>sample string 1</Contents>
    <FileType>sample string 2</FileType>
    <Checksum>sample string 3</Checksum>
  </FileContents>
  <LabelFormat>sample string 2</LabelFormat>
  <StandardIdForLabel>sample string 3</StandardIdForLabel>
</Label>