Activities

Apps in Wix work together by sharing information about site visitor activity. An activity is a visitor’s interaction with the site, such as filling out a contact form, making a purchase, or sharing a page from the site on social media.

You’ll use the WixHive to request information that’s useful for your app, and also post information that your app collects.

Activities are tracked by a visitor’s email, phone, or cookie. If a site visitor is a contact, you will be able to link between the contact and its activities.

Read more about the different activity types and their schemas below.

How it Works

When you register your app in the dev center, you can sign up to receive or post Activities about different events that happens within the website, according to your product needs.

  • Post an activity to report about events that occurred within your app.
  • Get an activity when it was reported to trigger an action within your app.

Post Activity

When posting an Activity to Wix, make sure the data conforms to the specific schema for that type of Activity, so that other apps know what to expect when receiving it. Each type of Activity has its own schema, represented in JSON schema format.

Activities are connected to a session, which is a cookie stored in the site visitor’s browser. This means that when you (or another app) post Activities from the same browser session, they are all linked to the same site visitor. If the site visitor is a Contact, all Activities connected to this session are linked to the Contact, even Activities posted before the Contact was created.

 How to Post an Activity

Use the Wix.Activities.postActivity SDK method.

You can see the full list of parameters in the method documentation, but here’s a quick look at the most important parameters:

  • activity.Info: Build this object using the correct activity schema.  Refer to the list of activities and their schemas.  
  • contactUpdate: Add any information your app has about the site visitor (such as email, phone, or name) in the contactUpdate object. This object links the Activity to a Contact.
  • details.additionalInfoUrl: When an important activity is posted, we display a notification in the site’s dashboard. Users can click on this notification to see more information about the activity, so define this URL when you post the activity. (Check out the section below – “What happens in the site’s dashboard when you post an activity” for more details.)

What happens in your app when you post the activity

Once you post the activity, you’ll receive the Activity ID immediately. If you used the contactUpdate object, we’ll check if the contact exists for this browser session:

  • If a contact already exists for this session, we’ll add the new information you provided to this contact and send you the contact ID.
  • If this contact doesn’t exist yet, we’ll create a new contact and send you its ID. All activities connected to this specific session will be linked to the new contact.

What happens in the site’s dashboard when you post an activity

You can use the points below as a quick check to make sure you implemented the WixHive correctly.

If you provided the site visitor’s email/phone number when you posted the activity, we’ll link the activity to a contact and show the new information to users. Here’s what users will see in the site’s dashboard – and what you should see when testing the WixHive in your app:

  • A notification for important activities: Users can click on this notification to see more information about the activity. You can direct users to a URL with more information – use the additionalInfoUrl parameter in the postActivity method.
    We display notifications for these activities:
    • Form activities (contact-form, subscription-form, form)
    • Scheduler appointment activity
    • eCommerce purchase activity
    • Hotels reservation activity
    • Social track activity

Note: If you think it’s important for us to notify users about an activity posted by your app, let us know!

  • A new message in the Wix Engage app: Users can see important activities that happened in their site – whether it’s done by an existing contact or an anonymous site visitor. (You can see the full list of important activities, above.)

  • New information about site visitors: When users go to the contact’s page, they can see the activity you posted, as well as any new information you sent about the contact. If the site visitor is a new contact, users will see the new contact in the contacts section of the dashboard.
    (You’ll add this information in the contactUpdate parameter in the postActivity method.)

Note: Activities that are not linked to a Contact will not be visible to users.

Get Activity

When you register your app, you can sign up to receive immediate notification when an Activity occurs. These events will be delivered to your app via webhooks and will include the Activity ID. To get the Activity data use the HTTP API or the JavaScript SDK with the relevant Activity ID.

There will be times when your app needs to get a list of Activities that have already occurred on a site. In such cases, you can request these Activities through our JavaScript SDK or through our HTTP API, as shown below.

You can use parameters to filter your search:

  • Use the from and until parameters to retrieve Activities by creation time.
  • Set the scope parameter to app to get Activities that were created by your app. Set the scope parameter to site to get Activities that were created by all apps on a site. Default is site.
  • Use the activityTypes parameter to filter by the type of Activity.

NODEJS

Copy

RUBY

Copy

Activity Schemas

The activities listed below can be posted by your application to report about events that occurred within your app.

Forms

