import { Webhook } from "shippo/models/components";
let value: Webhook = {
event: "track_updated",
url: "https://example.com/shippo-webhook",
active: true,
isTest: false,
};
Field | Type | Required | Description | Example |
---|---|---|---|---|
event |
string | ✔️ | Type of event that triggers the webhook. | track_updated |
url |
string | ✔️ | URL webhook events are sent to. | https://example.com/shippo-webhook |
active |
boolean | ➖ | Determines whether the webhook is active or not. | true |
isTest |
boolean | ➖ | Determines whether the webhook is a test webhook or not. | false |
objectCreated |
Date | ➖ | Timestamp of the creation of the webhook. | |
objectId |
string | ➖ | Unique identifier of the webhook. This can be used to retrieve or delete the webhook. | |
objectUpdated |
Date | ➖ | Timestamp of the last update of the webhook. | |
objectOwner |
string | ➖ | Username of the user who created the webhook. |