returnRefreshRequestStatus(options)
|
Type |
Object function |
|
Description |
Returns the status of the refresh request for data from the Account Information Service Provider (AISP). This function accepts one of the four status enumeration values: |
|
Returns |
void |
The options (JavaScript object) includes the following properties:
-
refreshRequestId(String, required): The request ID returned from the AISP when a data refresh is requested, which must matchcontext.refreshRequestId. Otherwise, the status is set toNOT_FOUND. -
status(String, required): The status returned from the AISP, which must be one of the four supported status enumeration values.
Example
context.returnRefreshRequestStatus({
refreshRequestId: '12345',
status: context.status.COMPLETED
});