Use the following activities for form events in your app:

  • Contact-Form: when your app submits a contact form.
  • Subscription-Form: when your app submits a subscription from.
  • Form: when your app submits another type of form, like a survey.

You’ll add the site visitor’s details (name, email, etc) in the contactUpdate object, and not in the form activity itself (see more information on posting an activity). So there’s no need to post form fields that ask for these details.

Contact-Form

NameTypeDescription
subject Array[object]Subject the site visitor entered in the contact form
content (required)Object Content the site visitor entered in the contact form
content.messageStringMessage text 
content.mediaArrayMedia (for example, images the site visitor uploaded to the message)
additionalFields Array[object] More details submitted in the form
additionalFields.nameStringKey name
additionalFields.valueStringKey value

Get the Contact-Form Activity JSON.

Example:

Copy

Subscription-Form

NameTypeDescription
additionalFields Array[object] More details submitted in the form
additionalFields.nameStringKey name
additionalFields.valueStringKey value

Get the Subscription-Form Activity JSON.

Example:

Copy

Form

NameTypeDescription
type"CUSTOMER_SATISFACTION", "SURVEY", "EVENT_REGISTRATION", "ORDER", "DONATION", "QUIZ", "OTHER"Type of form submitted: * CUSTOMER_SATISFACTION: Form to give feedback. * SURVEY: Form for a general survey. * EVENT_REGISTRATION: Form to register for an event. * ORDER: Form to place an order. * DONATION: Form to make a donation. * QUIZ: Form to answer general questions. * OTHER: Any other type of form that's not listed here.
 fields Array[object]Fields in the form
nameStringKey name
valueStringKey value

Example:

Copy

Get the Form activity JSON.

Scheduler

Use the following activities for scheduling events that occur in your app:

  • Appointment: when an appointment is made.
  • Cancel: when an appointment is cancelled.
  • Confirmation: when an appointment is confirmed.

Appointment and Confirmation

PropertyTypeDescription
appointmentId (recommended)StringThe unique identifier of a scheduled appointment
source (required)"GUEST" or "STAFF" Indicates who booked/confirmed the appointment
title (required)StringAppointment's title 
description (required)StringAppointment's description
infoLinkStringURL for more details about the appointment
priceObjectAppointment’s price
price.price (required)NumberPrice amount
price.formattedPriceStringPrice format (i.e, €0,99 or $0.99)
price.currency (required)StringCurrency code (i.e, EUR, USD, CAD)
locationObjectAppointment's location
location.addressStringAddress
location.cityStringCity
location.regionStringRegion
location.postalCodeStringPostal Code
location.countryStringCountry
location.urlStringLocation URL
timeObjectAppointment’s scheduled time
time.start (required)DateTimeScheduled start time
time.end (required)DateTimeScheduled end time
time.end (required)StringScheduled time zone
attendeesArray[object]Appointment's attendees
attendees.contactIdStringAttendee's contact ID
attendees.nameObjectAttendee's name
attendees.name.prefixStringName prefix
attendees.name.firstStringFirst name
attendees.name.middleStringMiddle name
attendees.name.lastStringLast name
attendees.name.suffixStringName suffix
attendees.phoneStringAttendee's phone
attendees.emailStringAttendee's email
attendees.notesStringAttendee's notes (like allergies or other restrictions)
attendees.selfBooleanTrue if the Wix user who scheduled the appointment will attend

Get the Appointment Activity and the Confirmation Activity JSONs.

APPOINTMENT

Copy

CONFIRMATION

Copy

Cancel

