List conversions
Returns the conversions for the authenticated merchant account. Filterable by affiliate, campaign, and status.
Returns the conversions for the authenticated merchant account. Filterable by affiliate, campaign, and status.
Authorization
bearerAuth API key issued from the merchant dashboard (prefix rc_live_ / rc_test_). Sent as Authorization: Bearer <token>. Used by the SDK and any direct server-to-server integration.
In: header
Query Parameters
Page size, clamped to 100.
Number of items to skip.
Filter by affiliate id.
Filter by campaign id.
ISO-8601 date lower bound.
ISO-8601 date upper bound.
Minimum conversion amount.
Maximum conversion amount.
Filter by conversion status.
Response Body
application/json
application/json
application/json
application/json
curl -X GET "https://app.refcampaign.com/api/v1/conversions"{
"success": false,
"error": {
"code": "UNAUTHORIZED",
"message": "string",
"details": null
},
"meta": {
"timestamp": "2019-08-24T14:15:22Z",
"requestId": "string"
}
}{
"success": false,
"error": {
"code": "UNAUTHORIZED",
"message": "string",
"details": null
},
"meta": {
"timestamp": "2019-08-24T14:15:22Z",
"requestId": "string"
}
}{
"success": false,
"error": {
"code": "UNAUTHORIZED",
"message": "string",
"details": null
},
"meta": {
"timestamp": "2019-08-24T14:15:22Z",
"requestId": "string"
}
}{
"success": false,
"error": {
"code": "UNAUTHORIZED",
"message": "string",
"details": null
},
"meta": {
"timestamp": "2019-08-24T14:15:22Z",
"requestId": "string"
}
}Refund a conversion and claw back its commission POST
Signals that a previously reported conversion was refunded or charged back. Intended for merchants billing outside Stripe Connect (e.g. Shopify Payments), where RefCampaign receives no refund webhook. The conversion is identified by its `externalId`. Omit `amount` for a full refund, or pass the refunded amount in minor units (cents, in the conversion currency) for a partial refund. Pass `refundExternalId` for each merchant refund event so successive partial refunds accumulate while retries of the same refund remain no-ops. Pending commissions are rejected; already-paid commissions get a prorated negative clawback entry. Legacy calls without `refundExternalId` remain idempotent: a second call on an already-refunded conversion is a no-op.
Get conversion summary metrics GET
Returns aggregated conversion revenue, commission and count metrics for a period, optionally grouped by status or campaign.