API for partners › Settings Get a list of webhook subscriptions GET /api/crm/v2/webhooks_subscriptionsv2
operationId: webhooksSubscriptions.default
Authorization api-token + language + role
Query parameters branch_id integer
Example: 8412
Responses 200
object
status string required
Values: successerror
Example: success
data object
filters object
branch_id object (FilterSelectInteger)
value integer
Example: 8920
type string required
Example: select
option array of object
value integer required
Example: 8920
name string required
Example: Green Basket | Kaliningrad
mode string (FilterMode)
How the interface handles the filter; a regular filter does not have mode.
force_shown — always displayed, cannot be hidden.
value_required — entry point to the section: always displayed, cannot have an empty value (until a value is selected, the list is empty; there is no "all" option), global reset does not clear it.
Values: force_shownvalue_required
Example: value_required
settings object (WebhooksBranchSettings)
secret string can be null
null until the network creates a secret
Example: 9f2c…
enabled boolean required
Example: true
list array of object
id integer required
Example: 12
date_creation string (DataTimeFormatSQL) required
Example: 2024-05-02 08:31:16
webhook_event_id integer required
Example: 4
slug string required
Event code sent in the webhook payload
Example: order.created
translation_key string required
Translation key for the event name
Example: webhooksSubscriptionsEvent.orderCreated
url string required
Example: https://partner.example.com/hooks/foodsoul
description string required
Example: Учётная система
enabled boolean required
Example: true
blocked boolean required
The subscription is automatically disabled after a series of errors
Example: false
count_errors integer required
Number of consecutive failed deliveries
Example: 0
curl PHP JavaScript Python Copy
curl -X GET 'https://foodsoul.pro/api/crm/v2/webhooks_subscriptions' \
-H 'Authorization: Bearer fs_api_YOUR_TOKEN' \
-H 'language: en' \
-H 'role: partner' <?php
$client = new \GuzzleHttp\Client ();
$response = $client -> request ( 'GET' , 'https://foodsoul.pro/api/crm/v2/webhooks_subscriptions' , [
'headers' => [
'Authorization' => 'Bearer fs_api_YOUR_TOKEN' ,
'language' => 'en' ,
'role' => 'partner' ,
],
]);
$data = json_decode (( string ) $response -> getBody (), true ); const response = await fetch ( "https://foodsoul.pro/api/crm/v2/webhooks_subscriptions" , {
method : "GET" ,
headers : {
"Authorization" : "Bearer fs_api_YOUR_TOKEN" ,
"language" : "en" ,
"role" : "partner"
},
})
const data = await response . json () import requests
response = requests . request (
"GET" ,
"https://foodsoul.pro/api/crm/v2/webhooks_subscriptions" ,
headers ={
"Authorization" : "Bearer fs_api_YOUR_TOKEN" ,
"language" : "en" ,
"role" : "partner" ,
},
)
data = response . json () Response 200
{
"status" : "success" ,
"data" : {
"filters" : {
"branch_id" : {
"value" : 8920 ,
"type" : "select" ,
"option" : [
{
"value" : 8920 ,
"name" : "Green Basket | Kaliningrad"
}
],
"mode" : "value_required"
}
},
"settings" : {
"secret" : "9f2c…" ,
"enabled" : true
},
"list" : [
{
"id" : 12 ,
"date_creation" : "2024-05-02 08:31:16" ,
"webhook_event_id" : 4 ,
"slug" : "order.created" ,
"translation_key" : "webhooksSubscriptionsEvent.orderCreated" ,
"url" : "https://partner.example.com/hooks/foodsoul" ,
"description" : "Учётная система" ,
"enabled" : true ,
"blocked" : false ,
"count_errors" : 0
}
]
}
} Requests are sent to foodsoul.pro — the host of this portal; you cannot choose another one.