Addresses

Receive notifications when addresses are created or updated.

Overview

Address webhooks notify your application when a customer's address is created or modified. Use these events to keep your systems in sync with customer address data.


Use Cases

  • Sync new addresses to your CRM or fulfillment system
  • Update shipping information when customers move
  • Validate addresses for shipping eligibility
  • Audit address changes for compliance
  • Trigger re-verification when key fields change

Events

EventDescription
address.createdA new address was added to a customer's account
address.updatedAn existing address was modified

address.created

Triggered When

  • A customer adds a new shipping or billing address via the SDK API (checkout flow or account settings)
  • An address is created via the Core API
  • An administrator creates an address for a membership member from the Platform
  • An address is created during a data import via the Platform Import Tool

Note: If the address is the customer's first address of its type (shipping or billing), it is automatically set as the default.

Payload

{
  "type": "address.created",
  "id": "evt_a1b2C3d4E5f6g7H8i9J0k1L2",
  "created": 1704067200,
  "data": {
    "address": {
      "object": "address",
      "id": 12345,
      "city": "New York",
      "company": "Acme Inc",
      "country": "US",
      "country_name": "United States",
      "created_at": 1704067200,
      "department": null,
      "first_name": "John",
      "is_default": true,
      "last_name": "Doe",
      "line1": "123 Main Street",
      "line2": "Suite 100",
      "postal_code": "10001",
      "salutation": "Mr",
      "site_ids": [1, 2],
      "state": "NY",
      "state_name": "New York",
      "title": null,
      "type": "shipping",
      "updated_at": 1704067200
    }
  }
}

address.updated

Triggered When

  • A customer edits their address via the SDK API (account settings)
  • An address is updated via the Core API
  • An address is updated during a data import via the Platform Import Tool

Payload

The payload includes a previous_attributes object containing only the fields that changed.

{
  "type": "address.updated",
  "id": "evt_m3N4o5P6q7R8s9T0u1V2w3X4",
  "created": 1704153600,
  "data": {
    "address": {
      "object": "address",
      "id": 12345,
      "city": "Los Angeles",
      "company": "Acme Inc",
      "country": "US",
      "country_name": "United States",
      "created_at": 1704067200,
      "department": null,
      "first_name": "John",
      "is_default": true,
      "last_name": "Doe",
      "line1": "456 Oak Avenue",
      "line2": null,
      "postal_code": "90001",
      "salutation": "Mr",
      "site_ids": [1, 2],
      "state": "CA",
      "state_name": "California",
      "title": null,
      "type": "shipping",
      "updated_at": 1704153600
    },
    "previous_attributes": {
      "line1": "123 Main Street",
      "line2": "Suite 100",
      "city": "New York",
      "state": "NY",
      "postal_code": "10001"
    }
  }
}

Payload Fields

FieldTypeDescription
objectstringObject type identifier, always address
idintegerUnique identifier for the address
citystringCity
companystringCompany name
countrystringTwo-letter ISO country code
country_namestringFull country name
created_atintegerUnix timestamp when the address was created
departmentstringDepartment name
first_namestringFirst name
is_defaultbooleanWhether this is the customer's default address for its type
last_namestringLast name
line1stringStreet address line 1
line2stringStreet address line 2 (apartment, suite, etc.)
postal_codestringZIP or postal code
salutationstringSalutation (Mr, Mrs, Ms, etc.)
site_idsarrayList of site IDs the customer belongs to
statestringState or province code
state_namestringFull state or province name
titlestringProfessional title
typestringAddress type: shipping or billing
updated_atintegerUnix timestamp when the address was last modified

Related