Documentation Index
Fetch the complete documentation index at: https://docs.metrifox.com/llms.txt
Use this file to discover all available pages before exploring further.
Overview
Thecustomer.created webhook is triggered when a new customer is created in your Metrifox account.
When It’s Triggered
This event is sent immediately after a customer is successfully created through:- The Metrifox API (
POST /api/v1/customers) - CSV upload
- Any other customer creation 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
Example Use Cases
- Sync new customers to your CRM system
- Send welcome emails to new customers
- Create customer records in external systems
- Trigger onboarding workflows

