eCommerce Integration with Donation Campaigns

When integrating donation campaigns into an eCommerce cart, checkout, or order, you must use the catalogReference object structure. This guide explains how to properly format and use the catalogReference object for donation campaigns in various eCommerce API methods.

Pass the catalogReference object as part of the lineItems array in the following eCommerce API methods:

Catalog Reference Object Structure

The catalogReference object for donation campaigns includes the following fields:

FieldTypeDescription
catalogItemIdStringRequired. The donationCampaignId of the donation campaign.
appIdStringRequired. The Wix Donation Campaigns app ID - always "333b456e-dd48-4d6b-b32b-9fd48d74e163"
optionsObjectRequired. An object containing additional donation-specific settings (see below).

Options Object Structure

The options object contains the following fields:

FieldTypeDescription
amountNumberRequired. The donation amount. Must be greater than 0.
frequencyStringSubscription frequency for recurring donations. See values below.

Frequency Values

When specifying a recurring donation, use one of these frequency values:

ValueDescription
WEEKCreates a weekly recurring donation.
MONTHCreates a monthly recurring donation.
YEARCreates a yearly recurring donation.

Important Notes

  • The frequency field is optional. If omitted, the donation will be processed as a one-time payment.
  • Always include the correct appId value for the Wix Donation Campaigns app.

Example

One-time Donation

Copy

Monthly Recurring Donation

Copy
Did this help?