API

Redeem code

When a customer types a creator promo code in-app, the SDK calls this so the install is attributed even without a prior click match. That is the second attribution path.

POST /redeemCode
{ "code": "SAVE10", "appUserId": "user_123", "attributionId": "optional", "installId": "optional", "requestId": "optional-uuid" }

Codes are normalized to A-Z and 0-9, max length 24. Codes aren't case sensitive.

requestId is optional. Send a UUID per code attempt and reuse it on retries when the reply is lost (timeouts, offline). The server returns the original success payload without creating another attribution or customer.

Response includes the same offer object as ingestInstall. The SDK stores it for getOffer().

Errors

Failures return { "error": "<code>" }. Success bodies are unchanged.