# API: Apply coupon
# applyInvoiceCoupon
Apply coupon to invoice.
# Required parameters
Parameter | Description |
---|---|
id | Invoice ID |
applycoupon | Coupon |
# Request
GET /admin/api.php?api_id=API_ID&api_key=API_KEY&call=applyInvoiceCoupon&id=ID&applycoupon=APPLYCOUPON
# PHP Samples
# Response
{
"success": true,
"call": "applyInvoiceCoupon",
"server_time": 1460987523,
"info": [
"The coupon has been added to the invoice"
]
}