本番とテスト
テスト環境から
API を
イベントが
const res = await fetch('https://api.webhookadmin.com/v1/messages', {
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.WEBHOOK_ADMIN_API_KEY}`,
'Content-Type': 'application/json',
'Idempotency-Key': 'inv_88-paid',
},
body: JSON.stringify({
consumer: 'cus_1024',
event_type: 'invoice.paid',
payload: { invoice_id: 'inv_88', amount: 128000 },
}),
})
// 署名・再送・記録は Webhook Admin が行うimport os
import requests
res = requests.post(
"https://api.webhookadmin.com/v1/messages",
headers={
"Authorization": f"Bearer {os.environ['WEBHOOK_ADMIN_API_KEY']}",
"Idempotency-Key": "inv_88-paid",
},
json={
"consumer": "cus_1024",
"event_type": "invoice.paid",
"payload": {"invoice_id": "inv_88", "amount": 128000},
},
)
# 署名・再送・記録は Webhook Admin が行う$ch = curl_init('https://api.webhookadmin.com/v1/messages');
curl_setopt_array($ch, [
CURLOPT_POST => true,
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => [
'Authorization: Bearer ' . getenv('WEBHOOK_ADMIN_API_KEY'),
'Content-Type: application/json',
'Idempotency-Key: inv_88-paid',
],
CURLOPT_POSTFIELDS => json_encode([
'consumer' => 'cus_1024',
'event_type' => 'invoice.paid',
'payload' => ['invoice_id' => 'inv_88', 'amount' => 128000],
]),
]);
$res = curl_exec($ch);
// 署名・再送・記録は Webhook Admin が行うrequire "net/http"
require "json"
res = Net::HTTP.post(
URI("https://api.webhookadmin.com/v1/messages"),
{
consumer: "cus_1024",
event_type: "invoice.paid",
payload: { invoice_id: "inv_88", amount: 128000 },
}.to_json,
"Authorization" => "Bearer #{ENV.fetch('WEBHOOK_ADMIN_API_KEY')}",
"Content-Type" => "application/json",
"Idempotency-Key" => "inv_88-paid",
)
# 署名・再送・記録は Webhook Admin が行うbody, _ := json.Marshal(map[string]any{
"consumer": "cus_1024",
"event_type": "invoice.paid",
"payload": map[string]any{"invoice_id": "inv_88", "amount": 128000},
})
req, _ := http.NewRequest("POST", "https://api.webhookadmin.com/v1/messages", bytes.NewReader(body))
req.Header.Set("Authorization", "Bearer "+os.Getenv("WEBHOOK_ADMIN_API_KEY"))
req.Header.Set("Content-Type", "application/json")
req.Header.Set("Idempotency-Key", "inv_88-paid")
res, err := http.DefaultClient.Do(req)
// 署名・再送・記録は Webhook Admin が行うcurl https://api.webhookadmin.com/v1/messages \
-H "Authorization: Bearer $WEBHOOK_ADMIN_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: inv_88-paid" \
-d '{
"consumer": "cus_1024",
"event_type": "invoice.paid",
"payload": { "invoice_id": "inv_88", "amount": 128000 }
}'
# 署名・再送・記録は Webhook Admin が行うプロジェクトごとに
テスト環境から
署名は
送信先の
既定では
通知先は
請求、
IP アドレスで
決まった
Claude などの
税別です。
0 円/ 月
無料で3,000 円/ 月
始めるFree の
29,800 円/ 月
始めるStarter の
98,000 円/ 月
始めるPro の
上限と