# API: Update account discount

# accountSetDiscount

Add or remove discount

# Required parameters

Parameter Description
id Account ID
coupon Use promotion code ID to apply coupons, client for personal or client group discount, or custom for custom discount

# Optional parameters

Parameter Description
type Discount type: percent, fixed. Only available for custom coupon
value Discount value. Only available for custom coupon

# Request

GET /admin/api.php?api_id=API_ID&api_key=API_KEY&call=accountSetDiscount&id=ID&coupon=COUPON

# PHP Samples

# Response

{
    "success": true,
    "call": "accountSetDiscount",
    "server_time": 1726133776,
    "info": [
        "Discount updated successfully"
    ]
}
Last Updated: 10/7/2024, 2:36:43 PM