Giter Club home page Giter Club logo

hmrc.currency-conversion's Introduction

currency-conversion

This service is used to retrieve one or more exchange rates for countries from the approved HMRC monthly exchange rates

Flow

Successful Flow (200 Response)

  • A call is made to the /rates/:date endpoint with a valid date and one or more currency codes in the query string.
  • A 200 response with JSON data containing the start and end date for the rates, the currency code and the rate for that currency code.

Endpoints

GET /currency-conversion/rates/:date

Example

GET -> /currency-conversion/rates/2019-03-21?cc=USD

Response Body

[
    {
        "startDate": "2019-03-01",
        "endDate": "2019-03-31",
        "currencyCode": "USD",
        "rate": "1.3064"
    }
]

NB: If an exchange rate file cannot be found, an error will be logged and a WARNING 299 - Date out of range will be in the response headers.

Exchange Rates Data

Exchange rates data currently resides in the /conf/resources/xml directory. This service currently only supports the exchange rate file data in the xml format

hmrc.currency-conversion's People

Contributors

anburoach avatar bharti5verma avatar cameronstalker1 avatar ericohwotu avatar hmrc-web-operations avatar jordanrowe avatar lauren-mccarthy avatar nathan-maybrey avatar nicf82 avatar pmcphee avatar pratikrana06 avatar roblav avatar shravannallagoni avatar shreyddas avatar subhajitchowdhury avatar sureshhmrc avatar suryend4u avatar thomascurry 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.