null

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 4 Next »

Introduction

This page includes a list and definition of Complex Types used in the SOAP API environment of OneFlo. These complex types are used as INPUT to the Web Service calls to OneFlo in order to elicit a response. The RESPONSE may also be a complex type, especially when the expected response is an object with multiple attributes.



Consignment


TypeINPUT / RESPONSE
Useful forCreating and releasing consignments
Used inSaveConsignment


The Consignment object represents the data of the freight that is created in OneFlo. It contains information regarding the freight's account owner, distributor, sender, receiver, instructions, and line item details including whether the freight contains DG or not and other relevant information.

XSD

Consignment
<xs:complexType name="Consignment">
	<xs:sequence>
		<xs:element minOccurs="0" name="AccountID" type="xs:int"/>
		<xs:element minOccurs="0" name="CloseAt" nillable="true" type="xs:string"/>
		<xs:element minOccurs="0" name="ConsignmentDate" nillable="true" type="xs:string"/>
		<xs:element minOccurs="0" name="ConsignmentID" type="xs:long"/>
		<xs:element minOccurs="0" name="ConsignmentItems" nillable="true" type="tns:ArrayOfConsignmentItem"/>
		<xs:element minOccurs="0" name="ConsignmentNote" nillable="true" type="xs:string"/>
		<xs:element minOccurs="0" name="ConsignmentType" nillable="true" type="xs:string"/>
		<xs:element minOccurs="0" name="ConsolidatedSus" nillable="true" type="tns:ArrayOfConsolidateConsignment"/>
		<xs:element minOccurs="0" name="ContainingConsignment" type="xs:long"/>
		<xs:element minOccurs="0" name="DeliveryInstructions" nillable="true" type="xs:string"/>
		<xs:element minOccurs="0" name="Description" nillable="true" type="xs:string"/>
		<xs:element minOccurs="0" name="DistributorID" type="xs:int"/>
		<xs:element minOccurs="0" name="DownloadID" type="xs:int"/>
		<xs:element minOccurs="0" name="Exception" nillable="true" type="tns:SaveException"/>
		<xs:element minOccurs="0" name="Ext" nillable="true" type="tns:ConsignmentExt"/>
		<xs:element minOccurs="0" name="ExtraInfo" nillable="true" type="xs:string"/>
		<xs:element minOccurs="0" name="Hours" type="xs:float"/>
		<xs:element minOccurs="0" name="ModifiedBy" type="xs:int"/>
		<xs:element minOccurs="0" name="NoItems" type="xs:short"/>
		<xs:element minOccurs="0" name="OnForwarder" type="xs:int"/>
		<xs:element minOccurs="0" name="PickupInstructions" nillable="true" type="xs:string"/>
		<xs:element minOccurs="0" name="ReadyAt" nillable="true" type="xs:string"/>
		<xs:element minOccurs="0" name="Receiver" nillable="true" type="tns:Address"/>
		<xs:element minOccurs="0" name="Reference" nillable="true" type="xs:string"/>
		<xs:element minOccurs="0" name="References" nillable="true" type="tns:ArrayOfReference"/>
		<xs:element minOccurs="0" name="Released" nillable="true" type="xs:string"/>
		<xs:element minOccurs="0" name="Sender" nillable="true" type="tns:Address"/>
		<xs:element minOccurs="0" name="Service" nillable="true" type="xs:string"/>
		<xs:element minOccurs="0" name="SessionID" type="xs:long"/>
		<xs:element minOccurs="0" name="SpecialInstructions" nillable="true" type="xs:string"/>
		<xs:element minOccurs="0" name="Volume" type="xs:float"/>
		<xs:element minOccurs="0" name="Weight" type="xs:float"/>
	</xs:sequence>
</xs:complexType>
<xs:element name="Consignment" nillable="true" type="tns:Consignment"/>

Elements

ElementTypeMandatory / OptionalLengthDirectionComments
AccountIDintM-BOTHAccountID retrieved from Session.
CloseAtTimeM-BOTH

hh:mm

Time when the facilities will close (for pickup). Will be reflected on the Pickup Request and consignment data sent to carrier.

ConsignmentDateDateTimeM-BOTHDate of the creation of the consignment.
ConsignmentTypestringO-OUTPUTNot recommended for use.
ConsignmentIDlongO-BOTH

