Endpoints
| Method | Endpoint | Description |
|---|---|---|
| GET | /v1/campaigns/:campaign_id/conversions | List conversions |
| POST | /v1/conversions | Track a new conversion |
| POST | /v1/conversions/:id/reject | Reject a conversion (refund/cancel) |
| POST | /v1/conversions/:id/unreject | Unreject a conversion (restore) |
List Conversions
Get all conversions for a specific campaign.Query Parameters
| Param | Type | Default | Description |
|---|---|---|---|
| status | string | - | Filter: pending, approved, rejected |
| affiliate_id | string | - | Filter by affiliate |
| limit | number | 50 | Results per page |
| offset | number | 0 | Pagination offset |
Response
Track Conversion
Record a new conversion from your backend (Server-to-Server).Request Body
| Field | Type | Required | Description |
|---|---|---|---|
| campaign_id | string | ✅ | Campaign ID |
| affiliate_code | string | ✅* | Affiliate’s tracking code |
| click_id | string | ✅* | OR the baclique_id from cookie |
| external_id | string | ✅ | Your order/transaction ID (dedup) |
| amount | number | - | Conversion value (default: 0) |
| currency | string | - | 3-letter code (default: EUR) |
*Eitheraffiliate_codeORclick_idis required
Example with Affiliate Code
Example with Click ID
Response
Errors
| Code | Description |
|---|---|
| 400 | Missing required fields or duplicate conversion |
| 401 | Invalid API Key or Signature |
| 403 | Campaign budget exceeded or Affiliate suspended |
| 403 | Feature restricted to Pro plan |
Conversion Flow
Deduplication
Theexternal_id prevents duplicate conversions:
- If you send the same
external_idtwice, the second call returns an error - Use your order ID, transaction ID, or any unique identifier
Conversion Statuses
| Status | Description |
|---|---|
pending | Awaiting your approval |
approved | Commission will be paid to affiliate |
rejected | No commission (refund, fraud, etc.) |
Reject Conversion
Reject a conversion (e.g., for refunds or cancellations). This action refunds the commission amount to the campaign budget. Only works during the maturation period.Path Parameters
| Param | Type | Description |
|---|---|---|
| id | string | Conversion ID |
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
| reason | string | - | Optional rejection reason |
Example
Response
Errors
| Code | Description |
|---|---|
| 404 | Conversion not found |
| 400 | Conversion already rejected |
| 400 | Outside maturation period |
Unreject Conversion
Restore a previously rejected conversion. This action deducts the commission amount from the campaign budget again. Only works during the maturation period.Path Parameters
| Param | Type | Description |
|---|---|---|
| id | string | Conversion ID |
Example
Response
Errors
| Code | Description |
|---|---|
| 404 | Conversion not found |
| 400 | Conversion is not rejected |
| 400 | Outside maturation period |