/api/v1/salesRecord a sale charged elsewhere
If you charge outside Clonify (your own gateway, Hotmart, ThriveCart…), record each sale here and the affiliate program works as if the charge were ours: the sale is attributed by the buyer’s email (the lead rules) or by the affiliate’s ref code if it travelled to your checkout, and the commission uses your rate and your terms. The affiliate sees it in their portal right away. Idempotent by order_ref: resending the same sale returns already_recorded and duplicates nothing — retry without fear. Built to be fired from n8n, Make or Zapier when a sale closes.
Body (JSON)
emailstring (email)requiredThe buyer’s email. It links the sale to its lead — and to the affiliate who brought them.
amount_centsintegerrequiredAmount charged, in cents (€1,997 → 199700).
order_refstring 1..120requiredYour system’s order number: the sale’s identity. Resending never duplicates, and the refund is recorded against it.
product_idintegerrequiredThe Clonify product card for what was sold (GET /api/v1/products for ids). Selling elsewhere? The external-link card works.
refstringAffiliate code (?ref=) carried to your checkout, if you have it. The safety net in case the buyer pays with a different email.
currencystring ISO-3EUR only for now ("eur" or omitted). Any other currency returns 400: convert to euro cents before sending.
namestringcurl -X POST "https://www.clonify.com/api/v1/sales" \
-H "Authorization: Bearer clk_live_…" \
-H "Content-Type: application/json" \
-d '{"email":"…","amount_cents":1,"order_ref":"…","product_id":1}'{
"object": "sale",
"order_ref": "PED-1042",
"product_id": 12,
"product_title": "Máster Ejecutivo",
"amount_cents": 199700,
"already_recorded": false,
"affiliate": { "name": "Ana Ruiz", "code": "a7fk29" }
}