Check if authenticated user is subscribed to partner webhooks
const options = {method: 'GET'};
fetch('https://api.gnosispay.com/api/v1/webhooks/subscription/{partnerId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request GET \
--url https://api.gnosispay.com/api/v1/webhooks/subscription/{partnerId}import requests
url = "https://api.gnosispay.com/api/v1/webhooks/subscription/{partnerId}"
response = requests.get(url)
print(response.text)package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.gnosispay.com/api/v1/webhooks/subscription/{partnerId}"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.gnosispay.com/api/v1/webhooks/subscription/{partnerId}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.gnosispay.com/api/v1/webhooks/subscription/{partnerId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"subscribed": true,
"subscriptionId": "<string>"
}{
"error": "Internal server error"
}Webhooks
Check if authenticated user is subscribed to partner webhooks
Allows the authenticated user to check if they are subscribed to a partner’s webhook notifications.
GET
/
api
/
v1
/
webhooks
/
subscription
/
{partnerId}
Check if authenticated user is subscribed to partner webhooks
const options = {method: 'GET'};
fetch('https://api.gnosispay.com/api/v1/webhooks/subscription/{partnerId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request GET \
--url https://api.gnosispay.com/api/v1/webhooks/subscription/{partnerId}import requests
url = "https://api.gnosispay.com/api/v1/webhooks/subscription/{partnerId}"
response = requests.get(url)
print(response.text)package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.gnosispay.com/api/v1/webhooks/subscription/{partnerId}"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.gnosispay.com/api/v1/webhooks/subscription/{partnerId}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.gnosispay.com/api/v1/webhooks/subscription/{partnerId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"subscribed": true,
"subscriptionId": "<string>"
}{
"error": "Internal server error"
}