v1
latestOpenAPI 3.0.32026-07-131211345.4 KBOpt Out of Coding Out
This endpoint enables a specified customer (identified by a National Insurance number) and tax year to opt out of coding out. Opt-out status can be changed up to and including 30 December following the end of the specified tax year. Opt-out status cannot be changed after the customer has made a final declaration for the specified tax year.
Test data
Scenario simulation using Gov-Test-Scenario headers is only available in the sandbox environment.
| Header Value (Gov-Test-Scenario) | Scenario |
|---|---|
| N/A - DEFAULT | Simulates a successful response with latest values. |
| BUSINESS_PARTNER_NOT_EXIST | Simulates a scenario where the NINO is valid but is not registered with ITSD as a business partner. |
| ITSA_CONTRACT_OBJECT_NOT_EXIST | Simulates a scenario where the NINO is valid and is registered with ITSD as a business partner, but the ITSA contract object does not exist for the NINO. |
| ALREADY_OPTED_OUT | Simulates a scenario where the customer cannot be opted out because they are already opted out. |
| STATEFUL | Performs a stateful Opt Out of Coding Out. |
Path parameters
National Insurance number, in the format AA999999A.
The tax year the data applies to, for example, 2021-22. The start year and end year must not span two tax years. No gaps are allowed, for example, 2020-22 is not valid.
Headers
Specifies the response format and the version of the API to be used.
An OAuth 2.0 Bearer Token with the read:self-assessment scope.
Only in sandbox environment. See Test Data table for all header values.
Response
Success(No Content)