getRefreshRequestStatus(context)
|
Function Declaration |
|
|
Type |
Interface function |
|
Description |
Retrieves the status of a data refresh request from the Account Information Service Provider (AISP). |
|
Returns |
void |
|
Input Parameters |
|
Example
function getRefreshRequestStatus(context) {
var configurationId = context.pluginConfiguration.getConfigurationFieldValue({fieldName: "configuration_id"});
var configuration = loadConfiguration(configurationId);
const requestId = context.refreshRequestId;
context.returnRefreshRequestStatus({
refreshRequestId: requestId,
status: context.status.IN_PROGRESS // context.status has four enum members NOT_FOUND, IN_PROGRESS, FAILED, COMPLETED
});
}
Note:
This function is only applicable to connectivity plug-ins used in Corporate Card Expenses type format profiles. For more information, see Creating Format Profiles for Expense Reporting.