ID of the record in the OneFlo database.

Not required on creation.

When updating an existing consignment, provide the ConsignmentID.

ConsignmentItemsConsignmentItem[]M1...nBOTHDetails the items included in the consignment.
ConsignmentNotestringO20BOTH

When provided, the consignment will be created with the provided Connote number.

When not provided, OneFlo will generate a new connote number form the range.

ConsolidatedSusConsolidateConsignment[]O-OUTPUTNot recommended for use.
ContainingConsignmentlongO-OUTPUTNot recommended for use.
DeliveryInstructionsstringO80BOTHDelivery Instructions. Will appear on labels (depending on carrier specification may be limited in terms of number of characters due to real estate).
DescriptionstringO30BOTHDescription of Consignment. Won't appear on labels.
DistributorIDintM-BOTHDistributorID retrieved from Session.
DownloadIDintO-OUTPUTNot recommended for use.
ExceptionSaveExceptionO-OUTPUTOutput. Provides detail on the result if there is an error with the data provided.
ExtConsignmentsExtO0...1BOTHAdditional information for a consignment.
ExtraInfostringO-OUTPUTNot recommended for use.
HoursfloatO-BOTHDefault 0.
ModifiedByintM-BOTHUserID as defined in the session.
NoItemsshortO-OUTPUTItem Count Summary for the consignment. Computed from the data provided in ConsignmentItems.
OnForwarderintO-BOTHNot required when Service is provided.
PickupInstructionsstringO80BOTHPickup Instructions. Will appear on Pickup request data when carrier is configured.
ReadyAt

Time

M-BOTH

hh:mm

Time when the consignment is ready to be picked up. Will be reflected on Pickup Request and cosignment data sent to carrier.

ReceiverAddressM1BOTHDetails of the receiver of the freight.
ReferencestringO20BOTHStores the primary business reference (i.e. Sales Order Number, Pick Number, etc)
ReferencesReference[]O0...nBOTHAdditional References.
ReleasedDateTimeM-BOTHDate of the release of the consignment, must be provided but will be updated by the system when the consignment is actually released via the Release*Consignment API.
SenderAddressM1BOTHDetails of the sender of the freight.
ServicestringM10BOTHService for use. Must be a service defined in OneFlo as retrieved from the ShipperService Element of the ServicePricing.
SessionIDlongO-OUTPUTNot recommended for use.
SpecialInstructionsstringO80BOTHAdditional Instructions. Will appear on labels (depending on carrier specification may be limited in terms of number of characters due to real estate).
VolumefloatO-OUTPUTTotal Consignment Volume in cubic metres. Computed from the data provided in ConsignmentItems.
WeightfloatO-OUTPUTTotal Consignment weight in kilograms. Computed from the data provided in ConsignmentItems.

Legend:

MandatoryDetermine if the element is required when using this ComplexType.
MElement must be declared.
OElement may be omitted.
DirectionDetermine when the element is used.
BOTHProvided as both input and response from the Web Service
OUTPUTOnly provided as a response from Web Service

