Sample fax XMLAPI

The below is a sample fax XMLAPI that sends a fax with subject Proforma Invoice to two recipients - John Bloggs and Bob Jones. For this example, two other files are used:

  • Attachment: an attachment mswordfile.doc
  • Body file: a plain text file bodyfile.txt

These files are stored in c:\temp\ before storing the XMLAPI in the pickup folder. They will be deleted from c:\temp\ when the fax is picked up by GFI FaxMaker.

 

<?xml version="1.0" encoding="utf-8"?>
<faxmakerdata>
	<fields>
		<subject>Proforma Invoice</subject>
		<schedule>2017-10-10-08:15:00</schedule>
		<priority>high</priority>
		<billingcode>25</billingcode>
		<resolution>high</resolution>
		<coverpage>corporate</coverpage>
		<frontcovernote>letterhead</frontcovernote>
		<faxline demandline="true">3</faxline>
		<faxheader>this is fax header text</faxheader>
		<bodyfile type="text/plain">
			c:\temp\bodyfile.txt
		</bodyfile>
		<attachment>
			c:\temp\mswordfile.doc
		</attachment>
		<uid>3a5a90s7de3g20k9y4d5e7e6fse28se5e097</uid>
	</fields>
	<sender>
		<firstname>John</firstname>
		<lastname>Smith</lastname>
		<company>MyCompany Ltd.</company>
		<department>Sales</department>
		<faxnumber>1234 5678</faxnumber>
		<voicenumber>9876 5432</voicenumber>
		<emailaddress>jsmith@mycompany.com</emailaddress>
	</sender>
	<recipients>
		<fax>
			<recipient>
				<firstname>Joe</firstname>
				<lastname>Bloggs</lastname>
				<company>JohnBloggs Company</company>
				<department>Marketing</department>
				<faxnumber>1122 3344</faxnumber>
				<voicenumber>5566 7788</voicenumber>
				<emailaddress>
					jbloggs@johnbloggs.com
				</emailaddress>
			</recipient>
			<recipient>
				<firstname>Bob</firstname>
				<lastname>Jones</lastname>
				<company>BobJones Company</company>
				<department>Accounts</department>
				<faxnumber>9988 7766</faxnumber>
				<voicenumber>5544 3322</voicenumber>
				<emailaddress>
					bjones@bobjones.com
				</emailaddress>
			</recipient>
		</fax>
	</recipients>
</faxmakerdata>