Skip to content

Latest commit

 

History

History
68 lines (48 loc) · 1.44 KB

taxcode-incomes.md

File metadata and controls

68 lines (48 loc) · 1.44 KB

Taxcode Incomes

The end point fetches tax code incomes for a given nino and given year

{
  "data" : [ {
    "componentType" : "EmploymentIncome",
    "employmentId" : 1,
    "amount" : 1100,
    "description" : "EmploymentIncome",
    "taxCode" : "1150L",
    "name" : "Employer1",
    "basisOperation" : "Week1Month1BasisOperation",
    "status" : "Live",
    "inYearAdjustment" : 0
  }, {
    "componentType" : "EmploymentIncome",
    "employmentId" : 2,
    "amount" : 0,
    "description" : "EmploymentIncome",
    "taxCode" : "1100L",
    "name" : "Employer2",
    "basisOperation" : "OtherBasisOperation",
    "status" : "PotentiallyCeased",
    "inYearAdjustment" : 321.12
  } ],
  "links" : [ ]
}
  • Error Response:

    • Code: 401 UNAUTHORIZED
      Content: {"statusCode":401,"message":"Authorisation refused for access to GET /tai/$NINO/tax-summary/2014"}

    OR when there is no tax code incomes are found

    • Code: 404 NOT_FOUND

    OR anything else

    • Code: 500 INTERNAL_SERVER_ERROR