Get Transaction
Fetch details for a specific transaction.
/transactions/{transactionId}
This endpoint retrieves information about the transaction with the specified transactionId
.
A Stedi API Key for authentication.
Path Parameters
A unique identifier for the processed transaction within Stedi. This ID is included in the transaction processed event. You can also retrieve it manually from the transaction's details page within the Stedi app.
Response
GetTransaction 200 response
A unique identifier for the processed transaction within Stedi. This ID is included in the transaction processed event. You can also retrieve it manually from the transaction's details page within the Stedi app.
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.
A status indicating whether Stedi was able to successfully process the transaction.
failed
succeeded
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
Indicates whether the transaction contains test or production data. Stedi determines this from the value in ISA15
Usage Indicator Code.
test
production
other
The date and time when Stedi processed the transaction, in ISO 8601 format. For example, 2023-08-28T00:00:00Z
.
- Format:
date-time
A list of artifacts related to the transaction.
Information about the associated partnership.
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.
Details about the X12 EDI transaction.
Details about fragments included in the transaction, if applicable. Fragments break large transactions into smaller parts for easier processing and management.
Details about errors that prevented Stedi from processing the transaction.
Any business identifiers extracted from the transaction.
curl --request GET \
--url "https://core.us.stedi.com/2023-08-01/transactions/{transactionId}" \
--header "Authorization: <api_key>"
fetch("https://core.us.stedi.com/2023-08-01/transactions/{transactionId}", {
headers: {
"Authorization": "<api_key>"
}
})
package main
import (
"fmt"
"net/http"
"io/ioutil"
)
func main() {
url := "https://core.us.stedi.com/2023-08-01/transactions/{transactionId}"
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/transactions/{transactionId}"
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/transactions/{transactionId}"))
.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"
}