{
	"info": {
		"_postman_id": "313b1859-033b-43cc-b944-49be3f90b8a8",
		"name": "api",
		"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
		"_exporter_id": "29875497"
	},
	"item": [
		{
			"name": "Accounts",
			"item": [
				{
					"name": "Accounts/Search",
					"event": [
						{
							"listen": "test",
							"script": {
								"exec": [
									"tests[\"Status code is 200\"] = responseCode.code === 200; ",
									"var data = JSON.parse(responseBody); ",
									"tests[\"code is 200\"] = data.code === 200;",
									"tests[\"message is empty\"] = data.message === '';",
									"tests[\"data length is 2\"] = data.data.length === 2;",
									"tests[\"data1.DebitCredit is D\"] = data.data[0].DebitCredit === 'D';",
									"tests[\"data1.AccId is 1101\"] = data.data[0].AccId === '1101';",
									"tests[\"data1.AccName is 現金\"] = data.data[0].AccName === '現金';"
								],
								"type": "text/javascript"
							}
						}
					],
					"request": {
						"method": "POST",
						"header": [
							{
								"key": "Content-Type",
								"value": "application/json"
							}
						],
						"body": {
							"mode": "raw",
							"raw": "{\n    \"AccId\": \"1101\",\n    \"AccName\": \"\"\n}\n\n\n\n\n\n\n\n"
						},
						"url": {
							"raw": "{{url}}/api/Accounts/Search?appId={{appId}}&opId={{opId}}",
							"host": [
								"{{url}}"
							],
							"path": [
								"api",
								"Accounts",
								"Search"
							],
							"query": [
								{
									"key": "appId",
									"value": "{{appId}}"
								},
								{
									"key": "opId",
									"value": "{{opId}}"
								}
							]
						}
					},
					"response": []
				},
				{
					"name": "404 Not Found",
					"event": [
						{
							"listen": "test",
							"script": {
								"type": "text/javascript",
								"exec": [
									"tests[\"Status code is 404\"] = responseCode.code === 404; "
								]
							}
						}
					],
					"request": {
						"method": "GET",
						"header": [],
						"url": {
							"raw": "{{url}}/api/Accounta",
							"host": [
								"{{url}}"
							],
							"path": [
								"api",
								"Accounta"
							]
						}
					},
					"response": []
				},
				{
					"name": "Accounts/search 401 Unauthorized",
					"event": [
						{
							"listen": "test",
							"script": {
								"exec": [
									"tests[\"Status code is 401\"] = responseCode.code === 401; ",
									"var data = JSON.parse(responseBody); ",
									"tests[\"code is 998\"] = data.code === 998;",
									"tests[\"message is Illegal ip address or invalid app id\"] = data.message === 'Illegal ip address:172.16.1.14 or invalid app id:npo1';",
									"tests[\"data is []\"] = data.data !== null && Object.prototype.toString.call( data.data ) === '[object Array]';"
								],
								"type": "text/javascript"
							}
						}
					],
					"request": {
						"method": "POST",
						"header": [
							{
								"key": "Content-Type",
								"value": "application/json"
							}
						],
						"body": {
							"mode": "raw",
							"raw": "{\n    \"AccId\": \"1101000\",\n    \"AccName\": \"\"\n}"
						},
						"url": {
							"raw": "{{url}}/api/Accounts/Search?appId=npo1&opId={{opId}}",
							"host": [
								"{{url}}"
							],
							"path": [
								"api",
								"Accounts",
								"Search"
							],
							"query": [
								{
									"key": "appId",
									"value": "npo1"
								},
								{
									"key": "opId",
									"value": "{{opId}}"
								}
							]
						}
					},
					"response": []
				},
				{
					"name": "Accounts/search 500 internalServerError invalid opId",
					"event": [
						{
							"listen": "test",
							"script": {
								"exec": [
									"tests[\"Status code is 500\"] = responseCode.code === 500; ",
									"var data = JSON.parse(responseBody); ",
									"tests[\"code is 500\"] = data.code === 500;",
									"tests[\"message is invalid opId\"] = data.message === 'invalid opId';",
									"tests[\"data is []\"] = data.data !== null && Object.prototype.toString.call( data.data ) === '[object Array]';"
								],
								"type": "text/javascript"
							}
						}
					],
					"request": {
						"method": "POST",
						"header": [
							{
								"key": "Content-Type",
								"value": "application/json"
							}
						],
						"body": {
							"mode": "raw",
							"raw": "{\n    \"AccId\": \"1101000\",\n    \"AccName\": \"\"\n}"
						},
						"url": {
							"raw": "{{url}}/api/Accounts/Search?appId={{appId}}&opId=4266EEA8-7207-4FF9-8E59-8A64733A7189",
							"host": [
								"{{url}}"
							],
							"path": [
								"api",
								"Accounts",
								"Search"
							],
							"query": [
								{
									"key": "appId",
									"value": "{{appId}}"
								},
								{
									"key": "opId",
									"value": "4266EEA8-7207-4FF9-8E59-8A64733A7189"
								}
							]
						}
					},
					"response": []
				},
				{
					"name": "Accounts/search No Data",
					"event": [
						{
							"listen": "test",
							"script": {
								"exec": [
									"tests[\"Status code is 200\"] = responseCode.code === 200; ",
									"var data = JSON.parse(responseBody); ",
									"tests[\"code is 200\"] = data.code === 200;",
									"tests[\"message is empty\"] = data.message === '';",
									"tests[\"data is []\"] = data.data !== null && Object.prototype.toString.call( data.data ) === '[object Array]';"
								],
								"type": "text/javascript"
							}
						}
					],
					"request": {
						"method": "POST",
						"header": [
							{
								"key": "Content-Type",
								"value": "application/json"
							}
						],
						"body": {
							"mode": "raw",
							"raw": "{\n    \"AccId\": \"1101000x\",\n    \"AccName\": \"\"\n}"
						},
						"url": {
							"raw": "{{url}}/api/Accounts/Search?appId={{appId}}&opId={{opId}}",
							"host": [
								"{{url}}"
							],
							"path": [
								"api",
								"Accounts",
								"Search"
							],
							"query": [
								{
									"key": "appId",
									"value": "{{appId}}"
								},
								{
									"key": "opId",
									"value": "{{opId}}"
								}
							]
						}
					},
					"response": []
				}
			]
		},
		{
			"name": "Entries",
			"item": [
				{
					"name": "Entries JournalEntry",
					"event": [
						{
							"listen": "test",
							"script": {
								"exec": [
									"tests[\"Status code is 200\"] = responseCode.code === 500; ",
									"var data = JSON.parse(responseBody); ",
									"tests[\"code is 200\"] = data.code === 200;",
									"tests[\"message is empty\"] = data.message === '';",
									"tests[\"data is []\"] = data.data !== null && Object.prototype.toString.call( data.data ) === '[object Array]';"
								],
								"type": "text/javascript",
								"packages": {},
								"requests": {}
							}
						}
					],
					"request": {
						"method": "POST",
						"header": [
							{
								"key": "Content-Type",
								"value": "application/json"
							}
						],
						"body": {
							"mode": "raw",
							"raw": "[\r\n    {\r\n        \"EntryType\": \"1\",\r\n        \"EntryDate\": \"2021-12-07\",\r\n        \"Memo\": \"\",\r\n        \"Details\": [\r\n            {\r\n                \"AccId\": \"1101000\",\r\n                \"DebitCredit\": \"D\",\r\n                \"Summary\": \"A472\",\r\n                \"BaseAmt\": 999,\r\n                \"DepartId\": \"\",\r\n                \"ProjectId\": \"\",\r\n                \"ClientId\": \"001\"\r\n            },\r\n            {\r\n                \"AccId\": \"1101000\",\r\n                \"DebitCredit\": \"C\",\r\n                \"Summary\": \"售貨\",\r\n                \"BaseAmt\": 999,\r\n                \"DepartId\": \"\",\r\n                \"ProjectId\": \"\",\r\n                \"ClientId\": \"003\"\r\n            }\r\n        ]\r\n    } ,\r\n    {\r\n        \"EntryType\": \"1\",\r\n        \"EntryDate\": \"2021-12-07\",\r\n        \"Memo\": \"\",\r\n        \"Details\": [\r\n            {\r\n                \"AccId\": \"1102000\",\r\n                \"DebitCredit\": \"D\",\r\n                \"Summary\": \"A472\",\r\n                \"BaseAmt\": 1999,\r\n                \"DepartId\": \"\",\r\n                \"ProjectId\": \"\"\r\n            },\r\n            {\r\n                \"AccId\": \"1102000\",\r\n                \"DebitCredit\": \"C\",\r\n                \"Summary\": \"售貨\",\r\n                \"BaseAmt\": 1999,\r\n                \"DepartId\": \"\",\r\n                \"ProjectId\": \"\"\r\n            }\r\n        ]\r\n    }\r\n]"
						},
						"url": {
							"raw": "{{url}}/api/Entries?appId={{appId}}&opId={{opId}}",
							"host": [
								"{{url}}"
							],
							"path": [
								"api",
								"Entries"
							],
							"query": [
								{
									"key": "appId",
									"value": "{{appId}}"
								},
								{
									"key": "opId",
									"value": "{{opId}}"
								}
							]
						}
					},
					"response": []
				},
				{
					"name": "Entries JournalEntry With SalarySubject",
					"event": [
						{
							"listen": "test",
							"script": {
								"exec": [
									"tests[\"Status code is 200\"] = responseCode.code === 500; ",
									"var data = JSON.parse(responseBody); ",
									"tests[\"code is 200\"] = data.code === 200;",
									"tests[\"message is empty\"] = data.message === '';",
									"tests[\"data is []\"] = data.data !== null && Object.prototype.toString.call( data.data ) === '[object Array]';"
								],
								"type": "text/javascript",
								"packages": {}
							}
						}
					],
					"request": {
						"method": "POST",
						"header": [
							{
								"key": "Content-Type",
								"value": "application/json"
							}
						],
						"body": {
							"mode": "raw",
							"raw": "[\r\n    {\r\n        \"EntryType\": \"1\",\r\n        \"EntryDate\": \"2021-12-07\",\r\n        \"Note\": \"Salary\",\r\n        \"Memo\": \"\",\r\n        \"Details\": [\r\n            {\r\n                \"AccId\": \"1101000\",\r\n                \"DebitCredit\": \"D\",\r\n                \"Summary\": \"A472\",\r\n                \"BaseAmt\": 999,\r\n                \"DepartId\": \"\",\r\n                \"ProjectId\": \"\",\r\n                \"ClientId\": \"\"\r\n            },\r\n            {\r\n                \"AccId\": \"1101000\",\r\n                \"DebitCredit\": \"C\",\r\n                \"Summary\": \"售貨\",\r\n                \"BaseAmt\": 999,\r\n                \"DepartId\": \"\",\r\n                \"ProjectId\": \"\",\r\n                \"ClientId\": \"\"\r\n            }\r\n        ]\r\n    } ,\r\n    {\r\n        \"EntryType\": \"1\",\r\n        \"EntryDate\": \"2021-12-07\",\r\n        \"Memo\": \"\",\r\n        \"Details\": [\r\n            {\r\n                \"AccId\": \"1102000\",\r\n                \"DebitCredit\": \"D\",\r\n                \"Summary\": \"A472\",\r\n                \"BaseAmt\": 1999,\r\n                \"DepartId\": \"\",\r\n                \"ProjectId\": \"\"\r\n            },\r\n            {\r\n                \"AccId\": \"1102000\",\r\n                \"DebitCredit\": \"C\",\r\n                \"Summary\": \"售貨\",\r\n                \"BaseAmt\": 1999,\r\n                \"DepartId\": \"\",\r\n                \"ProjectId\": \"\"\r\n            }\r\n        ]\r\n    }\r\n]"
						},
						"url": {
							"raw": "{{url}}/api/Entries?appId={{appId}}&opId={{opId}}",
							"host": [
								"{{url}}"
							],
							"path": [
								"api",
								"Entries"
							],
							"query": [
								{
									"key": "appId",
									"value": "{{appId}}"
								},
								{
									"key": "opId",
									"value": "{{opId}}"
								}
							]
						}
					},
					"response": []
				},
				{
					"name": "Entries JournalEntry With BonusSubject",
					"event": [
						{
							"listen": "test",
							"script": {
								"exec": [
									"tests[\"Status code is 200\"] = responseCode.code === 500; ",
									"var data = JSON.parse(responseBody); ",
									"tests[\"code is 200\"] = data.code === 200;",
									"tests[\"message is empty\"] = data.message === '';",
									"tests[\"data is []\"] = data.data !== null && Object.prototype.toString.call( data.data ) === '[object Array]';"
								],
								"type": "text/javascript",
								"packages": {}
							}
						}
					],
					"request": {
						"method": "POST",
						"header": [
							{
								"key": "Content-Type",
								"value": "application/json"
							}
						],
						"body": {
							"mode": "raw",
							"raw": "[\r\n    {\r\n        \"EntryType\": \"1\",\r\n        \"EntryDate\": \"2021-12-07\",\r\n        \"Note\": \"Bonus\",\r\n        \"Memo\": \"\",\r\n        \"Details\": [\r\n            {\r\n                \"AccId\": \"1101000\",\r\n                \"DebitCredit\": \"D\",\r\n                \"Summary\": \"A472\",\r\n                \"BaseAmt\": 999,\r\n                \"DepartId\": \"\",\r\n                \"ProjectId\": \"\",\r\n                \"ClientId\": \"\"\r\n            },\r\n            {\r\n                \"AccId\": \"1101000\",\r\n                \"DebitCredit\": \"C\",\r\n                \"Summary\": \"售貨\",\r\n                \"BaseAmt\": 999,\r\n                \"DepartId\": \"\",\r\n                \"ProjectId\": \"\",\r\n                \"ClientId\": \"\"\r\n            }\r\n        ]\r\n    } ,\r\n    {\r\n        \"EntryType\": \"1\",\r\n        \"EntryDate\": \"2021-12-07\",\r\n        \"Memo\": \"\",\r\n        \"Details\": [\r\n            {\r\n                \"AccId\": \"1102000\",\r\n                \"DebitCredit\": \"D\",\r\n                \"Summary\": \"A472\",\r\n                \"BaseAmt\": 1999,\r\n                \"DepartId\": \"\",\r\n                \"ProjectId\": \"\"\r\n            },\r\n            {\r\n                \"AccId\": \"1102000\",\r\n                \"DebitCredit\": \"C\",\r\n                \"Summary\": \"售貨\",\r\n                \"BaseAmt\": 1999,\r\n                \"DepartId\": \"\",\r\n                \"ProjectId\": \"\"\r\n            }\r\n        ]\r\n    }\r\n]"
						},
						"url": {
							"raw": "{{url}}/api/Entries?appId={{appId}}&opId={{opId}}",
							"host": [
								"{{url}}"
							],
							"path": [
								"api",
								"Entries"
							],
							"query": [
								{
									"key": "appId",
									"value": "{{appId}}"
								},
								{
									"key": "opId",
									"value": "{{opId}}"
								}
							]
						}
					},
					"response": []
				},
				{
					"name": "Entries cashReceipts",
					"event": [
						{
							"listen": "test",
							"script": {
								"type": "text/javascript",
								"exec": [
									"tests[\"Status code is 200\"] = responseCode.code === 200; ",
									"var data = JSON.parse(responseBody); ",
									"tests[\"code is 200\"] = data.code === 200;",
									"tests[\"message is empty\"] = data.message === '';",
									"tests[\"data is []\"] = data.data !== null && Object.prototype.toString.call( data.data ) === '[object Array]';"
								]
							}
						}
					],
					"request": {
						"method": "POST",
						"header": [
							{
								"key": "Content-Type",
								"value": "application/json"
							}
						],
						"body": {
							"mode": "raw",
							"raw": "[\r\n    {\r\n        \"EntryType\": \"2\",\r\n        \"EntryDate\": \"2016-09-20\",\r\n        \"Memo\": \"\",\r\n        \"Details\": [\r\n            {\r\n                \"AccId\": \"1101000\",\r\n                \"DebitCredit\": \"D\",\r\n                \"Summary\": \"\",\r\n                \"BaseAmt\": 333,\r\n                \"DepartId\": \"\",\r\n                \"ProjectId\": \"\"\r\n            },\r\n            {\r\n                \"AccId\": \"1101000\",\r\n                \"DebitCredit\": \"C\",\r\n                \"Summary\": \"\",\r\n                \"BaseAmt\": 333,\r\n                \"DepartId\": \"\",\r\n                \"ProjectId\": \"\"\r\n            }\r\n        ]\r\n    }\r\n]"
						},
						"url": {
							"raw": "{{url}}/api/Entries?appId={{appId}}&opId={{opId}}",
							"host": [
								"{{url}}"
							],
							"path": [
								"api",
								"Entries"
							],
							"query": [
								{
									"key": "appId",
									"value": "{{appId}}"
								},
								{
									"key": "opId",
									"value": "{{opId}}"
								}
							]
						}
					},
					"response": []
				},
				{
					"name": "Entries cashDisbursements",
					"event": [
						{
							"listen": "test",
							"script": {
								"type": "text/javascript",
								"exec": [
									"tests[\"Status code is 200\"] = responseCode.code === 200; ",
									"var data = JSON.parse(responseBody); ",
									"tests[\"code is 200\"] = data.code === 200;",
									"tests[\"message is empty\"] = data.message === '';",
									"tests[\"data is []\"] = data.data !== null && Object.prototype.toString.call( data.data ) === '[object Array]';"
								]
							}
						}
					],
					"request": {
						"method": "POST",
						"header": [
							{
								"key": "Content-Type",
								"value": "application/json"
							}
						],
						"body": {
							"mode": "raw",
							"raw": "[\r\n    {\r\n        \"EntryType\": \"3\",\r\n        \"EntryDate\": \"2016-09-20\",\r\n        \"Memo\": \"\",\r\n        \"Details\": [\r\n            {\r\n                \"AccId\": \"1101000\",\r\n                \"DebitCredit\": \"D\",\r\n                \"Summary\": \"A472\",\r\n                \"BaseAmt\": 555,\r\n                \"DepartId\": \"\",\r\n                \"ProjectId\": \"\"\r\n            },\r\n            {\r\n                \"AccId\": \"1101000\",\r\n                \"DebitCredit\": \"C\",\r\n                \"Summary\": \"A472\",\r\n                \"BaseAmt\": 555,\r\n                \"DepartId\": \"\",\r\n                \"ProjectId\": \"\"\r\n            }\r\n        ]\r\n    }\r\n]"
						},
						"url": {
							"raw": "{{url}}/api/Entries?appId={{appId}}&opId={{opId}}",
							"host": [
								"{{url}}"
							],
							"path": [
								"api",
								"Entries"
							],
							"query": [
								{
									"key": "appId",
									"value": "{{appId}}"
								},
								{
									"key": "opId",
									"value": "{{opId}}"
								}
							]
						}
					},
					"response": []
				},
				{
					"name": "Entries cashReceipts specific cash subject non-exist",
					"event": [
						{
							"listen": "test",
							"script": {
								"type": "text/javascript",
								"exec": [
									"tests[\"Status code is 500\"] = responseCode.code === 500; ",
									"var data = JSON.parse(responseBody); ",
									"tests[\"code is 500\"] = data.code === 500;",
									"tests[\"message is 現金科目不存在\"] = data.message === \"entry 1:現金科目不存在\\r\\n\";",
									"tests[\"data is []\"] = data.data !== null && Object.prototype.toString.call( data.data ) === '[object Array]';"
								]
							}
						}
					],
					"request": {
						"method": "POST",
						"header": [
							{
								"key": "Content-Type",
								"value": "application/json"
							}
						],
						"body": {
							"mode": "raw",
							"raw": "[\r\n    {\r\n        \"EntryType\": \"2\",\r\n        \"EntryDate\": \"2016-09-20\",\r\n        \"Memo\": \"\",\r\n        \"Details\": [\r\n            {\r\n                \"AccId\": \"1101000\",\r\n                \"DebitCredit\": \"C\",\r\n                \"Summary\": \"\",\r\n                \"BaseAmt\": 333,\r\n                \"DepartId\": \"\",\r\n                \"ProjectId\": \"\"\r\n            },\r\n            {\r\n                \"AccId\": \"1102000\",\r\n                \"DebitCredit\": \"D\",\r\n                \"Summary\": \"\",\r\n                \"BaseAmt\": 333,\r\n                \"DepartId\": \"\",\r\n                \"ProjectId\": \"\"\r\n            }\r\n        ]\r\n    }\r\n]"
						},
						"url": {
							"raw": "{{url}}/api/Entries?appId={{appId}}&opId={{opId}}",
							"host": [
								"{{url}}"
							],
							"path": [
								"api",
								"Entries"
							],
							"query": [
								{
									"key": "appId",
									"value": "{{appId}}"
								},
								{
									"key": "opId",
									"value": "{{opId}}"
								}
							]
						}
					},
					"response": []
				},
				{
					"name": "Entries Empty",
					"event": [
						{
							"listen": "test",
							"script": {
								"type": "text/javascript",
								"exec": [
									"tests[\"Status code is 200\"] = responseCode.code === 200; ",
									"var data = JSON.parse(responseBody); ",
									"tests[\"code is 200\"] = data.code === 200;",
									"tests[\"message is empty\"] = data.message === '';",
									"tests[\"data is []\"] = data.data !== null && Object.prototype.toString.call( data.data ) === '[object Array]';"
								]
							}
						}
					],
					"request": {
						"method": "POST",
						"header": [
							{
								"key": "Content-Type",
								"value": "application/json"
							}
						],
						"body": {
							"mode": "raw",
							"raw": "[]"
						},
						"url": {
							"raw": "{{url}}/api/Entries?appId={{appId}}&opId={{opId}}",
							"host": [
								"{{url}}"
							],
							"path": [
								"api",
								"Entries"
							],
							"query": [
								{
									"key": "appId",
									"value": "{{appId}}"
								},
								{
									"key": "opId",
									"value": "{{opId}}"
								}
							]
						}
					},
					"response": []
				},
				{
					"name": "Entries validate fail",
					"event": [
						{
							"listen": "test",
							"script": {
								"type": "text/javascript",
								"exec": [
									"tests[\"Status code is 500\"] = responseCode.code === 500; ",
									"var data = JSON.parse(responseBody); ",
									"tests[\"code is 500\"] = data.code === 500;",
									"tests[\"show validation error message\"] = data.message === \"entry 1:請輸入分錄資料,Debit Credit  為必填欄位,Acc Id  為必填欄位,'Acc Id' must be between 2 and 11 characters. You entered 0 characters.\\r\\n\";"
								]
							}
						}
					],
					"request": {
						"method": "POST",
						"header": [
							{
								"key": "Content-Type",
								"value": "application/json"
							}
						],
						"body": {
							"mode": "raw",
							"raw": "[\r\n    {\r\n        \"EntryType\": \"3\",\r\n        \"EntryDate\": \"2016-09-19\",\r\n        \"Memo\": \"\",\r\n        \"Details\": [\r\n            {\r\n                \"AccId\": \"\",\r\n                \"DebitCredit\": \"\",\r\n                \"Summary\": \"A472\",\r\n                \"BaseAmt\": 0,\r\n                \"DepartId\": \"\",\r\n                \"ProjectId\": \"\"\r\n            }\r\n        ]\r\n    }\r\n]"
						},
						"url": {
							"raw": "{{url}}/api/Entries?appId={{appId}}&opId={{opId}}",
							"host": [
								"{{url}}"
							],
							"path": [
								"api",
								"Entries"
							],
							"query": [
								{
									"key": "appId",
									"value": "{{appId}}"
								},
								{
									"key": "opId",
									"value": "{{opId}}"
								}
							]
						}
					},
					"response": []
				},
				{
					"name": "Entries 401 Unauthorized",
					"event": [
						{
							"listen": "test",
							"script": {
								"type": "text/javascript",
								"exec": [
									"tests[\"Status code is 401\"] = responseCode.code === 401; ",
									"var data = JSON.parse(responseBody); ",
									"tests[\"code is 998\"] = data.code === 998;",
									"tests[\"message is Illegal ip address or invalid app id\"] = data.message === 'Illegal ip address:172.16.1.14 or invalid app id:npo2';",
									"tests[\"data is []\"] = data.data !== null && Object.prototype.toString.call( data.data ) === '[object Array]';"
								]
							}
						}
					],
					"request": {
						"method": "POST",
						"header": [
							{
								"key": "Content-Type",
								"value": "application/json"
							}
						],
						"body": {
							"mode": "raw",
							"raw": "[\r\n    {\r\n        \"EntryType\": \"2\",\r\n        \"EntryDate\": \"2016-09-19\",\r\n        \"Memo\": \"\",\r\n        \"Details\": [\r\n            {\r\n                \"AccId\": \"1101000\",\r\n                \"DebitCredit\": \"C\",\r\n                \"Summary\": \"\",\r\n                \"BaseAmt\": 333,\r\n                \"DepartId\": \"\",\r\n                \"ProjectId\": \"\"\r\n            }\r\n        ]\r\n    }\r\n]"
						},
						"url": {
							"raw": "{{url}}/api/Entries?appId=npo2&opId={{opId}}",
							"host": [
								"{{url}}"
							],
							"path": [
								"api",
								"Entries"
							],
							"query": [
								{
									"key": "appId",
									"value": "npo2"
								},
								{
									"key": "opId",
									"value": "{{opId}}"
								}
							]
						}
					},
					"response": []
				},
				{
					"name": "Entries 500 internalServerError invalid opId",
					"event": [
						{
							"listen": "test",
							"script": {
								"type": "text/javascript",
								"exec": [
									"tests[\"Status code is 500\"] = responseCode.code === 500; ",
									"var data = JSON.parse(responseBody); ",
									"tests[\"code is 500\"] = data.code === 500;",
									"tests[\"message is invalid opId\"] = data.message === 'invalid opId';",
									"tests[\"data is []\"] = data.data !== null && Object.prototype.toString.call( data.data ) === '[object Array]';"
								]
							}
						}
					],
					"request": {
						"method": "POST",
						"header": [
							{
								"key": "Content-Type",
								"value": "application/json"
							}
						],
						"body": {
							"mode": "raw",
							"raw": "[]"
						},
						"url": {
							"raw": "{{url}}/api/Entries?appId={{appId}}&opId=4266EEA8-7207-4FF9-8E59-8A64733A7189",
							"host": [
								"{{url}}"
							],
							"path": [
								"api",
								"Entries"
							],
							"query": [
								{
									"key": "appId",
									"value": "{{appId}}"
								},
								{
									"key": "opId",
									"value": "4266EEA8-7207-4FF9-8E59-8A64733A7189"
								}
							]
						}
					},
					"response": []
				},
				{
					"name": "Entries Search",
					"event": [
						{
							"listen": "test",
							"script": {
								"exec": [
									"tests[\"Status code is 200\"] = responseCode.code === 500; ",
									"var data = JSON.parse(responseBody); ",
									"tests[\"code is 200\"] = data.code === 200;",
									"tests[\"message is empty\"] = data.message === '';",
									"tests[\"data is []\"] = data.data !== null && Object.prototype.toString.call( data.data ) === '[object Array]';"
								],
								"type": "text/javascript",
								"packages": {},
								"requests": {}
							}
						}
					],
					"request": {
						"method": "POST",
						"header": [
							{
								"key": "Content-Type",
								"value": "application/json"
							}
						],
						"body": {
							"mode": "raw",
							"raw": "\r\n{\r\n    \"EntryYM\": \"202510\",\r\n    \"AccType\": \"2\",\r\n    \"AccId\": \"100\"\r\n}"
						},
						"url": {
							"raw": "{{url}}/api/Entries/Search?appId={{appId}}&opId={{opId}}",
							"host": [
								"{{url}}"
							],
							"path": [
								"api",
								"Entries",
								"Search"
							],
							"query": [
								{
									"key": "appId",
									"value": "{{appId}}"
								},
								{
									"key": "opId",
									"value": "{{opId}}"
								}
							]
						}
					},
					"response": []
				}
			]
		},
		{
			"name": "Funds",
			"item": [
				{
					"name": "Funds_AR",
					"event": [
						{
							"listen": "test",
							"script": {
								"exec": [
									"tests[\"Status code is 200\"] = responseCode.code === 500; ",
									"var data = JSON.parse(responseBody); ",
									"tests[\"code is 200\"] = data.code === 200;",
									"tests[\"message is empty\"] = data.message === '';",
									"tests[\"data is []\"] = data.data !== null && Object.prototype.toString.call( data.data ) === '[object Array]';"
								],
								"type": "text/javascript"
							}
						}
					],
					"request": {
						"method": "POST",
						"header": [
							{
								"key": "Content-Type",
								"value": "application/json"
							}
						],
						"body": {
							"mode": "raw",
							"raw": "{\r\n\t\"FunType\":\"AR\",\r\n\t\"Flow\":\"2\",\r\n\t\"Data\":\r\n\t[\r\n\t\t {\r\n            \"AccNo\": \"CK-2020120100001\",\r\n            \"InvDate\": \"2020-12-01\",\r\n            \"EstDate\": \"2020-12-20\",\r\n            \"TypeId\": \"002\",\r\n            \"itemId\": \"AR001\",\r\n            \"BaseAmt\": 6000,\r\n            \"ClientId\": \"001\",\r\n            \"DepartId\": \"\",\r\n            \"ProjectId\": \"\",\r\n            \"Summary\": \"銷售商品A\",\r\n            \"InvNo\": \"AW12345678\",\r\n            \"VatNo\": \"22425663\"\r\n        },\r\n        {\r\n            \"AccNo\": \"CK-2020120100002\",\r\n            \"InvDate\": \"2020-12-02\",\r\n            \"EstDate\": \"2020-12-21\",\r\n            \"TypeId\": \"002\",\r\n            \"itemId\": \"AR001\",\r\n            \"BaseAmt\": 7000,\r\n            \"ClientId\": \"002\",\r\n            \"DepartId\": \"\",\r\n            \"ProjectId\": \"\",\r\n            \"Summary\": \"銷售商品B\",\r\n            \"InvNo\": \"ZW12345678\",\r\n            \"VatNo\": \"22425662\"\r\n        }\r\n\t]\r\n}\r\n"
						},
						"url": {
							"raw": "{{url}}/Api/Funds?appId={{appId}}&opId={{opId}}",
							"host": [
								"{{url}}"
							],
							"path": [
								"Api",
								"Funds"
							],
							"query": [
								{
									"key": "appId",
									"value": "{{appId}}"
								},
								{
									"key": "opId",
									"value": "{{opId}}"
								}
							]
						}
					},
					"response": []
				},
				{
					"name": "Funds_AP",
					"event": [
						{
							"listen": "test",
							"script": {
								"exec": [
									"tests[\"Status code is 200\"] = responseCode.code === 500; ",
									"var data = JSON.parse(responseBody); ",
									"tests[\"code is 200\"] = data.code === 200;",
									"tests[\"message is empty\"] = data.message === '';",
									"tests[\"data is []\"] = data.data !== null && Object.prototype.toString.call( data.data ) === '[object Array]';"
								],
								"type": "text/javascript"
							}
						}
					],
					"request": {
						"method": "POST",
						"header": [
							{
								"key": "Content-Type",
								"value": "application/json"
							}
						],
						"body": {
							"mode": "raw",
							"raw": " {\r\n \t\"FunType\":\"AP\",\r\n\t\"Flow\":\"2\",\r\n\t\"Data\":\r\n\t[\r\n\t\t{\r\n            \"AccNo\": \"CK-2022070100001\",\r\n            \"InvDate\": \"2022-07-01\",\r\n            \"EstDate\": \"2022-07-01\",\r\n            \"TypeId\": \"1\",\r\n            \"ItemId\": \"001\",\r\n            \"BaseAmt\": 6000,\r\n            \"ClientId\": \"003\",\r\n            \"DepartId\": \"001\",\r\n            \"ProjectId\": \"\",\r\n            \"Summary\": \"銷售商品A\",\r\n            \"InvNo\": \"AW12345678\",\r\n            \"VatNo\": \"22425663\"\r\n        },\r\n        {\r\n            \"AccNo\": \"CK-2022070100005\",\r\n            \"InvDate\": \"2022-07-02\",\r\n            \"EstDate\": \"2022-07-02\",\r\n            \"TypeId\": \"1\",\r\n            \"ItemId\": \"001\",\r\n            \"BaseAmt\": 7000,\r\n            \"ClientId\": \"003\",\r\n            \"DepartId\": \"\",\r\n            \"ProjectId\": \"\",\r\n            \"Summary\": \"銷售商品B\",\r\n            \"InvNo\": \"ZW12345678\",\r\n            \"VatNo\": \"22425662\"\r\n        }\r\n\t]\r\n}\r\n"
						},
						"url": {
							"raw": "{{url}}/Api/Funds?appId={{appId}}&opId={{opId}}",
							"host": [
								"{{url}}"
							],
							"path": [
								"Api",
								"Funds"
							],
							"query": [
								{
									"key": "appId",
									"value": "{{appId}}"
								},
								{
									"key": "opId",
									"value": "{{opId}}"
								}
							]
						}
					},
					"response": []
				},
				{
					"name": "FundsInvoice",
					"event": [
						{
							"listen": "test",
							"script": {
								"exec": [
									"tests[\"Status code is 200\"] = responseCode.code === 500; ",
									"var data = JSON.parse(responseBody); ",
									"tests[\"code is 200\"] = data.code === 200;",
									"tests[\"message is empty\"] = data.message === '';",
									"tests[\"data is []\"] = data.data !== null && Object.prototype.toString.call( data.data ) === '[object Array]';"
								],
								"type": "text/javascript",
								"packages": {},
								"requests": {}
							}
						}
					],
					"request": {
						"method": "POST",
						"header": [
							{
								"key": "Content-Type",
								"value": "application/json"
							}
						],
						"body": {
							"mode": "raw",
							"raw": " {\r\n \t\"FunType\":\"AR\",\r\n\t\"ItemId\":\"001\",\r\n\t\"TypeId\":\"1\",\r\n\t\"ClientId\":\"001\",\r\n    \"VatNo\": \"22425662\",\r\n    \"AccNo\": \"AR-202511250001\",\r\n    \"InvDate\": \"2025-11-25\",\r\n    \"EstDate\": \"2025-12-25\",\r\n    \"DepartId\": \"002\",\r\n    \"ProjectId\": \"003\",\r\n    \"InvMemo\": \"發票備註測試\",\r\n \t\"Data\":\r\n\t[\r\n\t\t{       \r\n            \"InvId\": \"001\",\r\n            \"InvName\": \"會計總帳\",\r\n            \"Quantity\": 1,\r\n            \"BaseAmt\": 8000,\r\n            \"TaxAmt\": 400,\r\n            \"TaxType\": \"1\"\r\n        },\r\n\t\t{       \r\n            \"InvId\": \"002\",\r\n            \"InvName\": \"加購帳號\",\r\n            \"Quantity\": 2,\r\n            \"BaseAmt\": 1800,\r\n            \"TaxAmt\": 90,\r\n            \"TaxType\": \"1\"\r\n        }\r\n\t]\r\n}\r\n"
						},
						"url": {
							"raw": "{{url}}/Api/FundsInvoice?appId={{appId}}&opId={{opId}}",
							"host": [
								"{{url}}"
							],
							"path": [
								"Api",
								"FundsInvoice"
							],
							"query": [
								{
									"key": "appId",
									"value": "{{appId}}"
								},
								{
									"key": "opId",
									"value": "{{opId}}"
								}
							]
						}
					},
					"response": []
				},
				{
					"name": "AP",
					"event": [
						{
							"listen": "test",
							"script": {
								"exec": [
									"tests[\"Status code is 200\"] = responseCode.code === 500; ",
									"var data = JSON.parse(responseBody); ",
									"tests[\"code is 200\"] = data.code === 200;",
									"tests[\"message is empty\"] = data.message === '';",
									"tests[\"data is []\"] = data.data !== null && Object.prototype.toString.call( data.data ) === '[object Array]';"
								],
								"type": "text/javascript",
								"packages": {},
								"requests": {}
							}
						}
					],
					"request": {
						"method": "POST",
						"header": [
							{
								"key": "Content-Type",
								"value": "application/json"
							}
						],
						"body": {
							"mode": "raw",
							"raw": " {\r\n \t\"FunType\":\"AP\",\r\n\t\"ClientId\":\"001\",\r\n    \"AccNo\": \"CK-202511140001\",\r\n    \"InvDate\": \"2025-11-14\",\r\n    \"EstDate\": \"2025-12-14\",\r\n    \"TaxType\": \"1\",\r\n \t\"Data\":\r\n\t[\r\n\t\t{       \r\n            \"ItemId\": \"2\",\r\n            \"Quantity\": \"5\",\r\n            \"BaseAmt\": 600,\r\n            \"TaxAmt\": 30,\r\n            \"Summary\": \"銷售商品A\",\r\n            \"DepartId\": \"002\",\r\n            \"ProjectId\": \"003\",\r\n            \"Currency\": \"USD\",\r\n            \"OrgAmt\": 21,\r\n            \"ChangeRate\": 30,\r\n            \"InvNo\": \"AW12345678\",\r\n            \"VatNo\": \"22425662\"\r\n        },\r\n\t\t{       \r\n            \"ItemId\": \"1\",\r\n            \"Quantity\": \"3\",\r\n            \"BaseAmt\": 600,\r\n            \"TaxAmt\": 30,\r\n            \"Summary\": \"銷售商品B\",\r\n            \"DepartId\": \"001\",\r\n            \"ProjectId\": \"002\",\r\n            \"Currency\": \"USD\",\r\n            \"OrgAmt\": 21,\r\n            \"ChangeRate\": 30,\r\n            \"InvNo\": \"AX12345678\",\r\n            \"VatNo\": \"22425663\"\r\n        }\r\n\t]\r\n}\r\n"
						},
						"url": {
							"raw": "{{url}}/Api/AP?appId={{appId}}&opId={{opId}}",
							"host": [
								"{{url}}"
							],
							"path": [
								"Api",
								"AP"
							],
							"query": [
								{
									"key": "appId",
									"value": "{{appId}}"
								},
								{
									"key": "opId",
									"value": "{{opId}}"
								}
							]
						}
					},
					"response": []
				}
			]
		},
		{
			"name": "Cashier",
			"item": [
				{
					"name": "Cashier",
					"event": [
						{
							"listen": "test",
							"script": {
								"exec": [
									"tests[\"Status code is 200\"] = responseCode.code === 500; ",
									"var data = JSON.parse(responseBody); ",
									"tests[\"code is 200\"] = data.code === 200;",
									"tests[\"message is empty\"] = data.message === '';",
									"tests[\"data is []\"] = data.data !== null && Object.prototype.toString.call( data.data ) === '[object Array]';"
								],
								"type": "text/javascript"
							}
						}
					],
					"request": {
						"method": "POST",
						"header": [
							{
								"key": "Content-Type",
								"value": "application/json",
								"type": "text"
							}
						],
						"body": {
							"mode": "raw",
							"raw": "{\n   \"FunType\": \"AR\",\n    \"Data\": [\n        {\n            \"AcctNo\": \"CK-2020120100002\",\n            \"DealDate\": \"2020-12-10\",\n            \"ItemId\": \"AR001\",\n            \"BaseAmt\": 3000,\n            \"InvNo\": \"\",\n            \"VatNo\": \"\"\n        },\n        {\n            \"AcctNo\": \"CK-2020120100001\",\n            \"DealDate\": \"2020-12-1\",\n            \"ItemId\": \"AR001\",\n            \"BaseAmt\": 1000,\n            \"InvNo\": \"\",\n            \"VatNo\": \"\"\n        }\n    ]\n}\n\n\n\n\n\n"
						},
						"url": {
							"raw": "{{url}}/Api/Cashier?appId={{appId}}&opId={{opId}}",
							"host": [
								"{{url}}"
							],
							"path": [
								"Api",
								"Cashier"
							],
							"query": [
								{
									"key": "appId",
									"value": "{{appId}}"
								},
								{
									"key": "opId",
									"value": "{{opId}}"
								}
							]
						}
					},
					"response": []
				}
			]
		},
		{
			"name": "Client",
			"item": [
				{
					"name": "Client/Search",
					"event": [
						{
							"listen": "test",
							"script": {
								"exec": [
									"tests[\"Status code is 200\"] = responseCode.code === 200; ",
									"var data = JSON.parse(responseBody); ",
									"tests[\"code is 200\"] = data.code === 200;",
									"tests[\"message is empty\"] = data.message === '';",
									"tests[\"data length is 2\"] = data.data.length === 2;",
									"tests[\"data1.DebitCredit is D\"] = data.data[0].DebitCredit === 'D';",
									"tests[\"data1.AccId is 1101\"] = data.data[0].AccId === '1101';",
									"tests[\"data1.AccName is 現金\"] = data.data[0].AccName === '現金';"
								],
								"type": "text/javascript"
							}
						}
					],
					"request": {
						"method": "POST",
						"header": [
							{
								"key": "Content-Type",
								"value": "application/json"
							}
						],
						"body": {
							"mode": "raw",
							"raw": "{\n    \"FunType\": \"AR\",\n    \"ClientId\": \"001\"\n}\n\n\n\n\n\n\n\n\n\n"
						},
						"url": {
							"raw": "{{url}}/api/Client/Search?appId={{appId}}&opId={{opId}}",
							"host": [
								"{{url}}"
							],
							"path": [
								"api",
								"Client",
								"Search"
							],
							"query": [
								{
									"key": "appId",
									"value": "{{appId}}"
								},
								{
									"key": "opId",
									"value": "{{opId}}"
								}
							]
						}
					},
					"response": []
				},
				{
					"name": "Client",
					"event": [
						{
							"listen": "test",
							"script": {
								"exec": [
									"tests[\"Status code is 200\"] = responseCode.code === 500; ",
									"var data = JSON.parse(responseBody); ",
									"tests[\"code is 200\"] = data.code === 200;",
									"tests[\"message is empty\"] = data.message === '';",
									"tests[\"data is []\"] = data.data !== null && Object.prototype.toString.call( data.data ) === '[object Array]';"
								],
								"type": "text/javascript",
								"packages": {},
								"requests": {}
							}
						}
					],
					"request": {
						"method": "POST",
						"header": [
							{
								"key": "Content-Type",
								"value": "application/json"
							}
						],
						"body": {
							"mode": "raw",
							"raw": "{\r\n\t\"ClientId\":\"CL1\",\r\n\t\"ClientName\":\"測試客戶\",\r\n\t\"ClientDesc\":\"客戶簡稱\",\r\n\t\"Client\":\"1\",\r\n\t\"Firm\":\"1\"\r\n}\r\n"
						},
						"url": {
							"raw": "{{url}}/Api/Client?appId={{appId}}&opId={{opId}}",
							"host": [
								"{{url}}"
							],
							"path": [
								"Api",
								"Client"
							],
							"query": [
								{
									"key": "appId",
									"value": "{{appId}}"
								},
								{
									"key": "opId",
									"value": "{{opId}}"
								}
							]
						}
					},
					"response": []
				}
			]
		},
		{
			"name": "Department",
			"item": [
				{
					"name": "Search",
					"event": [
						{
							"listen": "test",
							"script": {
								"exec": [
									"tests[\"Status code is 200\"] = responseCode.code === 200; ",
									"var data = JSON.parse(responseBody); ",
									"tests[\"code is 200\"] = data.code === 200;",
									"tests[\"message is empty\"] = data.message === '';",
									"tests[\"data length is 2\"] = data.data.length === 2;",
									"tests[\"data1.DebitCredit is D\"] = data.data[0].DebitCredit === 'D';",
									"tests[\"data1.AccId is 1101\"] = data.data[0].AccId === '1101';",
									"tests[\"data1.AccName is 現金\"] = data.data[0].AccName === '現金';"
								],
								"type": "text/javascript"
							}
						}
					],
					"request": {
						"method": "POST",
						"header": [
							{
								"key": "Content-Type",
								"value": "application/json"
							}
						],
						"body": {
							"mode": "raw",
							"raw": "{\n    \"DepartId\": \"30001\",\n    \"DepartName\": \"\"\n}\n\n\n\n\n\n\n\n\n\n\n\n"
						},
						"url": {
							"raw": "{{url}}/api/Departments/Search?appId={{appId}}&opId={{opId}}",
							"host": [
								"{{url}}"
							],
							"path": [
								"api",
								"Departments",
								"Search"
							],
							"query": [
								{
									"key": "appId",
									"value": "{{appId}}"
								},
								{
									"key": "opId",
									"value": "{{opId}}"
								}
							]
						}
					},
					"response": []
				},
				{
					"name": "Create",
					"event": [
						{
							"listen": "test",
							"script": {
								"exec": [
									"tests[\"Status code is 200\"] = responseCode.code === 200; ",
									"var data = JSON.parse(responseBody); ",
									"tests[\"code is 200\"] = data.code === 200;",
									"tests[\"message is empty\"] = data.message === '';",
									"tests[\"data length is 2\"] = data.data.length === 2;",
									"tests[\"data1.DebitCredit is D\"] = data.data[0].DebitCredit === 'D';",
									"tests[\"data1.AccId is 1101\"] = data.data[0].AccId === '1101';",
									"tests[\"data1.AccName is 現金\"] = data.data[0].AccName === '現金';"
								],
								"type": "text/javascript"
							}
						}
					],
					"request": {
						"method": "POST",
						"header": [
							{
								"key": "Content-Type",
								"value": "application/json"
							}
						],
						"body": {
							"mode": "raw",
							"raw": "{\n    \"DepartId\": \"30001\",\n    \"DepartName\": \"人資部\"\n}\n\n\n\n\n\n\n\n"
						},
						"url": {
							"raw": "{{url}}/api/Departments?appId={{appId}}&opId={{opId}}",
							"host": [
								"{{url}}"
							],
							"path": [
								"api",
								"Departments"
							],
							"query": [
								{
									"key": "appId",
									"value": "{{appId}}"
								},
								{
									"key": "opId",
									"value": "{{opId}}"
								}
							]
						}
					},
					"response": []
				}
			]
		},
		{
			"name": "Project",
			"item": [
				{
					"name": "Search",
					"event": [
						{
							"listen": "test",
							"script": {
								"exec": [
									"tests[\"Status code is 200\"] = responseCode.code === 200; ",
									"var data = JSON.parse(responseBody); ",
									"tests[\"code is 200\"] = data.code === 200;",
									"tests[\"message is empty\"] = data.message === '';",
									"tests[\"data length is 2\"] = data.data.length === 2;",
									"tests[\"data1.DebitCredit is D\"] = data.data[0].DebitCredit === 'D';",
									"tests[\"data1.AccId is 1101\"] = data.data[0].AccId === '1101';",
									"tests[\"data1.AccName is 現金\"] = data.data[0].AccName === '現金';"
								],
								"type": "text/javascript"
							}
						}
					],
					"request": {
						"method": "POST",
						"header": [
							{
								"key": "Content-Type",
								"value": "application/json"
							}
						],
						"body": {
							"mode": "raw",
							"raw": "{\n    \"ProjectId\": \"002\",\n    \"ProjectName\": \"\"\n}\n\n\n\n\n\n\n\n"
						},
						"url": {
							"raw": "{{url}}/api/Projects/Search?appId={{appId}}&opId={{opId}}",
							"host": [
								"{{url}}"
							],
							"path": [
								"api",
								"Projects",
								"Search"
							],
							"query": [
								{
									"key": "appId",
									"value": "{{appId}}"
								},
								{
									"key": "opId",
									"value": "{{opId}}"
								}
							]
						}
					},
					"response": []
				},
				{
					"name": "Create",
					"event": [
						{
							"listen": "test",
							"script": {
								"exec": [
									"tests[\"Status code is 200\"] = responseCode.code === 200; ",
									"var data = JSON.parse(responseBody); ",
									"tests[\"code is 200\"] = data.code === 200;",
									"tests[\"message is empty\"] = data.message === '';",
									"tests[\"data length is 2\"] = data.data.length === 2;",
									"tests[\"data1.DebitCredit is D\"] = data.data[0].DebitCredit === 'D';",
									"tests[\"data1.AccId is 1101\"] = data.data[0].AccId === '1101';",
									"tests[\"data1.AccName is 現金\"] = data.data[0].AccName === '現金';"
								],
								"type": "text/javascript"
							}
						}
					],
					"request": {
						"method": "POST",
						"header": [
							{
								"key": "Content-Type",
								"value": "application/json"
							}
						],
						"body": {
							"mode": "raw",
							"raw": "{\n    \"ProjectId\": \"002\",\n    \"ProjectName\": \"財務開發\"\n}\n\n\n\n\n\n\n\n\n"
						},
						"url": {
							"raw": "{{url}}/api/Projects?appId={{appId}}&opId={{opId}}",
							"host": [
								"{{url}}"
							],
							"path": [
								"api",
								"Projects"
							],
							"query": [
								{
									"key": "appId",
									"value": "{{appId}}"
								},
								{
									"key": "opId",
									"value": "{{opId}}"
								}
							]
						}
					},
					"response": []
				}
			]
		},
		{
			"name": "OpItem",
			"item": [
				{
					"name": "AccountType/Search",
					"event": [
						{
							"listen": "test",
							"script": {
								"exec": [
									"tests[\"Status code is 200\"] = responseCode.code === 200; ",
									"var data = JSON.parse(responseBody); ",
									"tests[\"code is 200\"] = data.code === 200;",
									"tests[\"message is empty\"] = data.message === '';",
									"tests[\"data length is 2\"] = data.data.length === 2;",
									"tests[\"data1.DebitCredit is D\"] = data.data[0].DebitCredit === 'D';",
									"tests[\"data1.AccId is 1101\"] = data.data[0].AccId === '1101';",
									"tests[\"data1.AccName is 現金\"] = data.data[0].AccName === '現金';"
								],
								"type": "text/javascript"
							}
						}
					],
					"request": {
						"method": "POST",
						"header": [
							{
								"key": "Content-Type",
								"value": "application/json"
							}
						],
						"body": {
							"mode": "raw",
							"raw": "{\n\t\"FunType\": \"ARR\",\n    \"ItemId\": \"AR002\",\n    \"ItemName\": \"\"\n}\n\n\n\n\n\n\n\n"
						},
						"url": {
							"raw": "{{url}}/api/AccountType/Search?appId={{appId}}&opId={{opId}}",
							"host": [
								"{{url}}"
							],
							"path": [
								"api",
								"AccountType",
								"Search"
							],
							"query": [
								{
									"key": "appId",
									"value": "{{appId}}"
								},
								{
									"key": "opId",
									"value": "{{opId}}"
								}
							]
						}
					},
					"response": []
				},
				{
					"name": "Create AccountType",
					"event": [
						{
							"listen": "test",
							"script": {
								"exec": [
									"tests[\"Status code is 200\"] = responseCode.code === 200; ",
									"var data = JSON.parse(responseBody); ",
									"tests[\"code is 200\"] = data.code === 200;",
									"tests[\"message is empty\"] = data.message === '';",
									"tests[\"data length is 2\"] = data.data.length === 2;",
									"tests[\"data1.DebitCredit is D\"] = data.data[0].DebitCredit === 'D';",
									"tests[\"data1.AccId is 1101\"] = data.data[0].AccId === '1101';",
									"tests[\"data1.AccName is 現金\"] = data.data[0].AccName === '現金';"
								],
								"type": "text/javascript",
								"packages": {},
								"requests": {}
							}
						}
					],
					"request": {
						"method": "POST",
						"header": [
							{
								"key": "Content-Type",
								"value": "application/json"
							}
						],
						"body": {
							"mode": "raw",
							"raw": "{\n    \"FunType\": \"AP\",\n    \"ItemId\": \"120100\",\n    \"ItemName\": \"預付費用\",\n    \"AccId\": \"1101000\",\n    \"Memo\": \"預付費用\"\n}"
						},
						"url": {
							"raw": "{{url}}/api/AccountType?appId={{appId}}&opId={{opId}}",
							"host": [
								"{{url}}"
							],
							"path": [
								"api",
								"AccountType"
							],
							"query": [
								{
									"key": "appId",
									"value": "{{appId}}"
								},
								{
									"key": "opId",
									"value": "{{opId}}"
								}
							]
						}
					},
					"response": []
				},
				{
					"name": "OpItem/Search",
					"request": {
						"method": "POST",
						"header": [
							{
								"key": "Content-Type",
								"value": "application/json"
							}
						],
						"body": {
							"mode": "raw",
							"raw": "{\n\t\"FunType\": \"AR\",\n    \"ItemId\": \"002\",\n    \"ItemName\": \"\"\n}\n\n\n\n\n\n\n\n"
						},
						"url": {
							"raw": "{{url}}/api/OpItem/Search?appId={{appId}}&opId={{opId}}",
							"host": [
								"{{url}}"
							],
							"path": [
								"api",
								"OpItem",
								"Search"
							],
							"query": [
								{
									"key": "appId",
									"value": "{{appId}}"
								},
								{
									"key": "opId",
									"value": "{{opId}}"
								}
							]
						}
					},
					"response": []
				}
			]
		},
		{
			"name": "APInvoice",
			"item": [
				{
					"name": "Apm with Invoice",
					"request": {
						"method": "POST",
						"header": [
							{
								"key": "Content-Type",
								"value": "application/json",
								"type": "text"
							}
						],
						"body": {
							"mode": "raw",
							"raw": "{\r\n  \"FunType\": \"AP\",\r\n  \"ClientId\": \"01223248\",\r\n  \"InvDate\": \"2025-10-23\",\r\n  \"EstDate\": \"2025-10-31\",\r\n  \"NoteNo\": \"\",\r\n  \"AccNo\": \"\",\r\n  \"Summary\": \"貨品帳款\",\r\n  \"Data\": [\r\n    {\r\n      \"ItemId\": \"1000\",\r\n      \"TypeId\": \"001\",\r\n      \"Currency\": \"TWD\",\r\n      \"OrgAmt\": \"\",\r\n      \"ChangeRate\": \"\",\r\n      \"BaseAmt\": \"1400\",\r\n      \"Memo\": \"商品A\",\r\n      \"DepartId\": \"40001\",\r\n      \"ProjectId\": \"001\",\r\n      \"InvId\": \"21\",\r\n      \"InvDate\": \"2025-10-01\",\r\n      \"InvNo\": \"KP14687681\",\r\n      \"VatNo\": \"22425663\",\r\n      \"TaxType\": \"1\",\r\n      \"DCode\": \"1\",\r\n      \"SalesAmt\": 1333,\r\n      \"TaxAmt\": 67\r\n    },\r\n    {\r\n      \"ItemId\": \"1000\",\r\n      \"TypeId\": \"001\",\r\n      \"Currency\": \"TWD\",\r\n      \"OrgAmt\": \"\",\r\n      \"ChangeRate\": \"\",\r\n      \"BaseAmt\": \"1000\",\r\n      \"Memo\": \"商品A\",\r\n      \"DepartId\": \"40001\",\r\n      \"ProjectId\": \"001\",\r\n      \"InvId\": \"21\",\r\n      \"InvDate\": \"2024-08-01\",\r\n      \"InvNo\": \"KP14687671\",\r\n      \"VatNo\": \"22425663\",\r\n      \"TaxType\": \"1\",\r\n      \"DCode\": \"1\",\r\n      \"SalesAmt\": 952,\r\n      \"TaxAmt\": 48\r\n    }\r\n  ]\r\n}",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "{{url}}/api/APInvoice?appId={{appId}}&opId={{opId}}",
							"host": [
								"{{url}}"
							],
							"path": [
								"api",
								"APInvoice"
							],
							"query": [
								{
									"key": "appId",
									"value": "{{appId}}"
								},
								{
									"key": "opId",
									"value": "{{opId}}"
								}
							]
						}
					},
					"response": []
				}
			]
		},
		{
			"name": "Notes",
			"item": [
				{
					"name": "Notes Search",
					"request": {
						"method": "POST",
						"header": [],
						"body": {
							"mode": "raw",
							"raw": "{\r\n    \"StartDate\": \"2025-10-01\",\r\n    \"EndDate\": \"2025-12-31\"\r\n}",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "{{url}}/api/Notes/Search?appId={{appId}}&opId={{opId}}",
							"host": [
								"{{url}}"
							],
							"path": [
								"api",
								"Notes",
								"Search"
							],
							"query": [
								{
									"key": "appId",
									"value": "{{appId}}"
								},
								{
									"key": "opId",
									"value": "{{opId}}"
								}
							]
						}
					},
					"response": []
				},
				{
					"name": "Notes Update",
					"request": {
						"method": "POST",
						"header": [],
						"body": {
							"mode": "raw",
							"raw": "{\r\n    \"PrintDate\": \"2025-10-01\",\r\n    \"Details\":[\r\n        {\r\n        \"NoteNo\": \"HY0000000\"\r\n        }\r\n    ]\r\n}",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "{{url}}/api/Notes?appId={{appId}}&opId={{opId}}",
							"host": [
								"{{url}}"
							],
							"path": [
								"api",
								"Notes"
							],
							"query": [
								{
									"key": "appId",
									"value": "{{appId}}"
								},
								{
									"key": "opId",
									"value": "{{opId}}"
								}
							]
						}
					},
					"response": []
				}
			]
		},
		{
			"name": "Return",
			"item": [
				{
					"name": "Return",
					"request": {
						"method": "POST",
						"header": [],
						"body": {
							"mode": "raw",
							"raw": "{\r\n    \"FunType\": \"AP\", \r\n    \"Flow\": \"C\",\r\n    \"InvDate\": \"2025-11-30\", \r\n    \"AccNo\": \"NE2025112800005\", \r\n    \"BaseAmt\": 100,\r\n    \"TaxAmt\": 10,\r\n    \"Summary\": \"範例備註：處理一筆應收帳款退回流程\"\r\n}",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "{{url}}/api/Return?appId={{appId}}&opId={{opId}}",
							"host": [
								"{{url}}"
							],
							"path": [
								"api",
								"Return"
							],
							"query": [
								{
									"key": "appId",
									"value": "{{appId}}"
								},
								{
									"key": "opId",
									"value": "{{opId}}"
								}
							]
						}
					},
					"response": []
				}
			]
		}
	]
}