Identify a person and record what they did. Send contact to let RecoverKit message them. Up to 50 events per call.
{
"ids": ["<email hash>", "<phone hash>"],
"contact": { "email": "ada@shop.ng", "phone": "2348031234567", "firstName": "Ada" },
"anonId": "a_3f2c...", // optional: the browser SDK's anonymous id
"events": [
{ "type": "purchase", "amount": 150000, "currency": "NGN", "ref": "ORDER-1001" }
]
}
event types: purchase, wallet_funded, registered, checkout_started, custom
fields: type, amount (minor units; required for purchase and wallet_funded),
currency (3 letters), ref (your order/payment reference, no spaces),
name ([A-Za-z0-9_.:/-], up to 64), ts (milliseconds, up to 7 days old)Response
{ "ok": true, "person": "identified", "purchases": [ ... ] }