List Executions
Fetch a list of executions, sorted by the date they were created from newest to oldest.
/executions
This 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.
INBOUND
OUTBOUND
UNKNOWN
A code specifying the reason for the fault.
DELIVERY_FAILURE
FAILED_TO_EXTRACT_BUSINESS_IDENTIFIERS
FAILED_TO_FIND_GUIDE
FAILED_TO_FIND_LOCAL_PROFILE
FAILED_TO_FIND_PARTNER_PROFILE
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.
COMPLETED
PARTIALLY_COMPLETED
FAILED
IGNORED
IN_PROGRESS
- Format:
date-time
- 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 main
import (
"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 requests
url = "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"
}
{
"message": "string",
"code": "string"
}
{
"message": "string",
"code": "string"
}
{
"message": "string",
"code": "string"
}
{
"message": "string",
"code": "string"
}
{
"message": "string",
"cause": {
"name": "string",
"message": "string",
"stack": "string"
}
}
{
"message": "string",
"code": "string"
}
{
"message": "string",
"code": "string"
}