Updates a webhook endpoint
curl --request PATCH \
--url https://api.bspk.com/api/platform/v1/webhook_endpoints/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"is_enabled": false,
"events": [
"shopper.created",
"shopper.updated",
"shopper.deleted",
"file_import.finished"
],
"target_url": "https://mycompany.com/incoming_webhooks/clients"
}
'import requests
url = "https://api.bspk.com/api/platform/v1/webhook_endpoints/{id}"
payload = {
"is_enabled": False,
"events": ["shopper.created", "shopper.updated", "shopper.deleted", "file_import.finished"],
"target_url": "https://mycompany.com/incoming_webhooks/clients"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
is_enabled: false,
events: [
'shopper.created',
'shopper.updated',
'shopper.deleted',
'file_import.finished'
],
target_url: 'https://mycompany.com/incoming_webhooks/clients'
})
};
fetch('https://api.bspk.com/api/platform/v1/webhook_endpoints/{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.bspk.com/api/platform/v1/webhook_endpoints/{id}",
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([
'is_enabled' => false,
'events' => [
'shopper.created',
'shopper.updated',
'shopper.deleted',
'file_import.finished'
],
'target_url' => 'https://mycompany.com/incoming_webhooks/clients'
]),
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;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.bspk.com/api/platform/v1/webhook_endpoints/{id}"
payload := strings.NewReader("{\n \"is_enabled\": false,\n \"events\": [\n \"shopper.created\",\n \"shopper.updated\",\n \"shopper.deleted\",\n \"file_import.finished\"\n ],\n \"target_url\": \"https://mycompany.com/incoming_webhooks/clients\"\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))
}HttpResponse<String> response = Unirest.patch("https://api.bspk.com/api/platform/v1/webhook_endpoints/{id}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"is_enabled\": false,\n \"events\": [\n \"shopper.created\",\n \"shopper.updated\",\n \"shopper.deleted\",\n \"file_import.finished\"\n ],\n \"target_url\": \"https://mycompany.com/incoming_webhooks/clients\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.bspk.com/api/platform/v1/webhook_endpoints/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"is_enabled\": false,\n \"events\": [\n \"shopper.created\",\n \"shopper.updated\",\n \"shopper.deleted\",\n \"file_import.finished\"\n ],\n \"target_url\": \"https://mycompany.com/incoming_webhooks/clients\"\n}"
response = http.request(request)
puts response.read_body{
"id": 21,
"target_url": "https://taget_url.com/endpoint/to/hit_5",
"events": [
"shopper.created"
],
"is_enabled": false,
"created_at": "2026-03-11T18:34:54.954Z",
"updated_at": "2026-03-11T18:34:54.980Z"
}Webhooks
Updates a webhook endpoint
Updates a webhook endpoint.
PATCH
/
api
/
platform
/
v1
/
webhook_endpoints
/
{id}
Updates a webhook endpoint
curl --request PATCH \
--url https://api.bspk.com/api/platform/v1/webhook_endpoints/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"is_enabled": false,
"events": [
"shopper.created",
"shopper.updated",
"shopper.deleted",
"file_import.finished"
],
"target_url": "https://mycompany.com/incoming_webhooks/clients"
}
'import requests
url = "https://api.bspk.com/api/platform/v1/webhook_endpoints/{id}"
payload = {
"is_enabled": False,
"events": ["shopper.created", "shopper.updated", "shopper.deleted", "file_import.finished"],
"target_url": "https://mycompany.com/incoming_webhooks/clients"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
is_enabled: false,
events: [
'shopper.created',
'shopper.updated',
'shopper.deleted',
'file_import.finished'
],
target_url: 'https://mycompany.com/incoming_webhooks/clients'
})
};
fetch('https://api.bspk.com/api/platform/v1/webhook_endpoints/{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.bspk.com/api/platform/v1/webhook_endpoints/{id}",
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([
'is_enabled' => false,
'events' => [
'shopper.created',
'shopper.updated',
'shopper.deleted',
'file_import.finished'
],
'target_url' => 'https://mycompany.com/incoming_webhooks/clients'
]),
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;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.bspk.com/api/platform/v1/webhook_endpoints/{id}"
payload := strings.NewReader("{\n \"is_enabled\": false,\n \"events\": [\n \"shopper.created\",\n \"shopper.updated\",\n \"shopper.deleted\",\n \"file_import.finished\"\n ],\n \"target_url\": \"https://mycompany.com/incoming_webhooks/clients\"\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))
}HttpResponse<String> response = Unirest.patch("https://api.bspk.com/api/platform/v1/webhook_endpoints/{id}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"is_enabled\": false,\n \"events\": [\n \"shopper.created\",\n \"shopper.updated\",\n \"shopper.deleted\",\n \"file_import.finished\"\n ],\n \"target_url\": \"https://mycompany.com/incoming_webhooks/clients\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.bspk.com/api/platform/v1/webhook_endpoints/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"is_enabled\": false,\n \"events\": [\n \"shopper.created\",\n \"shopper.updated\",\n \"shopper.deleted\",\n \"file_import.finished\"\n ],\n \"target_url\": \"https://mycompany.com/incoming_webhooks/clients\"\n}"
response = http.request(request)
puts response.read_body{
"id": 21,
"target_url": "https://taget_url.com/endpoint/to/hit_5",
"events": [
"shopper.created"
],
"is_enabled": false,
"created_at": "2026-03-11T18:34:54.954Z",
"updated_at": "2026-03-11T18:34:54.980Z"
}Authorizations
Body
application/json
List of events to subscribe to. Use shopper.* events for shopper notifications. client.* events are deprecated — use shopper.* instead.
Available options:
shopper.created, shopper.updated, shopper.deleted, client.created, client.updated, client.deleted, file_import.finished, cart.created, metafield.created, metafield.updated, metafield.deleted Example:
[
"shopper.created",
"shopper.updated",
"shopper.deleted",
"file_import.finished"
]
Response
200 - application/json
Successful response, returns object
Creates a webhook webdpoints allowing external backend systems to be notified wheneve the event occurs on BSPK.
