All URIs are relative to https://apitest.cybersource.com
Method | HTTP request | Description |
---|---|---|
getFile | GET /v1/files/{fileId} | Download a file with file identifier |
getFileDetails | GET /v1/file-details | Get list of files |
getFile(fileId, opts)
Download a file with file identifier
Download a file for the given file identifier
var CyberSource = require('CyberSource');
var apiInstance = new CyberSource.SecureFileShareApi();
var fileId = "fileId_example"; // String | Unique identifier for each file
var opts = {
'organizationId': "organizationId_example" // String | Valid Cybersource Organization Id
};
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully.');
}
};
apiInstance.getFile(fileId, opts, callback);
Name | Type | Description | Notes |
---|---|---|---|
fileId | String | Unique identifier for each file | |
organizationId | String | Valid Cybersource Organization Id | [optional] |
null (empty response body)
No authorization required
- Content-Type: application/json;charset=utf-8
- Accept: application/xml, text/csv, application/pdf
V1FileDetailsGet200Response getFileDetails(startDate, endDate, opts)
Get list of files
Get list of files and it's information of them available inside the report directory
var CyberSource = require('CyberSource');
var apiInstance = new CyberSource.SecureFileShareApi();
var startDate = new Date("2013-10-20"); // Date | Valid start date in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format. - https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14 **Example date format:** - yyyy-MM-dd
var endDate = new Date("2013-10-20"); // Date | Valid end date in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format. - https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14 **Example date format:** - yyyy-MM-dd
var opts = {
'organizationId': "organizationId_example" // String | Valid Cybersource Organization Id
};
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.getFileDetails(startDate, endDate, opts, callback);
Name | Type | Description | Notes |
---|---|---|---|
startDate | Date | Valid start date in ISO 8601 format Please refer the following link to know more about ISO 8601 format. - https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14 Example date format: - yyyy-MM-dd | |
endDate | Date | Valid end date in ISO 8601 format Please refer the following link to know more about ISO 8601 format. - https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14 Example date format: - yyyy-MM-dd | |
organizationId | String | Valid Cybersource Organization Id | [optional] |
No authorization required
- Content-Type: application/json;charset=utf-8
- Accept: application/hal+json