PropertyTypeDescription
appointmentId (recommended)StringThe unique identifier of a scheduled appointment
source (required)"GUEST" or "STAFF" Indicates who cancelled the appointment
cancelDate (required)DateTimeReservation cancel date
refund (required)ObjectRefund details
refund.kind (required)"FULL", "PARTIAL", or "NONE"Type of refund
refund.total (required)NumberTotal amount to refund
refund.currency (required)StringRefund currency code (i.e, EUR, USD, CAD)
refund.notesStringNotes about this refund
refund.destination (required)StringRefund's destination (credit card, cash, etc)
title (required)StringAppointment's title 
description (required)StringAppointment's description
infoLinkStringURL for more details about the appointment
priceObjectAppointment’s price
price.price (required)NumberPrice amount
price.formattedPriceStringPrice format (i.e, €0,99 or $0.99)
price.currency (required)StringCurrency code (i.e, EUR, USD, CAD)
locationObjectAppointment's location
location.addressStringAddress
location.cityStringCity
location.regionStringRegion
location.postalCodeStringPostal Code
location.countryStringCountry
location.urlStringLocation URL
timeObjectAppointment’s scheduled time
time.start (required)DateTimeScheduled start time
time.end (required)DateTimeScheduled end time
time.timeZone (required)StringScheduled time zone
attendeesArray[object]Appointment's attendees
attendees.contactIdStringAttendee's contact ID
attendees.nameObjectAttendee's name
attendees.name.prefixStringName prefix
attendees.name.firstStringFirst name
attendees.name.middleStringMiddle name
attendees.name.lastStringLast name
attendees.name.suffixStringName suffix
attendees.phoneStringAttendee's phone
attendees.emailStringAttendee's email
attendees.notesStringAttendee's notes (like allergies or other restrictions)
attendees.selfBooleanTrue if the Wix user who scheduled the appointment will attend

Get the Cancel Appointment Activity JSON.

Example

Copy

Social

Use the following activities to track social actions that occur in your app – for example, when a site visitor comments on the site, likes an Instagram photo, or posts a comment through Facebook:

  • Comment: when a site visitor posts a comment on the site – whether the comment is posted on the site only, or also posted to the visitor’s social media page through a plugin on the site.
  • Share-url: when a site visitor shares an item (like a blog post or photo) on social media.
  • Track: when a site visitor takes one of these social media actions on the user’s channel: like, follow, subscribe, pin.

Comment

PropertyTypeDescription
text (required)StringComment text
channel (required)"SITE", "FACEBOOK", "TWITTER", "LINKEDIN", "GOOGLE_PLUS", "PINTEREST", "INSTAGRAM", "TUMBLR", "BLOGGER", "WORDPRESS", or "OTHER"Where the comment was posted. SITE refers to the Wix site
metadataArray[object]Additional information about the comment
metadata.name (required)StringMetadata property name
metadata.value (required)StringMetadata value
commenterObjectDetails about the site visitor who made the comment
commenter.openIdObjectHow the site visitor was authenticated. Read more about openId.
commenter.openId.channel (required)"FACEBOOK", "TWITTER", "LINKEDIN", "GOOGLE_PLUS", "PINTEREST", "INSTAGRAM", "TUMBLR", "BLOGGER", "WORDPRESS", or "OTHER"Account used to authenticate the site visitor
commenter.nameObjectSite visitor's name
commenter.name.prefixStringName prefix
commenter.name.firstStringFirst name
commenter.name.middleStringMiddle name
commenter.name.lastStringLast name
commenter.name.suffixStringName suffix
commenter.emailStringSite visitor's email

Get the Comment Activity JSON.

Example:

Copy

Share-url

PropertyTypeDescription
channel (required)"FACEBOOK", "TWITTER", "LINKEDIN", "GOOGLE_PLUS", "PINTEREST", "INSTAGRAM", "TUMBLR", "BLOGGER", "WORDPRESS", "SITE" or "OTHER"Where the link was shared
itemInfo (required)ObjectDetails about the item or page the site visitor tracked
itemInfo.itemUrl (required)StringURL of the social media item 
itemInfo.ItemThumbnailStringImageId of the item's thumbnail image
itemInfo.ItemId (required)StringID of this item
itemInfo.ItemType (required)"IMAGE", "VIDEO", "TEXT", "SITE", "ALBUM", or "PAGE"Type of social media item
Copy

Track

PropertyTypeDescription
type (required)"LIKE", "FOLLOW", "SUBSCRIBE", "PIN_IT", "FAVORITE", "LOVE", "STAR", "OTHER"Social media action taken by the site visitor
channel (required)"FACEBOOK", "TWITTER", "LINKEDIN", "GOOGLE_PLUS", "PINTEREST", "INSTAGRAM", "TUMBLR", "BLOGGER", "WORDPRESS", "SITE" or "OTHER"Social media channel that contains the item the site visitor tracked
itemInfo (required)ObjectDetails about the item or page the site visitor tracked
itemInfo.itemUrl (required)StringURL of the social media item 
itemInfo.ItemThumbnailStringImageId of the item's thumbnail image
itemInfo.ItemId (required)StringID of this item
itemInfo.ItemType (required)"IMAGE", "VIDEO", "TEXT", "SITE", "ALBUM", or "PAGE"Type of social media item
Copy

