B2B XML Pre-Advice On-Boarding Guide

B2B XML Pre-Advice On-Boarding Guide

 

What is B2B Pre-Advice?

Business to Business (B2B) Pre-Advice is a way pre-advise export containers by sending pre-advice details in an XML format to PortConnect. The export information can be extracted from your system in the XML format and sent to PortConnect. PortConnect will automatically process the file and email back a confirmation of success or failure.

This is an alternative to manual Pre-Advice through the PortConnect website.

What is XML?

Extensible Markup Language (XML) defines a set of rules for encoding documents in a format which is both human-readable and machine-readable. The XML standard is a flexible way to create information formats and electronically share structured data via the public Internet, as well as via corporate networks.

The XML format can be used by any individual or group of individuals or companies that want to share information in a consistent way.

How can the XML file be sent to PortConnect?

XML files can be sent by SFTP or email. Please confirm which option you would like to use and we can provide you with further details. If you are sending the file by email the body of the email needs to be blank and the only attachment should be the XML file. Any other attachments may stop the XML file from being processed. 

The file name and the email subject can be anything. 

PortConnect Terms & Conditions

Before using PortConnect B2B Pre-Advice you must send written confirmation that you accept PortConnect’s Terms & Conditions to info@portconnect.co.nz

How will I know if the Pre-Advice has succeeded?

Automated acknowledgements can be sent via email or sftp. Emails included a formatted body and an XML attachment. SFTP response include just the XML response.

Email responses

The emails contain two boxes, a green box in which successful containers will display and a red box in which unsuccessful containers will display.

Containers in the green box show all the key details of the container. You can use this email to share the details with other parties.

Any unsuccessful containers will show in the red box with a comment about why the Pre-Advice was not successful. The same message also appears on the PortConnect website.

The emails also contain an XML file which records the status of the Pre-Advice.

© PortConnect 2026