Skip to content

hmrc/tax-free-childcare-payments

Repository files navigation

tax-free-childcare-payments

acronyms used:
TFC - the government held tax-free childcare account, from which parent can benefit from gov top-ups
EPP - external apps that parent typically use to pay for their childcare invoices.
CCP - childcare providers

Parents usually, either use TFC account or EPP account to pay for their children activities invoices. By using the EPP account they might miss out on the advantage of top-up payments. They only benefit from the top-up payment contributions if they log in into their TFC account.

The purpose of this set of these apis is to bridge this gap to allow parent to link, request balance and instruct payment to CCPs. This not only helps them to access top-up payment from their EPP app, it also assists them to having to switch between 2 accounts.

the process is for any government registered EEP app, the parent upon logging into their EPP account:

they get a chance to authorise and link their EPP to their TFC account for a child in question. The parent is then directed to log in into government gateway and give permission to the EPP to act on their behalf.

Once the permission is given then the EPP app can request balance from their corresponding TFC account.

Then, if the parent has an invoice to pay, then they can select the amount and target CCP or EPP.

Run locally

./run_local.sh

Logging

Implicit

Scenario Level Logger Name Message Pattern Source
Inbound Request INFO uk.gov.hmrc.play.bootstrap.filters.DefaultLoggingFilter [A-Z]+ \S+ \d{3} \d+ms Bootstrap
Outbound 200 DEBUG connector \S*:[A-Z]+:\d+:\d+\.\d{3}[mnu]?s:\d+:\d+\.\d{3}[mnu]?s:[0-9a-f]{1,4}:\S+:ok HTTP Verbs
Outbound 404 INFO connector \S*:[A-Z]+:\d+:\d+\.\d{3}[mnu]?s:\d+:\d+\.\d{3}[mnu]?s:[0-9a-f]{1,4}:\S+:failed .* HTTP Verbs
Outbound Error WARN connector \S*:[A-Z]+:\d+:\d+\.\d{3}[mnu]?s:\d+:\d+\.\d{3}[mnu]?s:[0-9a-f]{1,4}:\S+:failed .* HTTP Verbs

Explicit

Scenario Level Logger Name Message Pattern
Missing Correlation ID INFO controllers.actions.AuthAction <null> Missing Correlation-ID header.
Invalid Correlation ID INFO controllers.actions.AuthAction <(.{37,}> UUID string too large|.{0,36}> Invalid UUID string: .*)
Empty Nino Retrieval INFO controllers.actions.AuthAction <[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}> Unable to retrieve NI number.
Bad Request Payload INFO config.customJsonErrorHandler Json validation error.*