Javascript
const url = 'https://api.gnosispay.com/api/v1/webhooks/subscription/{partnerId}'; const options = {method: 'GET', body: undefined}; try { const response = await fetch(url, options); const data = await response.json(); console.log(data); } catch (error) { console.error(error); }
{ "subscribed": true, "subscriptionId": "<string>" }
Allows the authenticated user to check if they are subscribed to a partner’s webhook notifications.
Partner ID to check subscription for
Subscription status retrieved successfully
Whether the authenticated user is subscribed to the partner's webhooks
ID of the subscription if it exists