# API: Apply credit to invoice
# applyInvoiceCredit
Apply client credit to invoice - client credit balance should be higher or equal to amount to apply. If client balance is not sufficient credit will not be applied.
# Required parameters
| Parameter | Description |
|---|---|
id | Invoice Id |
apply_credit | Amount of credit to apply to invoice |
# Request
GET /admin/api.php?api_id=API_ID&api_key=API_KEY&call=applyInvoiceCredit&id=ID&apply_credit=APPLY_CREDIT
# PHP Samples
# Response
{
"success": true,
"call": "applyInvoiceCredit",
"server_time": 1317726203,
"info": [
"Credit applied to invoice."
]
}