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

# Conversions

Send purchases, leads and shopping events to the Quora Conversion API from your backend, credited to the ad click by its qclid and counted once with the Quora pixel.

`POST /v1/events` sends your conversions to the Quora Conversion API. The destination is the connection's Account ID.

## Send a conversion event

Name the Quora Ads account and its Account ID. Send the `qclid` of the ad click, and the same `eventId` your Quora pixel sends:

```bash
curl -X POST "https://zernio.com/api/v1/events" \
  -H "Authorization: Bearer $ZERNIO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "profileId": "66a1f0c2a4b9d3e8f1a2b3c4",
    "destinations": [{ "accountId": "66b2e19d8c3f5a7e9d0b1c2d", "destinationId": "1234567890" }],
    "events": [{
      "eventName": "Purchase",
      "eventTime": '"$(date +%s)"',
      "eventId": "order_12345",
      "value": 25.00,
      "currency": "USD",
      "user": {
        "email": "ana@example.com",
        "ipAddress": "203.0.113.7",
        "clickIds": { "qclid": "QCLID_FROM_THE_CLICK" }
      }
    }]
  }'
```

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

## The click id

Quora credits a conversion to an ad click only by its `qclid`, so every event needs `user.clickIds.qclid`. Zernio refuses an event without one.

- Quora adds `qclid` to the landing URL of each ad click.
- The Quora pixel keeps it for 90 days in the `quora_qclid` cookie on your domain. Read the cookie on your server when the conversion happens.
- The Zernio site tag does not capture `qclid` yet, so send Quora conversions from your server.

## Event names

Zernio maps the standard names to Quora's events:

| `eventName` | Quora event |
|---|---|
| `Purchase` | `Purchase` |
| `Lead` | `GenerateLead` |
| `CompleteRegistration` | `CompleteRegistration` |
| `ViewContent` | `ViewContent` |
| `Search` | `Search` |
| `AddToCart` | `AddToCart` |
| `AddToWishlist` | `AddToWishlist` |
| `InitiateCheckout` | `InitiateCheckout` |
| `AddPaymentInfo` | `AddPaymentInfo` |

Quora's own names `Generic` and `AppInstall` go as is. Any other name is refused. Rename an event in the forwarding rule when yours is named otherwise.

## What else is sent

Quora takes the person's details unhashed, so Zernio sends them as you give them:

- `user.email` as `email`, trimmed and lowercased. An email you already hashed is left out.
- `user.phone` as `phone_number`, in E.164. A number without its country code is left out.
- `user.ipAddress` as `ip`, and `country`, `state`, `city` and `zip` as `country`, `region`, `city` and `postal_code`.
- `user.userAgent` as the device's `user_agent`.
- `eventId` as `event_id`, and the event time as `timestamp`, in microseconds.
- `value` as `value`. Quora takes no currency: send the value in your Quora account's currency.

Name, `externalId`, `sourceUrl`, items and every other click id are not sent.

## Dedup with the Quora pixel

Quora counts an event once by its `event_id`, whether it came from the Quora pixel or the Conversion API.

Send the same `eventId` your pixel sends for the event, and you can keep both running.

## Consent

- Outside the EEA, UK and Switzerland, without `adUserData` consent the email, phone and location are left out: only the click id, IP address and user agent are sent.
- 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

Quora has no test mode for the Conversion API, so an event sent with `testCode` is skipped (`TEST_MODE_UNSUPPORTED`), nothing is sent: `POST /v1/events` lists it in `skipped`, not in `failures`.

## How it behaves

- One request per event, five at a time.
- Quora can answer `200` and still refuse an event. Zernio reads the answer and fails that event with Quora's reason.
- A `429`, a `5xx` or no answer is retried: Quora drops a repeat by `event_id`.
- A `401` or `403` on every event means Quora refused the token: the send fails with `reconnect_required`.
- Quora cannot take a refund or a change back, so a retracted event stays counted there.

## If it fails

| Error | Cause | Fix |
|-------|-------|-----|
| `Quora attributes a conversion to an ad click by its click id …` | No `clickIds.qclid` | Send the `qclid` from the landing URL or the `quora_qclid` cookie. |
| `Quora takes Purchase, …` | The event name has no Quora event | Rename it in a forwarding rule. |
| `Quora refused the event: …` | Quora answered with the event refused | Fix the field Quora names. |
| `Quora 400: …` | Quora refused the payload | Fix the field Quora names. |
| `destinationId must be this connection's Quora Ads account ID` | Another id was sent | Use the id from `GET /v1/ads/conversions/destinations`. |
| `401` with `reconnect_required` | Quora refused the token, or the connection has none | Generate a new token and [connect again](/platforms/quora-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/quora-ads/reference)