Skip to content

hmrc/mobile-self-assessment

Repository files navigation

mobile-self-assessment

Return the SA liability information for a given user, including total amount due/owed and future liabilities.

Requirements

Please note it is mandatory to supply an Accept HTTP header to all below services with the value application/vnd.hmrc.1.0+json.

Development Setup

  • Run locally: sbt run which runs on port 8261 by default
  • Run with test endpoints: sbt 'run -Dplay.http.router=testOnlyDoNotUseInAppConf.Routes'

Service Manager Profiles

The service can be run locally from Service Manager, using the following profiles:

Profile Details Command
MOBILE_SELF_ASSESSMENT_ALL sm2 --start MOBILE_SELF_ASSESSMENT_ALL

Run Tests

  • Run Unit Tests: sbt test
  • Run Integration Tests: sbt it:test
  • Run Unit and Integration Tests: sbt test it:test
  • Run Unit and Integration Tests with coverage report: sbt clean compile coverage test it:test coverageReport dependencyUpdates

API

Task Supported Methods Description
/mobile-self-assessment/:utr/liabilities GET Fetch the account summary and future liabilities for the given SaUtr More...

Shuttered

Shuttering of this service is handled by mobile-shuttering

Sandbox

To trigger the sandbox endpoints locally, use the "X-MOBILE-USER-ID" header with one of the following values: 208606423740 or 167927702220

To test different scenarios, add a header "SANDBOX-CONTROL" with one of the following values:

Value Description

Definition

API definition for the service will be available under /api/definition endpoint. See definition in /conf/api-definition.json for the format.

License

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 7

Languages