POST api/Piece/Create

Request Information

URI Parameters

None.

Body Parameters

CreateShipmentPieceParm
NameDescriptionTypeAdditional information
auth

string

None.

ShipmentGUID

string

None.

Contents

string

None.

Reference

string

None.

Weight

decimal number

None.

DimWeight

decimal number

None.

WeightUOM

string

None.

Length

integer

None.

Width

integer

None.

Height

integer

None.

SizeUOM

string

None.

PackagingType

string

None.

DeclaredValue

decimal number

None.

DeclaredValueCurrencyID

string

None.

BagGUID

string

None.

BagGUID2

string

None.

CountryOfOrigin

string

None.

HSCode

string

None.

Quantity

integer

None.

Count

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "auth": "sample string 1",
  "ShipmentGUID": "sample string 2",
  "Contents": "sample string 3",
  "Reference": "sample string 4",
  "Weight": 1.0,
  "DimWeight": 1.0,
  "WeightUOM": "sample string 5",
  "Length": 1,
  "Width": 1,
  "Height": 1,
  "SizeUOM": "sample string 6",
  "PackagingType": "sample string 7",
  "DeclaredValue": 1.0,
  "DeclaredValueCurrencyID": "sample string 8",
  "BagGUID": "sample string 9",
  "BagGUID2": "sample string 10",
  "CountryOfOrigin": "sample string 11",
  "HSCode": "sample string 12",
  "Quantity": 1,
  "Count": 13
}

application/xml, text/xml

Sample:
<CreateShipmentPieceParm xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ParcelLogic.WebApi.Transportation.Models">
  <BagGUID>sample string 9</BagGUID>
  <BagGUID2>sample string 10</BagGUID2>
  <Contents>sample string 3</Contents>
  <Count>13</Count>
  <CountryOfOrigin>sample string 11</CountryOfOrigin>
  <DeclaredValue>1</DeclaredValue>
  <DeclaredValueCurrencyID>sample string 8</DeclaredValueCurrencyID>
  <DimWeight>1</DimWeight>
  <HSCode>sample string 12</HSCode>
  <Height>1</Height>
  <Length>1</Length>
  <PackagingType>sample string 7</PackagingType>
  <Quantity>1</Quantity>
  <Reference>sample string 4</Reference>
  <ShipmentGUID>sample string 2</ShipmentGUID>
  <SizeUOM>sample string 6</SizeUOM>
  <Weight>1</Weight>
  <WeightUOM>sample string 5</WeightUOM>
  <Width>1</Width>
  <auth>sample string 1</auth>
</CreateShipmentPieceParm>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

ResponseBase
NameDescriptionTypeAdditional information
IsSuccessful

boolean

None.

ErrorMessage

string

None.

Response Formats

application/json, text/json

Sample:
{
  "IsSuccessful": true,
  "ErrorMessage": "sample string 2"
}

application/xml, text/xml

Sample:
<ResponseBase xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ParcelLogic.WebApi.Transportation.Models">
  <ErrorMessage>sample string 2</ErrorMessage>
  <IsSuccessful>true</IsSuccessful>
</ResponseBase>