# SFTP upload document file of collection transaction

* NeoX will build an SFTP server for the merchant to upload the document file of the collection transaction.
* The format of file name:  *DSTH\_\[Merchant Code]\_\[Transaction Code]\_\[version upload].*
  * \[Merchant Code]: is obtained on the Merchant portal, in the *“My Profile”* menu.
  * \[Transaction Code]: is obtained on the Merchant portal, in the *“Collection management”* menu → *“Transactions management”* menu.
* The SFTP server information will be provided to the merchant upon actual connection.
* Sequence Diagram:

<figure><img src="https://1419689564-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FFdTKNedABvGBtqJRHWA0%2Fuploads%2F5I0mjSajjDGAVHdVYLg5%2FPicture1.png?alt=media&#x26;token=c0d70c05-c9a8-4995-b155-913adad7df6e" alt=""><figcaption></figcaption></figure>

* The merchant uploads the document file of the transaction via the SFTP protocol (Step1), before NeoX do the settlement (Step 3).
