# API: List vouchers

# getAffiliateVouchers

List affiliate vouchers

TIP

This API call uses pagination for results.

# Request

GET /admin/api.php?api_id=API_ID&api_key=API_KEY&call=getAffiliateVouchers

# PHP Samples

# Response

{
    "success": true,
    "vouchers": [
        {
            "id": "82",
            "code": "GCW0G9MCLSMFquotgtALERT1",
            "status": "Active",
            "coupon_type": "cart",
            "type": "percent",
            "value": "1.00",
            "num_usage": "0",
            "notes": "",
            "aff_id": "4",
            "firstname": "Missouri",
            "lastname": "Hane",
            "companyname": "Larson - Upton",
            "client_id": "446",
            "commision_plan": "1",
            "plan_name": "10% Commission"
        },
        {
            "id": "29",
            "code": "SZ2QO79GMKX",
            "status": "Active",
            "coupon_type": "cart",
            "type": "fixed",
            "value": "1.00",
            "num_usage": "0",
            "notes": "",
            "aff_id": "1",
            "firstname": "Gisselle Zieme",
            "lastname": "Lockman1",
            "companyname": "Goodwin Group",
            "client_id": "230",
            "commision_plan": "1",
            "plan_name": "10% Commission"
        }
    ],
    "call": "getAffiliateVouchers",
    "sorter": {
        "perpage": 25,
        "totalpages": 1,
        "sorterrecords": 2,
        "sorterpage": 1
    },
    "server_time": 1684238949
}
Last Updated: 9/30/2024, 2:47:06 PM