API Docs / Operations / My Practices / Create Practice HMRC Credentials

Create Practice HMRC Credentials

POST /me/practices/{practice}/hmrc-credentials

Adds a set of credentials to the practice: the default when isDefault, or when it is the practice's first. The first set is also given to every contractor client with no HMRC credentials of its own. 409 for a practice managed in Sodium.

Parameters

NameTypeDescription
practice* path string (uuid)
{
  "name": "string",
  "senderType": "ActingInCapacity",
  "senderId": "string",
  "testInLive": false,
  "useTestGateway": false,
  "password": "string",
  "isDefault": false
}

Responses

400 Bad Request
application/problem+json
401 Unauthorized – Invalid or missing API key
404 Not Found
application/problem+json
409 Conflict
application/problem+json