Zynk CSV to Zynk Purchase Order XML
The purchase order CSV works on the basis of one CSV line representing one item line on the purchase order, but it is expected that each line will contain all relevant data. Lines will be grouped by the Id value, where the Id value is unique to the purchase order and can be used to prevent duplicate entries into Sage.
For more details about Sage purchase order fields, please refer to our Sage 50 UK and Sage 200 documentation
Examples
Below is an example of a Zynk Purchase Order in .csv format:
Id,AccountReference,Sku,Name,Description,QtyOrdered,UnitPrice,UnitDiscountAmount,UnitDiscountPercentage,TaxCode,TaxRate,NominalCode,Department,Type,Title,Forename,Surname,Company,Address1,Address2,Address3,Town,Postcode,County,Country,Email,ContactName,DelTitle,DelForename,DelSurname,DelCompany,DelAddress1,DelAddress2,DelAddress3,DelTown,DelPostcode,DelCounty,DelCountry,DelEmail,DelContactName,PurchaseOrderDate
10001,ACC123,SKU001,Chocolate Cheesecake,A delicious chocolate cheesecake,2,10.99,0,0,1,,4000,1,Stock,Mr.,John,Doe,John's Deserts,Street1,Street2,Area1,Town1,PO123,County1,UK,[email protected],Bob Smith,Mr.,Bob,Smith,Startup Company,56 Short Street,,,Lancaster,LA13 6TG,,UK,[email protected],Bob Smith,2025-01-01
10001,ACC123,TRF002,Trifle,A classic English trifle,1,15.49,0,0,1,,4000,1,Stock,Mr.,John,Doe,John's Deserts,Street1,Street2,Area1,Town1,PO123,County1,UK,[email protected],John Doe,Mr.,Bob,Smith,Startup Company,56 Short Street,,,Lancaster,LA13 6TG,,UK,[email protected],Bob Smith,2025-01-01
10002,JAN003,RASP005,Raspberry Ripple Ice Cream,Everyone's favourite flavour,3,8.79,0,0,1,,4000,1,Stock,Mrs.,Jane,Doe,Jane's Ice Creams,14 Long Road,,,Leeds,LS21 8KL,Yorkshire,UK,[email protected],Jane Doe,Mr.,Bob,Smith,Startup Company,56 Short Street,,,Lancaster,LA13 6TG,,UK,[email protected],Bob Smith,2025-03-01
This will produce the following XML:
<?xml version="1.0" encoding="utf-8"?>
<Company >
<PurchaseOrders>
<PurchaseOrder>
<Id>10001</Id>
<AccountReference>ACC123</AccountReference>
<PurchaseOrderDate>2025-01-01</PurchaseOrderDate>
<PurchaseOrderAddress>
<Company>John's Deserts</Company>
<Title>Mr.</Title>
<Forename>John</Forename>
<Surname>Doe</Surname>
<Address1>Street1</Address1>
<Address2>Street2</Address2>
<Address3>Area1</Address3>
<Town>Town1</Town>
<County>County1</County>
<Postcode>PO123</Postcode>
<Country>UK</Country>
<ContactName>Bob Smith</ContactName>
<Email>[email protected]</Email>
</PurchaseOrderAddress>
<PurchaseOrderDeliveryAddress>
<Company>Startup Company</Company>
<Title>Mr.</Title>
<Forename>Bob</Forename>
<Surname>Smith</Surname>
<Address1>56 Short Street</Address1>
<Address2></Address2>
<Address3></Address3>
<Town>Lancaster</Town>
<County></County>
<Postcode>LA13 6TG</Postcode>
<Country>UK</Country>
<ContactName>Bob Smith</ContactName>
<Email>[email protected]</Email>
</PurchaseOrderDeliveryAddress>
<PurchaseOrderItems>
<Item>
<Sku>SKU001</Sku>
<Type>Stock</Type>
<Name>Chocolate Cheesecake</Name>
<Description>A delicious chocolate cheesecake</Description>
<QtyOrdered>2</QtyOrdered>
<UnitPrice>10.99</UnitPrice>
<UnitDiscountPercentage>0</UnitDiscountPercentage>
<UnitDiscountAmount>0</UnitDiscountAmount>
<NominalCode>4000</NominalCode>
<TaxCode>1</TaxCode>
<TaxRate></TaxRate>
<Department>1</Department>
</Item>
<Item>
<Sku>TRF002</Sku>
<Type>Stock</Type>
<Name>Trifle</Name>
<Description>A classic English trifle</Description>
<QtyOrdered>1</QtyOrdered>
<UnitPrice>15.49</UnitPrice>
<UnitDiscountPercentage>0</UnitDiscountPercentage>
<UnitDiscountAmount>0</UnitDiscountAmount>
<NominalCode>4000</NominalCode>
<TaxCode>1</TaxCode>
<TaxRate></TaxRate>
<Department>1</Department>
</Item>
</PurchaseOrderItems>
<AnalysisCodes />
</PurchaseOrder>
<PurchaseOrder>
<Id>10002</Id>
<AccountReference>JAN003</AccountReference>
<PurchaseOrderDate>2025-03-01</PurchaseOrderDate>
<PurchaseOrderAddress>
<Company>Jane's Ice Creams</Company>
<Title>Mrs.</Title>
<Forename>Jane</Forename>
<Surname>Doe</Surname>
<Address1>14 Long Road</Address1>
<Address2></Address2>
<Address3></Address3>
<Town>Leeds</Town>
<County>Yorkshire</County>
<Postcode>LS21 8KL</Postcode>
<Country>UK</Country>
<ContactName>Jane Doe</ContactName>
<Email>[email protected]</Email>
</PurchaseOrderAddress>
<PurchaseOrderDeliveryAddress>
<Company>Startup Company</Company>
<Title>Mr.</Title>
<Forename>Bob</Forename>
<Surname>Smith</Surname>
<Address1>56 Short Street</Address1>
<Address2></Address2>
<Address3></Address3>
<Town>Lancaster</Town>
<County></County>
<Postcode>LA13 6TG</Postcode>
<Country>UK</Country>
<ContactName>Bob Smith</ContactName>
<Email>[email protected]</Email>
</PurchaseOrderDeliveryAddress>
<PurchaseOrderItems>
<Item>
<Sku>RASP005</Sku>
<Type>Stock</Type>
<Name>Raspberry Ripple Ice Cream</Name>
<Description>Everyone's favourite flavour</Description>
<QtyOrdered>3</QtyOrdered>
<UnitPrice>8.79</UnitPrice>
<UnitDiscountPercentage>0</UnitDiscountPercentage>
<UnitDiscountAmount>0</UnitDiscountAmount>
<NominalCode>4000</NominalCode>
<TaxCode>1</TaxCode>
<TaxRate></TaxRate>
<Department>1</Department>
</Item>
</PurchaseOrderItems>
<AnalysisCodes />
</PurchaseOrder>
</PurchaseOrders>
</Company>