> For the complete documentation index, see [llms.txt](https://docs.neox.vn/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.neox.vn/docs/collections/integration/sftp-upload-document-file-of-collection-transaction.md).

# 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&amp;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).
