Hoppa till huvudinnehåll
GET
/
webhooks
/
{webhook_id}
JavaScript
import DodoPayments from 'dodopayments';

const client = new DodoPayments({
  bearerToken: process.env['DODO_PAYMENTS_API_KEY'], // This is the default and can be omitted
});

const webhookDetails = await client.webhooks.retrieve('webhook_id');

console.log(webhookDetails.id);
{
  "created_at": "<string>",
  "description": "<string>",
  "id": "<string>",
  "metadata": {},
  "updated_at": "<string>",
  "url": "<string>",
  "disabled": true,
  "filter_types": [
    "<string>"
  ],
  "rate_limit": 1
}

Auktoriseringar

Authorization
string
header
obligatorisk

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Sökvägsparametrar

webhook_id
string
obligatorisk

Svar

Webhook details retrived.

created_at
string
obligatorisk

Created at timestamp

description
string
obligatorisk

An example webhook name.

id
string
obligatorisk

The webhook's ID.

metadata
object
obligatorisk

Metadata of the webhook

updated_at
string
obligatorisk

Updated at timestamp

url
string
obligatorisk

Url endpoint of the webhook

disabled
boolean | null

Status of the webhook.

If true, events are not sent

filter_types
string[] | null

Filter events to the webhook.

Webhook event will only be sent for events in the list.

rate_limit
integer<int32> | null

Configured rate limit

Obligatoriskt intervall: x >= 0