Validate your first creator code
Before tracking purchases, you must validate the creator code in the client. This ensures the code is in the program and lets you:
- give immediate feedback to the player (Valid / Not found)
- prevent a checkout flow that will later be rejected
- store the valid code for use during the purchase flow
After a code is validated, you should persist it (session/local/in-memory) so that when the player completes a purchase, your backend can include the same code in the attribution request.
Validation request
Section titled “Validation request”Validation is a public-key route, so it is safe to call from a game client.
GET
/manage/members/{memberCode}curl -G "$NEXUS_BASE_URL/manage/members/thesearing" \ -H "X-SHARED-SECRET: $NEXUS_PUBLIC_KEY" \ --data-urlencode "groupId=$NEXUS_GROUP_ID"View full referenceParameters, responses, and status codes.
The validation call returns one of two outcomes:
200valid code in this program400no matching member in this program
400 should be treated as a normal “no such code” condition, not an exception.
Response
Section titled “Response”{ "groupId": "2ixlNNFdJh-9scoXek80w", "groupName": "Creator Loop", "groupDefaultRevShare": 10, "id": "Hv98bvRCSm1jDDPhls1qC", "name": "The Searing Podcast", "logoImage": "https://cdn.nexus.gg/FzVN5qcpr8s8irlokp/iQJWVLokKREqYXPxkO/images/logo-image.jpg", "tier": { "id": "M9cgAXgP3DqyuZcoszkeE", "name": "Tier 2", "revShare": 15 }, "codes": [ { "code": "thesearing", "isPrimary": true, "isGenerated": false, "isManaged": false } ]}Next steps
Section titled “Next steps”Track a purchaseSend the validated code in an attribution after checkout.