Hotels

Use the following activities for hospitality events in your app:

  • Purchase: When a site visitor purchases a service offered by the hotel.
  • Purchase-Failed: When the purchase of a hotel service could not be completed.
  • Reservation: When a site visitor reserves a hotel room.
  • Confirmation: When a reservation is confirmed.
  • Cancel: When a reservation is canceled.

Purchase

PropertyTypeDescription
reservationIdStringReservation ID
guests (required)ObjectGuests details
guests.total (required)NumberNumber of guests
guests.adults (required)NumberNumber of adult guests
guests.children (required)NumberNumber of child guests
stay (required)ObjectStay dates
stay.checkin (required)DateTimeCheckin date
stay.checkout (required)DateTimeCheckout date
rates (required)Array[object]Rate details
rates.date (required)DateTimeRate date
rates.subtotal (required)NumberSubtotal amount (without taxes)
rates.taxes (required)Array[object]Tax details
rates.taxes.name (required)StringTax name (occupancy tax, resort fee, etc)
rates.taxes.total (required)NumberTax total amount
rates.taxes.currency (required)StringTax currency code (i.e, EUR, USD, CAD)
rates.total (required)NumberTotal amount
rates.currency (required)StringRate currency code (i.e, EUR, USD, CAD)
payment (required)ObjectPayment details
payment.subtotal (required)NumberPayment subtotal
payment.total (required)NumberPayment total
payment.currency (required)StringPayment currency code (i.e, EUR, USD, CAD)
payment.source (required)StringPayment method (cash, credit, paypal, etc)
customerObjectCustomer details
customer.contactIdStringCustomer’s contact ID
customer.isGuestBooleantrue if the customer a returning guest
customer.nameObjectCustomer's name
customer.name.prefixStringName prefix
customer.name.firstStringFirst name
customer.name.middleStringMiddle name
customer.name.lastStringLast name
customer.name.suffixStringName suffix
customer.phoneStringCustomer's phone number
customer.emailStringCustomer's email
rooms (required)Array[object]Room details
rooms.idStringRoom ID
rooms.beds (required)Array[object]Room's bed list
kind (required)StringType of bed
kind.maxOccupancy (required)NumberRoom's occupancy number
kind.amenities (required)Array[string]List of amenities reserved

Get the Purchase Activity JSON.

Example:

Copy

Purchase-failed

PropertyTypeDescription
reservationIdStringReservation ID
guests (required)ObjectGuests details
guests.total (required)NumberNumber of guests
guests.adults (required)NumberNumber of adult guests
guests.children (required)NumberNumber of child guests
stay (required)ObjectStay dates
stay.checkin (required)DateTimeCheckin date
stay.checkout (required)DateTimeCheckout date
rates (required)Array[object]Rate details
rates.date (required)DateTimeRate date
rates.subtotal (required)NumberSubtotal amount (without taxes)
rates.taxes (required)Array[object]Tax details
rates.taxes.name (required)StringTax name (occupancy tax, resort fee, etc)
rates.taxes.total (required)NumberTax total amount
rates.taxes.currency (required)StringTax currency code (i.e, EUR, USD, CAD)
rates.total (required)NumberTotal amount
rates.currency (required)StringRate currency code (i.e, EUR, USD, CAD)
payment (required)ObjectPayment details
payment.subtotal (required)NumberPayment subtotal
payment.total (required)NumberPayment total
payment.currency (required)StringPayment currency code (i.e, EUR, USD, CAD)
payment.source (required)StringPayment method (cash, credit, paypal, etc)
payment.errorObjectDetails for payment error
payment.error.errorCodeNumberError code
payment.error.reasonStringReason why the payment failed
customerObjectCustomer details
customer.contactIdStringCustomer’s contact ID
customer.isGuestBooleantrue if the customer a returning guest
customer.nameObjectCustomer's name
customer.name.prefixStringName prefix
customer.name.firstStringFirst name
customer.name.middleStringMiddle name
customer.name.lastStringLast name
customer.name.suffixStringName suffix
customer.phoneStringCustomer's phone number
customer.emailStringCustomer's email
rooms (required)Array[object]Room details
rooms.idStringRoom ID
rooms.beds (required)Array[object]Room's bed list
kind (required)StringType of bed
kind.maxOccupancy (required)NumberRoom's occupancy number
kind.amenities (required)Array[string]List of amenities reserved

