curl --request GET \
--url https://api.httpayer.com/webhooks/{id}import requests
url = "https://api.httpayer.com/webhooks/{id}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.httpayer.com/webhooks/{id}', 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.httpayer.com/webhooks/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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.httpayer.com/webhooks/{id}"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.httpayer.com/webhooks/{id}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.httpayer.com/webhooks/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"status": "success",
"txHash": "<string>",
"network": "<string>",
"method": "<string>",
"relayTxId": 123,
"facilitatorUrl": "<string>",
"message": "<string>"
}{
"status": "pending"
}{
"error": "<string>",
"details": "<string>"
}{
"status": "failed",
"error": "<string>",
"errorType": "<string>",
"relayTxId": 123
}Get async operation status
Poll the status of an asynchronous operation. The webhook ID is returned
in the X-HTTPayer-Webhook header of the original response.
Two contexts produce webhook IDs:
Proxy — payment confirmation
When /proxy returns 502 (upstream refused payment), a webhook is created
to track whether the payment eventually confirmed on-chain. On success,
status is success and txHash is the on-chain payment proof.
Relay — refund tracking
When a relay payment cannot be settled or the target API never charges,
a webhook tracks the refund. Terminal statuses are refund_confirmed,
success_refunded, or no_refund_needed.
Poll until you receive HTTP 200 or 500. HTTP 202 means still in progress.
curl --request GET \
--url https://api.httpayer.com/webhooks/{id}import requests
url = "https://api.httpayer.com/webhooks/{id}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.httpayer.com/webhooks/{id}', 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.httpayer.com/webhooks/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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.httpayer.com/webhooks/{id}"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.httpayer.com/webhooks/{id}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.httpayer.com/webhooks/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"status": "success",
"txHash": "<string>",
"network": "<string>",
"method": "<string>",
"relayTxId": 123,
"facilitatorUrl": "<string>",
"message": "<string>"
}{
"status": "pending"
}{
"error": "<string>",
"details": "<string>"
}{
"status": "failed",
"error": "<string>",
"errorType": "<string>",
"relayTxId": 123
}Path Parameters
Webhook ID (UUID from X-HTTPayer-Webhook header)
Response
Operation completed successfully
success — proxy payment confirmed on-chain (payment proof in txHash).
refund_confirmed — refund transaction confirmed on-chain.
success_refunded — relay succeeded but target did not charge; refund issued.
no_refund_needed — target charged HTTPayer within the auth window.
success, refund_confirmed, success_refunded, no_refund_needed Proxy: on-chain payment transaction hash (proof of payment). Relay: on-chain refund transaction hash.
Network the transaction was confirmed on.
Relay only — how the refund was executed: facilitator or direct.
Relay only — internal relay transaction ID.
Relay only — facilitator used for the refund, if applicable.
Human-readable description of the outcome.

