> Documentation index: https://docs.zernio.com/llms.txt. Every page is also Markdown: add .md to its URL.

# Conversions

Send sales and shopping events to Criteo server to server from your backend, matched by the shopper's hashed email, and keep them apart from the OneTag.

`POST /v1/events` sends your conversions to Criteo's server-to-server (S2S) website events endpoint. The destination is the connection's partner ID.

## Send a conversion event

Name the Criteo account and its partner ID. Send the shopper's email, IP address and user agent, the page URL and the order lines:

```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": "12345" }],
    "events": [{
      "eventName": "Purchase",
      "eventTime": 1798804800,
      "eventId": "order_12345",
      "currency": "USD",
      "sourceUrl": "https://shop.example.com/checkout/thank-you",
      "items": [{ "id": "SKU-1", "price": 12.50, "quantity": 2 }],
      "user": { "email": "ana@example.com", "ipAddress": "203.0.113.7", "userAgent": "Mozilla/5.0 ..." }
    }]
  }'
```

To send every conversion to Criteo without naming it each time, create a [forwarding rule](/conversions/create-forwarding-rule) for the account instead.

## Event names

Criteo's S2S endpoint takes a fixed list of events. Zernio maps the standard names:

| `eventName` | Criteo event | Also needs |
|---|---|---|
| `Purchase` | `trackTransaction` | `items` with `id` and `price` |
| `AddToCart` | `addToCart` | `items` with `id` and `price` |
| `InitiateCheckout` | `beginCheckout` | `items` with `id` and `price` |
| `AddPaymentInfo` | `addPaymentInfo` | |
| `ViewContent` | `viewItem` | `items[0].id` |
| `PageView` | `viewPage` | |

Any other name is refused. Rename an event in the forwarding rule when yours is named otherwise.

## Match keys

Each event needs `user.email`. Zernio trims and lowercases it and sends its SHA-256 hash; an email you already hashed with SHA-256 goes as is.

Criteo also needs `user.ipAddress` and `sourceUrl`, and uses `user.userAgent` when you send it.

Phone, name, location, `externalId` and click ids are not sent.

## What else is sent

- The event time as `timestamp`, in UTC. Criteo attributes best on events sent within 15 minutes, so send them as they happen.
- On a sale, `platformData.order_id`, or else `eventId`, as the order `id`.
- The order lines as `item` (`id`, `price`, `quantity`; a line without a quantity counts once), with `currency`. Lines without an `id` or `price` are left out.

## Dedup with the OneTag

Criteo does not dedupe a server event against the same event from the browser OneTag.

Send each event one way only. For example, keep the OneTag for browsing and send `Purchase` from the server, with the OneTag's `trackTransaction` removed.

## From the Zernio tag

A forwarding rule sends Criteo your site's purchases, from visitors with an email.

Product views, carts and checkouts go only when you list them in the rule's web events, since the OneTag usually covers browsing.

## Consent

- Without `adUserData` consent, nothing is sent: each event is dropped with `consent_denied`.
- On profiles created since 22 November 2026, 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).

## Test mode

Criteo has no test mode for server events, so an event sent with `testCode` is not sent to Criteo: it fails with `TEST_MODE_UNSUPPORTED`.

## How it behaves

- One request per event, five at a time, so a refused event never fails the others.
- Criteo answers `200` to every call and lists what it refused in the answer. An answer with errors, or an empty one, fails the event for good with Criteo's errors in the message (`CRITEO_REJECTED`).
- Only a `429` is retried. Criteo documents no dedup, so an event that got no answer or a `5xx` is not sent twice.
- Criteo cannot take a refund or a change back, so a retracted event stays counted there.

## If it fails

| Error | Cause | Fix |
|-------|-------|-----|
| `Criteo matches a server event by the person's email …` | No `user.email` | Send the shopper's email. |
| `Criteo needs the visitor's IP address …` | No `user.ipAddress` | Send the IP address of the shopper's browser. |
| `Criteo needs the page the event happened on …` | No `sourceUrl` | Send the page URL. |
| `Criteo takes only Purchase, AddToCart, …` | The event name has no Criteo event | Rename it in a forwarding rule. |
| `Criteo needs the products on …` | No `items` with `id` and `price` | Send the order lines. |
| `Criteo refused the event: …` | Criteo found the payload malformed | Fix the field Criteo names. |
| `destinationId must be this connection's Criteo partner ID` | Another id was sent | Use the id from `GET /v1/ads/conversions/destinations`. |
| `401` with `reconnect_required` | The connection has no partner ID | [Connect again](/platforms/criteo-ads/connect). |

## Related

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