Get the Purchased-Failed Activity JSON.

Example:

Copy

Confirmation and Reservation

PropertyTypeDescription
source (required)"GUEST" or "STAFF"Indicates who confirmed/reserved the room.
reservationIdStringReservation ID
guests (required)ObjectGuests details
guests.total (required)NumberNumber of guests
guests.adults (required)NumberNumber of adult guests
guests.children (required)NumberNumber of child guests
stay (required)ObjectStay dates
stay.checkin (required)DateTimeCheckin date
stay.checkout (required)DateTimeCheckout date
rates (required)Array[object]Rate details
rates.date (required)DateTimeRate date
rates.subtotal (required)NumberSubtotal amount (without taxes)
rates.taxes (required)Array[object]Tax details
rates.taxes.name (required)StringTax name (occupancy tax, resort fee, etc)
rates.taxes.total (required)NumberTax total amount
rates.taxes.currency (required)StringTax currency code (i.e, EUR, USD, CAD)
rates.total (required)NumberTotal amount
rates.currency (required)StringRate currency code (i.e, EUR, USD, CAD)
invoice (required)ObjectReservation invoice details
invoice.subtotal (required)NumberInvoice subtotal
invoice.total (required)NumberInvoice total
invoice.currency (required)StringInvoice currency code (i.e, EUR, USD, CAD)
customerObjectCustomer details
customer.contactIdStringCustomer’s contact ID
customer.isGuestBooleantrue if the customer a returning guest
customer.nameObjectCustomer's name
customer.name.prefixStringName prefix
customer.name.firstStringFirst name
customer.name.middleStringMiddle name
customer.name.lastStringLast name
customer.name.suffixStringName suffix
customer.phoneStringCustomer's phone number
customer.emailStringCustomer's email
rooms (required)Array[object]Room details
rooms.idStringRoom ID
rooms.beds (required)Array[object]Room's bed list
kind (required)StringType of bed
kind.maxOccupancy (required)NumberRoom's occupancy number
kind.amenities (required)Array[string]List of amenities reserved

Get the Confirmation and the Reservation Activity JSON.

RESERVATION

Copy

CONFIRMATION

Copy

Cancel

PropertyTypeDescription
cancelDate (required)DateTimeReservation cancel date
refund (required)ObjectRefund details
refund.kind (required)"FULL", "PARTIAL", or "NONE"Type of refund
refund.total (required)NumberTotal amount to refund
refund.currency (required)StringRefund currency code (i.e, EUR, USD, CAD)
refund.notesStringNotes about this refund
refund.destination (required)StringRefund's destination (credit card, cash, etc)
reservationIdStringReservation ID
guests (required)ObjectGuests details
guests.total (required)NumberNumber of guests
guests.adults (required)NumberNumber of adult guests
guests.children (required)NumberNumber of child guests
stay (required)ObjectStay dates
stay.checkin (required)DateTimeCheckin date
stay.checkout (required)DateTimeCheckout date
rates (required)Array[object]Rate details
rates.date (required)DateTimeRate date
rates.subtotal (required)NumberSubtotal amount (without taxes)
rates.taxes (required)Array[object]Tax details
rates.taxes.name (required)StringTax name (occupancy tax, resort fee, etc)
rates.taxes.total (required)NumberTax total amount
rates.taxes.currency (required)StringTax currency code (i.e, EUR, USD, CAD)
rates.total (required)NumberTotal amount
rates.currency (required)StringRate currency code (i.e, EUR, USD, CAD)
invoice (required)ObjectReservation invoice details
invoice.subtotal (required)NumberInvoice subtotal
invoice.total (required)NumberInvoice total
invoice.currency (required)StringInvoice currency code (i.e, EUR, USD, CAD)
customerObjectCustomer details
customer.contactIdStringCustomer’s contact ID
customer.isGuestBooleantrue if the customer a returning guest
customer.nameObjectCustomer's name
customer.name.prefixStringName prefix
customer.name.firstStringFirst name
customer.name.middleStringMiddle name
customer.name.lastStringLast name
customer.name.suffixStringName suffix
customer.phoneStringCustomer's phone number
customer.emailStringCustomer's email
rooms (required)Array[object]Room details
rooms.idStringRoom ID
rooms.beds (required)Array[object]Room's bed list
kind (required)StringType of bed
kind.maxOccupancy (required)NumberRoom's occupancy number
kind.amenities (required)Array[string]List of amenities reserved

