AlmondTill/G3N API

On this page

claimReferralCode

mutation · in the family Billing and the wallet

What it does

Claim your group’s one referral code. Businesses that sign up with it get 50% off their base fee for 3 months, and your group earns on their collected fees and first-year usage once AlmondTill approves each referral.

Claim your group's ONE referral code: a generated code owned by your group, carrying the two-sided standard (the referred business gets 50% off its base fee for 3 cycles; you earn on their collected fees and their first-year kernel consumption once AlmondTill approves each referral). Requires APPROVED affiliate standing (AlmondTill grants it — ask us; a default waiting period applies from your signup). One code per group, forever — a second claim refuses naming the standing code. Requires the unrestricted capability. Template class A16_BILLING (hand-derived v94).

What happens

Requires approved affiliate standing (AlmondTill grants it). One code per group, forever.

Who may call it

Capability area: Billing and the wallet — Your platform bill, token purchases and the usage and cost reads.

Returns

ClaimedReferralCode ClaimedReferralCode! — Your group's claimed referral code.

Example request

mutation ExampleClaimReferralCode {
  claimReferralCode {
    code
    promotionPercent
    promotionCycles
  }
}

Send it with the envelope naming the version: "extensions": {"at": {"version": {"name":"genesis","number":0}}}.

Example response

{
  "data": {
    "claimReferralCode": {
      "code": "BJ-001",
      "promotionPercent": 1,
      "promotionCycles": 1
    }
  },
  "extensions": {
    "at": {
      "callId": "01EXAMPLE-CALL-ID",
      "version": {
        "requested": {
          "name": "genesis",
          "number": 0
        },
        "serviced": {
          "name": "genesis",
          "number": 0
        }
      }
    }
  }
}

Errors this call can answer