DX STF Client API

<back to all web services

GetPurchaseConditionByIdentification

Purchase Conditions Requests

Purchase Conditions

Requires Authentication
The following routes are available for this service:
GET/api/purchaseCondition/{OwnerGln}/{Identification}Get specific Purchase Condition by Purchase Condition Identification number
namespace DX.STF.Application.ClientApi.Messages.PurchaseCondition

open System
open System.IO
open System.Collections
open System.Collections.Generic
open System.Runtime.Serialization
open ServiceStack
open ServiceStack.DataAnnotations

    [<DataContract>]
    [<AllowNullLiteral>]
    type DocumentIdentification() = 
        [<DataMember(Name="identifier")>]
        member val Identifier:String = null with get,set

        [<DataMember(Name="type")>]
        member val Type:String = null with get,set

        [<DataMember(Name="creationDateAndTime")>]
        member val CreationDateAndTime:DateTime = new DateTime() with get,set

    [<DataContract>]
    [<AllowNullLiteral>]
    type Identifier() = 
        [<DataMember(Name="authority")>]
        member val Authority:String = null with get,set

        [<DataMember(Name="text")>]
        member val Text:String = null with get,set

    [<DataContract>]
    [<AllowNullLiteral>]
    type ContactInformation() = 
        class end

    [<DataContract>]
    [<AllowNullLiteral>]
    type Partner() = 
        [<DataMember(Name="identifier")>]
        member val Identifier:Identifier = null with get,set

        [<DataMember(Name="contactInformation")>]
        member val ContactInformation:ResizeArray<ContactInformation> = null with get,set

    [<DataContract>]
    [<AllowNullLiteral>]
    type Header() = 
        [<DataMember(Name="documentIdentification")>]
        member val DocumentIdentification:DocumentIdentification = null with get,set

        [<DataMember(Name="sender")>]
        member val Sender:Partner = null with get,set

        [<DataMember(Name="receiver")>]
        member val Receiver:Partner = null with get,set

    type DocumentAction =
        | ADD = 0
        | CHANGE_BY_REFRESH = 1
        | DELETE = 2
        | REJECTED = 3

    type DocumentStatus =
        | ADDITIONAL_TRANSMISSION = 0
        | COPY = 1
        | ORIGINAL = 2

    [<AllowNullLiteral>]
    type AvpList() = 
        member val Code:String = null with get,set
        member val Value:String = null with get,set

    [<AllowNullLiteral>]
    type BaseDocument() = 
        member val CurrencyCode:String = null with get,set
        member val CreationDateTime:DateTime = new DateTime() with get,set
        member val DocumentActionCode:DocumentAction = new DocumentAction() with get,set
        member val DocumentStatusCode:DocumentStatus = new DocumentStatus() with get,set
        member val DocumentStructureVersion:String = null with get,set
        member val LastUpdateDateTime:Nullable<DateTime> = new Nullable<DateTime>() with get,set
        member val RevisionNumber:Nullable<Int64> = new Nullable<Int64>() with get,set
        member val AvpList:ResizeArray<AvpList> = null with get,set

    [<AllowNullLiteral>]
    type Quantity() = 
        member val Value:Nullable<Decimal> = new Nullable<Decimal>() with get,set
        member val MeasurementUnitCode:String = null with get,set
        member val CodeListVersion:String = null with get,set

    [<AllowNullLiteral>]
    type TimeMeasurement() = 
        member val TimeMeasurementUnitCode:String = null with get,set
        member val Value:Nullable<Decimal> = new Nullable<Decimal>() with get,set

    [<AllowNullLiteral>]
    type PurchaseConditionsCommitmentPeriod() = 
        member val CommitmentPeriodDuration:TimeMeasurement = null with get,set
        member val PurchaseConditionsCommitmentTypeCode:String = null with get,set

    [<AllowNullLiteral>]
    type QuantityRange() = 
        member val MaximumQuantity:Quantity = null with get,set
        member val MinimumQuantity:Quantity = null with get,set

    [<AllowNullLiteral>]
    type DateTimeRange() = 
        member val BeginDate:DateOnly = new DateOnly() with get,set
        member val BeginTime:Nullable<TimeOnly> = new Nullable<TimeOnly>() with get,set
        member val EndDate:Nullable<DateOnly> = new Nullable<DateOnly>() with get,set
        member val EndTime:Nullable<TimeOnly> = new Nullable<TimeOnly>() with get,set

    [<AllowNullLiteral>]
    type PurchaseConditionsPriceInformation() = 
        member val ItemPriceBaseQuantity:Quantity = null with get,set
        member val ItemPriceExclusiveAllowancesCharges:Nullable<Decimal> = new Nullable<Decimal>() with get,set
        member val QuantityRange:QuantityRange = null with get,set
        member val EffectivePeriod:DateTimeRange = null with get,set

    [<AllowNullLiteral>]
    type AllowanceCharge() = 
        member val AllowanceChargeAmount:Nullable<Decimal> = new Nullable<Decimal>() with get,set
        member val AllowanceChargePercentage:Nullable<Decimal> = new Nullable<Decimal>() with get,set
        member val AllowanceChargeType:String = null with get,set
        member val AllowanceOrChargeType:String = null with get,set
        member val AmountPerUnit:Nullable<Decimal> = new Nullable<Decimal>() with get,set
        member val BaseAmount:Nullable<Decimal> = new Nullable<Decimal>() with get,set
        member val BaseNumberOfUnits:String = null with get,set
        member val BracketIdentifier:String = null with get,set
        member val EffectiveDateType:Nullable<DateTime> = new Nullable<DateTime>() with get,set
        member val SequenceNumber:String = null with get,set
        member val SettlementType:String = null with get,set
        member val SpecialServiceType:String = null with get,set
        member val AllowanceChargeDescription:String = null with get,set

    [<AllowNullLiteral>]
    type TransactionalItem() = 
        member val MeasurementUnitCode:String = null with get,set
        member val MeasurementType:String = null with get,set
        member val MeasurementValue:String = null with get,set

    [<AllowNullLiteral>]
    type SerialNumberRange() = 
        member val MaximumValue:String = null with get,set
        member val MinimumValue:String = null with get,set

    [<AllowNullLiteral>]
    type TransactionalItemDimension() = 
        member val MeasurementUnitCode:String = null with get,set
        member val Depth:String = null with get,set
        member val Height:String = null with get,set
        member val Width:String = null with get,set

    [<AllowNullLiteral>]
    type TransactionalItemLogisticUnitInformation() = 
        member val NumberOfLayers:Nullable<Int64> = new Nullable<Int64>() with get,set
        member val NumberOfUnitsPerLayer:Nullable<Int64> = new Nullable<Int64>() with get,set
        member val NumberOfUnitsPerPallet:Nullable<Int64> = new Nullable<Int64>() with get,set
        member val PackagingTerms:String = null with get,set
        member val PackageTypeCode:String = null with get,set
        member val MaximumStackingFactor:Nullable<Int64> = new Nullable<Int64>() with get,set
        member val ReturnablePackageTransportCostPayment:String = null with get,set
        member val DimensionsOfLogisticUnit:ResizeArray<TransactionalItemDimension> = null with get,set

    [<AllowNullLiteral>]
    type TransactionalItemDataCarrierAndIdentification() = 
        member val Gs1TransactionalItemIdentificationKey:String = null with get,set
        member val DataCarrier:String = null with get,set

    [<AllowNullLiteral>]
    type TradeItemWaste() = 
        member val WasteIdentification:String = null with get,set
        member val TypeOfWaste:ResizeArray<AvpList> = null with get,set

    [<AllowNullLiteral>]
    type TransactionalItemOrganicInformation() = 
        member val IsTradeItemOrganic:Nullable<Boolean> = new Nullable<Boolean>() with get,set
        member val OrganicCertification:String = null with get,set

    [<AllowNullLiteral>]
    type TransactionalItemData() = 
        member val AvailableForSaleDate:Nullable<DateTime> = new Nullable<DateTime>() with get,set
        member val BatchNumber:String = null with get,set
        member val BestBeforeDate:Nullable<DateTime> = new Nullable<DateTime>() with get,set
        member val CountryOfOrigin:String = null with get,set
        member val ItemExpirationDate:Nullable<DateTime> = new Nullable<DateTime>() with get,set
        member val LotNumber:String = null with get,set
        member val PackagingDate:Nullable<DateTime> = new Nullable<DateTime>() with get,set
        member val ProductionDate:Nullable<DateTime> = new Nullable<DateTime>() with get,set
        member val ProductQualityIndication:String = null with get,set
        member val SellByDate:Nullable<DateTime> = new Nullable<DateTime>() with get,set
        member val SerialNumber:ResizeArray<String> = null with get,set
        member val ShelfLife:String = null with get,set
        member val TradeItemQuantity:Nullable<Int64> = new Nullable<Int64>() with get,set
        member val ItemInContactWithFoodProduct:Nullable<Boolean> = new Nullable<Boolean>() with get,set
        member val TransactionalItemWeight:ResizeArray<TransactionalItem> = null with get,set
        member val TransactionalItemVolume:ResizeArray<TransactionalItem> = null with get,set
        member val SerialNumberRange:ResizeArray<SerialNumberRange> = null with get,set
        member val TransactionalItemDimensions:ResizeArray<TransactionalItemDimension> = null with get,set
        member val TransactionalItemLogisticUnitInformation:TransactionalItemLogisticUnitInformation = null with get,set
        member val TransactionalItemDataCarrierAndIdentification:TransactionalItemDataCarrierAndIdentification = null with get,set
        member val TradeItemWaste:ResizeArray<TradeItemWaste> = null with get,set
        member val TransactionalItemOrganicInformation:TransactionalItemOrganicInformation = null with get,set
        member val AvpList:ResizeArray<AvpList> = null with get,set

    [<AllowNullLiteral>]
    type Colour() = 
        member val ColourCode:String = null with get,set
        member val ColourDescription:String = null with get,set

    [<AllowNullLiteral>]
    type Size() = 
        member val DescriptiveSize:String = null with get,set
        member val SizeCode:String = null with get,set

    [<AllowNullLiteral>]
    type TradeItemClassification() = 
        member val GpcCategoryCode:String = null with get,set
        member val AdditionalTradeItemClassificationCode:ResizeArray<AvpList> = null with get,set
        member val GpcCategoryName:String = null with get,set
        member val GpcAttribute:ResizeArray<AvpList> = null with get,set

    [<AllowNullLiteral>]
    type TransactionalTradeItem() = 
        member val Gtin:String = null with get,set
        member val AdditionalTradeItemIdentification:ResizeArray<AvpList> = null with get,set
        member val TradeItemQuantity:Nullable<Decimal> = new Nullable<Decimal>() with get,set
        member val TradeItemDescription:String = null with get,set
        member val ProductVariantIdentifier:String = null with get,set
        member val ItemTypeCode:String = null with get,set
        member val TradeItemDataOwner:String = null with get,set
        member val ButterFatReference:String = null with get,set
        member val TransactionalItemData:ResizeArray<TransactionalItemData> = null with get,set
        member val Colour:ResizeArray<Colour> = null with get,set
        member val Size:Size = null with get,set
        member val TradeItemClassification:TradeItemClassification = null with get,set
        member val AvpList:ResizeArray<AvpList> = null with get,set

    [<AllowNullLiteral>]
    type LeviedDutyFeeTax() = 
        member val DutyFeeTaxAmount:Nullable<Decimal> = new Nullable<Decimal>() with get,set
        member val DutyFeeTaxBasisAmount:Nullable<Decimal> = new Nullable<Decimal>() with get,set
        member val DutyFeeTaxDescription:String = null with get,set
        member val DutyFeeTaxPercentage:Nullable<Decimal> = new Nullable<Decimal>() with get,set

    [<AllowNullLiteral>]
    type DocumentReference() = 
        member val CreationDateTime:Nullable<DateTime> = new Nullable<DateTime>() with get,set
        member val RevisionNumber:Nullable<Int64> = new Nullable<Int64>() with get,set
        member val LineItemNumber:Nullable<Int64> = new Nullable<Int64>() with get,set
        member val EntityIdentification:String = null with get,set

    [<AllowNullLiteral>]
    type PurchaseConditionsLineItem() = 
        member val DiscrepancyTolerancePercentage:Nullable<Decimal> = new Nullable<Decimal>() with get,set
        member val LineItemNumber:Nullable<Int64> = new Nullable<Int64>() with get,set
        member val PackagingTypeCode:String = null with get,set
        member val ParentLineItemNumber:Nullable<Int64> = new Nullable<Int64>() with get,set
        member val PurchaseConditionsQuantity:Quantity = null with get,set
        member val PurchaseConditionsCommitmentPeriod:ResizeArray<PurchaseConditionsCommitmentPeriod> = null with get,set
        member val PurchaseConditionsPriceInformation:ResizeArray<PurchaseConditionsPriceInformation> = null with get,set
        member val AllowanceCharge:ResizeArray<AllowanceCharge> = null with get,set
        member val TransactionalTradeItem:TransactionalTradeItem = null with get,set
        member val LeviedDutyFeeTax:LeviedDutyFeeTax = null with get,set
        member val AvpList:ResizeArray<AvpList> = null with get,set
        member val EffectivePeriod:DateTimeRange = null with get,set
        member val MaterialSpecification:DocumentReference = null with get,set
        member val PurchaseConditionsQuantityRange:QuantityRange = null with get,set

    [<AllowNullLiteral>]
    type Ecom_PartyIdentificationType() = 
        member val Gln:String = null with get,set
        member val Name:String = null with get,set
        member val AdditionalPartyIdentification:ResizeArray<AvpList> = null with get,set

    [<AllowNullLiteral>]
    type CommunicationChannel() = 
        member val CommunicationChannelCode:String = null with get,set
        member val CommunicationChannelName:String = null with get,set
        member val CommunicationValue:String = null with get,set

    [<AllowNullLiteral>]
    type Contact() = 
        member val ContactTypeCode:String = null with get,set
        member val PersonName:String = null with get,set
        member val DepartmentName:String = null with get,set
        member val JobTitle:String = null with get,set
        member val Responsibility:String = null with get,set
        member val CommunicationChannel:ResizeArray<CommunicationChannel> = null with get,set

    [<AllowNullLiteral>]
    type Address() = 
        member val StreetAddressOne:String = null with get,set
        member val StreetAddressTwo:String = null with get,set
        member val StreetAddressThree:String = null with get,set
        member val City:String = null with get,set
        member val PostalCode:String = null with get,set
        member val ProvinceCode:String = null with get,set
        member val CountryCode:String = null with get,set

    [<AllowNullLiteral>]
    type FinancialRoutingNumber() = 
        member val Number:String = null with get,set
        member val NumberTypeCode:String = null with get,set

    [<AllowNullLiteral>]
    type FinancialAccount() = 
        member val Number:String = null with get,set
        member val NumberTypeCode:String = null with get,set
        member val Name:String = null with get,set

    [<AllowNullLiteral>]
    type FinancialInstitutionInformation() = 
        member val FinancialInstitutionBranchName:String = null with get,set
        member val FinancialInstitutionName:String = null with get,set
        member val FinancialRoutingNumber:FinancialRoutingNumber = null with get,set
        member val FinancialAccount:FinancialAccount = null with get,set
        member val SwiftCode:String = null with get,set
        member val ExportersCode:String = null with get,set

    [<AllowNullLiteral>]
    type TransactionalParty() = 
        inherit Ecom_PartyIdentificationType()
        member val Contact:ResizeArray<Contact> = null with get,set
        member val Address:Address = null with get,set
        member val CommunicationChannel:ResizeArray<AvpList> = null with get,set
        member val FinancialInstitutionInformation:FinancialInstitutionInformation = null with get,set
        member val DutyFeeTaxRegistration:String = null with get,set
        member val EntityIdentification:String = null with get,set

    [<AllowNullLiteral>]
    type PurchaseConditionsLocationInformation() = 
        member val PurchaseConditionsLineItem:ResizeArray<PurchaseConditionsLineItem> = null with get,set
        member val ShipFrom:TransactionalParty = null with get,set
        member val ShipTo:TransactionalParty = null with get,set

    [<AllowNullLiteral>]
    type CurrencyExchangeRateInformation() = 
        member val CurrencyConversionFromCode:String = null with get,set
        member val CurrencyConversionToCode:String = null with get,set
        member val ExchangeRate:Nullable<Int64> = new Nullable<Int64>() with get,set
        member val ExchangeRateDateTime:Nullable<DateTime> = new Nullable<DateTime>() with get,set

    [<AllowNullLiteral>]
    type PurchaseConditions() = 
        inherit BaseDocument()
        member val PurchaseConditionsCurrencyCode:String = null with get,set
        member val PurchaseConditionsLocationInformation:ResizeArray<PurchaseConditionsLocationInformation> = null with get,set
        member val CurrencyExchangeRateInformation:CurrencyExchangeRateInformation = null with get,set
        member val Buyer:TransactionalParty = null with get,set
        member val Payee:TransactionalParty = null with get,set
        member val Payer:TransactionalParty = null with get,set
        member val PurchaseConditionsIdentification:String = null with get,set
        member val RemitTo:TransactionalParty = null with get,set
        member val Seller:TransactionalParty = null with get,set
        member val TaxRepresentative:TransactionalParty = null with get,set

    [<AllowNullLiteral>]
    type PurchaseConditionsMessage() = 
        member val Header:Header = null with get,set
        member val PurchaseConditions:PurchaseConditions = null with get,set

    ///<summary>
    ///Purchase Conditions
    ///</summary>
    [<Api(Description="Purchase Conditions")>]
    [<ApiResponse(Description="PurchaseCondition data", IsDefaultResponse=true, StatusCode=200)>]
    [<ApiResponse(Description="No Content", ResponseType=typeof<IReturnVoid>, StatusCode=204)>]
    [<ApiResponse(Description="Specified argument was out of the range of valid values.", ResponseType=typeof<ArgumentOutOfRangeException>, StatusCode=400)>]
    [<AllowNullLiteral>]
    type GetPurchaseConditionByIdentification() = 
        ///<summary>
        ///Purchase Condition Owner GLN
        ///</summary>
        [<ApiMember(Description="Purchase Condition Owner GLN", ExcludeInSchema=true, ParameterType="path")>]
        member val OwnerGln:String = null with get,set

        ///<summary>
        ///Purchase Condition Identifier
        ///</summary>
        [<ApiMember(Description="Purchase Condition Identifier", ExcludeInSchema=true, ParameterType="path")>]
        member val Identification:String = null with get,set

