Examples

XML Request example

 

<?xml version="1.0" encoding="UTF-8"?>

<tns:fuelTransaction xmlns:tns="http://www.eroad.co.nz/schema/EROADThirdParty"

    xmlns:jaxb="http://java.sun.com/xml/ns/jaxb"

    xmlns:xjc="http://java.sun.com/xml/ns/jaxb/xjc"

    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

    xsi:schemaLocation="http://www.eroad.co.nz/schema/EROADThirdParty file:/C: /EROADThirdPartyV2.xsd">

    <tns:transactionData>

        <tns:supplier>ABC</tns:supplier>

        <tns:customerName>TRUCKERS</tns:customerName>

        <tns:customerAccountNumber>5566778899</tns:customerAccountNumber>

        <tns:transactionId>123999999</tns:transactionId>

        <tns:transactionTimestamp>2011-11-22T01:50:50.0Z</tns:transactionTimestamp>

        <tns:transactionType>PURCHASE</tns:transactionType>

        <tns:fuelCardNumber>7234123412341299</tns:fuelCardNumber>

        <tns:registrationPlate>ABC123</tns:registrationPlate>

        <tns:registrationState>AU-NSW</tns:registrationState>

        <tns:vin></tns:vin>

        <tns:amount>15.47</tns:amount>

        <tns:siteId>199</tns:siteId>

        <tns:terminalId>38</tns:terminalId>

         <tns:siteAddress>

            <tns:street>102 Rosedale Road</tns:street>

            <tns:suburb>Albany</tns:suburb>

            <tns:city>Auckland</tns:city>

            <tns:postcode>0632</tns:postcode>

            <tns:country>New Zealand</tns:country>

        </tns:siteAddress>

        <tns:fuelProducts>

            <tns:productCode>DIESEL</tns:productCode>

            <tns:unit>US_GALLON</tns:unit>

            <tns:quantity>7.35</tns:quantity>

            <tns:amount>15.47</tns:amount>

        </tns:fuelProducts>

    </tns:transactionData>

</tns:fuelTransaction>