Mettre à jour les en-têtes pour un webhook spécifique.
import DodoPayments from 'dodopayments';
const client = new DodoPayments({
bearerToken: process.env['DODO_PAYMENTS_API_KEY'], // This is the default and can be omitted
});
await client.webhooks.headers.update('webhook_id', { headers: { foo: 'string' } });{}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Webhook headers patched successfully
Cette page vous a-t-elle été utile ?
import DodoPayments from 'dodopayments';
const client = new DodoPayments({
bearerToken: process.env['DODO_PAYMENTS_API_KEY'], // This is the default and can be omitted
});
await client.webhooks.headers.update('webhook_id', { headers: { foo: 'string' } });{}