Get the Cancel Activity JSON.

Example:

Copy

Music

Use the following activities for music events in your app:

  • Track-Play: When a request to start playing a song is made
  • Track-Skip: When a track was skipped
  • Track-Played: When a song has completed its run
  • Track-Lyrics: When the track lyrics are requested
  • Track-Share: When a track is shared using the app
  • Album-Share: When an album is shared through your app
  • Album-Fan: When a visitor becomes a fan of an album
  • Album-Played: When an album has completed its run

Track-Play, Track-Skip, Track-Played, and Track-Lyrics

PropertyTypeDescription
track (required)ObjectTrack details
track.name (required)StringTrack name
track.idStringTrack ID
album (required)ObjectAlbum details
album.name (required)StringAlbum name
album.idStringAlbum ID
artistObjectArtist details
artist.name (required)StringArtist name
artist.idStringArtist ID

Get the Track-Play, Track-Skip, Track-Played, and Track-Lyrics Activity JSON.

TRACK-PLAY

Copy

TRACK-SKIP

Copy

TRACK-PLAYED

Copy

TRACK-LYRICS

Copy

Track-Share

PropertyTypeDescription
track (required)ObjectTrack details
track.name (required)StringTrack name
track.idStringTrack ID
album (required)ObjectAlbum details
album.name (required)StringAlbum name
album.idStringAlbum ID
artistObjectArtist details
artist.name (required)StringArtist name
artist.idStringArtist ID
sharedTo (required)"FACEBOOK", "GOOGLE_PLUS", "TWITTER", "BLOGGER", or "TUMBLR"Where item was shared

Get the Track-Share Activity JSON.

Example:

Copy

Album-Share

PropertyTypeDescription
album (required)ObjectAlbum details
album.name (required)StringAlbum name
album.idStringAlbum ID
artistObjectArtist details
artist.name (required)StringArtist name
artist.idStringArtist ID
sharedTo (required)"FACEBOOK", "GOOGLE_PLUS", "TWITTER", "BLOGGER", or "TUMBLR"Where item was shared

Get the Album-Share Activity JSON.

Example:

Copy

Album-Fan and Album-Played

album (required)ObjectAlbum details
album.name (required)StringAlbum name
album.idStringAlbum ID
artistObjectArtist details
artist.name (required)StringArtist name
artist.idStringArtist ID

Get the Album-Fan and the Album-Played Activity JSON.

ALBUM-FAN

Copy

ALBUM-PLAYED

Copy

eCommerce

Use the following activities for eCommerce events in your app:

  • Cart-add: An item was added to the cart.
  • Cart-remove: An item was removed from the cart.
  • Cart-abandon: A cart with these items was abandoned.
  • Cart-checkout: A checkout process has begun with this cart.
  • Purchase: The checkout process has completed.

Note: Does your app rely on getting eCommerce activities that happened in the site? Keep in mind that Wix’s eCommerce app, WixStores, currently posts only the purchase activity.

Cart-add and Cart-remove

|Property|Type|Description|
|---|---|---| 
|cartId (required)|String|Cart ID|
|storeId (required)|String|Store ID |
|storeName|String|Name of store|
|item (required)|Array[object]|Item added/removed from cart|
|item.id (required)|String|Item ID|
|item.type|"PHYSICAL" or "DIGITAL"|Item type|
|item.sku|String|Item SKU number|
|item.title (required)|String|Item's title|
|item.quantity (required)|Integer|Item's quantity|
|item**.price|Number|Item's price|
|item.formattedPrice|String|Price format (i.e, €0,99 or $0.99)|
|item.currency (required)|String|Currency code (i.e, EUR, USD, CAD)|
|item.productLink |String|Item's link|
|item.weight|Number|Item's weight|
|item.formattedWeight|String|Weight format|
|item.media|Object|Media details for this item (like a photo)|
|item.media.thumbnail|String|Link to the thumbnail |
|item.variants (required)|Array[object]|Item's variants (like a specific color or size)|
|item.variants.title (required)|String|Variant title|
|item.variants.value|String|Variant value|
|item.categories|Array[string]|Item's categories (such as shirt, summer sale, etc.)|
|item.metadata|Array[object]|Additional information about this item|
|item.metadata.name (required)|String|Metadata name|
|item.metadata.value (required)|String|Metadata value|

