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

# Conversion webhooks

> Receive a POST when a purchase or sign-up is credited to a short-link click.

Owners can set a conversion webhook URL under **Settings → Conversions**. On each credited event TrimYourl POSTs JSON to that URL.

The request is not signed. Treat the payload as a notification and look up the link in your own system if you need to act on it.

## Payload

```json theme={null}
{
  "kind": "sale",
  "event": "purchase",
  "amountCents": 4999,
  "currency": "USD",
  "orderId": "1001",
  "linkId": "8f3c1a2b-4d5e-6789-abcd-ef0123456789",
  "slug": "spring-launch",
  "kid": "click-id"
}
```

| Field | Meaning |
| - | - |
| `kind` | `sale` for `purchase` / `sale` events, otherwise `lead` |
| `event` | The name you passed to `trimyourl("track", …)` or `POST /api/v1/convert` |
| `amountCents` | Integer cents. `0` when no value was sent |
| `currency` | ISO 4217 code |
| `orderId` | Deduplication key, or null |
| `linkId` | TrimYourl link id |
| `slug` | Current short name |
| `kid` | Click id that was credited |

Duplicates (`orderId` already credited) do not fire the webhook again.

Use the [tracking snippet](https://docs.trimyourl.com/features/conversions.md) or [POST /api/v1/convert](https://docs.trimyourl.com/api-reference/conversions/track-a-conversion) to send the event.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.