Giter Club home page Giter Club logo

hmrc.customer-profile's Introduction

CUSTOMER-PROFILE

Build Status Download

Allows users to view tax profile and communication preferences

Requirements

The following services are exposed from the micro-service.

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

API

Task Supported Methods Description
/profile/accounts GET Look up for the current user's tax account identifiers. More...
/profile/personal-details/:nino GET Returns a user's designatory details. More...
/profile/preferences GET Returns the user's preferences. More...
/profile/preferences/paperless-settings/opt-in POST Sets or updates the user's paperless opt-in preference settings. More...
/profile/preferences/paperless-settings/opt-out POST Opts the user out of paperless. More...

Sandbox

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

    GET /sandbox/profile/accounts

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" to specify the appropriate status code and return payload. See each linked file for details:

Task Supported Methods Description
/sandbox/profile/accounts GET Acts as a stub for the related live endpoint. More...
/sandbox/profile/personal-details/:nino GET Acts as a stub for the related live endpoint. More...
/sandbox/profile/preferences GET Acts as a stub for the related live endpoint. More...
/sandbox/profile/preferences/paperless-settings/opt-in POST Acts as a stub for the related live endpoint. More...
/sandbox/profile/preferences/paperless-settings/opt-out POST Acts as a stub for the related live endpoint. More...

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

hmrc.customer-profile's People

Contributors

duncancrawford avatar pacenick avatar paulhodgson avatar mrolfe88 avatar trojanater avatar rszmacinski avatar smudgey avatar stevesugden avatar dougc avatar dimitrit avatar hmrc-web-operations avatar tendai-moffatt avatar paulomiguel010 avatar frankoid avatar chrisob55 avatar peter-hazell avatar jennifermcmillan10 avatar ardesco avatar ralphcollett avatar gokyo avatar tomasz-rosiek 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.