Donation Created

Sent when a customer redeems points for a donation to a nonprofit through the Shopping Gives integration.

To receive it, add loyalty/donation/created 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.

Donations have no coupon code, so redemption.reward_text is Donation.

Payload
string

The event name, loyalty/donation/created.

string

The display name of the event.

string

Your store's website URL.

string

Your store's name.

redemption
object

The redemption.

redemption_option
object

The reward (redemption option).

integer

The reward (redemption option) ID.

string

The reward name.

string

The email address of the customer who donated their points.

customer
object

The customer.

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…