Replay the outbound webhook for a transaction
curl --request POST \
--url https://api.winampay.de/api/v1/transactions/{winam_tx_id}/replay-webhook \
--header 'X-API-Key: <api-key>'import requests
url = "https://api.winampay.de/api/v1/transactions/{winam_tx_id}/replay-webhook"
headers = {"X-API-Key": "<api-key>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.winampay.de/api/v1/transactions/{winam_tx_id}/replay-webhook', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.winampay.de/api/v1/transactions/{winam_tx_id}/replay-webhook",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"X-API-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.winampay.de/api/v1/transactions/{winam_tx_id}/replay-webhook"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("X-API-Key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.winampay.de/api/v1/transactions/{winam_tx_id}/replay-webhook")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.winampay.de/api/v1/transactions/{winam_tx_id}/replay-webhook")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-API-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"winam_tx_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"state": "<string>",
"event": "<string>",
"callback_url": "<string>",
"dispatched": true,
"message": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Transactions
Replay Webhook
Re-sends the outbound webhook (payment.succeeded / payment.failed) for a settled transaction. Use for incident recovery when your callback_url was temporarily unavailable.
POST
/
api
/
v1
/
transactions
/
{winam_tx_id}
/
replay-webhook
Replay the outbound webhook for a transaction
curl --request POST \
--url https://api.winampay.de/api/v1/transactions/{winam_tx_id}/replay-webhook \
--header 'X-API-Key: <api-key>'import requests
url = "https://api.winampay.de/api/v1/transactions/{winam_tx_id}/replay-webhook"
headers = {"X-API-Key": "<api-key>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.winampay.de/api/v1/transactions/{winam_tx_id}/replay-webhook', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.winampay.de/api/v1/transactions/{winam_tx_id}/replay-webhook",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"X-API-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.winampay.de/api/v1/transactions/{winam_tx_id}/replay-webhook"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("X-API-Key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.winampay.de/api/v1/transactions/{winam_tx_id}/replay-webhook")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.winampay.de/api/v1/transactions/{winam_tx_id}/replay-webhook")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-API-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"winam_tx_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"state": "<string>",
"event": "<string>",
"callback_url": "<string>",
"dispatched": true,
"message": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Use replay only for recovery — when your endpoint was down and missed the original delivery. In normal operation, winam-payments fires webhooks automatically on state changes. The transaction must be in a terminal state (
succeeded or failed) and have a stored callback_url.When to use
Yourcallback_url returned a non-2XX response or timed out, and winam-payments exhausted its retry policy (3 attempts with exponential backoff). The transaction is already settled — you just didn’t receive the notification.
Call this endpoint to re-deliver the webhook to your callback_url. Your handler must be idempotent — it may receive the same winam_tx_id more than once.
Responses
| Status | Meaning |
|---|---|
200 | Webhook re-dispatched to the stored callback_url |
400 | No callback_url stored for this transaction — nothing to replay |
409 | Transaction is not in a terminal state yet — no outcome to notify |
404 | Transaction not found |
This endpoint replays the outbound notification (winam-payments → your platform).
It does not change the transaction state. Resolving a transaction that expired
before a late operator confirmation is a separate, operator-only action on the
internal API (
POST /internal/v1/transactions/{id}/resolve).