Get the Cart-add JSON and the Cart-remove JSON.

CART-ADD

Copy

CART-REMOVE

Copy

Cart-abandon and Cart-checkout

|Property |Type |Description|
|---|---|---| 
|cartId (required)|String|Cart ID|
|storeId (required)|String|Store ID |
|storeName|String|Name of store|
|items (required)|Array[object]|Items in cart|
|items.id (required)|String|Item ID|
|items.type|"PHYSICAL" or "DIGITAL"|Item type|
|items.sku|String|Item SKU number|
|items.title (required)|String|Item's title|
|items.quantity (required)|Integer|Item's quantity|
|items**.price|Number|Item's price|
|items.formattedPrice|String|Price format (i.e, €0,99 or $0.99)|
|items.currency (required)|String|Currency code (i.e, EUR, USD, CAD)|
|items.productLink |String|Item's link|
|items.weight|Number|Item's weight|
|items.formattedWeight|String|Weight format|
|items.media|Object|Media details for this item (like a photo)|
|items.media.thumbnail|String|Link to the thumbnail |
|items.variants (required)|Array[object]|Item's variants (like a specific color or size)|
|items.variants.title (required)|String|Variant title|
|items.variants.value|String|Variant value|
|items.categories|Array[string]|Item's categories (such as shirt, summer sale, etc.)|
|items.metadata|Array[object]|Additional information about this item|
|items.metadata.name (required)|String|Metadata name|
|items.metadata.value (required)|String|Metadata value|

Get the Cart-abandon JSON and the Cart-checkout JSON.

CART-CHECKOUT

Copy

CART-ABANDON

Copy

Purchase

|Property |Type |Description|
|---|---|---| 
|cartId (required)|String|Cart ID|
|storeId (required)|String|Store ID|
|storeName|String|Name of store|
|orderId (recommended)|String|Order ID|
|items (required)|Array[object]|Purchased items|
|items.id (required)|String|Item ID|
|items.type|"PHYSICAL" or "DIGITAL"|Item type|
|items.sku|String|Item SKU number|
|items.title (required)|String|Item's title|
|items.quantity (required)|Integer|Item's quantity|
|items**.price|Number|Item's price|
|items.formattedPrice|String|Price format (i.e, €0,99 or $0.99)|
|items.currency (required)|String|Currency code (i.e, EUR, USD, CAD)|
|items.productLink |String|Item's link|
|items.weight|Number|Item's weight|
|items.formattedWeight|String|Weight format|
|items.media|Object|Media details for this item (like a photo)|
|items.media.thumbnail|String|Link to the thumbnail |
|items.variants (required)|Array[object]|Item's variants (like a specific color or size)|
|items.variants.title (required)|String|Variant title|
|items.variants.value|String|Variant value|
|items.categories|Array[string]|Item's categories (such as shirt, summer sale, etc.)|
|items.metadata|Array[object]|Additional information about this item|
|items.metadata.name (required)|String|Metadata name|
|items.metadata.value (required)|String|Metadata value|
|payment (required)|Object|Payment details|
|payment.total (required)|Number|Payment total|
|payment.subTotal (required)|Number|Payment subtotal|
|payment.formattedTotal|String|Formatted total|
|payment.formattedSubTotal|String|Formatted subtotal|
|payment.currency (required)|String|Currency code (i.e, EUR, USD, CAD)|
|payment.coupon|Object|Coupon details|
|payment.coupon.total (required)|Number|Amount the coupon deducted from the total price|
|payment.coupon.FormattedTotal|String|Formatted coupon total|
|payment.coupon.title (required)|String|Coupon title|
|payment.tax|Object|Payment's tax details|
|payment.tax.total (required)|Number|Tax total|
|payment.tax.formattedTotal|String|Formatted tax total|
|payment.shipping|Object|Shipping details|
|payment.shipping.total (required)|Number|Shipping total|
|payment.shipping.formattedTotal|String|Formatted shipping total|
|shippingAddress|Object|Shipping address details|
|shippingAddress.firstName|String|Recipient's first name|
|shippingAddress.lastName|String|Recipient's last name|
|shippingAddress.email|String|Recipient's email|
|shippingAddress.phone|String|Recipient's phone|
|shippingAddress.country|String|Recipient's country|
|shippingAddress.countryCode|String|Recipient's country code|
|shippingAddress.region|String|Recipient's region|
|shippingAddress.regionCode|String|Recipient's region code|
|shippingAddress.city|String|Recipient's city|
|shippingAddress.address1|String|Recipient's address| |shippingAddress.address2|String|Recipient's address, part 2| |shippingAddress.zip|String|Recipient's postal code| |shippingAddress.company|String|Recipient's company| |billingAddress|Object|Billing address details| |billingAddress.firstName|String|Buyer's first name| |billingAddress.lastName|String|Buyer's last name| |billingAddress.email|String|Buyer's email| |billingAddress.phone|String|Buyer's phone| |billingAddress.country|String|Buyer's country| |billingAddress.countryCode|String|Buyer's country code| |billingAddress.region|String|Buyer's region| |billingAddress.regionCode|String|Buyer's region code| |billingAddress.city|String|Buyer's city| |billingAddress.address1|String|Buyer's address| |billingAddress.address2|String|Buyer's address, part 2| |billingAddress.zip|String|Buyer's postal code| |billingAddress.company|String|Buyer's company| |paymentGateway|String|Payment gateway name| |note|String|Notes about the purchase| |buyerAcceptsMarketing|Boolean|True if the buyer opts to receive marketing emails from the vendor|

