curl --request PATCH \
--url https://api.voucher-staging.allride.io/partner/v1/webhook-endpoints/{webhookEndpointId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"eventTypes": [
"redemption-created",
"redemption-voided",
"redemption-link-exhausted"
]
}
'const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
eventTypes: ['redemption-created', 'redemption-voided', 'redemption-link-exhausted']
})
};
fetch('https://api.voucher-staging.allride.io/partner/v1/webhook-endpoints/{webhookEndpointId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.voucher-staging.allride.io/partner/v1/webhook-endpoints/{webhookEndpointId}"
payload = { "eventTypes": ["redemption-created", "redemption-voided", "redemption-link-exhausted"] }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)HttpResponse<String> response = Unirest.patch("https://api.voucher-staging.allride.io/partner/v1/webhook-endpoints/{webhookEndpointId}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"eventTypes\": [\n \"redemption-created\",\n \"redemption-voided\",\n \"redemption-link-exhausted\"\n ]\n}")
.asString();package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.voucher-staging.allride.io/partner/v1/webhook-endpoints/{webhookEndpointId}"
payload := strings.NewReader("{\n \"eventTypes\": [\n \"redemption-created\",\n \"redemption-voided\",\n \"redemption-link-exhausted\"\n ]\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.voucher-staging.allride.io/partner/v1/webhook-endpoints/{webhookEndpointId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'eventTypes' => [
'redemption-created',
'redemption-voided',
'redemption-link-exhausted'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}{
"data": {
"id": 11069,
"resource": "webhook-endpoint",
"partnerId": 1069,
"url": "https://hooks.example-transit.example.com/allride-voucher",
"description": "Redemption and catalog notifications",
"eventTypes": [
"redemption-created",
"redemption-voided",
"redemption-link-exhausted"
],
"status": "active",
"firstSecretRotatedAt": "2026-10-22T10:05:00Z",
"secondSecretRotatedAt": "2026-10-22T10:05:00Z",
"deliveriesBlockedReason": null,
"createdAt": "2026-10-22T10:05:00Z",
"updatedAt": "2026-10-22T10:05:00Z",
"_links": {
"self": {
"href": "https://api.voucher.allride.io/partner/v1/webhook-endpoints/11069",
"type": "application/json"
},
"deliveries": {
"href": "https://api.voucher.allride.io/partner/v1/webhook-deliveries?filter%5BwebhookEndpointId%5D=11069",
"type": "application/json"
}
}
}
}Update a webhook endpoint
Changes the URL, description or event types. A URL or event type change notifies your owners and technical contact. Endpoints that include billing event types also need view-consumer-billing, and price-terms-* types view-consumer-pricing (403 missing-permission otherwise).
Required permissions: manage-webhooks · API keys: allowed · Recent sign-in: required for dashboard users (15 minutes)
curl --request PATCH \
--url https://api.voucher-staging.allride.io/partner/v1/webhook-endpoints/{webhookEndpointId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"eventTypes": [
"redemption-created",
"redemption-voided",
"redemption-link-exhausted"
]
}
'const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
eventTypes: ['redemption-created', 'redemption-voided', 'redemption-link-exhausted']
})
};
fetch('https://api.voucher-staging.allride.io/partner/v1/webhook-endpoints/{webhookEndpointId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.voucher-staging.allride.io/partner/v1/webhook-endpoints/{webhookEndpointId}"
payload = { "eventTypes": ["redemption-created", "redemption-voided", "redemption-link-exhausted"] }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)HttpResponse<String> response = Unirest.patch("https://api.voucher-staging.allride.io/partner/v1/webhook-endpoints/{webhookEndpointId}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"eventTypes\": [\n \"redemption-created\",\n \"redemption-voided\",\n \"redemption-link-exhausted\"\n ]\n}")
.asString();package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.voucher-staging.allride.io/partner/v1/webhook-endpoints/{webhookEndpointId}"
payload := strings.NewReader("{\n \"eventTypes\": [\n \"redemption-created\",\n \"redemption-voided\",\n \"redemption-link-exhausted\"\n ]\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.voucher-staging.allride.io/partner/v1/webhook-endpoints/{webhookEndpointId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'eventTypes' => [
'redemption-created',
'redemption-voided',
'redemption-link-exhausted'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}{
"data": {
"id": 11069,
"resource": "webhook-endpoint",
"partnerId": 1069,
"url": "https://hooks.example-transit.example.com/allride-voucher",
"description": "Redemption and catalog notifications",
"eventTypes": [
"redemption-created",
"redemption-voided",
"redemption-link-exhausted"
],
"status": "active",
"firstSecretRotatedAt": "2026-10-22T10:05:00Z",
"secondSecretRotatedAt": "2026-10-22T10:05:00Z",
"deliveriesBlockedReason": null,
"createdAt": "2026-10-22T10:05:00Z",
"updatedAt": "2026-10-22T10:05:00Z",
"_links": {
"self": {
"href": "https://api.voucher.allride.io/partner/v1/webhook-endpoints/11069",
"type": "application/json"
},
"deliveries": {
"href": "https://api.voucher.allride.io/partner/v1/webhook-deliveries?filter%5BwebhookEndpointId%5D=11069",
"type": "application/json"
}
}
}
}Authorizations
Your API key in Authorization: Bearer <key>. Use vk_test_… keys against the sandbox and vk_live_… keys against production.
Path Parameters
Webhook endpoint id. Unsigned 64-bit integer (ids and large counters). May exceed 2^53; parse with a BigInt-safe JSON parser in JavaScript.
0 <= x <= 18446744073709552000Body
Changes; eventTypes is replaced as a whole.
Receiver URL.
Description.
200Event types (1-30).
1 - 30 elementsA consumer webhook type. Billing types (invoice-*, payment-failed, payment-method-deactivated) need view-consumer-billing, price-terms-* types need view-consumer-pricing. Treat as an open set: new values may be added.
redemption-created, redemption-voided, redemption-entity-created, redemption-link-exhausted, redemption-link-expired, catalog-voucher-set-available, catalog-voucher-set-updated, catalog-voucher-set-activation-scheduled, catalog-voucher-set-activated, catalog-voucher-set-deactivation-scheduled, catalog-voucher-set-deactivated, catalog-voucher-set-unavailable, catalog-voucher-set-stock-low, catalog-voucher-set-depleted, webhook-endpoint-test, invoice-finalised, invoice-paid, invoice-overdue, invoice-voided, payment-failed, payment-method-deactivated, price-terms-change-scheduled, price-terms-acceptance-required, price-terms-accepted Response
OK
Single-object envelope around a WebhookEndpoint.
A webhook endpoint (secrets are never returned after they are issued).
Show child attributes
Show child attributes