Skip to content

Latest commit

 

History

History
55 lines (35 loc) · 1.07 KB

tai-root.md

File metadata and controls

55 lines (35 loc) · 1.07 KB

The TAI root object

Fetches the PAYE root object.

This contains some information about the PAYE user, as well as links for further interactions with their data.

{
   "nino":"$NINO",
   "version":17,
   "title":"Mr",
   "firstName":"name1",
   "secondName":"name1",
   "surname":"name1",
   "name":"name1",
   "dateOfBirth":"NpsDate(1969-03-05)"
}
  • Error Response:

    • Code: 400 BAD_REQUEST
      Content: {"statusCode":400,"message":"Cannot parse parameter 'nino' with value '$NINO' as 'Nino'"}

OR

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

OR when a user does not exist

  • Code: 404 NOT_FOUND