Customer merged
Webhook

Request

Security
SecretApiKey or JWT
Bodyapplication/json

Payload of customer merge-related webhook event.

targetCustomerIdstring, <= 50 characters

ID of the customer that contains the merged data.

Example:"cus_0YV7DDSDD1C8DA64KHH2W33CPF"
eventTypestring

Type of event that triggered the webhook.

Value:"customer-merged"
duplicatedCustomerobject(Customer)

Customer information.

_embeddedobject

Embedded objects related to the customer merge event.

Payload
{ "targetCustomerId": "cus_0YV7DDSDD1C8DA64KHH2W33CPF", "eventType": "customer-merged", "duplicatedCustomer": { "id": "cus_0YV7DDSDD1C8DA64KHH2W33CPF", "email": "user@example.com", "firstName": "string", "lastName": "string", "websiteId": "web_0YV7DE4Z26DQSA1AC92FBJ7SEG", "defaultPaymentInstrument": { … }, "preferredPayoutInstrumentId": "inst_0YVB8KPKNXCBR9EDX7JHSED75N", "createdTime": "2019-08-24T14:15:22Z", "updatedTime": "2019-08-24T14:15:22Z", "customFields": { … }, "primaryAddress": { … }, "company": { … }, "averageValue": { … }, "paymentCount": 0, "lastPaymentTime": "2019-08-24T14:15:22Z", "lifetimeRevenue": { … }, "invoiceCount": 0, "tags": [ … ], "revision": 0, "hasFulfilledKyc": true, "organizationId": "org_0YVDM8RC7GDADADSBSMW124JA8", "locale": "fr-FR", "taxNumbers": [ … ], "personId": "prs_0YV7DDSDD1C8DA64KHH2W33CPF", "notificationEmails": [ … ], "_links": [ … ], "_embedded": { … } }, "_embedded": { "targetCustomer": { … } }, "_links": [ { … } ] }

Responses

Returns any 2xx status to indicate that data is received.