smootify:created_address
a `create-address` form saved an address
On this page
a create-address form saved an address Since 1.x.
Listen
window.Smootify = window.Smootify || [];
window.Smootify.push((api) => {
api.on("created_address", (payload) => {
// …
});
});Payload
{ address: CustomerAddress }CustomerAddress
export interface CustomerAddress {
id: string;
formatted: string[];
name: string | null;
address1: string | null;
address2: string | null;
city: string | null;
company: string | null;
firstName: string | null;
lastName: string | null;
phoneNumber: string | null;
countryCode: string | null;
zip: string | null;
zoneCode: string | null;
}