Please enable JavaScript.
Coggle requires JavaScript to display documents.
Code Gifts, User A - Coggle Diagram
Code Gifts
View Code in APP
GET from API GW: "ReferralCode" (GET api/customers/{id})
GET From Creatio Account
For new users: Create new code on every onboarding request. UsrReferralCode
For existing users: create from script
Suggestion: use Brim id for all?
Use last part of user GUID
GET from Account Details api endpoint
APP prepares a public link, example:
https://ftth.iq/referral-code?code=12323dafda
Share aia whatever means in APP:
whatsapp, messaging, copy link ... etc
Use Code
Deep link in APP
IT: Configure domain (
https://ftth.iq
) with redirect JSON
Redirect to onboarding form
Auto fill code when sending request to API GW: ReferralCode
API GW Sends code to Creatio: UsrRedeemedCode
Creatio links redeemed code in Account details: UsrRedeemedCode
Low priority: Show redeem code in onboardiing form: readonly
Anonymous onboarding from portal Web?
User manually enters code or full link and send in onboarding form: "ReferralCode"
Benefit Code
User Purchases from trial
Send event for trial has been purchased (Already implemented)
API GW checks used referral codes from Creatio Account
Gift both code owner and code benefiter 5K IQD
Wallet transsfer from Account X (configurable account)
to both code owners and benefiters
Retry mechanism for next release (manual, periodic by cron .. etc)?
What if Account X wallet is empty?
What if transfer fails?
Brim creates transaction: Source (Account Xor "Referral Gifts") and target code owner or benefitter (current user)
Account X can be a different account mainly for codes redemption; can be called "Referral Gifts"
Multiple contracts?
User A
Code A
Onboarding Request
User B
Code B
Account Entity: Code B and Code A