F# GetPurchaseConditionByIdentification DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml

HTTP + XML

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

GET /api/purchaseCondition/{OwnerGln}/{Identification} HTTP/1.1 
Host: stf-api-uat.data-xchange.co.za 
Accept: application/xml
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<PurchaseConditionsMessage xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DX.STF.Models.Dto.GS1">
  <Header>
    <documentIdentification>
      <creationDateAndTime>0001-01-01T00:00:00</creationDateAndTime>
      <identifier>String</identifier>
      <type>String</type>
    </documentIdentification>
    <receiver>
      <contactInformation>
        <ContactInformation />
      </contactInformation>
      <identifier>
        <authority>String</authority>
        <text>String</text>
      </identifier>
    </receiver>
    <sender>
      <contactInformation>
        <ContactInformation />
      </contactInformation>
      <identifier>
        <authority>String</authority>
        <text>String</text>
      </identifier>
    </sender>
  </Header>
  <PurchaseConditions>
    <AvpList>
      <AvpList>
        <Code>String</Code>
        <Value>String</Value>
      </AvpList>
    </AvpList>
    <CreationDateTime>0001-01-01T00:00:00</CreationDateTime>
    <CurrencyCode>String</CurrencyCode>
    <DocumentActionCode>ADD</DocumentActionCode>
    <DocumentStatusCode>ADDITIONAL_TRANSMISSION</DocumentStatusCode>
    <DocumentStructureVersion>String</DocumentStructureVersion>
    <LastUpdateDateTime>0001-01-01T00:00:00</LastUpdateDateTime>
    <RevisionNumber>0</RevisionNumber>
    <Buyer>
      <AdditionalPartyIdentification>
        <AvpList>
          <Code>String</Code>
          <Value>String</Value>
        </AvpList>
      </AdditionalPartyIdentification>
      <Gln>String</Gln>
      <Name>String</Name>
      <Address>
        <City>String</City>
        <CountryCode>String</CountryCode>
        <PostalCode>String</PostalCode>
        <ProvinceCode>String</ProvinceCode>
        <StreetAddressOne>String</StreetAddressOne>
        <StreetAddressThree>String</StreetAddressThree>
        <StreetAddressTwo>String</StreetAddressTwo>
      </Address>
      <CommunicationChannel>
        <AvpList>
          <Code>String</Code>
          <Value>String</Value>
        </AvpList>
      </CommunicationChannel>
      <Contact>
        <Contact>
          <CommunicationChannel>
            <CommunicationChannel>
              <CommunicationChannelCode>String</CommunicationChannelCode>
              <CommunicationChannelName>String</CommunicationChannelName>
              <CommunicationValue>String</CommunicationValue>
            </CommunicationChannel>
          </CommunicationChannel>
          <ContactTypeCode>String</ContactTypeCode>
          <DepartmentName>String</DepartmentName>
          <JobTitle>String</JobTitle>
          <PersonName>String</PersonName>
          <Responsibility>String</Responsibility>
        </Contact>
      </Contact>
      <DutyFeeTaxRegistration>String</DutyFeeTaxRegistration>
      <EntityIdentification>String</EntityIdentification>
      <FinancialInstitutionInformation>
        <ExportersCode>String</ExportersCode>
        <FinancialAccount>
          <Name>String</Name>
          <Number>String</Number>
          <NumberTypeCode>String</NumberTypeCode>
        </FinancialAccount>
        <FinancialInstitutionBranchName>String</FinancialInstitutionBranchName>
        <FinancialInstitutionName>String</FinancialInstitutionName>
        <FinancialRoutingNumber>
          <Number>String</Number>
          <NumberTypeCode>String</NumberTypeCode>
        </FinancialRoutingNumber>
        <SwiftCode>String</SwiftCode>
      </FinancialInstitutionInformation>
    </Buyer>
    <CurrencyExchangeRateInformation>
      <CurrencyConversionFromCode>String</CurrencyConversionFromCode>
      <CurrencyConversionToCode>String</CurrencyConversionToCode>
      <ExchangeRate>0</ExchangeRate>
      <ExchangeRateDateTime>0001-01-01T00:00:00</ExchangeRateDateTime>
    </CurrencyExchangeRateInformation>
    <Payee>
      <AdditionalPartyIdentification>
        <AvpList>
          <Code>String</Code>
          <Value>String</Value>
        </AvpList>
      </AdditionalPartyIdentification>
      <Gln>String</Gln>
      <Name>String</Name>
      <Address>
        <City>String</City>
        <CountryCode>String</CountryCode>
        <PostalCode>String</PostalCode>
        <ProvinceCode>String</ProvinceCode>
        <StreetAddressOne>String</StreetAddressOne>
        <StreetAddressThree>String</StreetAddressThree>
        <StreetAddressTwo>String</StreetAddressTwo>
      </Address>
      <CommunicationChannel>
        <AvpList>
          <Code>String</Code>
          <Value>String</Value>
        </AvpList>
      </CommunicationChannel>
      <Contact>
        <Contact>
          <CommunicationChannel>
            <CommunicationChannel>
              <CommunicationChannelCode>String</CommunicationChannelCode>
              <CommunicationChannelName>String</CommunicationChannelName>
              <CommunicationValue>String</CommunicationValue>
            </CommunicationChannel>
          </CommunicationChannel>
          <ContactTypeCode>String</ContactTypeCode>
          <DepartmentName>String</DepartmentName>
          <JobTitle>String</JobTitle>
          <PersonName>String</PersonName>
          <Responsibility>String</Responsibility>
        </Contact>
      </Contact>
      <DutyFeeTaxRegistration>String</DutyFeeTaxRegistration>
      <EntityIdentification>String</EntityIdentification>
      <FinancialInstitutionInformation>
        <ExportersCode>String</ExportersCode>
        <FinancialAccount>
          <Name>String</Name>
          <Number>String</Number>
          <NumberTypeCode>String</NumberTypeCode>
        </FinancialAccount>
        <FinancialInstitutionBranchName>String</FinancialInstitutionBranchName>
        <FinancialInstitutionName>String</FinancialInstitutionName>
        <FinancialRoutingNumber>
          <Number>String</Number>
          <NumberTypeCode>String</NumberTypeCode>
        </FinancialRoutingNumber>
        <SwiftCode>String</SwiftCode>
      </FinancialInstitutionInformation>
    </Payee>
    <Payer>
      <AdditionalPartyIdentification>
        <AvpList>
          <Code>String</Code>
          <Value>String</Value>
        </AvpList>
      </AdditionalPartyIdentification>
      <Gln>String</Gln>
      <Name>String</Name>
      <Address>
        <City>String</City>
        <CountryCode>String</CountryCode>
        <PostalCode>String</PostalCode>
        <ProvinceCode>String</ProvinceCode>
        <StreetAddressOne>String</StreetAddressOne>
        <StreetAddressThree>String</StreetAddressThree>
        <StreetAddressTwo>String</StreetAddressTwo>
      </Address>
      <CommunicationChannel>
        <AvpList>
          <Code>String</Code>
          <Value>String</Value>
        </AvpList>
      </CommunicationChannel>
      <Contact>
        <Contact>
          <CommunicationChannel>
            <CommunicationChannel>
              <CommunicationChannelCode>String</CommunicationChannelCode>
              <CommunicationChannelName>String</CommunicationChannelName>
              <CommunicationValue>String</CommunicationValue>
            </CommunicationChannel>
          </CommunicationChannel>
          <ContactTypeCode>String</ContactTypeCode>
          <DepartmentName>String</DepartmentName>
          <JobTitle>String</JobTitle>
          <PersonName>String</PersonName>
          <Responsibility>String</Responsibility>
        </Contact>
      </Contact>
      <DutyFeeTaxRegistration>String</DutyFeeTaxRegistration>
      <EntityIdentification>String</EntityIdentification>
      <FinancialInstitutionInformation>
        <ExportersCode>String</ExportersCode>
        <FinancialAccount>
          <Name>String</Name>
          <Number>String</Number>
          <NumberTypeCode>String</NumberTypeCode>
        </FinancialAccount>
        <FinancialInstitutionBranchName>String</FinancialInstitutionBranchName>
        <FinancialInstitutionName>String</FinancialInstitutionName>
        <FinancialRoutingNumber>
          <Number>String</Number>
          <NumberTypeCode>String</NumberTypeCode>
        </FinancialRoutingNumber>
        <SwiftCode>String</SwiftCode>
      </FinancialInstitutionInformation>
    </Payer>
    <PurchaseConditionsCurrencyCode>String</PurchaseConditionsCurrencyCode>
    <PurchaseConditionsIdentification>String</PurchaseConditionsIdentification>
    <PurchaseConditionsLocationInformation>
      <PurchaseConditionsLocationInformation>
        <PurchaseConditionsLineItem>
          <PurchaseConditionsLineItem>
            <AllowanceCharge>
              <AllowanceCharge>
                <AllowanceChargeAmount>0</AllowanceChargeAmount>
                <AllowanceChargeDescription>String</AllowanceChargeDescription>
                <AllowanceChargePercentage>0</AllowanceChargePercentage>
                <AllowanceChargeType>String</AllowanceChargeType>
                <AllowanceOrChargeType>String</AllowanceOrChargeType>
                <AmountPerUnit>0</AmountPerUnit>
                <BaseAmount>0</BaseAmount>
                <BaseNumberOfUnits>String</BaseNumberOfUnits>
                <BracketIdentifier>String</BracketIdentifier>
                <EffectiveDateType>0001-01-01T00:00:00</EffectiveDateType>
                <SequenceNumber>String</SequenceNumber>
                <SettlementType>String</SettlementType>
                <SpecialServiceType>String</SpecialServiceType>
              </AllowanceCharge>
            </AllowanceCharge>
            <AvpList>
              <AvpList>
                <Code>String</Code>
                <Value>String</Value>
              </AvpList>
            </AvpList>
            <DiscrepancyTolerancePercentage>0</DiscrepancyTolerancePercentage>
            <EffectivePeriod>
              <BeginDate>0001-01-01</BeginDate>
              <BeginTime>00:00:00</BeginTime>
              <EndDate>0001-01-01</EndDate>
              <EndTime>00:00:00</EndTime>
            </EffectivePeriod>
            <LeviedDutyFeeTax>
              <DutyFeeTaxAmount>0</DutyFeeTaxAmount>
              <DutyFeeTaxBasisAmount>0</DutyFeeTaxBasisAmount>
              <DutyFeeTaxDescription>String</DutyFeeTaxDescription>
              <DutyFeeTaxPercentage>0</DutyFeeTaxPercentage>
            </LeviedDutyFeeTax>
            <LineItemNumber>0</LineItemNumber>
            <MaterialSpecification>
              <CreationDateTime>0001-01-01T00:00:00</CreationDateTime>
              <EntityIdentification>String</EntityIdentification>
              <LineItemNumber>0</LineItemNumber>
              <RevisionNumber>0</RevisionNumber>
            </MaterialSpecification>
            <PackagingTypeCode>String</PackagingTypeCode>
            <ParentLineItemNumber>0</ParentLineItemNumber>
            <PurchaseConditionsCommitmentPeriod>
              <PurchaseConditionsCommitmentPeriod>
                <CommitmentPeriodDuration>
                  <TimeMeasurementUnitCode>String</TimeMeasurementUnitCode>
                  <Value>0</Value>
                </CommitmentPeriodDuration>
                <PurchaseConditionsCommitmentTypeCode>String</PurchaseConditionsCommitmentTypeCode>
              </PurchaseConditionsCommitmentPeriod>
            </PurchaseConditionsCommitmentPeriod>
            <PurchaseConditionsPriceInformation>
              <PurchaseConditionsPriceInformation>
                <EffectivePeriod>
                  <BeginDate>0001-01-01</BeginDate>
                  <BeginTime>00:00:00</BeginTime>
                  <EndDate>0001-01-01</EndDate>
                  <EndTime>00:00:00</EndTime>
                </EffectivePeriod>
                <ItemPriceBaseQuantity>
                  <CodeListVersion>String</CodeListVersion>
                  <MeasurementUnitCode>String</MeasurementUnitCode>
                  <Value>0</Value>
                </ItemPriceBaseQuantity>
                <ItemPriceExclusiveAllowancesCharges>0</ItemPriceExclusiveAllowancesCharges>
                <QuantityRange>
                  <MaximumQuantity>
                    <CodeListVersion>String</CodeListVersion>
                    <MeasurementUnitCode>String</MeasurementUnitCode>
                    <Value>0</Value>
                  </MaximumQuantity>
                  <MinimumQuantity>
                    <CodeListVersion>String</CodeListVersion>
                    <MeasurementUnitCode>String</MeasurementUnitCode>
                    <Value>0</Value>
                  </MinimumQuantity>
                </QuantityRange>
              </PurchaseConditionsPriceInformation>
            </PurchaseConditionsPriceInformation>
            <PurchaseConditionsQuantity>
              <CodeListVersion>String</CodeListVersion>
              <MeasurementUnitCode>String</MeasurementUnitCode>
              <Value>0</Value>
            </PurchaseConditionsQuantity>
            <PurchaseConditionsQuantityRange>
              <MaximumQuantity>
                <CodeListVersion>String</CodeListVersion>
                <MeasurementUnitCode>String</MeasurementUnitCode>
                <Value>0</Value>
              </MaximumQuantity>
              <MinimumQuantity>
                <CodeListVersion>String</CodeListVersion>
                <MeasurementUnitCode>String</MeasurementUnitCode>
                <Value>0</Value>
              </MinimumQuantity>
            </PurchaseConditionsQuantityRange>
            <TransactionalTradeItem>
              <AdditionalTradeItemIdentification>
                <AvpList>
                  <Code>String</Code>
                  <Value>String</Value>
                </AvpList>
              </AdditionalTradeItemIdentification>
              <AvpList>
                <AvpList>
                  <Code>String</Code>
                  <Value>String</Value>
                </AvpList>
              </AvpList>
              <ButterFatReference>String</ButterFatReference>
              <Colour>
                <Colour>
                  <ColourCode>String</ColourCode>
                  <ColourDescription>String</ColourDescription>
                </Colour>
              </Colour>
              <Gtin>String</Gtin>
              <ItemTypeCode>String</ItemTypeCode>
              <ProductVariantIdentifier>String</ProductVariantIdentifier>
              <Size>
                <DescriptiveSize>String</DescriptiveSize>
                <SizeCode>String</SizeCode>
              </Size>
              <TradeItemClassification>
                <AdditionalTradeItemClassificationCode>
                  <AvpList>
                    <Code>String</Code>
                    <Value>String</Value>
                  </AvpList>
                </AdditionalTradeItemClassificationCode>
                <GpcAttribute>
                  <AvpList>
                    <Code>String</Code>
                    <Value>String</Value>
                  </AvpList>
                </GpcAttribute>
                <GpcCategoryCode>String</GpcCategoryCode>
                <GpcCategoryName>String</GpcCategoryName>
              </TradeItemClassification>
              <TradeItemDataOwner>String</TradeItemDataOwner>
              <TradeItemDescription>String</TradeItemDescription>
              <TradeItemQuantity>0</TradeItemQuantity>
              <TransactionalItemData>
                <TransactionalItemData>
                  <AvailableForSaleDate>0001-01-01T00:00:00</AvailableForSaleDate>
                  <AvpList>
                    <AvpList>
                      <Code>String</Code>
                      <Value>String</Value>
                    </AvpList>
                  </AvpList>
                  <BatchNumber>String</BatchNumber>
                  <BestBeforeDate>0001-01-01T00:00:00</BestBeforeDate>
                  <CountryOfOrigin>String</CountryOfOrigin>
                  <ItemExpirationDate>0001-01-01T00:00:00</ItemExpirationDate>
                  <ItemInContactWithFoodProduct>false</ItemInContactWithFoodProduct>
                  <LotNumber>String</LotNumber>
                  <PackagingDate>0001-01-01T00:00:00</PackagingDate>
                  <ProductQualityIndication>String</ProductQualityIndication>
                  <ProductionDate>0001-01-01T00:00:00</ProductionDate>
                  <SellByDate>0001-01-01T00:00:00</SellByDate>
                  <SerialNumber xmlns:d10p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
                    <d10p1:string>String</d10p1:string>
                  </SerialNumber>
                  <SerialNumberRange>
                    <SerialNumberRange>
                      <MaximumValue>String</MaximumValue>
                      <MinimumValue>String</MinimumValue>
                    </SerialNumberRange>
                  </SerialNumberRange>
                  <ShelfLife>String</ShelfLife>
                  <TradeItemQuantity>0</TradeItemQuantity>
                  <TradeItemWaste>
                    <TradeItemWaste>
                      <TypeOfWaste>
                        <AvpList>
                          <Code>String</Code>
                          <Value>String</Value>
                        </AvpList>
                      </TypeOfWaste>
                      <WasteIdentification>String</WasteIdentification>
                    </TradeItemWaste>
                  </TradeItemWaste>
                  <TransactionalItemDataCarrierAndIdentification>
                    <DataCarrier>String</DataCarrier>
                    <Gs1TransactionalItemIdentificationKey>String</Gs1TransactionalItemIdentificationKey>
                  </TransactionalItemDataCarrierAndIdentification>
                  <TransactionalItemDimensions>
                    <TransactionalItemDimension>
                      <Depth>String</Depth>
                      <Height>String</Height>
                      <MeasurementUnitCode>String</MeasurementUnitCode>
                      <Width>String</Width>
                    </TransactionalItemDimension>
                  </TransactionalItemDimensions>
                  <TransactionalItemLogisticUnitInformation>
                    <DimensionsOfLogisticUnit>
                      <TransactionalItemDimension>
                        <Depth>String</Depth>
                        <Height>String</Height>
                        <MeasurementUnitCode>String</MeasurementUnitCode>
                        <Width>String</Width>
                      </TransactionalItemDimension>
                    </DimensionsOfLogisticUnit>
                    <MaximumStackingFactor>0</MaximumStackingFactor>
                    <NumberOfLayers>0</NumberOfLayers>
                    <NumberOfUnitsPerLayer>0</NumberOfUnitsPerLayer>
                    <NumberOfUnitsPerPallet>0</NumberOfUnitsPerPallet>
                    <PackageTypeCode>String</PackageTypeCode>
                    <PackagingTerms>String</PackagingTerms>
                    <ReturnablePackageTransportCostPayment>String</ReturnablePackageTransportCostPayment>
                  </TransactionalItemLogisticUnitInformation>
                  <TransactionalItemOrganicInformation>
                    <IsTradeItemOrganic>false</IsTradeItemOrganic>
                    <OrganicCertification>String</OrganicCertification>
                  </TransactionalItemOrganicInformation>
                  <TransactionalItemVolume>
                    <TransactionalItem>
                      <MeasurementType>String</MeasurementType>
                      <MeasurementUnitCode>String</MeasurementUnitCode>
                      <MeasurementValue>String</MeasurementValue>
                    </TransactionalItem>
                  </TransactionalItemVolume>
                  <TransactionalItemWeight>
                    <TransactionalItem>
                      <MeasurementType>String</MeasurementType>
                      <MeasurementUnitCode>String</MeasurementUnitCode>
                      <MeasurementValue>String</MeasurementValue>
                    </TransactionalItem>
                  </TransactionalItemWeight>
                </TransactionalItemData>
              </TransactionalItemData>
            </TransactionalTradeItem>
          </PurchaseConditionsLineItem>
        </PurchaseConditionsLineItem>
        <ShipFrom>
          <AdditionalPartyIdentification>
            <AvpList>
              <Code>String</Code>
              <Value>String</Value>
            </AvpList>
          </AdditionalPartyIdentification>
          <Gln>String</Gln>
          <Name>String</Name>
          <Address>
            <City>String</City>
            <CountryCode>String</CountryCode>
            <PostalCode>String</PostalCode>
            <ProvinceCode>String</ProvinceCode>
            <StreetAddressOne>String</StreetAddressOne>
            <StreetAddressThree>String</StreetAddressThree>
            <StreetAddressTwo>String</StreetAddressTwo>
          </Address>
          <CommunicationChannel>
            <AvpList>
              <Code>String</Code>
              <Value>String</Value>
            </AvpList>
          </CommunicationChannel>
          <Contact>
            <Contact>
              <CommunicationChannel>
                <CommunicationChannel>
                  <CommunicationChannelCode>String</CommunicationChannelCode>
                  <CommunicationChannelName>String</CommunicationChannelName>
                  <CommunicationValue>String</CommunicationValue>
                </CommunicationChannel>
              </CommunicationChannel>
              <ContactTypeCode>String</ContactTypeCode>
              <DepartmentName>String</DepartmentName>
              <JobTitle>String</JobTitle>
              <PersonName>String</PersonName>
              <Responsibility>String</Responsibility>
            </Contact>
          </Contact>
          <DutyFeeTaxRegistration>String</DutyFeeTaxRegistration>
          <EntityIdentification>String</EntityIdentification>
          <FinancialInstitutionInformation>
            <ExportersCode>String</ExportersCode>
            <FinancialAccount>
              <Name>String</Name>
              <Number>String</Number>
              <NumberTypeCode>String</NumberTypeCode>
            </FinancialAccount>
            <FinancialInstitutionBranchName>String</FinancialInstitutionBranchName>
            <FinancialInstitutionName>String</FinancialInstitutionName>
            <FinancialRoutingNumber>
              <Number>String</Number>
              <NumberTypeCode>String</NumberTypeCode>
            </FinancialRoutingNumber>
            <SwiftCode>String</SwiftCode>
          </FinancialInstitutionInformation>
        </ShipFrom>
        <ShipTo>
          <AdditionalPartyIdentification>
            <AvpList>
              <Code>String</Code>
              <Value>String</Value>
            </AvpList>
          </AdditionalPartyIdentification>
          <Gln>String</Gln>
          <Name>String</Name>
          <Address>
            <City>String</City>
            <CountryCode>String</CountryCode>
            <PostalCode>String</PostalCode>
            <ProvinceCode>String</ProvinceCode>
            <StreetAddressOne>String</StreetAddressOne>
            <StreetAddressThree>String</StreetAddressThree>
            <StreetAddressTwo>String</StreetAddressTwo>
          </Address>
          <CommunicationChannel>
            <AvpList>
              <Code>String</Code>
              <Value>String</Value>
            </AvpList>
          </CommunicationChannel>
          <Contact>
            <Contact>
              <CommunicationChannel>
                <CommunicationChannel>
                  <CommunicationChannelCode>String</CommunicationChannelCode>
                  <CommunicationChannelName>String</CommunicationChannelName>
                  <CommunicationValue>String</CommunicationValue>
                </CommunicationChannel>
              </CommunicationChannel>
              <ContactTypeCode>String</ContactTypeCode>
              <DepartmentName>String</DepartmentName>
              <JobTitle>String</JobTitle>
              <PersonName>String</PersonName>
              <Responsibility>String</Responsibility>
            </Contact>
          </Contact>
          <DutyFeeTaxRegistration>String</DutyFeeTaxRegistration>
          <EntityIdentification>String</EntityIdentification>
          <FinancialInstitutionInformation>
            <ExportersCode>String</ExportersCode>
            <FinancialAccount>
              <Name>String</Name>
              <Number>String</Number>
              <NumberTypeCode>String</NumberTypeCode>
            </FinancialAccount>
            <FinancialInstitutionBranchName>String</FinancialInstitutionBranchName>
            <FinancialInstitutionName>String</FinancialInstitutionName>
            <FinancialRoutingNumber>
              <Number>String</Number>
              <NumberTypeCode>String</NumberTypeCode>
            </FinancialRoutingNumber>
            <SwiftCode>String</SwiftCode>
          </FinancialInstitutionInformation>
        </ShipTo>
      </PurchaseConditionsLocationInformation>
    </PurchaseConditionsLocationInformation>
    <RemitTo>
      <AdditionalPartyIdentification>
        <AvpList>
          <Code>String</Code>
          <Value>String</Value>
        </AvpList>
      </AdditionalPartyIdentification>
      <Gln>String</Gln>
      <Name>String</Name>
      <Address>
        <City>String</City>
        <CountryCode>String</CountryCode>
        <PostalCode>String</PostalCode>
        <ProvinceCode>String</ProvinceCode>
        <StreetAddressOne>String</StreetAddressOne>
        <StreetAddressThree>String</StreetAddressThree>
        <StreetAddressTwo>String</StreetAddressTwo>
      </Address>
      <CommunicationChannel>
        <AvpList>
          <Code>String</Code>
          <Value>String</Value>
        </AvpList>
      </CommunicationChannel>
      <Contact>
        <Contact>
          <CommunicationChannel>
            <CommunicationChannel>
              <CommunicationChannelCode>String</CommunicationChannelCode>
              <CommunicationChannelName>String</CommunicationChannelName>
              <CommunicationValue>String</CommunicationValue>
            </CommunicationChannel>
          </CommunicationChannel>
          <ContactTypeCode>String</ContactTypeCode>
          <DepartmentName>String</DepartmentName>
          <JobTitle>String</JobTitle>
          <PersonName>String</PersonName>
          <Responsibility>String</Responsibility>
        </Contact>
      </Contact>
      <DutyFeeTaxRegistration>String</DutyFeeTaxRegistration>
      <EntityIdentification>String</EntityIdentification>
      <FinancialInstitutionInformation>
        <ExportersCode>String</ExportersCode>
        <FinancialAccount>
          <Name>String</Name>
          <Number>String</Number>
          <NumberTypeCode>String</NumberTypeCode>
        </FinancialAccount>
        <FinancialInstitutionBranchName>String</FinancialInstitutionBranchName>
        <FinancialInstitutionName>String</FinancialInstitutionName>
        <FinancialRoutingNumber>
          <Number>String</Number>
          <NumberTypeCode>String</NumberTypeCode>
        </FinancialRoutingNumber>
        <SwiftCode>String</SwiftCode>
      </FinancialInstitutionInformation>
    </RemitTo>
    <Seller>
      <AdditionalPartyIdentification>
        <AvpList>
          <Code>String</Code>
          <Value>String</Value>
        </AvpList>
      </AdditionalPartyIdentification>
      <Gln>String</Gln>
      <Name>String</Name>
      <Address>
        <City>String</City>
        <CountryCode>String</CountryCode>
        <PostalCode>String</PostalCode>
        <ProvinceCode>String</ProvinceCode>
        <StreetAddressOne>String</StreetAddressOne>
        <StreetAddressThree>String</StreetAddressThree>
        <StreetAddressTwo>String</StreetAddressTwo>
      </Address>
      <CommunicationChannel>
        <AvpList>
          <Code>String</Code>
          <Value>String</Value>
        </AvpList>
      </CommunicationChannel>
      <Contact>
        <Contact>
          <CommunicationChannel>
            <CommunicationChannel>
              <CommunicationChannelCode>String</CommunicationChannelCode>
              <CommunicationChannelName>String</CommunicationChannelName>
              <CommunicationValue>String</CommunicationValue>
            </CommunicationChannel>
          </CommunicationChannel>
          <ContactTypeCode>String</ContactTypeCode>
          <DepartmentName>String</DepartmentName>
          <JobTitle>String</JobTitle>
          <PersonName>String</PersonName>
          <Responsibility>String</Responsibility>
        </Contact>
      </Contact>
      <DutyFeeTaxRegistration>String</DutyFeeTaxRegistration>
      <EntityIdentification>String</EntityIdentification>
      <FinancialInstitutionInformation>
        <ExportersCode>String</ExportersCode>
        <FinancialAccount>
          <Name>String</Name>
          <Number>String</Number>
          <NumberTypeCode>String</NumberTypeCode>
        </FinancialAccount>
        <FinancialInstitutionBranchName>String</FinancialInstitutionBranchName>
        <FinancialInstitutionName>String</FinancialInstitutionName>
        <FinancialRoutingNumber>
          <Number>String</Number>
          <NumberTypeCode>String</NumberTypeCode>
        </FinancialRoutingNumber>
        <SwiftCode>String</SwiftCode>
      </FinancialInstitutionInformation>
    </Seller>
    <TaxRepresentative>
      <AdditionalPartyIdentification>
        <AvpList>
          <Code>String</Code>
          <Value>String</Value>
        </AvpList>
      </AdditionalPartyIdentification>
      <Gln>String</Gln>
      <Name>String</Name>
      <Address>
        <City>String</City>
        <CountryCode>String</CountryCode>
        <PostalCode>String</PostalCode>
        <ProvinceCode>String</ProvinceCode>
        <StreetAddressOne>String</StreetAddressOne>
        <StreetAddressThree>String</StreetAddressThree>
        <StreetAddressTwo>String</StreetAddressTwo>
      </Address>
      <CommunicationChannel>
        <AvpList>
          <Code>String</Code>
          <Value>String</Value>
        </AvpList>
      </CommunicationChannel>
      <Contact>
        <Contact>
          <CommunicationChannel>
            <CommunicationChannel>
              <CommunicationChannelCode>String</CommunicationChannelCode>
              <CommunicationChannelName>String</CommunicationChannelName>
              <CommunicationValue>String</CommunicationValue>
            </CommunicationChannel>
          </CommunicationChannel>
          <ContactTypeCode>String</ContactTypeCode>
          <DepartmentName>String</DepartmentName>
          <JobTitle>String</JobTitle>
          <PersonName>String</PersonName>
          <Responsibility>String</Responsibility>
        </Contact>
      </Contact>
      <DutyFeeTaxRegistration>String</DutyFeeTaxRegistration>
      <EntityIdentification>String</EntityIdentification>
      <FinancialInstitutionInformation>
        <ExportersCode>String</ExportersCode>
        <FinancialAccount>
          <Name>String</Name>
          <Number>String</Number>
          <NumberTypeCode>String</NumberTypeCode>
        </FinancialAccount>
        <FinancialInstitutionBranchName>String</FinancialInstitutionBranchName>
        <FinancialInstitutionName>String</FinancialInstitutionName>
        <FinancialRoutingNumber>
          <Number>String</Number>
          <NumberTypeCode>String</NumberTypeCode>
        </FinancialRoutingNumber>
        <SwiftCode>String</SwiftCode>
      </FinancialInstitutionInformation>
    </TaxRepresentative>
  </PurchaseConditions>
</PurchaseConditionsMessage>