upload-transfer-document
The upload-transfer-document https POST service will attach documents to a transfer.
Up to three documents can be attached to a single transfer.
You would use this if compliance requests additional information about a transfer, such as Invoice, proof of payment, Purchase order, etc.
Parameters
| Parameter | Type | Required |
|---|---|---|
| transfer_id | UUID | true |
| file | FILE | true |
``200 200
object
``400 400
// POST Upload Transfer Document
const axios = require('axios');
const FormData = require('form-data');
const fs = require('fs');
let data = new FormData();
data.append('file', fs.createReadStream('<path to your file>/<filename>.pdf'));
data.append('transfer_id', '94bb5826-d26d-4cfa-bd9e-b70dbb3fe511');
let config = {
method: 'post',
maxBodyLength: Infinity,
url: 'https://sandbox.routefusion.com/upload-transfer-document',
headers: {
'Authorization': 'Bearer <Your token>',
...data.getHeaders()
},
data : data
};
axios.request(config)
.then((response) => {
console.log(JSON.stringify(response.data));
})
.catch((error) => {
console.log(error);
});
{}
Updated about 1 year ago