customer.credits.updated
Triggered when a customer's credit balance is updated (credits earned or redeemed).
customer.credits.updated
customer.credits.updated
Payload Structure
{
"payload": {
"lastName": "1",
"note": null,
"reason": "EARNED_FROM_PURCHASE",
"amount": 1,
"isUpsell": false,
"orderId": "6244265853059",
"newBalance": 1,
"orderTotal": 100,
"previousBalance": 0,
"createdAt": "2025-05-30T10:18:11.721Z",
"firstName": "1a",
"merchantId": "inveterate",
"customerId": "7733540520067",
"appliedBy": null,
"expirationDate": "2025-05-31T10:00:00.000Z",
"updatedAt": "2025-05-30T10:18:11.721Z",
"email": "[email protected]"
},
"metadata": {
"retryCount": 0,
"shopDomain": "inveterate.myshopify.com",
"topic": "customer.credits.updated",
"version": "2025-06",
"triggerredAt": "2025-05-30T10:18:12.985Z"
}
}
Payload Fields
payload
createdAt
(string): ISO timestamp when the event was createdupdatedAt
(string): ISO timestamp when the event was last updatedmerchantId
(string): Merchant identifiercustomerId
(string): Customer identifieremail
(string): Customer's email addressfirstName
(string): Customer's first namelastName
(string): Customer's last nameamount
(number): Amount of credits involved in this transactionnewBalance
(number): Customer's new credit balance after this transactionpreviousBalance
(number): Customer's credit balance before this transactionreason
(string): Reason for the credit update (e.g., "EARNED_FROM_PURCHASE")orderId
(string): ID of the order associated with this credit transaction (if applicable)orderTotal
(number): Total value of the associated order (if applicable)expirationDate
(string): ISO timestamp when these credits will expirenote
(string|null): Additional notes about the credit transactionappliedBy
(string|null): Who applied the credits (if manually applied)isUpsell
(boolean): Whether this credit transaction was part of an upsell
metadata
retryCount
(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?