Contract events

Sent with resource: "Policy" when the protection on an item changes, one webhook per item.

Every event below has the same payload shape. Pick one from Examples to see its payload.

actionEventNeeded?Fires when
IssuedContract IssuedRequiredProtection is issued on an item, shortly after you submit the order. Sent once for each protected item.
VoidedContract VoidRequiredProtection is voided, usually because the customer voided it (status: "voided") or because the order didn't pass Teak's checks (status: "rejected").
CanceledContract CanceledOptionalIssued protection is canceled, for example because the ticket was resold.
ChargebackContract ChargebackOptionalProtection is canceled because of a chargeback on the purchase.
On_HoldContract On HoldOptionalIssuing the protection is on hold, so it isn't active yet.
UpgradedContract UpgradedOptionalThe item is exchanged for a higher-priced one.
DowngradedContract DowngradedRequired if customers can exchange itemsThe item is exchanged for a lower-priced one.
ExchangedContract ExchangedOptionalThe item is exchanged for another one at the same price.
Payload
string
enum
required

What the event is about.

Allowed:
string
enum
required

What happened.

Show Details
IssuedContract Issued. Protection is issued on an item, shortly after you submit the order. Sent once for each protected item.
VoidedContract Void. Protection is voided, usually because the customer voided it (`status: "voided"`) or because the order didn't pass Teak's checks (`status: "rejected"`).
CanceledContract Canceled. Issued protection is canceled, for example because the ticket was resold.
ChargebackContract Chargeback. Protection is canceled because of a chargeback on the purchase.
On_HoldContract On Hold. Issuing the protection is on hold, so it isn't active yet.
UpgradedContract Upgraded. The item is exchanged for a higher-priced one.
DowngradedContract Downgraded. The item is exchanged for a lower-priced one.
ExchangedContract Exchanged. The item is exchanged for another one at the same price.
data
object
required

The record, in its state after the event.

Headers
string
required

sha256: followed by a base64-encoded HMAC-SHA256 of the raw request body, keyed with your subscription's secret. Without a secret, contains t: <unix timestamp> instead. See Verifying webhook signatures.

Response
200

Respond with any 2xx status within 10 seconds, after storing the event. Teak retries only when it can't connect or your endpoint times out.

LoadingLoading…