Get the Purchase Activity JSON.

Example

Copy

Messaging

Use the following activity for chat and other messaging events in your app:

  • im: when a chat/sms message is sent between a Wix user and a site visitor/contact.

im

PropertyTypeDescription
type (required)‘chat’ or ‘sms’Type of message: * chat - message sent to /received from the user’s site. * sms - message sent to / received from the user’s mobile phone
content (required)Array[objects]Information about the message
content.direction (required)‘BUSINESS_TO_CUSTOMER’, ‘CUSTOMER_TO_BUSINESS’Message direction: * BUSINESS_TO_CUSTOMER - the Wix user sent an message to the site visitor/contact. * CUSTOMER_TO_BUSINESS - the Wix user received an message from a site visitor/contact
content.time (required)DateTimeTime the message was sent, as an ISO 8601 timestamp
content.message (required)StringMessage text
content.media (required)Array[objects]Information about any media files sent in the message
content.media.name (required)StringName of the media file
content.media.contentType (required)StringType of media file, i.e: image, video, document
content.media.url (required)StringURL of the media file
threadIdStringA ID for the conversation, to identify all messages that are part of this thread
metadataArray[objects]Additional information about the chat
name (required)StringMetadata property name
value (required)StringMetadata value

Get the im activity JSON.

Example

Copy

Events

Use the RSVP activity for RSVPs to events created by Wix users (like conferences, webinars, or parties).

RSVP

PropertyTypeDescription
eventId (required)StringID of the event
eventTitle (required)StringName of the event
eventDescriptionStringEvent description
totalNumberAttendeesNumberHow many guests will attend the event
priceObjectDetails about the event’s price
price.price (required)NumberPrice
price.currency (required)StringCurrency code (i.e, EUR, USD, CAD)
price.formattedPriceStringPrice format (i.e, €0,99 or $0.99)
locationObjectLocation of the event
location.nameStringLocation name
location.address (required)StringLocation address
timeObjectThe date & time of the event
time.start (required)DatetimeScheduled start time
time.endDatetimeScheduled end time
time.timeZone (required)StringTime zone

Get the rsvp activity JSON.

Example

Copy

Deprecated

  • The EVENTS_EVENT_UPDATE activity is now deprecated. Use the updated RSVP activity instead.
  • The CONTACT_CONTACT_FORM activity is deprecated. Use the updated contact-form activity or our new form activity (for other types of forms), instead.
  • The CONTACT_SUBSCRIPTION_FORM activity is now deprecated. Use the updated subscription-form activity instead.
  • The SEND_MESSAGE activity is deprecated. Use the IM activity instead.
Was this helpful?
Yes
No