customer.updated
Triggered when a customer's information is updated.
customer.updated
customer.updated
Payload Structure
{
"payload": {
"newData": {
"accountState": "ENABLED",
"lastCreditRedemptionAt": null,
"lastName": "inveterate",
"notes": null,
"anonymized": false,
"createdAt": "2025-05-25T00:27:56.503Z",
"revenue": 102.32,
"merchantId": "inveterate",
"paymentId": null,
"referrals": 0,
"customerId": "22978031812972",
"credit": 10,
"email": "[email protected]",
"updatedAt": "2025-05-25T00:27:59.220Z",
"joinedAt": "2025-05-25T00:27:52Z",
"trigger": "PAID_SUBSCRIPTION",
"firstName": "inveterate",
"creditsEarned": 10,
"phoneNumber": "+16416805498",
"referredBy": null,
"contractId": 82559795564,
"lastPurchaseAt": "2025-06-12T12:40:44.819Z",
"currencyCode": "USD",
"freeTrialActive": false,
"status": "ACTIVE",
"tierId": "c560bce7",
"tierName": "PAID"
},
"oldData": {
"accountState": "ENABLED",
"lastCreditRedemptionAt": null,
"lastName": "inveterate",
"notes": null,
"anonymized": false,
"spendingProcess": {
"time": "2025-06-12T12:40:44.819Z",
"status": "ACTIVE"
},
"createdAt": "2025-05-25T00:27:56.503Z",
"revenue": 102.32,
"merchantId": "inveterate",
"paymentId": null,
"referrals": 0,
"customerId": "22978031812972",
"credit": 10,
"email": "[email protected]",
"updatedAt": "2025-05-25T00:27:59.220Z",
"joinedAt": "2025-05-25T00:27:52Z",
"trigger": "PAID_SUBSCRIPTION",
"firstName": "inveterate",
"creditsEarned": 10,
"phoneNumber": "+16416805498",
"referredBy": null,
"contractId": 82559795564,
"lastPurchaseAt": "2025-06-12T12:40:44.819Z",
"currencyCode": "USD",
"freeTrialActive": false,
"status": "ACTIVE",
"tierId": "c560bce7",
"tierName": "PAID"
}
},
"metadata": {
"id": "056f9ad3c189f9897e893c8477fce1f6",
"retryCount": 0,
"shopDomain": "inveterate.myshopify.com",
"topic": "customer.updated",
"version": "2025-06",
"triggerredAt": "2025-06-12T12:40:46.309Z"
}
}
Payload Fields
payload
newData
(object): Updated customer dataaccountState
(string): Current state of the account (e.g., "ENABLED")lastCreditRedemptionAt
(string|null): ISO timestamp of last credit redemptionlastName
(string): Customer's last namenotes
(string|null): Additional notes about the customeranonymized
(boolean): Whether the customer data is anonymizedcreatedAt
(string): ISO timestamp when the customer was createdrevenue
(number): Total revenue from the customermerchantId
(string): Merchant identifierpaymentId
(string|null): Payment identifierreferrals
(number): Number of referrals made by the customercustomerId
(string): Customer identifiercredit
(number): Available credit amountemail
(string): Customer's email addressupdatedAt
(string): ISO timestamp when the customer was last updatedjoinedAt
(string): ISO timestamp when the customer joinedtrigger
(string): Trigger type (e.g., "PAID_SUBSCRIPTION")firstName
(string): Customer's first namecreditsEarned
(number): Total credits earned by the customerphoneNumber
(string): Customer's phone numberreferredBy
(string|null): Identifier of the customer who referred this customercontractId
(number): Contract identifierlastPurchaseAt
(string): ISO timestamp of last purchasecurrencyCode
(string): Currency code (e.g., "USD")freeTrialActive
(boolean): Whether the customer has an active free trialstatus
(string): Customer status (e.g., "ACTIVE")tierId
(string): Membership tier identifiertierName
(string): Name of the membership tier
oldData
(object): Previous customer data before the updateContains the same fields as
newData
May include additional fields like
spendingProcess
that were removed in the update
metadata
id
(string): Unique event identifierretryCount
(number): Number of retry attempts for this eventshopDomain
(string): Shopify domain of the merchanttopic
(string): Event topic nameversion
(string): API versiontriggerredAt
(string): ISO timestamp when the event was triggered
Last updated
Was this helpful?