Download OpenAPI specification:Download
Preparing an R&D claim can be a very intensive process, involving a large number of stakeholders, and a lot of information (both financial and technical).
Once the process of preparing the financial and technical information is done, the final phase of an R&D claim is largely administrative, a job for the 'back office' of a consultancy. This final phase - the Claim Completion phase - is about bringing all the prepared information together, getting it submitted to HMRC, and tracking the claim through to a successful outcome.
Claimer's Claim Completion Suite's is a suite of products/modules that facilitate a high-level of process automation across the whole completion phase. The goal is to significantly reduce the administrative burden consultancies encounter in this phase by providing software solutions for every step of the completion workflow.
To address the inconsistent terminology used within the industry, we have chosen to adopt the preferred naming conventions of HM Revenue & Customs (HMRC).
For comprehensive understanding, it's essential to grasp two key concepts as outlined by HMRC:
Endpoint URL: /clients/123456/financial-years/2022-01-01..2022-12-31/reports
The Report Generation endpoint is a vital part of the Claim Completion Suite's Report Generation module. It facilitates the creation of PDF-based R&D claim reports, comprising essential financials and project narratives. This endpoint is specifically designed to generate reports for individual companies based on structured data inputs.
ReportRequestConfiguration
. If validation succeeds, a unique report_instance_id
is generated.The Report Generation endpoint simplifies the generation of crucial R&D claim reports, offering clients a streamlined and efficient workflow for accessing essential documentation and data.
For company background and project narratives we support rich text content. In order for it to work the strings must be provided in HTML format.
For fields that require HTML formatting, the following examples can be used as a reference. HTML support is not limited to those examples, and any valid HTML can be used. If images are included they need to be in the format specified below.
<p>This is a sample paragraph.</p>
<p>This is <b>bold text</b> within a paragraph.</p>
<p>This is <i>italic text</i> within a paragraph.</p>
<ol>
<li>First item</li>
<li>Second item</li>
<li>Third item</li>
</ol>
<ul>
<li>First item</li>
<li>Second item</li>
<li>Third item</li>
</ul>
Images can be included in the report content by providing the image in base64 format. The image can be included in the report content as shown below. The numbering of the figure will be automatically generated by the report template.
<figure id="_123">
<img src="[BASE64 encoded image]"/>
<figcaption>Some caption</figcaption>
</figure>
If a caption is used as a cross-reference in any of the HTML strings, it needs to be wrapped in an <a>
tag like this:
<p>Some text here. <a href="#_123">Some caption</a> shows something </p>
The href
attribute should be the same as the id
attribute of the figure element. The numbering of the figure will be automatically generated by the report template.
By default, the numbering of the figure will be in the format Figure 1: [CaptionText]
, Figure 2: [CaptionText]
, etc.
registeredCompanyNumber required | string A valid Companies House company number for an R&D eligible company. |
financialYear required | string(\d{4}-\d{2}-\d{2})\.\.(\d{4}-\d{2}-\d{2}) Date range of financial year {startDate}..{endDate} - e.g. 2021-01-02..2021-12-31. Please refer to this section for more info about the Financial Years. |
template_name required | string The name of the template to be used for generating the report. This will be provided by Claimer during the onboarding process. | ||||||||||||||||||
required | object (ReportRequestConfiguration) | ||||||||||||||||||
| |||||||||||||||||||
required | object (ReportData) | ||||||||||||||||||
| |||||||||||||||||||
external_id | string <= 72 characters An optional external identifier that can be used to correlate the report with an external system. |
{- "template_name": "string",
- "configuration": {
- "strict_aif_validation": true,
- "allow_auto_review": true,
- "review_assignee": "string"
}, - "model": {
- "agent": {
- "consultant_email": "string",
- "lead_consultant_name": "string"
}, - "company": {
- "company_background": "string",
- "paye_reference": "string",
- "sic_codes": [
- "string"
], - "utr": "string",
- "vat_reference": "string",
- "sme_definition_met": true,
- "subsidised_expenditure": true
}, - "scheme": "rdec",
- "competent_professionals": [
- {
- "description": "string",
- "name": "string",
- "qualifications": [
- "string"
], - "job_title": "string"
}
], - "expenditure": {
- "externally_provided_workers": {
- "uk_based": true,
- "paye_references": [
- "string"
], - "dont_know_reason": "string"
}, - "itemised_expenditure": {
- "externally_provided_workers": {
- "line_items": [
- {
- "claimable_sum": 0,
- "connected": true,
- "name": "string",
- "randd_percentage": 0,
- "role": "string",
- "total": 0,
- "amount_by_accounting_period": [
- {
- "accounting_period": {
- "start": null,
- "end": null
}, - "sme": 0,
- "rdec": 0
}
]
}
], - "total": 0,
- "total_claimable": 0
}, - "software": {
- "line_items": [
- {
- "claimable_sum": 0,
- "randd_percentage": 0,
- "supplier": "string",
- "total": 0,
- "type": "string",
- "amount_by_accounting_period": [
- {
- "accounting_period": {
- "start": null,
- "end": null
}, - "sme": 0,
- "rdec": 0
}
]
}
], - "total": 0,
- "total_claimable": 0
}, - "cloud_computing": {
- "line_items": [
- {
- "claimable_sum": 0,
- "randd_percentage": 0,
- "supplier": "string",
- "total": 0,
- "type": "string",
- "amount_by_accounting_period": [
- {
- "accounting_period": {
- "start": null,
- "end": null
}, - "sme": 0,
- "rdec": 0
}
]
}
], - "total": 0,
- "total_claimable": 0
}, - "data_licences": {
- "line_items": [
- {
- "claimable_sum": 0,
- "randd_percentage": 0,
- "supplier": "string",
- "total": 0,
- "type": "string",
- "amount_by_accounting_period": [
- {
- "accounting_period": {
- "start": null,
- "end": null
}, - "sme": 0,
- "rdec": 0
}
]
}
], - "total": 0,
- "total_claimable": 0
}, - "staff": {
- "line_items": [
- {
- "claimable_sum": 0,
- "name": "string",
- "randd_percentage": 0,
- "role": "string",
- "gross_pay": 0,
- "national_insurance": 0,
- "pension": 0,
- "furlough": 0,
- "bonus_or_comission": 0,
- "reimbursed_expenses": 0,
- "total": 0,
- "amount_by_accounting_period": [
- {
- "accounting_period": {
- "start": null,
- "end": null
}, - "sme": 0,
- "rdec": 0
}
]
}
], - "total": 0,
- "total_claimable": 0
}, - "subcontractors": {
- "line_items": [
- {
- "claimable_sum": 0,
- "connected": true,
- "name": "string",
- "randd_percentage": 0,
- "role": "string",
- "total": 0,
- "amount_by_accounting_period": [
- {
- "accounting_period": {
- "start": null,
- "end": null
}, - "sme": 0,
- "rdec": 0
}
]
}
], - "total": 0,
- "total_claimable": 0
}, - "consumables": {
- "line_items": [
- {
- "claimable_sum": 0,
- "randd_percentage": 0,
- "name": "string",
- "total": 0,
- "type": "string",
- "amount_by_accounting_period": [
- {
- "accounting_period": {
- "start": null,
- "end": null
}, - "sme": 0,
- "rdec": 0
}
]
}
], - "total": 0,
- "total_claimable": 0
}, - "clinical_trials": {
- "line_items": [
- {
- "claimable_sum": 0,
- "randd_percentage": 0,
- "name": "string",
- "total": 0,
- "amount_by_accounting_period": [
- {
- "accounting_period": {
- "start": null,
- "end": null
}, - "sme": 0,
- "rdec": 0
}
]
}
], - "total": 0,
- "total_claimable": 0
}, - "independent_research": {
- "line_items": [
- {
- "claimable_sum": 0,
- "randd_percentage": 0,
- "name": "string",
- "total": 0,
- "amount_by_accounting_period": [
- {
- "accounting_period": {
- "start": null,
- "end": null
}, - "sme": 0,
- "rdec": 0
}
]
}
], - "total": 0,
- "total_claimable": 0
}
}, - "paye_cap_exemption_reason": "string",
- "summarised_expenditure_by_accounting_period": [
- {
- "accounting_period": {
- "start": "2019-08-24",
- "end": "2019-08-24"
}, - "rdec": {
- "projects": [
- {
- "amount": 0,
- "project_number": 0
}
], - "projects_total": 0,
- "qualifying_expenditure_breakdown": {
- "cloud_computing": 0,
- "consumables": 0,
- "contractors": 0,
- "contributions_to_independent_research": 0,
- "data_licences": 0,
- "externally_provided_workers": 0,
- "indirect_activities": 0,
- "payments_to_clinical_trial_subjects": 0,
- "software": 0,
- "staff": 0
}, - "total": 0
}, - "sme": {
- "projects": [
- {
- "amount": 0,
- "project_number": 0
}
], - "projects_total": 0,
- "qualifying_expenditure_breakdown": {
- "cloud_computing": 0,
- "consumables": 0,
- "contractors": 0,
- "contributions_to_independent_research": 0,
- "data_licences": 0,
- "externally_provided_workers": 0,
- "indirect_activities": 0,
- "payments_to_clinical_trial_subjects": 0,
- "software": 0,
- "staff": 0
}, - "total": 0
}
}
]
}, - "projects": {
- "projects_described": [
- {
- "advance": "string",
- "baseline": null,
- "end_date": "2019-08-24",
- "field": "string",
- "name": "string",
- "short_name": "string",
- "number": 0,
- "start_date": "2019-08-24",
- "technical_challenges": "string",
- "work_done": "string"
}
], - "additional_projects": [
- "string"
], - "total_projects": 0
}, - "senior_officer": {
- "email": "string",
- "name": "string",
- "role": "string",
- "telephone": "string",
- "qualification": "string",
- "experience": "string"
}, - "enhanced_support_by_accounting_period": [
- {
- "accounting_period": {
- "start": "2019-08-24",
- "end": "2019-08-24"
}, - "has_supporting_evidence": true,
- "trading_and_operating_expenses": 0,
- "section1308_adjustment": 0,
- "has_connected_companies": true,
- "connected_companies": [
- {
- "name": "string",
- "country": "string",
- "registration_number": "string",
- "expenditure": {
- "qualifying_expenditure": 0,
- "trading_and_operating_expenses": 0,
- "section1308_adjustment": 0
}
}
]
}
], - "randd_manager": {
- "name": "string",
- "email": "string"
}
}, - "external_id": "string"
}
{- "report_instance_id": "string"
}
Endpoint URL: /clients/123456/financial-years/2022-01-01..2022-12-31/reports/87655/aif
The 1-Click AIF API represents the next evolutionary step of the Claim Completion Suite's Report Generation module. It seamlessly integrates with the report module to simplify the submission of AIF based on extracted report data.
When integrated with the report module, the 1-Click AIF API streamlines the submission process, allowing users to configure various parameters. Configuration options include deciding whether the AIF requires approval before submission to HMRC. If auto-approval is enabled and the AIF validation fails, the API automatically generates an approval task for the designated approval_assignee
.
To keep users informed about the progress of AIF submissions, the API sends webhook events to preconfigured endpoints. Upon receiving of webhook event for successful submission, users can easily download a copy of the confirmation using one of the endpoints provided by the 1-Click AIF API.
registeredCompanyNumber required | string A valid Companies House company number for an R&D eligible company. |
financialYear required | string(\d{4}-\d{2}-\d{2})\.\.(\d{4}-\d{2}-\d{2}) Date range of financial year {startDate}..{endDate} - e.g. 2021-01-02..2021-12-31. Please refer to this section for more info about the Financial Years. |
reportInstanceId required | string The unique identifier of the report. This would have been returned as part of the success response when the report was requested. |
required | object (AifRequestConfiguration) | ||||||||
| |||||||||
external_id | string <= 72 characters An optional external identifier that can be used to correlate the report with an external system. |
{- "configuration": {
- "strict_aif_validation": true,
- "allow_auto_approval": true,
- "approval_assignee": "string",
- "confirmation_email": "string"
}, - "external_id": "string"
}
null
registeredCompanyNumber required | string A valid Companies House company number for an R&D eligible company. |
financialYear required | string(\d{4}-\d{2}-\d{2})\.\.(\d{4}-\d{2}-\d{2}) Date range of financial year {startDate}..{endDate} - e.g. 2021-01-02..2021-12-31. Please refer to this section for more info about the Financial Years. |
reportInstanceId required | string The unique identifier of the report. This would have been returned as part of the success response when the report was requested. |
{- "company": {
- "utr": "string",
- "paye_reference": "string",
- "vat_reference": "string",
- "sic_code": "string"
}, - "agents": [
- {
- "name": {
- "first_name": "string",
- "last_name": "string"
}, - "email": "string",
- "phone": "string",
- "company": {
- "name": "string",
- "address": {
- "line1": "string",
- "line2": "string",
- "town_city": "string",
- "postcode": "string"
}
}, - "agent_type": "rnd"
}
], - "senior_officer": {
- "name": {
- "first_name": "string",
- "last_name": "string"
}, - "role": "string",
- "email": "string",
- "phone": "string"
}, - "projects": {
- "total_projects": 0,
- "projects_described": [
- {
- "number": 0,
- "name": "string",
- "field": "string",
- "baseline": "string",
- "advance": "string",
- "technical_challenges": "string",
- "work_done": "string"
}
]
}, - "expenditure": {
- "expenditure_in_uk": true,
- "paye_exemption_reason": "string",
- "externally_provided_workers": {
- "summary": {
- "uk_based": true,
- "paye_references": [
- "string"
], - "dont_know_reason": "string"
}, - "number_who_worked_on_projects": 0
}, - "expenditure_by_accounting_period": [
- {
- "accounting_period": {
- "start": "2019-08-24",
- "end": "2019-08-24"
}, - "rdec": {
- "projects": [
- {
- "amount": 0,
- "project_number": 0
}
], - "qualifying_expenditure_breakdown": {
- "cloud_computing": 0,
- "consumables": 0,
- "contractors": 0,
- "contributions_to_independent_research": 0,
- "data_licences": 0,
- "externally_provided_workers": 0,
- "indirect_activities": 0,
- "payments_to_clinical_trial_subjects": 0,
- "software": 0,
- "staff": 0
}
}, - "sme": {
- "projects": [
- {
- "amount": 0,
- "project_number": 0
}
], - "qualifying_expenditure_breakdown": {
- "cloud_computing": 0,
- "consumables": 0,
- "contractors": 0,
- "contributions_to_independent_research": 0,
- "data_licences": 0,
- "externally_provided_workers": 0,
- "indirect_activities": 0,
- "payments_to_clinical_trial_subjects": 0,
- "software": 0,
- "staff": 0
}
}
}
]
}, - "enhanced_support_by_accounting_period": {
- "accounting_period": {
- "start": "2019-08-24",
- "end": "2019-08-24"
}, - "has_supporting_evidence": true,
- "trading_and_operating_expenses": 0,
- "section1308_adjustment": 0,
- "has_connected_companies": true,
- "connected_companies": [
- {
- "name": "string",
- "country": "string",
- "registration_number": "string",
- "expenditure": {
- "qualifying_expenditure": 0,
- "trading_and_operating_expenses": 0,
- "section1308_adjustment": 0
}
}
]
}
}
registeredCompanyNumber required | string A valid Companies House company number for an R&D eligible company. |
financialYear required | string(\d{4}-\d{2}-\d{2})\.\.(\d{4}-\d{2}-\d{2}) Date range of financial year {startDate}..{endDate} - e.g. 2021-01-02..2021-12-31. Please refer to this section for more info about the Financial Years. |
reportInstanceId required | string The unique identifier of the report. This would have been returned as part of the success response when the report was requested. |
{ }
registeredCompanyNumber required | string A valid Companies House company number for an R&D eligible company. |
financialYear required | string(\d{4}-\d{2}-\d{2})\.\.(\d{4}-\d{2}-\d{2}) Date range of financial year {startDate}..{endDate} - e.g. 2021-01-02..2021-12-31. Please refer to this section for more info about the Financial Years. |
reportInstanceId required | string The unique identifier of the report. This would have been returned as part of the success response when the report was requested. |
filename required | string A BASE64 encoded filename for generated report file |
{ }
X-Request-ID required | string Request ID used for tracking or logging purposes. Value is unique to the request. |
Content-Type required | string The media type of this message, e.g application/json |
Authorization | string Will be set if basic auth is set in the url (recommended) |
message_id | string unique event/message id | ||||||||||||||||||
timestamp | string <date-time> | ||||||||||||||||||
DocumentsGenerated (object) or DocumentsGenerationFailed (object) or ReportReviewed (object) or ReportCancelled (object) (ReportGenerationEvent) | |||||||||||||||||||
One of
|
{- "message_id": "string",
- "timestamp": "2019-08-24T14:15:22Z",
- "event": {
- "generated_at": "2019-08-24T14:15:22Z",
- "client_id": "string",
- "financial_year_id": "string",
- "report_instance_id": "string",
- "event_id": "string",
- "event_type": "documents-generated",
- "event_timestamp": "2019-08-24T14:15:22Z",
- "tenant_id": "string",
- "external_id": "string"
}
}
{- "status": "string"
}