Giter Site home page Giter Site logo

self-assessment-api's Introduction

Self-Assessment API

Build Status Download

This REST API allows clients to post information related to a taxpayer, and then get an estimated tax liability calculation for a tax period.

A typical workflow would be:

  1. Authenticate.
  2. Access a self-assessment resource (this is implicitly created).
  3. Send details of various income sources (e.g. employment or property).
  4. Send details of various types of summary (e.g. income or expenses) for each source.
  5. Request a liability calculation.
  6. Wait for calculation to complete (only a short time).
  7. Request calculation and display it to your user.

All end points are User Restricted (see authorisation). Versioning, data formats etc follow the API Platform standards (see the reference guide).

The API makes use of HATEOAS/HAL resource links. Your application does not need to store a catalogue of all URLs.

Sources and summaries will be given IDs. Do not expect these to be GUIDs. They will only be unique within context. I.e. source IDs will be unique for that type of source and within that self-assessment. Similarly, summary IDs will be unique for that type of summary within its source.

You will need to store these IDs within your application for disambiguation and reconciliation.

Consider:

  • We do not expect or want you to submit transaction level information (if fact, we may limit the amount of data you can send). How will you aggregate this information within your software?
  • How does your application deal with lost HTTP requests or responses?
  • How do you reconcile your data with our data?
  • The API doesn't expose meta-data or audit information (e.g. created or update times, who made the change). Do you need to record this audit information yourself?
  • Your application may not be the only application access and modifying a taxpayer's data. How would you differentiate different data from your application and others?

You can dive deeper into the documentation in the API Developer Hub.

Running Locally

Install Service Manager, if you want live endpoints, then start dependencies:

sm --start MONGO
sm --start AUTH -f
sm --start DATASTREAM -f

Start the app:

sbt run -Drun.mode=Dev

Now you can test sandbox:

curl -v http://localhost:9000/sandbox/$UTR -H 'Accept: application/vnd.hmrc.1.0+json'

License

This code is open source software licensed under the Apache 2.0 License

self-assessment-api's People

Contributors

danmassie avatar dabd avatar hicnar avatar saurabharora80 avatar romankusnierz avatar sudoku007 avatar rakeshavasarala avatar alexec avatar hmrc-web-operations avatar

Watchers

James Cloos avatar Lee Hawksworth avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.