JavaScript
const options = {method: 'GET'}; fetch('https://api.valox.co/api/v1/webhooks/subscription/{partnerId}', options) .then(res => res.json()) .then(res => console.log(res)) .catch(err => console.error(err));
{ "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