# ERP File Exchange Documentation

**Description:** This document explain how to use Smart doc Flow ERP File Exchange API to send and receive files.
 

---

## Introduction

### What is the ERP File Exchange Service?
File Exchange service allows you to Send and Receive ERP Files to and from the remote EDI Platform.  To exchange files with this service you need to build a [REST Client](/smartdocflow/default/understanding-rest-and-rest-clients) then call the endpoints described below.  

 ![File Exchange Service](/services/api/attachments/acfaa4ec-ce02-4127-9270-077d437f3c15)

---

## Sending files 
Files are sent one by one. Use this endpoint to Send 1 file
[POST Send File](/smartdocflow/default/erp-file-exchange-api-v-1-0-0#/Sending/exchange-send)

---

## Receiving files 
To receive your files, you need to perform the following actions: List files to download, Download desired file, Acknowledge the file after succesful Download.

First, you need to list the available files to download.
[GET List Files to download](/smartdocflow/default/erp-file-exchange-api-v-1-0-0#/Reception/exchange-list-files)
You will retrieve a list of file identifiers. Each identifier corresponds to 1 file available to download.

Then, you can download the desired file using its id
[GET Download File](/smartdocflow/default/erp-file-exchange-api-v-1-0-0#/Reception/exchange-download-file)

Once you have downloaded the file, you can acknowledge reception.
[DELETE Acknowledge downloaded File](/smartdocflow/default/erp-file-exchange-api-v-1-0-0#/Reception/exchange-ack-file)
This will make the file not available anymore for download.

---
