---
title: "Track Customer Conversions (CAPI)"
method: POST
path: "/v3/metainfo/dispatch_capi_event"
tags: ["Conversion Tracking"]
---

# Track Customer Conversions (CAPI)

`POST /v3/metainfo/dispatch_capi_event`

## Request

- Base URL: `https://cpaaswa.netcorecloud.net/api`
- URL: `https://cpaaswa.netcorecloud.net/api/v3/metainfo/dispatch_capi_event`
- Auth: HTTP bearer

The Conversions API (CAPI) allows businesses to send data about key customer interactions and conversions from WhatsApp conversations to Meta for improved ad targeting and performance measurement.

## Headers

- `Content-Type` string, required

## Request body

- ConversionEventRequest
  - `data` ConversionEvent[], required: Array of conversion events to track
    - `event_name` 'Purchase' | 'Lead' | 'CompleteRegistration' | 'Subscribe' | 'StartTrial' | 'AddToCart' | 'InitiateCheckout' | 'AddPaymentInfo' | 'ViewContent' | 'Contact' | 'CustomizeProduct' | 'Donate' | 'FindLocation' | 'Schedule' | 'Search' | 'SubmitApplication', required: Standard or custom event name
    - `event_time` integer, required: Event timestamp in Unix epoch time
    - `action_source` 'business_messaging', required: Source of the action
    - `messaging_channel` 'whatsapp', required: Messaging platform
    - `user_data` ConversionUserData, required: User identification data (at least one field required)
      - `mobile_number` string: Customer's mobile number with country code
      - `ctwa_clid` string: Click-to-WhatsApp Click ID for attribution
    - `custom_data` ConversionCustomData: Additional event-specific data
      - `currency` string: Currency code for monetary events (ISO 4217)
      - `value` number: Monetary value of the event
      - `content_ids` string[]: Product or content identifiers
      - `content_type` 'product' | 'product_group' | 'service' | 'article': Type of content
      - `order_id` string: Unique order identifier
      - `content_name` string: Name of the content/product
      - `content_category` string: Category of the content/product
      - `num_items` integer: Number of items in the event
      - `search_string` string: Search query (for search events)

## Response `200`

**Conversion Event Tracked Successfully**

The conversion event has been processed and sent to Meta's systems.

```json
{
    "status": "success",
    "message": "Request processed successfully",
    "data": {
        "events_received": 1,
        "fbtrace_id": "AvuDhHGXLFxN8VAnWuV4E8o"
    }
}
```

- ConversionResponse
  - `status` 'success', required
  - `message` string, required
  - `data` object
    - `events_received` integer: Number of events processed
    - `fbtrace_id` string: Facebook trace ID for debugging

## Other responses

- `400`: **Invalid Conversion Data** The conversion event data is invalid or missing required fields. Common Issues: - Missing ctwa_clid for CTWA campaigns - Invalid mobile number format - Missing required event fields - Invalid timestamp format ```json { "status": "failure", "message": "Meta API returned error", "data": { "error": { "message": "Invalid parameter", "type": "OAuthException", "code": 100, "error_subcode": 2804071, "error_user_title": "Missing CTWA clid", "error_user_msg": "Your event is missing a ctwa_clid parameter." } } } ```
- `404`: **Invalid WABA ID or Configuration** The WhatsApp Business Account ID is invalid or not properly configured. ```json { "status": "failure", "message": "Invalid WABA ID", "data": null } ```
- `500`: **Internal Server Error** Unexpected server error occurred. ```json { "status": "error", "message": "Internal server error. Please try again later.", "error_code": "INTERNAL_ERROR" } ```

---

[API](https://skmtc.dev/netcorecloud/apis/whatsapp-api.md) - [All operations](https://skmtc.dev/netcorecloud/apis/whatsapp-api/llms.txt) - [OpenAPI document](https://skmtc.dev/netcorecloud/apis/whatsapp-api/revisions/82cdf689fb7a?raw)
