Overview
Thecustomer.updated webhook is triggered when an existing customer’s information is updated in your Metrifox account.
When It’s Triggered
This event is sent immediately after a customer is successfully updated through:- The Metrifox API (
PUT /api/v1/customers/{customer_key}) - Any other customer update method
Payload Structure
Customer Object
Customer Data Fields
Thedata.customer object contains the full customer record with all fields, including:
id: Internal customer IDcustomer_type: Either individual or businesscustomer_key: The unique customer key (immutable)email_addresses: Email addressesphone_numbers: Phone numbersdeleted_at: Deletion timestamp (if deleted)tenant_id: The tenant ID this customer belongs tocreated_at: Timestamp when the customer was createdupdated_at: Timestamp when the customer was last updatedotp: One-time password value (if applicable)otp_sent_at: OTP sent timestamp (if applicable)verified_at: Verification timestamp (if applicable)source: Source of the customer record (e.g.,manual)edit_token: Edit token (if applicable)edit_token_expires_at: Edit token expiration timestampprimary_email: Primary email addressprimary_phone: Primary phone numberlegal_name: Registered legal namedisplay_name: Display name shown in the UIfirst_name: First namelast_name: Last namemiddle_name: Middle namelegal_number: Legal registration numbertax_identification_number: Primary tax ID numberlogo_url: Logo URLwebsite_url: Website URLtimezone: Customer timezonelanguage: Preferred languagecurrency: Customer currencytax_status: Tax status (enum)billing_email: Billing email address for invoicesaddress_line1: Primary address line 1address_line2: Primary address line 2city: Customer’s citystate: Customer’s state or regioncountry: Customer’s countryzip_code: Postal codeshipping_address_line1: Shipping address line 1shipping_address_line2: Shipping address line 2shipping_city: Shipping cityshipping_state: Shipping state or regionshipping_country: Shipping countryshipping_zip_code: Shipping postal codeaccount_manager: Assigned account managerdate_of_birth: Customer date of birth (ISO date)billing_configuration: Billing configuration objecttax_identifications: List of tax IDscontact_people: List of contact people for the customerpayment_terms: Payment term rulesmetadata: Custom metadata objectmid_cycle_invoice_consolidation: Whether mid-cycle invoices are consolidated
The
customer_key field is immutable and will not change even if other customer information is updated.Example Use Cases
- Sync customer updates to your CRM system
- Update customer records in external systems
- Trigger workflows based on customer information changes
- Audit customer data changes

