RefCampaign/docs
Référence APIConversions

Track a server-to-server postback conversion

Records a cookieless conversion from a merchant server. Use `sessionId` or `rcsid` from the redirect/SDK flow when available. Use `clickId` or `cid` only when the integration has the real click id; otherwise pass a `customerEmailHash` or `customerEmail` for email-hash fallback matching.

POST
/api/v1/conversions/postback

Records a cookieless conversion from a merchant server. Use sessionId or rcsid from the redirect/SDK flow when available. Use clickId or cid only when the integration has the real click id; otherwise pass a customerEmailHash or customerEmail for email-hash fallback matching.

Authorization

bearerAuth
AuthorizationBearer <token>

API key issued from the merchant dashboard. Sent as Authorization: Bearer <token>. Used by the SDK and any direct server-to-server integration.

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

curl -X POST "https://app.refcampaign.com/api/v1/conversions/postback" \  -H "Content-Type: application/json" \  -d '{    "amount": 1,    "currency": "str",    "externalId": "string",    "conversionType": "SALE"  }'
Empty
{
  "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"
  }
}
Empty
Empty
{
  "success": false,
  "error": {
    "code": "UNAUTHORIZED",
    "message": "string",
    "details": null
  },
  "meta": {
    "timestamp": "2019-08-24T14:15:22Z",
    "requestId": "string"
  }
}