# Conversions

Send your conversions to a Mailchimp audience from your backend, as a tag and an event on each contact.

`POST /v1/events` sends your conversions to a Mailchimp audience. The destination is the audience id.

## Send a conversion event

Name the Mailchimp account and one of its audiences as the destination. Mailchimp files people by email, so it needs the address as typed:

```bash
curl -X POST "https://zernio.com/api/v1/events" \
  -H "Authorization: Bearer $ZERNIO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "profileId": "PROFILE_ID",
    "destinations": [{ "accountId": "ACCOUNT_ID", "destinationId": "AUDIENCE_ID" }],
    "events": [{
      "eventName": "Purchase",
      "eventTime": 1798804800,
      "eventId": "order_12345",
      "value": 25.99,
      "currency": "USD",
      "user": { "email": "customer@example.com" }
    }]
  }'
```

To send every conversion to Mailchimp without naming it each time, create a [forwarding rule](/conversions/create-forwarding-rule) for the account and pick the audience there.

## What Mailchimp gets

For each event, in this order:

1. The email is added to the audience as a **transactional** contact if it is new. Mailchimp sends no marketing email to a transactional contact, but it counts toward your Mailchimp plan's contact limit. A person already in the audience keeps their status: a subscriber stays subscribed, an unsubscribed one stays unsubscribed.
2. `firstName` and `lastName` fill the contact's first and last name, only where those are still empty.
3. The conversion is recorded as an event on the contact. Its name is the event name with any character other than a letter, a digit, `-` or `_` replaced by `_`, cut to 30 characters. Its properties are `value`, `currency`, `source` (the event's `actionSource`) and `event_id`, and it is dated at `eventTime`.
4. Once the event is recorded, the contact is tagged with the event name (up to 100 characters), such as `Purchase`.

Events trigger the customer journeys and segments built on them in Mailchimp.

## Consent

- An event whose `consent.adUserData` is `DENIED` is not sent, and shows as `dropped`: every Mailchimp event names the person.
- Zernio never subscribes anyone to marketing email: new contacts are always transactional.
- An event from the EEA, UK or Switzerland is sent only with `adUserData` granted and no ad signal denied. See [Consent](/products/server-side-tracking/consent).

## How it behaves

- From a tracked website, Mailchimp also gets product views, carts and checkouts, so customer journeys can start from them. Only visitors the site identified by email are sent; anonymous visitors are left out.
- Three conversions at a time per delivery, each as three or four requests in a row. Mailchimp allows 10 connections at once per account, shared by every delivery, so a busy account can be rate limited and its conversions sent again.
- Mailchimp keeps no id for an event. A failure before the event is recorded is retried; the event request itself is retried only when Mailchimp rate limits it, so a conversion is never recorded twice.
- Mailchimp has no test mode. A request with `testCode` is refused: test against a separate audience.

## If it fails

| Error | Cause | Fix |
|-------|-------|-----|
| `Mailchimp needs the unhashed email to add the person to the audience.` | No plain email | Send the email as typed. |
| `Mailchimp 400: Member In Compliance State` | The person unsubscribed, bounced or complained in this audience before | Mailchimp does not let them be added back through the API. They can rejoin through a Mailchimp signup form. |
| `Mailchimp 400: ... looks fake or invalid` | Mailchimp refused the address | Nothing to fix on Zernio's side. |
| `Mailchimp 404: Resource Not Found` | The audience was deleted, or belongs to another account | Pick a current audience from `GET /v1/ads/conversions/destinations`. |
| `Mailchimp 429` | Too many requests at once on the account | Zernio sends the conversion again. |
| `Mailchimp has no test mode: …` | The request has a `testCode` | Drop `testCode`, and test on a separate audience. |
| `401` with `reconnect_required` | Mailchimp refused the saved key | [Connect again](/platforms/mailchimp/connect) with a new key. |

## Related

- [Send events](/conversions/send-events)
- [Create a forwarding rule](/conversions/create-forwarding-rule)
- [Consent](/products/server-side-tracking/consent)
- [Limits and errors](/platforms/mailchimp/reference)