v1

latestOpenAPI 3.0.32026-07-1342625.4 MB
Tax Calculations

Retrieve a Self Assessment Tax Calculation

This endpoint allows the developer to retrieve all the tax calculation data for a given National Insurance number and Calculation ID.

Note: if the calculation has been triggered recently and has not yet completed, this endpoint will return 404 Not Found.

Test data

Scenario simulations 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.
ERROR_MESSAGES_EXISTSimulates the scenario where errors exist and no calculation has been generated.
UK_MULTIPLE_INCOMES_EXAMPLESimulates an example tax calculation for a UK FHL Property business with Savings and Dividends.
UK_PROP_DIVIDENDS_EXAMPLESimulates an example tax calculation for a UK Property (Non-FHL) business with Dividends.
UK_PROP_GIFTAID_EXAMPLESimulates an example tax calculation for a UK Property (Non-FHL) business with Gift Aid.
UK_PROP_SAVINGS_EXAMPLESimulates an example tax calculation for a UK Property (Non-FHL) business with Savings.
UK_SE_GIFTAID_EXAMPLESimulates an example tax calculation for a UK Self-Employment business with Gift Aid.
UK_SE_SAVINGS_EXAMPLESimulates an example tax calculation for a UK Self-Employment business with Savings.
SCOT_SE_DIVIDENDS_EXAMPLESimulates an example tax calculation for a Scottish Self-Employment business with Dividends.
DYNAMICThe date fields in the response are made dynamic based on the tax year passed within the request.<br><br/> The dynamic response will work for tax years (taxYear) starting 2023-24 onwards. For any previous tax years supplied, it will result in a HTTP 400 (RULE_INCORRECT_GOV_TEST_SCENARIO) error being returned.
get/individuals/calculations/{nino}/self-assessment/{taxYear}/{calculationId}

Path parameters

ninostring required
Example:TC663795B

National Insurance number, in the format AA999999A

taxYearstring required
Example:2021-22

The tax year the data applies to, for example, 2021-22. The start year and end year must not span two tax years. The minimum tax year is 2017-18. No gaps are allowed, for example, 2020-22 is not valid.

calculationIdstring required
Example:f2fb30e5-4ab6-4a29-b3c1-c7264259ff1c

The unique identifier of the calculation.

