Requests one letter-based HMRC authorisation for many clients. Saves any UTR, PAYE or Accounts Office reference given for a client, leaves out the clients still missing details (returned with the reason), and queues the rest: each is sent to HMRC in the background exactly as a single request is, with the same status, emails and chasing. 202 Accepted with a Location to poll for progress; 200 OK when no client could be sent, with the reasons.
Requires: Update on Clients.
Parameters
| Name | Type | Description |
|---|---|---|
| tenant* | path string | The Tenant.Code |
The Tenant.Code |
||
Request Body*
{
"authorisationType": "SelfAssessment",
"clients": [
{
"clientCode": "...",
"utr": "...",
"postcode": "...",
"payeRef": "...",
"accountsOfficeRef": "..."
}
],
"hmrcCredentialCode": "string",
"authCodeEntryDelayDays": 0
}
Responses
202 Accepted
400 Bad Request
401 Unauthorized – Invalid or missing API key
403 Forbidden – the caller lacks the permissions this endpoint requires; the detail lists every one missing
application/problem+json