Retry events
This endpoint retriggers the specified processing event.
POST
/events/{eventId}/retryThe retriggered event has a new eventId and appears as a separate event record in the Stedi portal. For example, if you retry a transaction.processed.v2 event, the app shows two transaction.processed.v2 events for the file.
Retrying individual processing events can be helpful when testing your integration. For example, you can use this approach to retrigger Destination webhooks without needing to continually reprocess the same test file.
Authorization
RequiredHeader
A Stedi API Key for authentication.
Path Parameters
eventId
String
The ID of the event you want Stedi to re-emit.
curl --request POST \ --url "https://core.us.stedi.com/2023-08-01/events/{eventId}/retry" \ --header "Authorization: <api_key>"fetch("https://core.us.stedi.com/2023-08-01/events/{eventId}/retry", { headers: { "Authorization": "<api_key>" }})package mainimport ( "fmt" "net/http" "io/ioutil")func main() { url := "https://core.us.stedi.com/2023-08-01/events/{eventId}/retry" req, _ := http.NewRequest("POST", 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/events/{eventId}/retry"response = requests.request("POST", 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/events/{eventId}/retry")) .header("Authorization", "<api_key>") .POST() .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"
}