Drop2Run docs
Drop2Run.Api | v1

The code an account invites other people with, and how many have signed up through it. The code is generated on first request and never chosen; a sign-up carrying it is recorded against the new account once, when that account is created.


Returns the caller's referral code, who signed up with it, and progress towards each reward.

GET
https://dropto.run
/api/referrals
d2r_session (cookie)
or
Bearer

Returns the caller's referral code, who signed up with it, and progress towards each reward. › Responses

OK

Response of `GET /referrals`.
claimableUntil
​null | string · date-time · required

Until when the caller may still enter the code of whoever invited them, or null when they may not: they already have a referrer, or the time allowed after signing up has passed.

code
​string · required

The caller's referral code. A link to share is the site address with /r/ and this code.

​ReferredPerson[] · required

Those people, newest first, up to a hundred.

qualified
​integer | string · int32 · pattern: ^-?(?:0|[1-9]\d*)$ · required

How many of those count: their address is confirmed and a site of theirs has stayed live long enough.

qualifyAfterDays
​integer | string · int32 · pattern: ^-?(?:0|[1-9]\d*)$ · required

How many days an invited person's site has to stay live before they count.

​ReferralRewardProgress[] · required

What inviting people earns right now, and how far along the caller is with each.

signups
​integer | string · int32 · pattern: ^-?(?:0|[1-9]\d*)$ · required

How many people have signed up through the code and confirmed their address, whatever became of the referral since. Somebody who has not confirmed yet is not counted.

​OfferedPromotion[] · required

What somebody who signs up with the code is given right now.


Records who invited the caller, for a few days after they signed up without a code.

POST
https://dropto.run
/api/referrals/claim
d2r_session (cookie)
or
Bearer

Records who invited the caller, for a few days after they signed up without a code. › Request Body

Body of `POST /referrals/claim`.
code
​string · maxLength: 64 · required

The referral code, as typed. Case does not matter.

Records who invited the caller, for a few days after they signed up without a code. › Responses

OK

What entering a referral code after signing up leads to.
​OfferedPromotion[] · required

What the account is given for having been invited, once its email address is confirmed and the referral has been looked at. Empty when no reward for newcomers is running.


Returns what inviting somebody can still earn the caller. Never creates a referral code.

GET
https://dropto.run
/api/referrals/offer
d2r_session (cookie)
or
Bearer

Returns what inviting somebody can still earn the caller. Never creates a referral code. › Responses

OK

Response of `GET /referrals/offer`.
accountId
​string · required

The account a reward for inviting would be added to: the caller's own.

​OfferedPromotion[] · required

Those of Rewards that one more counted referral would give the caller, in the same order: a reward paid for every referral, or a milestone the caller is one short of. Empty when the nearest reward is further off than that. It is what lets a page say "invite somebody and earn this" and have it be true — a milestone three referrals away is not what inviting one person earns.

​OfferedPromotion[] · required

What inviting people can still earn the caller right now. Empty when no reward for inviting is running, or the caller has already been given all of them.

​OfferedPromotion[] · required

What somebody who signs up with the caller's code is given right now.


Shows what signing up with a referral code gives the newcomer. Needs no session.

GET
https://dropto.run
/api/referrals/preview
d2r_session (cookie)
or
Bearer

Shows what signing up with a referral code gives the newcomer. Needs no session. › query Parameters

code
​string

Shows what signing up with a referral code gives the newcomer. Needs no session. › Responses

OK

Response of `GET /referrals/preview`.
​OfferedPromotion[] · required

What an account created with the code is given once its email address is confirmed. Empty when the code works and no reward for newcomers is running.