Track purchase events
[CLIENT_ID]
: Unique identifier for the client application, provided by Playfull[GAME_ID]
: Unique identifier for the game sending the event, provided by Playfull[GENERATED_SIGNATURE]
: A signature that verifies the integrity of the request (see Signature Generation)[USER_ID]
: The game's own internal user identifier
POST /v2/custom-events
x-client-id: "[CLIENT_ID]",
x-timestamp: "1698306156387",
x-signature: "[GENERATED_SIGNATURE]",
Content-Type: "application/json"
{
"gameId": "[GAME_ID]",
"events": [
{"userId": "[USER_ID]", "event": "PURCHASE", "traits": {"usd": 1.3, "item_id": "A_GOOD_WEAPON"}, "time": "2023-10-24T03:45:00.000Z"}
],
}