Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

This page includes a list and definition of Complex Types used in the SOAP API environment of OneFlo. These complex types are used as

Status
colourGreen
titleinput
to the Web Service calls to OneFlo in order to elicit a response. The
Status
colourBlue
titleresponse
may also be a complex type, especially when the expected response is an object with multiple attributes.


...

Anchor
complextype_consignment
complextype_consignment
Consignment


TypePOST / Response
Status
colourGreen
titleinput
/
Status
colourBlue
titleresponse
Useful forCreating and releasing consignments
Used inSaveConsignment

...

ElementTypeMandatory / OptionalLengthComments
AccountIDintM-AccountID retrieved from Session.
DistributorIDintM-DistributorID retrieved from Session.
OnForwarderintO-Not required when Service is provided.
ConsignmentIDlongO-

ID of the record in the OneFlo database.

Not required on creation.

When updating an existing consignment, provide the ConsignmentID.

ConsignmentDateDateTimeM-Date of the creation of the consignment.
ReleasedDateTimeM-Date 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.
ConsignmentNotestringO20
ServicestringM10Service for use. Must be a service defined in OneFlo as retrieved from the ShipperService Element of the ServicePricing.
SenderAddressM1Details of the sender of the freight.
PickupInstructionsstringO80Pickup Instructions. Will appear on Pickup request data when carrier is configured.
ReceiverAddressM1Details of the receiver of the freight.
DeliveryInstructionsstringO80Delivery Instructions. Will appear on labels (depending on carrier specification may be limited in terms of number of characters due to real estate).
SpecialInstructionsstringO80Additional Instructions. Will appear on labels (depending on carrier specification may be limited in terms of number of characters due to real estate).
DescriptionstringO30Description of Consignment. Won't appear on labels.
ExtConsignmentsExtO10...1Additional information for a consignment.
HoursfloatO-Default 0.ModifiedByintM-UserID as defined in the session.
NoItemsshortM-Item Count Summary for the consignment.
VolumefloatM-Total Consignment Volume in cubic metres.
WeightfloatM-Total Consignment weight in kilograms.
ConsignmentItemsConsignmentItem[]M1...nDetails the items included in the consignment.
ReadyAt

Time

M-

hh:mm

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

CloseAtTimeM-

hh:mm

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

ReferencestringO20Stores the primary business reference (i.e. Sales Order Number, Pick Number, etc)
ReferencesReference[]O0...nAdditional References.
ModifiedByintM-UserID as defined in the session.
SessionIDlongO-Not recommended for use.
ExtraInfostringO-Not recommended for use.
ConsolidatedSusConsolidateConsignment[]O-Not recommended for use.
ContainingConsignmentlongO-Not recommended for use.
DownloadIDintO-Not recommended for use.
ConsignmentTypestringO-Not recommended for use.
ExceptionSaveExceptionO-Output. Provides detail on the result if there is an error with the data provided.


Example



...

Anchor
complextype_anchor
complextype_anchor
Address


POST / Response
Type
Status
colourGreen
titleinput
/
Status
colourBlue
titleresponse
Useful forCreating and releasing consignments
Used inSaveConsignment

...

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

Response only
Type
Status
colourBlue
titleresponse
Only
Useful forConsignment Creation / Modification
Used inn.a.GetChargeQuote

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

...

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

Code Block
languagexml
themeRDark
            <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>

...