List Executions
Fetch a list of executions, sorted by the date they were created from newest to oldest.
/executionsThis endpoint retrieves information about all file executions that Stedi has processed in your account. It's useful for displaying a list of processed files in a UI. If you want to programmatically fetch and check for new file executions, you should use the Poll Executions endpoint instead.
A Stedi API Key for authentication.
Query Parameters
The maximum number of elements to return in a page. You can set this to a maximum of 500 elements. If not specified, the default is 100.
- Range:
≥ 1
An opaque token returned by a previous call to this operation in the nextPageToken. If not specified, Stedi returns the first page of results.
- Required string length:
1 - 1024
The direction of the transaction. Inbound transactions are those you receive from a payer, provider, or other trading partner. Outbound transactions are those you send to a payer, provider, or other trading partner.
INBOUNDOUTBOUNDUNKNOWNA code specifying the reason for the fault.
DELIVERY_FAILUREFAILED_TO_EXTRACT_BUSINESS_IDENTIFIERSFAILED_TO_FIND_GUIDEFAILED_TO_FIND_LOCAL_PROFILEFAILED_TO_FIND_PARTNER_PROFILEThe unique identifier for the partnership within the Stedi platform. If you're sending or receiving transactions through the Stedi clearinghouse, Stedi configures the necessary partnership for you automatically when you set up your account.
The status of the execution. An execution is COMPLETED when Stedi has finished processing the file with no errors. If the file is an outbound file, a COMPLETED status also means that Stedi successfully delivered it to the configured connection.
COMPLETEDPARTIALLY_COMPLETEDFAILEDIGNOREDIN_PROGRESSThe start of the time range to filter file executions. The results will include executions created at or after this timestamp.
- Format:
date-time
The end of the time range to filter file executions. The results will include executions up to and including this timestamp.
- Format:
date-time
Response
ListExecutions 200 response
Token for pagination to retrieve the next page of results; null if there are no more results
- Required string length:
1 - 1024
The processed executions that match the request criteria. The items array is empty if there are no matching executions.
curl --request GET \ --url "https://core.us.stedi.com/2023-08-01/executions?pageSize=200" \ --header "Authorization: <api_key>"fetch("https://core.us.stedi.com/2023-08-01/executions?pageSize=200", { headers: { "Authorization": "<api_key>" }})package mainimport ( "fmt" "net/http" "io/ioutil")func main() { url := "https://core.us.stedi.com/2023-08-01/executions?pageSize=200" req, _ := http.NewRequest("GET", url, nil) req.Header.Add("Authorization", "<api_key>") res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := ioutil.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body))}import requestsurl = "https://core.us.stedi.com/2023-08-01/executions?pageSize=200"response = requests.request("GET", url, headers = { "Authorization": "<api_key>"})print(response.text)import java.net.URI;import java.net.http.HttpClient;import java.net.http.HttpRequest;import java.net.http.HttpResponse;import java.net.http.HttpResponse.BodyHandlers;import java.time.Duration;HttpClient client = HttpClient.newBuilder() .connectTimeout(Duration.ofSeconds(10)) .build();HttpRequest.Builder requestBuilder = HttpRequest.newBuilder() .uri(URI.create("https://core.us.stedi.com/2023-08-01/executions?pageSize=200")) .header("Authorization", "<api_key>") .GET() .build();try { HttpResponse<String> response = client.send(requestBuilder.build(), BodyHandlers.ofString()); System.out.println("Status code: " + response.statusCode()); System.out.println("Response body: " + response.body());} catch (Exception e) { e.printStackTrace();}{
"message": "string",
"code": "string"
}{
"message": "string",
"code": "string"
}{
"message": "string",
"code": "string"
}{
"message": "string",
"code": "string"
}{
"message": "string"
}{
"message": "string",
"code": "string"
}{
"message": "string",
"cause": {
"name": "string",
"message": "string",
"stack": "string"
}
}{
"message": "string",
"code": "string"
}{
"message": "string",
"code": "string"
}