Example

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:cha="http://www.opensys.com.au/ChainIT/4.0/ChainITDataServices">
	<soapenv:Header/>
	<soapenv:Body>
		<cha:SaveConsignment>
			<cha:session>
				<cha:AccountID>115860</cha:AccountID>
				<cha:DistributorID>101605</cha:DistributorID>
				<cha:Expires>2018-09-18T15:30:14.923</cha:Expires>
				<cha:Key>3A1D47BB-40F7-4C71-ADAC-0689A298576B</cha:Key>
				<cha:UserID>64796</cha:UserID>
			</cha:session>
			<cha:consignment>
				<cha:AccountID>115860</cha:AccountID>
				<cha:CloseAt>16:00</cha:CloseAt>
				<cha:ConsignmentDate>2018-09-18T16:00:00</cha:ConsignmentDate>
				<cha:ConsignmentID>0</cha:ConsignmentID>
				<cha:ConsignmentItems>
					<!--Zero or more repetitions:-->
					<cha:ConsignmentItem>
						<cha:Barcode>QRX11236-001</cha:Barcode> <!--unique item code linked to connote as printed on label -->
						<cha:ConsignmentID>0</cha:ConsignmentID>
						<cha:Description>QRX11236</cha:Description>
						<cha:Height>100</cha:Height>
						<cha:ItemNo>1</cha:ItemNo>
						<cha:ItemType>CARTON</cha:ItemType>
						<cha:Length>100</cha:Length>
						<cha:NoItems>1</cha:NoItems>
						<cha:Volume>0.001</cha:Volume>
						<cha:Weight>5</cha:Weight>
						<cha:Width>100</cha:Width>
					</cha:ConsignmentItem>
				</cha:ConsignmentItems>
				<cha:ConsignmentNote>QRX11236</cha:ConsignmentNote>
				<cha:ConsignmentType/>
				<cha:ConsolidatedSus>
		               <cha:ConsolidateConsignment>
		                  <cha:Height>10</cha:Height>
		                  <cha:ItemType>CARTON</cha:ItemType>
		                  <cha:Items>2</cha:Items>
		                  <cha:Length>10</cha:Length>
		                  <cha:Volume>10</cha:Volume>
		                  <cha:Weight>15</cha:Weight>
		                  <cha:Width>20</cha:Width>
		               </cha:ConsolidateConsignment>
		            </cha:ConsolidatedSus>
				<cha:ContainingConsignment>0</cha:ContainingConsignment>
				<cha:DeliveryInstructions>TEST DEL</cha:DeliveryInstructions>
				<cha:Description>Description</cha:Description>
				<cha:DistributorID>101605</cha:DistributorID>
				<cha:DownloadID>0</cha:DownloadID>

				<cha:Ext>
					<cha:ConsignmentID>0</cha:ConsignmentID>
					<cha:CostCenter/>
					<cha:ThirdPartyAccount/>
					<cha:UserField1/>
					<cha:UserField2/>
					<cha:UserField3/>
					<cha:UserField4/>
					<cha:UserField5/>
				</cha:Ext>
				<cha:ExtraInfo/>
				<cha:Hours>0</cha:Hours>
				<cha:ModifiedBy>64796</cha:ModifiedBy>
				<cha:NoItems>1</cha:NoItems>
				<cha:OnForwarder>102261</cha:OnForwarder>
				<cha:PickupInstructions>Test PICK</cha:PickupInstructions>
				
				<cha:ReadyAt>13:00</cha:ReadyAt>
				<cha:Receiver>
					<cha:AccountID>115860</cha:AccountID>
					<cha:AddressID>0</cha:AddressID>
					<cha:AddressLocation>
						<cha:LocationID>0</cha:LocationID>
						<cha:Locality>MELBOURNE</cha:Locality>
						<cha:State>VIC</cha:State>
						<cha:Postcode>3000</cha:Postcode>
						<cha:CountryCode>AU</cha:CountryCode>
						<cha:SuburbStatePostcode>MELBOURNE VIC 3000</cha:SuburbStatePostcode>
					</cha:AddressLocation>
					<cha:Line1>123 Test ST</cha:Line1>
					<cha:Line2/>
					<cha:LocationID>0</cha:LocationID>
					<cha:ModifiedBy>64796</cha:ModifiedBy>
					<cha:ContactName>Dennis</cha:ContactName>
					<cha:Email>dennis@efmlogistics.com.au</cha:Email>
					<cha:Name>HELLO WORLD</cha:Name>
					<cha:Phone>01000000</cha:Phone>

				</cha:Receiver>
				
				<cha:Reference>123456</cha:Reference>
				<cha:References>
					<!--Zero or more repetitions:-->
					<cha:Reference>
						<cha:ConsignmentReference/>
						<cha:RemoveReference>0</cha:RemoveReference>
					</cha:Reference>
				</cha:References>
				<cha:Released>2018-09-05T16:10:00</cha:Released>
				<cha:Sender>
		               <cha:AccountID>115860</cha:AccountID>
		               <cha:AddressID>0</cha:AddressID>
		               <cha:AddressLocation>
		                  <cha:LocationID>0</cha:LocationID>
		                  <cha:Locality>GLEN WAVERLEY</cha:Locality>
		                  <cha:State>VIC</cha:State>
		                  <cha:Postcode>3150</cha:Postcode>
		                  <cha:CountryCode>AU</cha:CountryCode>
		                  <cha:SuburbStatePostcode>GLEN WAVERLEY VIC 3150</cha:SuburbStatePostcode>
		               </cha:AddressLocation>
		               <cha:ContactName>test, user</cha:ContactName>
		               <cha:Email>ed@efm.com</cha:Email>
		               <cha:Line1>c/ EFM</cha:Line1>
		               <cha:Line2></cha:Line2>

		               <cha:LocationID>0</cha:LocationID>
		               <cha:ModifiedBy>64796</cha:ModifiedBy>
		               <cha:Name>OneFlo</cha:Name>
		               <cha:Phone>000000000</cha:Phone>
		               <cha:State>VIC</cha:State>
		               <cha:Suburb>GLEN WAVERLEY</cha:Suburb>
		            </cha:Sender>
		            
				<cha:Service>NPG</cha:Service>
				<cha:SessionID>0</cha:SessionID>
				<cha:SpecialInstructions>TEST SPE</cha:SpecialInstructions>
				<cha:Volume>0.001</cha:Volume>
				<cha:Weight>1</cha:Weight>
			</cha:consignment>
		</cha:SaveConsignment>
	</soapenv:Body>
