{
	"info": {
		"_postman_id": "236d9790-8d73-45cc-9dcd-c11c9263f352",
		"name": "Earning and Deduction API",
		"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
		"_exporter_id": "16698826"
	},
	"item": [
		{
			"name": "Earning/Deduction",
			"request": {
				"auth": {
					"type": "bearer",
					"bearer": [
						{
							"key": "token",
							"value": "",
							"type": "string"
						}
					]
				},
				"method": "POST",
				"header": [],
				"body": {
					"mode": "raw",
					"raw": "{\r\n    \"pendingcount1\": [\r\n        {\r\n        \"type\": \"earnings\",\t \t//Type should be “earnings” or “deductions” only Mandatory\r\n        \"group\": \"Car Allowance\",\t\t//Group is Mandatory\r\n        \"amount\": 10000,\t\t\t//Amount is Non-Mandatory\r\n        \"username\": \"pendingcount1\",\t\t//username is Mandatory\r\n        \"month\": 9,\t\t\t\t//Month is Mandatory\r\n        \"year\": 2023,\t\t\t\t//Year is Mandatory\r\n        \"description\": \"Test1 description\",\t//Description is Non-Mandatory\r\n        \"is_non_taxable\": \"yes\"\t\t//Optional and present in “earnings” condition only\r\n    },\r\n    {\r\n        \"type\": \"deductions\",\t//Type should be “earnings” or “deductions” only Mandatory\r\n        \"group\": \"Car Allowance\",\t\t\t//Group is Mandatory\r\n        \"amount\": 10000,\t\t\t\t//Amount is Non-Mandatory\r\n        \"username\": \"pendingcount1\",\t\t\t//username is Mandatory\r\n        \"month\": 9,\t\t\t\t\t//Month is Mandatory\r\n        \"year\": 2023,\t\t\t\t\t//Year is Mandatory\r\n        \"description\": \"Test2 description\"\t\t//Description is Non-Mandatory\r\n    }\r\n    ],\r\n    \"test123\":[\r\n        {\r\n         \"type\": \"deductions\",\t//Type should be “earnings” or “deductions” only Mandatory\r\n        \"group\": \"Car Allowance\",\t\t\t//Group is Mandatory\r\n        \"amount\": 10000,\t\t\t\t//Amount is Non-Mandatory\r\n        \"username\": \"test123\",\t\t\t//username is Mandatory\r\n        \"month\": 9,\t\t\t\t\t//Month is Mandatory\r\n        \"year\": 2023,\t\t\t\t\t//Year is Mandatory\r\n        \"description\": \"Test2 description\"\t\t//Description is Non-Mandatory\r\n        }\r\n    ]\r\n}",
					"options": {
						"raw": {
							"language": "json"
						}
					}
				},
				"url": {
					"raw": "https://<your_instance>/api.php/attendance/attendancedb/pushUsersEarningsandDeductions",
					"protocol": "https",
					"host": [
						"<your_instance>"
					],
					"path": [
						"api.php",
						"attendance",
						"attendancedb",
						"pushUsersEarningsandDeductions"
					]
				}
			},
			"response": []
		}
	]
}