Documentation Index
Fetch the complete documentation index at: https://docs.mgpass.net/llms.txt
Use this file to discover all available pages before exploring further.
Prerequisites
- An mgPass partner account with an API key (provided by MG Digital)
- Your platform’s user IDs mapped to mgPass user IDs
Step 1: Get Your API Key
Your API key is issued when you’re onboarded as a partner. It looks like this:Step 2: Publish Your First Event
Step 3: Check the User’s Balance
Users can check their balance through your app using their OAuth token:What Happens Behind the Scenes
When you publish an event:- Rule matching — The engine finds the best rule for this
event_type+ user’stier - Point calculation — Base points from the rule, multiplied by the tier multiplier
- Cap enforcement — Daily and monthly caps are checked and enforced
- Atomic credit — Points are added to the ledger and balance in a single transaction
- Tier promotion — If lifetime points cross a threshold, the user is promoted
Next Steps
- Full partner integration guide — event types, metadata, caps, webhooks
- Cashback guide — converting points to mobile money
- Error handling — handling rate limits and validation errors

