# API: Get client credit log
# getClientCreditLog
Get entries from credit log.
TIP
This API call uses pagination for results.
# Required parameters
Parameter | Description |
---|---|
id | Client ID |
# Optional parameters
Parameter | Description |
---|---|
page | Which page to return |
# Request
GET /admin/api.php?api_id=API_ID&api_key=API_KEY&call=getClientCreditLog&id=ID
# PHP Samples
# Response
{
"success": true,
"log": [
{
"id": "9",
"date": "2022-12-01 05:32:12",
"client_id": "1",
"in": "0.00",
"out": "0.12",
"balance": "0.00",
"description": "Credit applied to invoice",
"invoice_id": "11",
"transaction_id": "0",
"admin_id": "1",
"admin_name": "admin",
"firstname": "sdfsdf",
"lastname": "fgd",
"currency_id": "0",
"transid": "",
"data_edit": {
"id": "9",
"date": "01\/12\/2022",
"client_id": "1",
"in": "0.00",
"out": "0.12",
"balance": "0.00",
"description": "Credit applied to invoice",
"transaction_id": "0",
"invoice_id": "11"
}
},
{
"id": "8",
"date": "2022-11-30 01:29:40",
"client_id": "1",
"in": "0.00",
"out": "0.00",
"balance": "0.12",
"description": "Manual refund",
"invoice_id": "9",
"transaction_id": "13",
"admin_id": "1",
"admin_name": "admin",
"firstname": "sdfsdf",
"lastname": "fgd",
"currency_id": "0",
"transid": "",
"data_edit": {
"id": "8",
"date": "30\/11\/2022",
"client_id": "1",
"in": "0.00",
"out": "0.00",
"balance": "0.12",
"description": "Manual refund",
"transaction_id": "13",
"invoice_id": "9"
}
},
{
"id": "7",
"date": "2022-11-29 07:23:49",
"client_id": "1",
"in": "0.00",
"out": "0.00",
"balance": "0.12",
"description": "Manual refund",
"invoice_id": "6",
"transaction_id": "9",
"admin_id": "1",
"admin_name": "admin",
"firstname": "sdfsdf",
"lastname": "fgd",
"currency_id": "0",
"transid": "",
"data_edit": {
"id": "7",
"date": "29\/11\/2022",
"client_id": "1",
"in": "0.00",
"out": "0.00",
"balance": "0.12",
"description": "Manual refund",
"transaction_id": "9",
"invoice_id": "6"
}
},
{
"id": "6",
"date": "2022-11-29 06:00:52",
"client_id": "1",
"in": "0.02",
"out": "0.00",
"balance": "0.12",
"description": "Your Business Name - Invoice #3",
"invoice_id": "3",
"transaction_id": "197339176271257602",
"admin_id": "0",
"admin_name": "",
"firstname": "sdfsdf",
"lastname": "fgd",
"currency_id": "0",
"transid": "2",
"data_edit": {
"id": "6",
"date": "29\/11\/2022",
"client_id": "1",
"in": "0.02",
"out": "0.00",
"balance": "0.12",
"description": "Your Business Name - Invoice #3",
"transaction_id": "197339176271257602",
"invoice_id": "3"
}
},
{
"id": "5",
"date": "2022-11-29 05:59:50",
"client_id": "1",
"in": "0.02",
"out": "0.00",
"balance": "0.10",
"description": "Your Business Name - Invoice #3",
"invoice_id": "3",
"transaction_id": "197339176271257602",
"admin_id": "0",
"admin_name": "",
"firstname": "sdfsdf",
"lastname": "fgd",
"currency_id": "0",
"transid": "2",
"data_edit": {
"id": "5",
"date": "29\/11\/2022",
"client_id": "1",
"in": "0.02",
"out": "0.00",
"balance": "0.10",
"description": "Your Business Name - Invoice #3",
"transaction_id": "197339176271257602",
"invoice_id": "3"
}
},
{
"id": "4",
"date": "2022-11-29 05:58:48",
"client_id": "1",
"in": "0.02",
"out": "0.00",
"balance": "0.08",
"description": "Your Business Name - Invoice #3",
"invoice_id": "3",
"transaction_id": "197339176271257602",
"admin_id": "0",
"admin_name": "",
"firstname": "sdfsdf",
"lastname": "fgd",
"currency_id": "0",
"transid": "2",
"data_edit": {
"id": "4",
"date": "29\/11\/2022",
"client_id": "1",
"in": "0.02",
"out": "0.00",
"balance": "0.08",
"description": "Your Business Name - Invoice #3",
"transaction_id": "197339176271257602",
"invoice_id": "3"
}
},
{
"id": "3",
"date": "2022-11-29 05:57:46",
"client_id": "1",
"in": "0.02",
"out": "0.00",
"balance": "0.06",
"description": "Your Business Name - Invoice #3",
"invoice_id": "3",
"transaction_id": "197339176271257602",
"admin_id": "0",
"admin_name": "",
"firstname": "sdfsdf",
"lastname": "fgd",
"currency_id": "0",
"transid": "2",
"data_edit": {
"id": "3",
"date": "29\/11\/2022",
"client_id": "1",
"in": "0.02",
"out": "0.00",
"balance": "0.06",
"description": "Your Business Name - Invoice #3",
"transaction_id": "197339176271257602",
"invoice_id": "3"
}
},
{
"id": "2",
"date": "2022-11-29 05:57:15",
"client_id": "1",
"in": "0.02",
"out": "0.00",
"balance": "0.04",
"description": "Your Business Name - Invoice #3",
"invoice_id": "3",
"transaction_id": "197339176271257602",
"admin_id": "0",
"admin_name": "",
"firstname": "sdfsdf",
"lastname": "fgd",
"currency_id": "0",
"transid": "2",
"data_edit": {
"id": "2",
"date": "29\/11\/2022",
"client_id": "1",
"in": "0.02",
"out": "0.00",
"balance": "0.04",
"description": "Your Business Name - Invoice #3",
"transaction_id": "197339176271257602",
"invoice_id": "3"
}
},
{
"id": "1",
"date": "2022-11-29 05:56:59",
"client_id": "1",
"in": "0.02",
"out": "0.00",
"balance": "0.02",
"description": "Your Business Name - Invoice #3",
"invoice_id": "3",
"transaction_id": "197339176271257602",
"admin_id": "0",
"admin_name": "",
"firstname": "sdfsdf",
"lastname": "fgd",
"currency_id": "0",
"transid": "2",
"data_edit": {
"id": "1",
"date": "29\/11\/2022",
"client_id": "1",
"in": "0.02",
"out": "0.00",
"balance": "0.02",
"description": "Your Business Name - Invoice #3",
"transaction_id": "197339176271257602",
"invoice_id": "3"
}
}
],
"call": "getClientCreditLog",
"sorter": {
"perpage": 25,
"totalpages": 1,
"sorterrecords": "9",
"sorterpage": 1
},
"server_time": 1670315631
}