Sign inCreate account

Income Tax

Authorise an individual's Income Tax account, retrieve obligations, then prepare a cumulative quarterly update for hosted approval. The supported businesses are Self Employment and UK Property, with either consolidated or itemised expenses. Annual/final declarations, foreign property, other income and tax calculations are outside this scope.

Signed POST endpointKey permissionPurpose
/api/v1/authorise/itsaauthorisation:write / authorisation:readStart (naming the client's national_insurance_number) or renew authorisation, or check completion.
/api/v1/itsaitsa:readRetrieve businesses and obligations, or an update receipt.
/api/v1/itsa/prepareitsa:prepareValidate or prepare a cumulative update for hosted approval.

Authorise

Follow Authorisation basics, using /api/v1/authorise/itsa instead of the VAT endpoint in the Quickstart. A new connection names the client: send national_insurance_number (and optionally tax_year), and GoFile fetches that client's information the moment consent completes. Save the completed connection against the customer and their protected National Insurance number. The NINO must match the individual authorised at HMRC; a VAT connection cannot be reused.

The complete Income Tax browser example handles the separate window and completion checks without a callback URL.

Retrieve information

Post to /api/v1/itsa:

{"connection_id":"hmc_000000000000000000000000","national_insurance_number":"TC663795B"}

The NINO above is illustrative test data. In sandbox the built-in simulator accepts any valid-format NINO, returning one Self Employment and one UK Property business for the current and next tax year (no obligations for later years); AA000001A returns no businesses. In live, HMRC decides which individual a connection can act for. Optional tax_year, such as "2026-27", defaults to the current UK tax year at the 6 April boundary. Supported years start at 2025-26.

A ready response supplies data.authorisation, data.nino_verified, data.businesses and data.gofile_submission_history (updates submitted through GoFile for that tax year; prepared or unconfirmed updates are not listed). Each business has business_id, business_type, obligations and its latest current_cumulative_update. Responses mask the NINO.

Choose an open obligation with can_submit: true and copy its obligation_id. GoFile resolves the business, tax year and exact cumulative period from that ID; do not construct one or infer a period.

Reads serve GoFile's ledger immediately; a read that finds it older than five minutes queues a background refresh. HTTP 202 with state: syncing means the client's first sync is still running: wait the returned Retry-After interval (normally seconds). state: action_required can include data.authorisation.continue_url for renewed consent. data_as_of is the ledger age; fetched_at is the response time. An empty obligations list is only a valid answer after successful authorisation and NINO verification; it does not hide an HMRC failure.

Beyond that, Income Tax information refreshes weekly, and 30 minutes after an update submitted through GoFile. This is not a maximum-age guarantee: HMRC outages, throttling and retries can delay it. A newly registered account is queued at once. See ledger freshness.

Prepare a quarterly update

Post this body to /api/v1/itsa/prepare, with a stable Idempotency-Key header:

{
  "connection_id": "hmc_000000000000000000000000",
  "national_insurance_number": "TC663795B",
  "external_update_id": "ledger-2026-27-q2",
  "software_user_id": "user-42",
  "software_user_login": "[email protected]",
  "obligation_id": "ito_000000000000000000000000",
  "cumulative": {
    "turnover_pence": 2410000,
    "consolidated_expenses_pence": 610000
  }
}

Replace the example references with your saved connection, actual customer, current authenticated software user and returned obligation ID. Two checks never block a submission but are returned as data.warnings from validate_only and shown to the person approving: consolidated_expenses_limit when an update using consolidated expenses has year-to-date turnover (or total property income) above HMRC's £90,000 consolidated-expenses limit, and cumulative_lower_than_previous for any figure lower than the latest cumulative submission for that business and tax year, which usually means one quarter was entered instead of year-to-date. external_update_id is optional. Persist the original draft and a unique retry key per update before sending; reuse that key only for the unchanged draft.

For UK Property, replace cumulative with:

{
  "property_income_pence": 950000,
  "consolidated_expenses_pence": 210000
}

Amounts are year-to-date totals in integer pence, not just this quarter's figures. JSON Schemas define every cumulative field.

Consolidated or itemised expenses

Send expenses one way per update: consolidated_expenses_pence (a single total, available to businesses within HMRC's £90,000 consolidated-expenses limit), or itemised expenses. Sending both is refused with consolidated_and_itemised_expenses; sending neither with required_field at /cumulative/consolidated_expenses_pence. Itemised fields you leave out are not sent to HMRC. Expense amounts may be negative (for example, a refund that exceeds the period's costs); income amounts may not.

Self Employment itemised expenses, each with an optional *_disallowable_pence counterpart for the part that cannot be claimed for tax (for example cost_of_goods_disallowable_pence):

FieldHMRC category
cost_of_goods_penceCost of goods bought for resale or goods used
payments_to_subcontractors_penceConstruction Industry Scheme subcontractor payments
wages_and_staff_costs_penceWages, salaries and other staff costs
car_van_travel_expenses_penceCar, van and travel expenses
premises_running_costs_penceRent, rates, power and insurance
maintenance_costs_penceRepairs and renewals of property and equipment
admin_costs_pencePhone, stationery and other office costs
business_entertainment_costs_penceBusiness entertainment
advertising_costs_penceAdvertising
interest_on_bank_other_loans_penceInterest on bank and other loans
finance_charges_penceBank, credit card and other financial charges
irrecoverable_debts_penceIrrecoverable debts written off
professional_fees_penceAccountancy, legal and other professional fees
depreciation_penceDepreciation and loss or profit on sale of assets
other_expenses_penceOther business expenses

UK Property itemised expenses: premises_running_costs_pence (rent, rates, insurance, ground rents), repairs_and_maintenance_pence, financial_costs_pence (loan interest and other financial costs), professional_fees_pence, cost_of_services_pence (including wages), travel_costs_pence and other_expenses_pence. residential_financial_cost_pence, residential_financial_costs_carried_forward_pence and rent_a_room_amount_claimed_pence may accompany either route.

For example, a Self Employment update with itemised expenses:

{
  "turnover_pence": 12500000,
  "cost_of_goods_pence": 4200000,
  "wages_and_staff_costs_pence": 1800000,
  "car_van_travel_expenses_pence": 350000,
  "car_van_travel_expenses_disallowable_pence": 70000,
  "other_expenses_pence": 120000
}

validate_only warns with consolidated_expenses_limit when an update uses consolidated expenses with year-to-date income above £90,000; itemised updates are the route for those businesses.

Add validate_only: true to check without creating an update and read data.valid. Live preparation also requires software-user MFA evidence. GoFile records the integration identity and timestamps; no source block is accepted.

Approve and retrieve the receipt

Preparation returns state: awaiting_approval, data.submission_id and data.continue_url. Save the update ID before opening the URL in the individual's browser. GoFile shows the source, period and cumulative figures, then makes one HMRC attempt only after the user confirms. Preparation itself submits nothing. The hosted page displays success or failure; there is no automatic resend.

To retrieve the result later, post to /api/v1/itsa:

{
  "connection_id": "hmc_000000000000000000000000",
  "national_insurance_number": "TC663795B",
  "submission_id": "itu_000000000000000000000000"
}

Omit tax_year when retrieving a specific update. A submitted result contains data.receipt, including HMRC's correlation ID and accepted timestamp. An open update's approval link is returned only to a key with itsa:prepare as well as itsa:read.

The approval URL lasts five minutes; use data.continue_url_expires_at. An unused expired update returns expired. Prepare a new update with a new retry key and current MFA evidence; see expiry and retries.

submission_unconfirmed means HMRC may have received the update: do not resubmit. Retrieve the existing update for recovery. See Errors and troubleshooting.

Read this page as Markdown