List Executions

Fetch a list of executions, sorted by the date they were created from newest to oldest.

GET/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.

Authorizationstringrequiredheader

A Stedi API Key for authentication.

Query Parameters

pageSizenumber

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
pageTokenstring

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
directionstring

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.

Possible values
INBOUND
OUTBOUND
UNKNOWN
faultCodestring

A code specifying the reason for the fault.

Possible values
DELIVERY_FAILURE
FAILED_TO_EXTRACT_BUSINESS_IDENTIFIERS
FAILED_TO_FIND_GUIDE
FAILED_TO_FIND_LOCAL_PROFILE
FAILED_TO_FIND_PARTNER_PROFILE
statusstring

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.

Possible values
COMPLETED
PARTIALLY_COMPLETED
FAILED
IGNORED
IN_PROGRESS
fromstring
  • Format: date-time
tostring
  • Format: date-time

Response

application/json

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
itemsarray<object>required

The processed executions that match the request criteria. The items array is empty if there are no matching executions.

Array item
items[].createdAtstringrequired

The date and time when the resource was created, in ISO 8601 format. For example, 2023-08-28T00:00:00Z.

  • Format: date-time
items[].updatedAtstringrequired

The date and time when the resource was last updated, in ISO 8601 format. For example, 2023-08-28T00:00:00Z.

  • Format: date-time
items[].executionIdstringrequired

A unique identifier for the processed file within Stedi. This ID is included in the transaction processed event. You can also retrieve it manually from the file's details page in the Stedi portal.

items[].statusstringrequired

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.

Possible values
COMPLETED
PARTIALLY_COMPLETED
FAILED
IGNORED
IN_PROGRESS
items[].directionstringrequired

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.

Possible values
INBOUND
OUTBOUND
UNKNOWN

The number of individual transactions included in the file.

The number of errors that occurred during processing. If the file was successfully processed completely, this value is 0.

A code specifying the reason for the fault.

Possible values
DELIVERY_FAILURE
FAILED_TO_EXTRACT_BUSINESS_IDENTIFIERS
FAILED_TO_FIND_GUIDE
FAILED_TO_FIND_LOCAL_PROFILE
FAILED_TO_FIND_PARTNER_PROFILE

A message providing more information about the fault. Note that if there are multiple faults, Stedi sets the first fault as the code and corresponding message.

The file format. For example, EDI/EDIFACT for an EDIFACT file or EDI/X12 for an X12 EDI file.

Possible values
CSV
EDI/EDIFACT
FILEPART
JSON
PSV

If true, you can retry the file in the Stedi portal.

The ID of this execution's parent execution, if it is part of a retry chain. When you retry a file, Stedi creates a child execution with a new ID and links it to the original (parent) execution.

The ID of this execution's child execution, if it is part of a retry chain. When you retry a file, Stedi creates a child execution with a new ID and links it to the original (parent) execution.

The unique identifier for the partnership within the Stedi platform.

A partnership describes all aspects of the EDI relationship between two profiles in your Stedi account, such as which transaction sets they will exchange and other important information for processing EDI files.

  • Pattern: ^([a-zA-Z0-9._-]+)$
  • Required string length: 1 - 81

The type of connection used for exchanging files.

Possible values
bucket
remote-ftp
stedi-ftp
as2

An autogenerated identifier for the connection within the Stedi platform.

  • Pattern: ^[0123456789ABCDEFGHJKMNPQRSTVWXYZ]{26}$

The source of the file, including the directory where Stedi received it and the file name.

Show attributes

The directory where Stedi received the file for processing.

items[].source.namestringrequired

The name of the file.