Points Changed

Sent every time a customer's points balance changes, with the balance before and after. Use it to keep a points balance in another system in sync.

To receive it, add swell/points/changed to events when you create a filter, then subscribe the filter to your target. Yotpo sends the event to your target URL as a POST with this JSON body.

Payload
string

The event name, swell/points/changed.

string

The display name of the event.

string

Your store's website URL.

string

Your store's name.

string

The email address of the customer whose point balance changed.

customer
object

The customer.

integer

The customer’s point balance before the change.

integer

The customer’s point balance after the change.

integer

The points added (positive) or removed (negative).

string

Whether points were added or removed.

string

Why the balance changed: a campaign title, Points Expired, a manual adjustment description, Refund made, Import or Redemption Made.

date-time

When the event happened.

date

The date the next batch of points expires.

integer

The number of points in the next expiring batch.

date-time

When Yotpo sent the event.

Headers
string
required

The event name. Matches topic in the body.

string
required

The kind of account the event belongs to.

string
required

Your store ID.

string
required

A unique ID for the event.

string
required

A unique ID for this delivery to this target. Use it to ignore duplicates.

Response
200

Return any 2xx status quickly to acknowledge the event. Without one, Yotpo retries at least 10 times with exponential backoff.

LoadingLoading…