Must conform to the regular expression: ^[0-9]{8}|[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$

Headers

Accept'application/vnd.hmrc.8.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

OR
OR
OR

Example response

{
  "metadata": {
    "calculationId": "717f3a7a-db8e-11e9-8a34-2a2ae2dbcce4",
    "taxYear": "2022-23",
    "requestedTimestamp": "2019-02-15T09:35:15.094Z",
    "calculationTimestamp": "2019-02-15T09:35:15.094Z",
    "intentToSubmitFinalDeclaration": true,
    "finalDeclarationTimestamp": "2019-02-15T09:35:15.094Z",
    "periodFrom": "2020-01-01",
    "periodTo": "2020-01-01"
  },
  "inputs": {
    "personalInformation": {
      "class2VoluntaryContributions": true,
      "uniqueTaxpayerReference": "AGvHTfRUPO"
    },
    "incomeSources": {
      "businessIncomeSources": [
        {
          "incomeSourceName": "ABC-123 Ltd.",
          "submissionPeriods": [
            {
              "periodId": "001"
            }
          ]
        }
      ],
      "nonBusinessIncomeSources": [
        {
          "incomeSourceName": "Savings Account",
          "periodId": "001"
        }
      ]
    },
    "annualAdjustments": [
      {
        "bsasId": "123a456b-789c-1d23-845e-678b9d1bd2ab",
        "applied": true
      }
    ],
    "claims": [
      {
        "sequence": 1
      }
    ],
    "constructionIndustryScheme": [
      {
        "employerRef": "123/AB56797",
        "contractorName": "Company-123 Ltd."
      }
    ]
  },
  "calculation": {
    "allowancesAndDeductions": {
      "personalAllowance": 5000,
      "marriageAllowanceTransferOut": {
        "personalAllowanceBeforeTransferOut": 5000.12,
        "transferredOutAmount": 5000.13
      },
      "reducedPersonalAllowance": 5001,
      "giftOfInvestmentsAndPropertyToCharity": 5002,
      "blindPersonsAllowance": 5003,
      "lossesAppliedToGeneralIncome": 5004,
      "cgtLossSetAgainstInYearGeneralIncome": 5005,
      "qualifyingLoanInterestFromInvestments": 5006.06,
      "postCessationTradeReceipts": 5007.77,
      "paymentsToTradeUnionsForDeathBenefits": 5008.88,
      "grossAnnuityPayments": 5009.99,
      "annuityPayments": {
        "reliefClaimed": 2000.58,
        "rate": 10.25
      },
      "pensionContributions": 2001.59,
      "pensionContributionsDetail": {
        "retirementAnnuityPayments": 2002.6,
        "paymentToEmployersSchemeNoTaxRelief": 2003.61,
        "overseasPensionSchemeContributions": 2004.62
      }
    },
    "reliefs": {
      "residentialFinanceCosts": {
        "adjustedTotalIncome": 2000.58,
        "totalAllowableAmount": 2001.58,
        "relievableAmount": 2002.58,
        "rate": 10.25,
        "totalResidentialFinanceCostsRelief": 2004.58,
        "ukProperty": {
          "amountClaimed": 2000,
          "allowableAmount": 2006.58,
          "carryForwardAmount": 2007.58
        },
        "foreignProperty": {
          "totalForeignPropertyAllowableAmount": 2006.58,
          "foreignPropertyRfcDetail": [
            {
              "countryCode": "FRA",
              "amountClaimed": 2000,
              "allowableAmount": 2007.58,
              "carryForwardAmount": 2008.58
            }
          ]
        },
        "allOtherIncomeReceivedWhilstAbroad": {
          "totalOtherIncomeAllowableAmount": 2009.58,
          "otherIncomeRfcDetail": [
            {
              "countryCode": "FRA",
              "residentialFinancialCostAmount": 2010.58,
              "broughtFwdResidentialFinancialCostAmount": 2010.58
            }
          ]
        }
      },
      "reliefsClaimed": [
        {
          "amountClaimed": 2011.58,
          "allowableAmount": 2012.58,
          "amountUsed": 2013.58,
          "rate": 20.99,
          "reliefsClaimedDetail": [
            {
              "amountClaimed": 2014.58,
              "uniqueInvestmentRef": "BAO123456A",
              "name": "EIS fund",
              "socialEnterpriseName": "SE Inc",
              "companyName": "Company Ltd",
              "customerReference": "INPOLY123A"
            }
          ]
        }
      ],
      "foreignTaxCreditRelief": {
        "customerCalculatedRelief": true,
        "totalForeignTaxCreditRelief": 2015.58,
        "foreignTaxCreditReliefOnProperty": 2016.58,
        "foreignTaxCreditReliefOnDividends": 2017.58,
        "foreignTaxCreditReliefOnSavings": 2018.58,
        "foreignTaxCreditReliefOnForeignIncome": 2019.58,
        "foreignTaxCreditReliefDetail": [
          {
            "incomeSourceId": "XAIS12345678910",
            "countryCode": "FRA",
            "foreignIncome": 2016.58,
            "foreignTax": 2017.58,
            "dtaRate": 20.99,
            "dtaAmount": 2000.77,
            "ukLiabilityOnIncome": 2001.77,
            "foreignTaxCredit": 2002.77,
            "employmentLumpSum": true
          }
        ]
      },
      "topSlicingRelief": {
        "amount": 2000.58
      },
      "basicRateExtension": {
        "totalBasicRateExtension": 2010.58,
        "giftAidRelief": 3000,
        "pensionContributionReliefs": 5000.58
      },
      "giftAidTaxReductionWhereBasicRateDiffers": {
        "amount": 2000.58
      }
    },
    "taxDeductedAtSource": {
      "bbsi": 2000.58,
      "ukLandAndProperty": 2001.59,
      "cis": 2002.6,
      "securities": 2003.61,
      "voidedIsa": 2004.62,
      "payeEmployments": 2005.63,
      "occupationalPensions": 2006.64,
      "stateBenefits": 2007.65,
      "specialWithholdingTaxOrUkTaxPaid": 2008.66,
      "inYearAdjustmentCodedInLaterTaxYear": 2009.67,
      "taxTakenOffTradingIncome": 2000.58
    },
    "giftAid": {
      "grossGiftAidPayments": 2000,
      "rate": 20.12,
      "giftAidTax": 100.12,
      "giftAidTaxReductions": 101.13,
      "incomeTaxChargedAfterGiftAidTaxReductions": 102.14,
      "giftAidCharge": 103.15
    },
    "royaltyPayments": {
      "royaltyPaymentsAmount": 2000,
      "rate": 10.12,
      "grossRoyaltyPayments": 2000
    },
    "notionalTax": {
      "chargeableGains": 2000.58
    },
    "marriageAllowanceTransferredIn": {
      "amount": 3000,
      "rate": 10.52
    },
    "pensionContributionReliefs": {
      "totalPensionContributionReliefs": 2000.58,
      "pensionContributionDetail": {
        "regularPensionContributions": 2000.58,
        "oneOffPensionContributionsPaid": 2000.58
      }
    },
    "pensionSavingsTaxCharges": {
      "totalPensionCharges": 160.99,
      "totalTaxPaid": 160.99,
      "totalPensionChargesDue": 130,
      "pensionSavingsTaxChargesDetail": {
        "excessOfLifeTimeAllowance": {
          "totalChargeableAmount": 160,
          "totalTaxPaid": 200,
          "lumpSumBenefitTakenInExcessOfLifetimeAllowance": {
            "amount": 160,
            "taxPaid": 100.5,
            "rate": 20.5,
            "chargeableAmount": 160.12
          },
          "benefitInExcessOfLifetimeAllowance": {
            "amount": 160,
            "taxPaid": 100.5,
            "rate": 20.5,
            "chargeableAmount": 160.12
          }
        },
        "pensionSchemeUnauthorisedPayments": {
          "totalChargeableAmount": 160,
          "totalTaxPaid": 100.5,
          "pensionSchemeUnauthorisedPaymentsSurcharge": {
            "amount": 160,
            "taxPaid": 100.5,
            "rate": 20.5,
            "chargeableAmount": 160.12
          },
          "pensionSchemeUnauthorisedPaymentsNonSurcharge": {
            "amount": 160,
            "taxPaid": 100.5,
            "rate": 20.5,
            "chargeableAmount": 160.12
          }
        },
        "pensionSchemeOverseasTransfers": {
          "transferCharge": 160,
          "transferChargeTaxPaid": 100.5,
          "rate": 20.5,
          "chargeableAmount": 160.12
        },
        "pensionContributionsInExcessOfTheAnnualAllowance": {
          "totalContributions": 160.12,
          "totalPensionCharge": 160.12,
          "annualAllowanceTaxPaid": 160.12,
          "totalPensionChargeDue": 160.12,
          "pensionBands": [
            {
              "rate": 20.5,
              "bandLimit": 2000,
              "apportionedBandLimit": 2000,
              "contributionAmount": 100.5,
              "pensionCharge": 100.5
            }
          ]
        },
        "overseasPensionContributions": {
          "totalShortServiceRefund": 160,
          "totalShortServiceRefundCharge": 100.5,
          "shortServiceRefundTaxPaid": 100.5,
          "totalShortServiceRefundChargeDue": 160.12,
          "shortServiceRefundBands": [
            {
              "rate": 20.5,
              "bandLimit": 2000,
              "apportionedBandLimit": 2000,
              "shortServiceRefundAmount": 100.5,
              "shortServiceRefundCharge": 100.5
            }
          ]
        }
      }
    },
    "studentLoans": [
      {
        "studentLoanTotalIncomeAmount": 100.5,
        "studentLoanChargeableIncomeAmount": 100.5,
        "studentLoanRepaymentAmount": 100.5,
        "studentLoanDeductionsFromEmployment": 100.5,
        "studentLoanRepaymentAmountNetOfDeductions": 100.5,
        "studentLoanApportionedIncomeThreshold": 2000,
        "studentLoanRate": 3.52,
        "payeIncomeForStudentLoan": 100.5,
        "nonPayeIncomeForStudentLoan": 100.5
      }
    ],
    "codedOutUnderpayments": {
      "totalPayeUnderpayments": 5000.99,
      "payeUnderpaymentsDetail": [
        {
          "amount": 5000.99,
          "relatedTaxYear": "2020-21"
        }
      ],
      "totalSelfAssessmentUnderpayments": 5000.99,
      "totalCollectedSelfAssessmentUnderpayments": 5000.99,
      "totalUncollectedSelfAssessmentUnderpayments": 5000.99,
      "selfAssessmentUnderpaymentsDetail": [
        {
          "amount": 5000.99,
          "relatedTaxYear": "2020-21",
          "collectedAmount": 5000.99,
          "uncollectedAmount": 5000.99
        }
      ]
    },
    "foreignPropertyIncome": [
      {
        "incomeSourceId": "XAIS12345678910",
        "countryCode": "FRA",
        "totalIncome": 2000.98,
        "totalExpenses": 2000.98,
        "netProfit": 2000.98,
        "netLoss": 2000.98,
        "totalAdditions": 2000.98,
        "totalDeductions": 2000.98,
        "taxableProfit": 2000.98,
        "adjustedIncomeTaxLoss": 2000.98
      }
    ],
    "businessProfitAndLoss": [
      {
        "incomeSourceId": "XAIS12345678910",
        "incomeSourceName": "ABC-123 Ltd.",
        "totalIncome": 5000.99,
        "totalExpenses": 5000.99,
        "netProfit": 5000.99,
        "netLoss": 5000.99,
        "totalAdditions": 5000.99,
        "totalDeductions": 5000.99,
        "accountingAdjustments": 5000.99,
        "taxableProfit": 160,
        "adjustedIncomeTaxLoss": 160,
        "totalBroughtForwardIncomeTaxLosses": 160,
        "lossForCSFHL": 160,
        "broughtForwardIncomeTaxLossesUsed": 160,
        "taxableProfitAfterIncomeTaxLossesDeduction": 160,
        "carrySidewaysIncomeTaxLossesUsed": 160,
        "broughtForwardCarrySidewaysIncomeTaxLossesUsed": 160,
        "totalIncomeTaxLossesCarriedForward": 160,
        "class4Loss": 160,
        "totalBroughtForwardClass4Losses": 160,
        "broughtForwardClass4LossesUsed": 160,
        "carrySidewaysClass4LossesUsed": 160,
        "totalClass4LossesCarriedForward": 160
      }
    ],
    "employmentAndPensionsIncome": {
      "totalPayeEmploymentAndLumpSumIncome": 2000.98,
      "totalOccupationalPensionIncome": 2000.98,
      "totalBenefitsInKind": 2000.98,
      "tipsIncome": 2000.98,
      "employmentAndPensionsIncomeDetail": [
        {
          "incomeSourceId": "bb74c290-cae6-11ec-9b64-0242ac120002",
          "employerRef": "123/AB56797",
          "employerName": "ABC-123 Ltd",
          "payrollId": "S9500206",
          "offPayrollWorker": true,
          "taxablePayToDate": 2000.98,
          "totalTaxToDate": 2000.98,
          "lumpSums": {
            "totalLumpSum": 2000.98,
            "totalTaxPaid": 2000.98,
            "lumpSumsDetail": {
              "taxableLumpSumsAndCertainIncome": {
                "amount": 2000.98,
                "taxPaid": 2000.98
              },
              "benefitFromEmployerFinancedRetirementScheme": {
                "amount": 2000.98,
                "exemptAmount": 2000.98,
                "taxPaid": 2000.98
              },
              "redundancyCompensationPaymentsOverExemption": {
                "amount": 2000.98,
                "taxPaid": 2000.98
              },
              "redundancyCompensationPaymentsUnderExemption": {
                "amount": 2000.98
              }
            }
          },
          "studentLoans": {
            "uglDeductionAmount": 2000.98,
            "pglDeductionAmount": 2000.98
          },
          "benefitsInKind": {
            "totalBenefitsInKindReceived": 2000.98,
            "benefitsInKindDetail": {
              "apportionedAccommodation": 2000.98,
              "apportionedAssets": 2000.98,
              "apportionedAssetTransfer": 2000.98,
              "apportionedBeneficialLoan": 2000.98,
              "apportionedCar": 2000.98,
              "apportionedCarFuel": 2000.98,
              "apportionedEducationalServices": 2000.98,
              "apportionedEntertaining": 2000.98,
              "apportionedExpenses": 2000.98,
              "apportionedMedicalInsurance": 2000.98,
              "apportionedTelephone": 2000.98,
              "apportionedService": 2000.98,
              "apportionedTaxableExpenses": 2000.98,
              "apportionedVan": 2000.98,
              "apportionedVanFuel": 2000.98,
              "apportionedMileage": 2000.98,
              "apportionedNonQualifyingRelocationExpenses": 2000.98,
              "apportionedNurseryPlaces": 2000.98,
              "apportionedOtherItems": 2000.98,
              "apportionedPaymentsOnEmployeesBehalf": 2000.98,
              "apportionedPersonalIncidentalExpenses": 2000.98,
              "apportionedQualifyingRelocationExpenses": 2000.98,
              "apportionedEmployerProvidedProfessionalSubscriptions": 2000.98,
              "apportionedEmployerProvidedServices": 2000.98,
              "apportionedIncomeTaxPaidByDirector": 2000.98,
              "apportionedTravelAndSubsistence": 2000.98,
              "apportionedVouchersAndCreditCards": 2000.98,
              "apportionedNonCash": 2000.98
            }
          }
        }
      ]
    },
    "employmentExpenses": {
      "totalEmploymentExpenses": 2000.98,
      "employmentExpensesDetail": {
        "businessTravelCosts": 2000.98,
        "jobExpenses": 2000.98,
        "flatRateJobExpenses": 2000.98,
        "professionalSubscriptions": 2000.98,
        "hotelAndMealExpenses": 2000.98,
        "otherAndCapitalAllowances": 2000.98,
        "vehicleExpenses": 2000.98,
        "mileageAllowanceRelief": 2000.98
      }
    },
    "seafarersDeductions": {
      "totalSeafarersDeduction": 2000.98,
      "seafarersDeductionDetail": [
        {
          "nameOfShip": "Blue Bell",
          "amountDeducted": 2000.98
        }
      ]
    },
    "foreignTaxForFtcrNotClaimed": {
      "foreignTaxOnForeignEmployment": 2000.98
    },
    "stateBenefitsIncome": {
      "totalStateBenefitsIncome": 5000.99,
      "totalStateBenefitsTaxPaid": 5001.99,
      "stateBenefitsDetail": {
        "incapacityBenefit": [
          {
            "incomeSourceId": "bb74c290-cae6-11ec-9b64-0242ac120002",
            "amount": 5002.99,
            "taxPaid": 5003.99
          }
        ],
        "statePension": [
          {
            "incomeSourceId": "bb74c290-cae6-11ec-9b64-0242ac120002",
            "amount": 5004.99
          }
        ],
        "statePensionLumpSum": [
          {
            "incomeSourceId": "bb74c290-cae6-11ec-9b64-0242ac120002",
            "amount": 5005.99,
            "taxPaid": 5006.99,
            "rate": 4.85
          }
        ],
        "employmentSupportAllowance": [
          {
            "incomeSourceId": "bb74c290-cae6-11ec-9b64-0242ac120002",
            "amount": 5008.99,
            "taxPaid": 5009.99
          }
        ],
        "jobSeekersAllowance": [
          {
            "incomeSourceId": "bb74c290-cae6-11ec-9b64-0242ac120002",
            "amount": 5010.99,
            "taxPaid": 5011.99
          }
        ],
        "bereavementAllowance": [
          {
            "incomeSourceId": "bb74c290-cae6-11ec-9b64-0242ac120002",
            "amount": 5012.99
          }
        ],
        "otherStateBenefits": [
          {
            "incomeSourceId": "bb74c290-cae6-11ec-9b64-0242ac120002",
            "amount": 5013.99
          }
        ]
      },
      "totalStateBenefitsIncomeExcStatePensionLumpSum": 5000.99
    },
    "shareSchemesIncome": {
      "totalIncome": 2000.98,
      "shareSchemeDetail": [
        {
          "employerName": "ABC-123 Ltd",
          "employerRef": "123/AB56797",
          "taxableAmount": 2000.98
        }
      ]
    },
    "foreignIncome": {
      "chargeableOverseasPensionsStateBenefitsRoyalties": 500.99,
      "overseasPensionsStateBenefitsRoyaltiesDetail": [
        {
          "countryCode": "FRA",
          "grossIncome": 501.99,
          "netIncome": 502.99,
          "taxDeducted": 503.99,
          "foreignTaxCreditRelief": true
        }
      ],
      "chargeableAllOtherIncomeReceivedWhilstAbroad": 504.99,
      "allOtherIncomeReceivedWhilstAbroadDetail": [
        {
          "countryCode": "FRA",
          "grossIncome": 502.99,
          "netIncome": 503.99,
          "taxDeducted": 504.99,
          "foreignTaxCreditRelief": true
        }
      ],
      "overseasIncomeAndGains": {
        "gainAmount": 506.99
      },
      "totalForeignBenefitsAndGifts": 507.99,
      "chargeableForeignBenefitsAndGiftsDetail": {
        "transactionBenefit": 508.99,
        "protectedForeignIncomeSourceBenefit": 509.99,
        "protectedForeignIncomeOnwardGift": 510.99,
        "benefitReceivedAsASettler": 511.99,
        "onwardGiftReceivedAsASettler": 512.99
      }
    },
    "chargeableEventGainsIncome": {
      "totalOfAllGains": 5000,
      "totalGainsWithTaxPaid": 5002,
      "gainsWithTaxPaidDetail": [
        {
          "customerReference": "S1000z",
          "gainAmount": 180,
          "yearsHeld": 50,
          "yearsHeldSinceLastGain": 35
        }
      ],
      "totalGainsWithNoTaxPaidAndVoidedIsa": 5000,
      "gainsWithNoTaxPaidAndVoidedIsaDetail": [
        {
          "customerReference": "S1000z",
          "gainAmount": 180,
          "yearsHeld": 50,
          "yearsHeldSinceLastGain": 83,
          "voidedIsaTaxPaid": 180.55
        }
      ],
      "totalForeignGainsOnLifePoliciesTaxPaid": 5000,
      "foreignGainsOnLifePoliciesTaxPaidDetail": [
        {
          "customerReference": "S1000z",
          "gainAmount": 5000.99,
          "taxPaidAmount": 3500.99,
          "yearsHeld": 50
        }
      ],
      "totalForeignGainsOnLifePoliciesNoTaxPaid": 3100,
      "foreignGainsOnLifePoliciesNoTaxPaidDetail": [
        {
          "customerReference": "S1000z",
          "gainAmount": 5000.99,
          "yearsHeld": 62
        }
      ]
    },
    "savingsAndGainsIncome": {
      "totalChargeableSavingsAndGains": 5055,
      "totalUkSavingsAndGains": 6400,
      "ukSavingsAndGainsIncome": [
        {
          "incomeSourceId": "000000000000210",
          "incomeSourceName": "Savings Account 1",
          "grossIncome": 180,
          "netIncome": 181.01,
          "taxDeducted": 182.02
        }
      ],
      "chargeableForeignSavingsAndGains": 5000,
      "foreignSavingsAndGainsIncome": [
        {
          "countryCode": "FRA",
          "grossIncome": 182.02,
          "netIncome": 183.03,
          "taxDeducted": 184.04
        }
      ]
    },
    "otherIncome": {
      "totalOtherIncome": 2000,
      "postCessationIncome": {
        "totalPostCessationReceipts": 2000,
        "postCessationReceipts": [
          {
            "amount": 2000
          }
        ]
      }
    },
    "dividendsIncome": {
      "totalChargeableDividends": 5040,
      "totalUkDividends": 5000,
      "ukDividends": {
        "incomeSourceId": "XAIS12345678910",
        "dividends": 4300,
        "otherUkDividends": 5000
      },
      "otherDividends": [
        {
          "customerReference": "S1000z",
          "grossAmount": 184.04
        }
      ],
      "chargeableForeignDividends": 4000,
      "foreignDividends": [
        {
          "countryCode": "FRA",
          "grossIncome": 5000.99,
          "netIncome": 500.99,
          "taxDeducted": 501.98
        }
      ],
      "dividendIncomeReceivedWhilstAbroad": [
        {
          "countryCode": "FRA",
          "grossIncome": 400.99,
          "netIncome": 4001.99,
          "taxDeducted": 501.98
        }
      ]
    },
    "incomeSummaryTotals": {
      "totalSelfEmploymentProfit": 5000,
      "totalPropertyProfit": 5001,
      "totalFHLPropertyProfit": 5002,
      "totalUKOtherPropertyProfit": 5003,
      "totalForeignPropertyProfit": 5004,
      "totalEeaFhlProfit": 5005,
      "totalEmploymentIncome": 5007
    },
    "taxCalculation": {
      "nics": {
        "class2Nics": {
          "weeks": 12,
          "actualClass2Nic": true
        }
      }
    },
    "previousCalculation": {
      "calculationTimestamp": "2019-06-17T09:22:59.094Z",
      "calculationId": "717f3a7a-db8e-11e9-8a34-2a2ae2dbcce4",
      "totalIncomeTaxAndNicsDue": 2000.58,
      "cgtTaxDue": 2000.58,
      "totalIncomeTaxAndNicsAndCgtDue": 2000.58,
      "incomeTaxNicDueThisPeriod": 2000.58,
      "cgtDueThisPeriod": 2000.58,
      "totalIncomeTaxAndNicsAndCgtDueThisPeriod": 2000.58
    },
    "endOfYearEstimate": {
      "incomeSource": [
        {
          "incomeSourceId": "XAIS12345678910",
          "incomeSourceName": "Self-Employment Business One",
          "taxableIncome": 5000,
          "totalAllowancesAndDeductions": 5000
        }
      ],
      "totalEstimatedIncome": 5000,
      "totalTaxableIncome": 5000,
      "incomeTaxAmount": 5000.99,
      "nic2": 5000.99,
      "nic4": 5000.99,
      "totalTaxDeductedBeforeCodingOut": 5000.99,
      "saUnderpaymentsCodedOut": 5000.99,
      "totalNicAmount": 5000.99,
      "totalStudentLoansRepaymentAmount": 5000.99,
      "totalAnnuityPaymentsTaxCharged": 5000.99,
      "totalRoyaltyPaymentsTaxCharged": 5000.99,
      "totalTaxDeducted": 5000.99,
      "incomeTaxNicAmount": 5000.99,
      "cgtAmount": 5000.99,
      "incomeTaxNicAndCgtAmount": 5000.99,
      "totalAllowancesAndDeductions": 5000
    },
    "lossesAndClaims": {
      "resultOfClaimsApplied": [
        {
          "claimId": "1234568790ABCDE",
          "originatingClaimId": "1234568790ABCDE",
          "incomeSourceId": "XAIP12345678910",
          "lossAmountUsed": 160,
          "remainingLossValue": 160
        }
      ],
      "unclaimedLosses": [
        {
          "incomeSourceId": "XAIP12345678910",
          "currentLossValue": 160
        }
      ],
      "carriedForwardLosses": [
        {
          "claimId": "1234568790ABCDE",
          "originatingClaimId": "1234568790ABCDE",
          "incomeSourceId": "XAIS12345678910",
          "currentLossValue": 160
        }
      ],
      "defaultCarriedForwardLosses": [
        {
          "incomeSourceId": "XAIS12345678910",
          "currentLossValue": 160
        }
      ],
      "claimsNotApplied": [
        {
          "claimId": "1234568790ABCDE",
          "incomeSourceId": "XAIS12345678910"
        }
      ]
    }
  }
}