URL
POST /api/v1/calculate/homeless
Content-Type: application/json
Header
Authorization: Basic {ENCODED_SECRET_KEY}
Path | Type | Required | Description |
---|
Authorization | String | O | Basic 인증을 사용합니다. |
키 뒤에 콜론(:)을 추가하고 base64로 인코딩하세요.
base64('taxaiTorfJjZNrEHFdGsi1xCs1EgtlDc9W9nT:')
Request Body
{
"annualSalary" : 50000000,
"monthRent" : 500000,
"houseSub" : 100000,
"leaseLoanRepay" : 100000
}
Request Fields
Path | Type | Required | Description |
---|
annualSalary | Number | O | 1년 급여액 |
monthRent | Number | X | 월세지출액 |
houseSub | Number | X | 주택마련저축(청약) 월 납입액 |
leaseLoanRepay | Number | X | 전세 대출 원리금 월상환액 |
요청 예시
curl --request POST \
--url https://taxai.kr/api/v1/calculate/homeless \
--header 'Authorization: Basic {ENCODED_SECRET_KEY}' \
--header 'Content-Type: application/json' \
--data '{"annualSalary":50000000,"monthRent":500000,"houseSub":100000,"leaseLoanRepay":100000}'
Response Header
{
"X-Transaction-Id":"371347a62a914a47ab1931fc6e62c70f"
}
Name | Description |
---|
X-Transaction-Id | 트랜잭션 ID |
Response Body
{
"resultCode" : 200,
"resultMessage" : "OK",
"resultData" : {
"details" : {
"annualSalary" : 50000000,
"incomeDeduct" : 12250000,
"income" : 37750000,
"basicDeduct" : 1500000,
"houseSubDeduct" : 1680000,
"incomeTaxBase" : 34570000,
"highestTaxRate" : 0.15,
"progressiveDeduct" : 1260000,
"incomeTax" : 3925500,
"monthRentDeduct" : 1020000,
"totalTax" : 2905500
},
"output" : {
"saveTaxSaving" : 277200,
"monthRentTaxSaving" : 1122000,
"totalTaxSaving" : 1399200
}
}
}
Response Fields
Path | Type | Description |
---|
resultCode | Number | 응답코드(정상: 200) |
resultMessage | String | 응답메세지(정상: OK) |
resultData | Object | 결과 |
resultData.details | Object | 자세한 결과 |
resultData.details.annualSalary | Number | 총급여 |
resultData.details.incomeDeduct | Number | 근로소득공제액 |
resultData.details.income | Number | 근로소득금액 |
resultData.details.basicDeduct | Number | 기본공제 |
resultData.details.houseSubDeduct | Number | 주택마련저축공제 |
resultData.details.incomeTaxBase | Number | 종합소득 과세표준 |
resultData.details.highestTaxRate | Number | 최고세율 |
resultData.details.progressiveDeduct | Number | 누진공제 |
resultData.details.incomeTax | Number | 근로소득산출세액 |
resultData.details.monthRentDeduct | Number | 월세액 세액공제 |
resultData.details.totalTax | Number | 납부할 총세액 |
resultData.output | Object | 연산 결과 |
resultData.output.saveTaxSaving | Number | 저축공제 절세액 |
resultData.output.monthRentTaxSaving | Number | 월세 세액공제 절세액 |
resultData.output.totalTaxSaving | Number | 절세액 총 합계 |