Create or update your webhook endpoint
curl --request PUT \
--url https://api.wizzgift.com/retailer/v1/webhook \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"url": "https://yourshop.com/wizzgift/webhook",
"events": []
}
'const options = {
method: 'PUT',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({url: 'https://yourshop.com/wizzgift/webhook', events: []})
};
fetch('https://api.wizzgift.com/retailer/v1/webhook', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.wizzgift.com/retailer/v1/webhook"
payload = {
"url": "https://yourshop.com/wizzgift/webhook",
"events": []
}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.wizzgift.com/retailer/v1/webhook",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'url' => 'https://yourshop.com/wizzgift/webhook',
'events' => [
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"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;
}{
"id": "whe_Ab12Cd34Ef56",
"url": "<string>",
"events": [
"payment.detected"
],
"status": "active",
"secret": "<string>"
}{
"error": {
"code": "VALIDATION_ERROR",
"message": "Invalid input"
},
"requestId": "req_8f3k2"
}{
"error": {
"code": "UNAUTHORIZED",
"message": "Invalid or expired API key"
},
"requestId": "req_8f3k2"
}{
"error": "Too many requests",
"message": "<string>"
}Retailer · Webhook management
Create or update your webhook endpoint
One endpoint per account. The signing secret (whsec_…) is returned
only when the endpoint is first created — store it; later updates
return the config without the secret (rotate to get a new one).
events: null/omitted subscribes to all events. URL must be https
with a public hostname.
PUT
/
retailer
/
v1
/
webhook
Create or update your webhook endpoint
curl --request PUT \
--url https://api.wizzgift.com/retailer/v1/webhook \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"url": "https://yourshop.com/wizzgift/webhook",
"events": []
}
'const options = {
method: 'PUT',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({url: 'https://yourshop.com/wizzgift/webhook', events: []})
};
fetch('https://api.wizzgift.com/retailer/v1/webhook', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.wizzgift.com/retailer/v1/webhook"
payload = {
"url": "https://yourshop.com/wizzgift/webhook",
"events": []
}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.wizzgift.com/retailer/v1/webhook",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'url' => 'https://yourshop.com/wizzgift/webhook',
'events' => [
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"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;
}{
"id": "whe_Ab12Cd34Ef56",
"url": "<string>",
"events": [
"payment.detected"
],
"status": "active",
"secret": "<string>"
}{
"error": {
"code": "VALIDATION_ERROR",
"message": "Invalid input"
},
"requestId": "req_8f3k2"
}{
"error": {
"code": "UNAUTHORIZED",
"message": "Invalid or expired API key"
},
"requestId": "req_8f3k2"
}{
"error": "Too many requests",
"message": "<string>"
}Authorizations
API key (wg_live_…) created in the dashboard (Account → API Keys).
Shown once at creation; only a hash is stored server-side.
Body
application/json
Response
Endpoint saved. secret present only on first create.
Example:
"whe_Ab12Cd34Ef56"
Available options:
payment.detected, payment.confirmed, order.completed, order.partial, order.failed, refund.initiated, refund.completed, refund.failed Available options:
active, disabled Signing secret (whsec_…) — first create only. Store it now.