Referral statistics

Endpoint for getting referral statistics

Returns usage and bonus statistics

GET https://papi.swapin.com/api/referral_stats

Query Parameters

Name
Type
Description

start

Date

Format YYYY-MM-DD

end

Date

Format YYYY-MM-DD

{
    "user_id": "1",
    "total": {
        "invoices": 8,
        "fees_eur": 3.91,
        "earned_eur": 0.98,
        "payouts_eur": 0,
        "pending_eur": 0.98,
        "codes": {
            "E4F0GToJe3BuZ": {
                "invoices": 3,
                "fees_eur": 2.31,
                "earned_eur": 0.58,
                "payouts_eur": 0,
                "pending_eur": 0.58
            },
            "qU2sUywOwin1X": {
                "invoices": 5,
                "fees_eur": 1.6,
                "earned_eur": 0.4,
                "payouts_eur": 0,
                "pending_eur": 0.4
            }
        },
        "signups": 2
    },
    "period": {
        "start": "2023-01-01",
        "end": "2023-02-28",
        "invoices": 8,
        "fees_eur": 3.91,
        "earned_eur": 0.98,
        "payouts_eur": 0,
        "pending_eur": 0.98,
        "invoices_change": 100,
        "fees_change": 100,
        "earned_change": 100,
        "payouts_change": 0,
        "pending_change": 100,
        "codes": {
            "E4F0GToJe3BuZ": {
                "invoices": 3,
                "fees_eur": 2.31,
                "earned_eur": 0.58,
                "payouts_eur": 0,
                "pending_eur": 0.58
            },
            "qU2sUywOwin1X": {
                "invoices": 5,
                "fees_eur": 1.6,
                "earned_eur": 0.4,
                "payouts_eur": 0,
                "pending_eur": 0.4
            }
        },
        "signups": 0,
        "signups_change": 0
    }
}

Last updated