> ## Documentation Index
> Fetch the complete documentation index at: https://docs.cevoid.com/llms.txt
> Use this file to discover all available pages before exploring further.

# sale.complete

> Analytics SDK payload reference for the sale.complete conversion event.

Sent by `trackSale()` when a completed purchase is tracked. The SDK emits the browser event `cevoid:sale.complete` and sends the internal event `sale.complete`.

<Panel>
  <RequestExample>
    ```ts SDK input theme={"theme":{"light":"github-light","dark":"github-dark"}}
    trackSale({
      orderId: 'order_123',
      marketId: 'market_123',
      customerId: 'cust_456',
      currency: 'USD',
      revenue: 129.99,
      skus: ['SKU-1', 'SKU-2']
    })
    ```
  </RequestExample>

  <ResponseExample>
    ```json Browser event detail theme={"theme":{"light":"github-light","dark":"github-dark"}}
    {
      "orderId": "order_123",
      "marketId": "market_123",
      "customerId": "cust_456",
      "currency": "USD",
      "revenue": 129.99,
      "skus": ["SKU-1", "SKU-2"]
    }
    ```
  </ResponseExample>
</Panel>

The browser event is emitted as `cevoid:sale.complete`. The forwarded payload is available on `event.detail`.

## Payload fields

<ResponseField name="orderId" type="string" required>
  Order identifier.
</ResponseField>

<ResponseField name="marketId" type="string">
  Market identifier used for SKU resolution in telemetry.
</ResponseField>

<ResponseField name="customerId" type="string">
  Customer identifier.
</ResponseField>

<ResponseField name="currency" type="string" required>
  ISO currency code.
</ResponseField>

<ResponseField name="revenue" type="number" required>
  Decimal major-unit amount in `currency`.

  **Example:** `129.99`
</ResponseField>

<ResponseField name="skus" type="string[]">
  Purchased SKUs used for telemetry-side product resolution.
</ResponseField>

## Notes

* Provide `revenue` in the same currency as `currency`, for example `129.99` with `USD`.
* Use `trackSale(data)` for conversions rather than `trackEvent('sale.complete', ...)`.

## Related

* [Track Sales](/developer-docs/analytics/track-sales)
* [SDK API](../api)
