무주택자 연산
  1. API v1.0 가이드
  2. 에러 코드

무주택자 연산

URL

POST /api/v1/calculate/homeless
Content-Type: application/json

Header

Authorization: Basic {ENCODED_SECRET_KEY}
PathTypeRequiredDescription
AuthorizationStringOBasic 인증을 사용합니다.

키 뒤에 콜론(:)을 추가하고 base64로 인코딩하세요.

base64('taxaiTorfJjZNrEHFdGsi1xCs1EgtlDc9W9nT:')

Request Body

{
  "annualSalary" : 50000000,
  "monthRent" : 500000,
  "houseSub" : 100000,
  "leaseLoanRepay" : 100000
}

Request Fields

PathTypeRequiredDescription
annualSalaryNumberO1년 급여액
monthRentNumberX월세지출액
houseSubNumberX주택마련저축(청약) 월 납입액
leaseLoanRepayNumberX전세 대출 원리금 월상환액

요청 예시

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"
}
NameDescription
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

PathTypeDescription
resultCodeNumber응답코드(정상: 200)
resultMessageString응답메세지(정상: OK)
resultDataObject결과
resultData.detailsObject자세한 결과
resultData.details.annualSalaryNumber총급여
resultData.details.incomeDeductNumber근로소득공제액
resultData.details.incomeNumber근로소득금액
resultData.details.basicDeductNumber기본공제
resultData.details.houseSubDeductNumber주택마련저축공제
resultData.details.incomeTaxBaseNumber종합소득 과세표준
resultData.details.highestTaxRateNumber최고세율
resultData.details.progressiveDeductNumber누진공제
resultData.details.incomeTaxNumber근로소득산출세액
resultData.details.monthRentDeductNumber월세액 세액공제
resultData.details.totalTaxNumber납부할 총세액
resultData.outputObject연산 결과
resultData.output.saveTaxSavingNumber저축공제 절세액
resultData.output.monthRentTaxSavingNumber월세 세액공제 절세액
resultData.output.totalTaxSavingNumber절세액 총 합계