submission-tracker

Build Status Download

Retrieve tracking data based on the supplied tax identifier.

Development Setup

  • Run locally: sbt run which runs on port 8232 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_SUBMISSION_TRACKER sm2 --start MOBILE_SUBMISSION_TRACKER

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

Requirements

The following services are exposed from the micro-service.

API

Task Supported Methods Description
/tracking/:id/:idType GET Retrieve the tracking data for the 'id' and 'idType'. The Id is the tax identifier and the 'idType' is the type of tax identifier. More...

Sandbox

All the above endpoints are accessible on sandbox with /sandbox prefix on each endpoint,e.g.

    GET /sandbox/tracking/:id/:idType

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
"NO-FORMS" Happy path with no form data
"ERROR-401" Unhappy path, trigger a 401 Unauthorized response
"ERROR-403" Unhappy path, trigger a 403 Forbidden response
"ERROR-500" Unhappy path, trigger a 500 Internal Server Error response
Not set or any other value Happy path, receive tracking data

Definition

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

Version

Version of API need to be provided in Accept request header

Accept: application/vnd.hmrc.v1.0+json

License

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