The customer was updated.
import { UpdateCustomerResponseBody } from "dub/models/operations";
let value: UpdateCustomerResponseBody = {
id: "<id>",
name: "<value>",
externalId: "<id>",
createdAt: "1717852692196",
};| Field | Type | Required | Description |
|---|---|---|---|
id |
string | ✔️ | The unique ID of the customer. You may use either the customer's id on Dub (obtained via /customers endpoint) or their externalId (unique ID within your system, prefixed with ext_, e.g. ext_123). |
name |
string | ✔️ | Name of the customer. |
email |
string | ➖ | Email of the customer. |
avatar |
string | ➖ | Avatar URL of the customer. |
externalId |
string | ✔️ | Unique identifier for the customer in the client's app. |
stripeCustomerId |
string | ➖ | The customer's Stripe customer ID. This is useful for attributing recurring sale events to the partner who referred the customer. |
country |
string | ➖ | Country of the customer. |
sales |
number | ➖ | Total number of sales for the customer. |
saleAmount |
number | ➖ | Total amount of sales for the customer. |
createdAt |
string | ✔️ | The date the customer was created (usually the signup date or trial start date). |
firstSaleAt |
string | ➖ | The date the customer made their first sale. Useful for calculating the time to first sale and LTV. |
subscriptionCanceledAt |
string | ➖ | The date the customer canceled their subscription. Useful for calculating LTV and churn rate. |
link |
operations.UpdateCustomerLink | ➖ | N/A |
programId |
string | ➖ | N/A |
partner |
operations.UpdateCustomerPartner | ➖ | N/A |
discount |
operations.UpdateCustomerDiscount | ➖ | N/A |