# Customer merged Endpoint: POST customer-merged Version: latest Security: SecretApiKey, JWT ## Request fields (application/json): - `targetCustomerId` (string) ID of the customer that contains the merged data. Example: "cus_0YV7DDSDD1C8DA64KHH2W33CPF" - `eventType` (string) Type of webhook event. Enum: "customer-merged" - `duplicatedCustomer` (object) Customer information. - `duplicatedCustomer.websiteId` (string) ID of the website. A website is where an organization obtains a customer. For more information, see [Obtain an organization ID and website ID](https://www.rebilly.com/docs/settings/organizations-and-websites/#obtain-your-organization-id-and-website-id). Example: "web_0YV7DE4Z26DQSA1AC92FBJ7SEG" - `duplicatedCustomer.paymentToken` (string) Write-only payment token. If supplied, the token is converted into a payment instrument and set as the value. If both are supplied, the value of this property overrides the value. The token expires after first use. - `duplicatedCustomer.defaultPaymentInstrument` (object,null) - `duplicatedCustomer.preferredPayoutInstrumentId` (string,null) ID of the customer's preferred payment instrument for payouts. Example: "inst_0YVB8KPKNXCBR9EDX7JHSED75N" - `duplicatedCustomer.customFields` (object) Use custom fields to extend a resource scheme to include custom data that is not provided as a common field. For more information, see [Custom fields](https://www.rebilly.com/catalog/all/custom-fields). - `duplicatedCustomer.primaryAddress` (any) Customer's primary address. - `duplicatedCustomer.isEddRequired` (boolean) Specifies if Enhanced Due Diligence (EDD) is enabled for this customer. For more information, see [Enhanced Due Diligence](https://www.rebilly.com/docs/kyc-and-aml/edd/). - `duplicatedCustomer.locale` (string,null) Language locale identifier in [RFC 5646](https://tools.ietf.org/html/rfc5646) format. Example: "fr-FR" - `duplicatedCustomer.taxNumbers` (array,null) Tax numbers of the customer. - `duplicatedCustomer.taxNumbers.type` (string, required) Type of the tax number. Enum: "eu-vat", "other" - `duplicatedCustomer.taxNumbers.value` (string, required) Value of the tax number. Example: "GB980780684" - `duplicatedCustomer.taxNumbers.isDefault` (boolean) Determines if the tax number is selected as default to display on invoices. Example: true - `duplicatedCustomer.leadSource` (object) Lead source information. - `duplicatedCustomer.leadSource.medium` (string,null) Category of the lead source traffic. For example, the medium could be organic search, Google ads, Display ads, and so on. - `duplicatedCustomer.leadSource.source` (string,null) Domain, platform, or channel from which the lead source originates. - `duplicatedCustomer.leadSource.campaign` (string,null) Campaign name of the lead source. - `duplicatedCustomer.leadSource.term` (string,null) Term associated with a lead source. - `duplicatedCustomer.leadSource.content` (string,null) Content contained in the lead source content. For example, content could be graphics, video, and so on. - `duplicatedCustomer.leadSource.affiliate` (string,null) Individual or entity that is affiliated with the lead source. - `duplicatedCustomer.leadSource.subAffiliate` (string,null) Individual or entity that is associated with a lead source affiliate. In other products, this field may also be referred to as sub ID or click ID in some. - `duplicatedCustomer.leadSource.salesAgent` (string,null) Name of the sales agent associated with the lead source. - `duplicatedCustomer.leadSource.clickId` (string,null) ID of the lead source click. This value is passed in the ad click URL for tracking and campaign attribution. - `duplicatedCustomer.leadSource.path` (string,null) URL from which the lead source originates. - `duplicatedCustomer.leadSource.referrer` (string,null) Lead source [ URL](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Referer). - `_embedded` (object) Customer object. - `_embedded.targetCustomer` (object) Customer information. - `_links` (array) Related links. - `_links.href` (string) Link URL. - `_links.rel` (string) Type of link. Enum: "customer"