</soapenv:Envelope>




Address


TypeINPUT / RESPONSE
Useful forCreating and releasing consignments
Used inSaveConsignment


The address field defines the structure of the address entity in the OneFlo database. This address entity is used as components of the Consignment element via its Sender and Receiver elements.

XSD

<xs:complexType name="Address">
	<xs:sequence>https://www.youtube.com/watch?v=bbStdHPMMf4
		<xs:element minOccurs="0" name="AccountID" type="xs:int"/>
		<xs:element minOccurs="0" name="AddressID" type="xs:int"/>
		<xs:element minOccurs="0" name="AddressLocation" nillable="true" type="tns:Location"/>
		<xs:element minOccurs="0" name="ContactName" nillable="true" type="xs:string"/>
		<xs:element minOccurs="0" name="Email" nillable="true" type="xs:string"/>
		<xs:element minOccurs="0" name="Exception" nillable="true" type="tns:SaveException"/>
		<xs:element minOccurs="0" name="Fax" nillable="true" type="xs:string"/>
		<xs:element minOccurs="0" name="Line1" nillable="true" type="xs:string"/>
		<xs:element minOccurs="0" name="Line2" nillable="true" type="xs:string"/>
		<xs:element minOccurs="0" name="Line3" nillable="true" type="xs:string"/>
		<xs:element minOccurs="0" name="LocationDetails" nillable="true" type="tns:Location"/>
		<xs:element minOccurs="0" name="LocationID" type="xs:int"/>
		<xs:element minOccurs="0" name="ModifiedBy" type="xs:int"/>
		<xs:element minOccurs="0" name="Name" nillable="true" type="xs:string"/>
		<xs:element minOccurs="0" name="Phone" nillable="true" type="xs:string"/>
		<xs:element minOccurs="0" name="State" nillable="true" type="xs:string"/>
		<xs:element minOccurs="0" name="Suburb" nillable="true" type="xs:string"/>
	</xs:sequence>
</xs:complexType>
<xs:element name="Address" nillable="true" type="tns:Address"/>

Elements

ElementTypeMandatory / OptionalLengthComments
AccountIDintM-Owner of this address entity in the OneFlo database.
AddressIDintO-The record ID of this address entity.
NamestringM50Entity or Company name. Could be the name of the person receiving the freight.
Line1stringM30First line of the address. Must be provided so it appears on the label + postback.
Line2stringO30Additional line, when required. Will appear on label + postback.
Line3stringO30Extra line. Most carrier labels don't render this.
LocationIDintM-

LocationID in the OneFlo database. LocationID can be retrieved from the ValidateLocation API.

BEST PRACTICE: If known and provided, no need to define the AddressLocation and LocationDetails of this Address and providing this is more accurate than using AddressLocation or LocationDetails

ContactNamestringM20Name of person / contact for this address entity. Will appear on label.
PhonestringO15Phone number of contact. Will appear on Label.
EmailstringO50Email address of contact. When populated in Consignment.Receiver, this will be used to deliver ASNs.
FaxstringO15
AddressLocationLocationO0...1No need to define this element if the LocationID or LocationDetails element is provided.
LocationDetailsLocationO0...1No need to define this element if the LocationID or AddressLocation element is provided.
ModifiedByintM-UserID as defined in the session.
StatestringO5Not recommended for use.
SuburbstringO50Not recommended for use.
ExceptionSaveExceptionO-Output. Provides detail on the result if there is an error with the data provided.




