This version is in beta - expect some breaking changes.

National Insurance API

Dates and amounts
Date Amount
Version and status
Available in Sandbox Yes
Sandbox base URL https://test-api.service.hmrc.gov.uk
Available in Production Yes
Production base URL https://api.service.hmrc.gov.uk

Overview

This API retrieves an annual summary of an individual taxpayer's class 1 total earnings and class 2 National Insurance contributions due for a given tax year.

Its primary use is for the calculation of a self-employed taxpayer's National Insurance liability within the Self Assessment tax calculation.

Errors

Testing

You can use the sandbox environment to test this API.

It supports stateful behaviour. You can set up test data for this API using the National Insurance Test Support API.

Versioning

Endpoints

The way we show National Insurance API v1.1 endpoints has changed, which might look different to other Developer Hub APIs.

The API has not changed. You do not need to make any updates to your application if you already use this API.