Squarespace Developer Platform: APIs, Apps, and Docs
Contact Events

Address delete

Code
"topic": "address.delete"

Occurs when an address book entry is removed from a contact's address book. The payload identifies the contact and the deleted entry ID. See the Contacts API for the full resource model.

Read the Webhooks overview for details about the information sent with every Squarespace webhook notification.

Deleting the default address reassigns a new default. If the deleted address was the contact's default shipping address, another address in the address book is automatically promoted to default. Because the contact's defaultShippingAddress reference changes, a contact.update event is also emitted.

Request payload example

JavascriptCode
{ // String; unique notification id "id": "5c2ba184b63ed3cb411ce2b1", // String; Squarespace website id that triggered the notification. "websiteId": "5f3c3d55ac435e1a051f77b3", // String; unique Webhook Subscriptions id "subscriptionId": "5f3c2155d947844beedda991", // String; description of the event that triggered notification. "topic": "address.delete", // ISO 8601 UTC date and time string; represents when the notification was created. "createdOn": "2024-01-28T10:44:00Z", // Object; data associated with the event — deletion metadata "data": { // String; contact that owned this address "contactId": "5f3c39ce69e11e796f19990e", // String; id of the address book entry that was deleted "addressBookEntryId": "addr-entry-id-001" } }