ServicePricing

TypeRESPONSE Only
Useful forConsignment Creation / Modification
Used inGetChargeQuote

Service pricing is the result of a quote request. This defines the available services given a quoted freight profile. Please refer to the GetChargeQuote* API calls

XSD

<xs:complexType name="ServicePricing">
	<xs:sequence>
		<xs:element minOccurs="0" name="CalculatedSUType" nillable="true" type="xs:string"/>
		<xs:element minOccurs="0" name="CarrierID" type="xs:int"/>
		<xs:element minOccurs="0" name="CarrierName" nillable="true" type="xs:string"/>
		<xs:element minOccurs="0" name="CarrierService" nillable="true" type="xs:string"/>
		<xs:element minOccurs="0" name="ETA" nillable="true" type="xs:string"/>
		<xs:element minOccurs="0" name="FeesCharge" type="xs:decimal"/>
		<xs:element minOccurs="0" name="FreightCharge" type="xs:decimal"/>
		<xs:element minOccurs="0" name="ID" type="xs:int"/>
		<xs:element minOccurs="0" name="NetCharge" type="xs:decimal"/>
		<xs:element minOccurs="0" name="RateID" type="xs:int"/>
		<xs:element minOccurs="0" name="ServiceName" nillable="true" type="xs:string"/>
		<xs:element minOccurs="0" name="ShipperService" nillable="true" type="xs:string"/>
		<xs:element minOccurs="0" name="TaxCharge" type="xs:decimal"/>
		<xs:element minOccurs="0" name="TotalCharge" type="xs:decimal"/>
		<xs:element minOccurs="0" name="WebDescription" nillable="true" type="xs:string"/>
		<xs:element minOccurs="0" name="ZoneFrom" nillable="true" type="xs:string"/>
		<xs:element minOccurs="0" name="ZoneTo" nillable="true" type="xs:string"/>
	</xs:sequence>
</xs:complexType>
<xs:element name="ServicePricing" nillable="true" type="tns:ServicePricing"/>

Elements

ElementTypeMandatory / OptionalLengthComments
CalculatedSUTypestring--If the rate in the system is calculated against a Shipping Unit type, this is represented as a CalculatedSUType.
CarrierIDint--ID of the carrier in OneFlo.
CarrierNamestring--Full name of the carrier in OneFlo.
CarrierServicestring--Carrier side service
ETAstring--Estimated Delivery Date as provided by the carrier for the lane. OneFlo must have this information before it's provided.
FeesChargedecimal--Freight Fees
FreightChargedecimal--Freight charge
IDint--Not used.
NetChargedecimal--Net freight charge
RateIDint--OneFlo Rate ID
ServiceNamestirng--OneFlo full service name.
ShipperServicestring--OneFlo carrier service code. This is the code to be provided as a Service when creating/modifying the Consignment object.
TaxChargedecimal--GST
TotalChargedecimal--NetCharge + GST
WebDescriptionstring--OneFlo Service Description
ZoneFromstring--OneFlo carrier Zone source
ZoneTostring--OneFlo carrier Zone destination

Example

            <ServicePricing>
               <CalculatedSUType>FP</CalculatedSUType>
               <CarrierID>102958</CarrierID>
               <CarrierName>Hi-Trans Express Pty Ltd</CarrierName>
               <CarrierService>G</CarrierService>
               <ETA/>
               <FeesCharge>25.5400</FeesCharge>
               <FreightCharge>150.1600</FreightCharge>
               <ID>0</ID>
               <NetCharge>175.7000</NetCharge>
               <RateID>10702459</RateID>
               <ServiceName>Hi Trans General Service</ServiceName>
               <ShipperService>HITRANG</ShipperService>
               <TaxCharge>17.5700</TaxCharge>
               <TotalCharge>193.2700</TotalCharge>
               <WebDescription>Hi-Trans General</WebDescription>
               <ZoneFrom>MEL</ZoneFrom>
               <ZoneTo>NS6S</ZoneTo>
            </ServicePricing>
  • No labels