Create CIS Deductions for Subcontractor
This endpoint allows a developer to create a customer’s CIS deductions that have been previously populated. A National Insurance number must be provided. This endpoint can only be used after the tax year has ended.
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 success response. |
| DUPLICATE_SUBMISSION | Simulates the scenario where CIS deductions already exists for this tax year. |
| OUTSIDE_AMENDMENT_WINDOW | Simulates the scenario where request cannot be completed as it is outside the amendment window. |
| STATEFUL | Performs a stateful create. |
Path parameters
National Insurance number in the format AA999999A.
Headers
An OAuth 2.0 Bearer Token with the write:self-assessment scope.
Specifies the response format and the version of the API to be used.
Specifies the format of the request body, which must be JSON.
Only in sandbox environment. See Test Data table for all header values.
Only in the sandbox environment. When supplied and set to true, this header relaxes tax year validation rule to allow in-year submissions for endpoints configured for end-of-year submissions. Not supplying the header or setting it to false results in a RULE_TAX_YEAR_NOT_ENDED error for in-year submissions. In Production, the header is ignored and normal validations apply.
Request body
Example request
{
"fromDate": "2020-04-06",
"toDate": "2021-04-05",
"contractorName": "Some Contractor",
"employerRef": "123/AB56797",
"periodData": [
{
"deductionAmount": 5000.99,
"deductionFromDate": "2020-07-06",
"deductionToDate": "2020-08-05",
"costOfMaterials": 5000.99,
"grossAmountPaid": 5000.99
}
]
}Response
Success
Example response
{
"submissionId": "ab123aaa-65ab-488c-9120-f63abc14b9n1"
}