v1

latestOpenAPI 3.0.32026-07-131211345.4 KB
Payments and Liabilities

Retrieve History of a Self Assessment Charge by Charge Reference

This endpoint enables you to retrieve the history of a Self Assessment charge made by HMRC using a charge reference number. A National Insurance number and charge reference number must be provided.

Test data

Scenario simulation using Gov-Test-Scenario headers is only available in the sandbox environment.

Header Value (Gov-Test-Scenario)Scenario
N/A - DEFAULTSimulates success response.
NOT_FOUNDSimulates the scenario where no data is found.
get/accounts/self-assessment/{nino}/charges/chargeReference/{chargeReference}

Path parameters

ninostring required
Example:TC663795B

National Insurance number, in the format AA999999A.

chargeReferencestring required
Example:Ck106547829351

This field will be used when the need is to view a specific document with help of Charge Reference number

Must conform to the regular expression ^[A-Za-z]{2}[0-9]{12}$

Headers

Accept'application/vnd.hmrc.4.0+json' required

Specifies the response format and the version of the API to be used.

Authorizationstring required
Example:Bearer bb7fed3fe10dd235a2ccda3d50fb

An OAuth 2.0 Bearer Token with the read:self-assessment scope.

Gov-Test-Scenariostring
Example:-

Only in sandbox environment. See Test Data table for all header values.

Response

Success

Example response

{
  "chargeHistoryDetails": [
    {
      "transactionId": "X123456790A",
      "transactionDate": "2018-04-05",
      "description": "POA1, Balancing charge",
      "totalAmount": 600,
      "changeDate": "2018-04-05",
      "changeTimestamp": "2018-04-05T14:15:22.802Z",
      "changeReason": " Amended return, Customer Request",
      "poaAdjustmentReason": "004"
    }
  ]
}