Event types
The envelope every Cevoid webhook shares, the catalog of events by product, and how payloads change over time.
Every webhook request carries one event. type names it, and data holds the resources it concerns, such as the review and the customer's profile.
Envelope
Every event body has the same top-level fields: type, id, created_at, version, origin and data. Each event page shows an example and describes every field.
- Switch on
typeto decide how to handle the event. idis also sent as thewebhook-idheader. Store the IDs you have processed and skip repeats.- Cevoid sends the body with its object keys sorted. Parse it as JSON; do not depend on the key order.
Event catalog
Each event has its own page with an example and every field. A destination can subscribe to any of them, except those marked Flow only: review replies and the review and upload requests come only from a Flow. See Send from a Flow.
UGC
post.approvedA post was approved. Each approval sends a new event, including a post added as approved, so act once per post id.upload.completedA shopper finished uploading content.content-upload-request.createdFlow onlyA Flow asked a shopper to upload photos or videos.
Loyalty
profile.program-joinedA profile joined the loyalty program.profile.program-leftA profile left the loyalty program.tier.earnedA member reached a tier.tier.evaluation-approachingA member's tier evaluation is coming up.reward.fulfilledA member received one or more rewards.points.expiration-approachingSome of a member's points expire soon.
Reviews
product-review.submittedA shopper submitted a product review. Imported reviews are not included.company-review.submittedA shopper submitted a company review. Imported reviews are not included.product-review.repliedFlow onlyA reply was added to a product review.company-review.repliedFlow onlyA reply was added to a company review.product-review-request.createdFlow onlyA Flow asked a shopper to review the products in an order.company-review-request.createdFlow onlyA Flow asked a shopper to review the store.
The test event, cevoid.test, is described in Test a webhook.
Resources in data
- Check for each resource.
dataleaves out resources your plan does not include, andpointsandtierappear only on loyalty and order events, and only when the profile is a loyalty member. A resource Cevoid cannot read is left out rather than sent half filled. - Read at the first attempt.
datareflects the records when Cevoid made the first attempt; retries resend that body unchanged.
Versioning
versionis1for every event today. Read it withtypebefore you process an event.- The API resources in
datafollow the API's compatibility rules: within v2 they gain optional fields over time, without a change toversion. See API versioning. - New event types can appear. Ignore a
typeyour receiver does not handle and still return a2xxstatus, so the delivery does not retry. - Ignore fields you do not recognize instead of rejecting the body.