This method is used to query available fax reports for completed fax jobs. This request contains no entries other than the authentication data. In response to the query, an element from the AvailableReport type is on hand for each report. Besides the Job ID, each report contains the time the job was created and the time it was completed.
📌 Polling status for fax jobs sent via high availability URLs
If fax job requests are sent using a high availability (HA) URL, status polling must be performed separately for each included data center (e.g., US1 and US2 for the US HA URL). Avoid polling statuses directly from the HA URL; always use the individual data center URLs for status checks.
The results are limited to the oldest 1000 entries only. It is recommended to delete the status reports after fetching them, so you can retrieve the next set of entries.
Input parameter: AvailableReportsRequest
Output parameter: AvailableReportsResponse
AvailableReportsResponse
|
Field name |
Data type |
Required |
Multiple possible |
|---|---|---|---|
|
AvailableReport |
No |
Yes |
AvailableReport |
availableReport
Job-ID with timestamp: created + finished
The list contains only completed fax jobs, so each entry has both timestamps. To get the result for each recipient number of a job, call Method getFaxReports with its Job ID.
Java sample code
AvailableReportsRequest availableReportsRequest = this.objectFactory.createAvailableReportsRequest();
// Authentication:
availableReportsRequest.setUsername(_USERNAME_);
availableReportsRequest.setPassword(_PASSWORD_);
// Fire request:
AvailableReportsResponse availableReportsResponse = this.servicePort.getListOfAvailableFaxReports(availableReportsRequest);
// Analyse response:
System.out.println("There are reports available for the following jobs:");
for (AvailableReport availableReport : availableReportsResponse.getAvailableReport()) {
System.out.println(availableReport.getJobId() + "; Created: " + availableReport.getCreatedTS() + "; Completed: " + availableReport.getFinishedTS());
}
Request XML
<ns2:AvailableReportsRequest xmlns:ns2="http://retarus.com/fax4ba/faxws/3/0">
<username>faxws@example.com</username>
<password>faxws</password>
</ns2:AvailableReportsRequest>
Response XML
<ns2:AvailableReportsResponse xmlns:ns2="http://retarus.com/fax4ba/faxws/3/0">
<availableReport>
<jobId>FJHAL1LLR70AZ82ZX57ITZ</jobId>
<createdTS>2015-12-11T14:04:50.274+01:00</createdTS>
</availableReport>
<availableReport>
<jobId>FJHAL0RNBW0AZ82ZX5FCET</jobId>
<createdTS>2015-12-11T13:41:32.635+01:00</createdTS>
<finishedTS>2015-12-11T14:19:21+01:00</finishedTS>
</availableReport>
</ns2:AvailableReportsResponse>
Exceptions
TemporaryFailure
Appears when the request currently cannot be processed due to an internal Webservice error.
WrongUserPassword
Appears when the request contains invalid authentication data.
AvailableReport
Job ID and timestamp when a report is available for the job.
|
Field name |
Data type |
Required |
Multiple possible |
|---|---|---|---|
|
jobId |
String |
Yes |
No |
|
createdTS |
Date |
Yes |
No |
|
finishedTS |
Date |
No |
No |
jobId
Job ID (fax ID)
createdTS
time the job was created
finishedTS
time processing of the job ended