Income Tax Payments
Income Tax Payments refer to the amounts paid by an individual or business to the government as a portion of their taxable income.
Get All Income Tax Payments
To get all Income Tax Payments, make a GET request to the /api/v3/income-tax-payments endpoint. Sample request using axios:
jsconst response = await axios.get("/api/v3/income-tax-payments");
Where <pagenumber> is the page number of the income tax payments list
Sample Response object:
json{
"incomeAccounts": {
"id": 1,
"user_id": 1,
"business_id": 1,
"name": "Income",
"description": "Income Accounts",
"created_at": "2020-03-05T01:42:57.000000Z",
"updated_at": "2020-03-05T01:42:57.000000Z",
"subtypes": [
{
"id": 13,
"type_id": 1,
"name": "Revenue",
"type": "NA",
"description": "Revenue Accounts",
"created_at": "2020-03-05T01:42:57.000000Z",
"updated_at": "2020-03-05T01:42:57.000000Z",
"accounts": [
{
"id": 39,
"account_name": "Sales Revenue",
"type_id": 1,
"subtype_id": 13,
"code": "N\/A",
"description": "null",
"user_id": 1,
"business_id": 1,
"holder_id": 0,
"created_at": "2020-03-05T01:42:57.000000Z",
"updated_at": "2023-03-07T19:41:21.000000Z",
"currency": null,
"archived": false,
"live_account_id": null,
"live_balance": "0",
"live_bank_account_data": null
},
{
"id": 40,
"account_name": "Discounts",
"type_id": 1,
"subtype_id": 13,
"code": "N\/A",
"description": null,
"user_id": 1,
"business_id": 1,
"holder_id": 0,
"created_at": "2020-03-05T01:42:57.000000Z",
"updated_at": "2020-03-05T01:42:57.000000Z",
"currency": null,
"archived": false,
"live_account_id": null,
"live_balance": "0",
"live_bank_account_data": null
},
{
"id": 17103,
"account_name": "One off services",
"type_id": 1,
"subtype_id": 13,
"code": "N\/A",
"description": "",
"user_id": 1,
"business_id": 1,
"holder_id": null,
"created_at": "2020-07-23T14:57:31.000000Z",
"updated_at": "2020-07-23T14:57:31.000000Z",
"currency": null,
"archived": false,
"live_account_id": null,
"live_balance": "0",
"live_bank_account_data": null
},
}
]
}
}
Removing an Income Tax Payment
To remove an income tax payment, make a DELETE request to the /api/v3/income-tax-payments/:id
id- This represents the ID of the income tax payment you want to delete
Here is an example response received after successfully removing an income tax payment:
json{
{
"id": 439,
"business_id": 1,
"tax_account_id": 1763,
"payment_account_id": 18923,
"description": "this is test for income tax payment",
"amount": 300,
"date": "2024-11-05",
"uuid": "82b4fd19-5207-4eab-98d3-00d7807f7784",
"deleted_at": "2024-11-05T15:03:15.000000Z",
"created_at": "2024-11-05T14:46:57.000000Z",
"updated_at": "2024-11-05T15:03:15.000000Z",
"payment_account": {
"id": 18923,
"account_name": "Metro",
"type_id": 3,
"subtype_id": 3,
"code": "gcteqn",
"description": "fpzmfl",
"user_id": 1,
"business_id": 1,
"holder_id": null,
"created_at": "2020-07-29 10:57:13",
"updated_at": "2024-09-10 12:08:17",
"currency": "GHS",
"archived": 0,
"live_account_id": null,
"live_balance": "0",
"live_bank_account_data": null
},
"tax_account": {
"id": 1763,
"account_name": "School Fees",
"type_id": 4,
"subtype_id": 18,
"code": "N\/A",
"description": null,
"user_id": 1,
"business_id": 1,
"holder_id": null,
"created_at": "2020-03-20 15:09:09",
"updated_at": "2020-03-20 15:09:09",
"currency": null,
"archived": 0,
"live_account_id": null,
"live_balance": "0",
"live_bank_account_data": null
}
}
}