Convert an organisation to multi-employer

Add MCP server to your AI tool

Allow AI tools and LLMs to interact with the API documentation portal through MCP.

MCP server URL

https://docs.getpenfold.dev/mcp

Standard setup for AI tools providing an mcp.json file

mcp.json
{
  "Penfold Payroll API v4 MCP server": {
    "url": "https://docs.getpenfold.dev/mcp"
  }
}

Close
PATCH /organisations/{organisation_id}

Partner organisations only. A Payroll organisation calling this endpoint receives 405 Method Not Allowed.

Converts a single-employer organisation to multi-employer, so it can hold more than one employer. Its admins and its existing employer stay as they are. Converting back to single-employer is not supported.

Path parameters

  • organisation_id string Required

    Penfold organisation id.

application/json

Body Required

  • type string Required

    Only MultiEmployer is accepted. Converting to SingleEmployer is not supported and returns 400.

    Value is MultiEmployer.

Responses

  • 200 application/json

    Organisation converted

    Hide response attributes Show response attributes object
    • id string Required

      Penfold organisation id. Use it as organisation_id.

    • display_name string Required

      The organisation's name, as shown on the Penfold Workplace Platform.

    • type string Required

      SingleEmployer organisations hold exactly one employer. MultiEmployer organisations hold several, for example a group of companies.

      Values are SingleEmployer or MultiEmployer.

    • created_at string(date-time) Required

      When the organisation was created (ISO 8601 UTC).

  • 400 application/json

    Request body failed validation, including a request to convert to SingleEmployer.

    Hide response attributes Show response attributes object
    • error string

      A descriptive error message.

    • validation_errors array[object]
      Hide validation_errors attributes Show validation_errors attributes object
      • field string Required

        The name of the field that failed validation.

      • message string Required

        A descriptive error message.

  • 401 application/json

    Missing or invalid authentication token

    Hide response attribute Show response attribute object
    • error string

      A descriptive error message.

  • 404 application/json

    Organisation not found, or not one you manage.

    Hide response attribute Show response attribute object
    • error string

      A descriptive error message.

  • 405 application/json

    Method not allowed. Partner organisations only.

    Hide response attribute Show response attribute object
    • error string

      A descriptive error message.

  • 409 application/json

    The organisation is already multi-employer (OrganisationAlreadyMultiEmployer). Nothing was changed.

    Hide response attributes Show response attributes object
    • code string Required

      Use this field, rather than error, to distinguish between 409 responses. OrganisationAlreadyMultiEmployer: the organisation is already multi-employer; nothing was changed. OrganisationAlreadyHasEmployer: the organisation is single-employer and already holds an employer; convert it first, then retry.

      Values are OrganisationAlreadyMultiEmployer or OrganisationAlreadyHasEmployer.

    • error string Required
  • 500 application/json

    Internal server error

    Hide response attribute Show response attribute object
    • error string

      A descriptive error message.

PATCH /organisations/{organisation_id}
curl \
 --request PATCH 'https://payroll-api.getpenfold.dev/v4/organisations/{organisation_id}' \
 --header "Authorization: Bearer $ACCESS_TOKEN" \
 --header "Content-Type: application/json" \
 --data '{
  "type": "MultiEmployer"
}'
Request examples
{
  "type": "MultiEmployer"
}
Response examples (200)
{
  "id": "cmo1org000001abcd",
  "display_name": "Harbour Group",
  "type": "SingleEmployer",
  "created_at": "2026-05-04T09:42:00Z"
}
Response examples (400)
{
  "error": "Bad request: invalid data provided.",
  "validation_errors": [
    {
      "field": "email",
      "message": "Email address is invalid."
    }
  ]
}
Response examples (401)
{
  "error": "Bad request: invalid data provided."
}
Response examples (404)
{
  "error": "Bad request: invalid data provided."
}
Response examples (405)
{
  "error": "Bad request: invalid data provided."
}
Response examples (409)
{
  "code": "OrganisationAlreadyHasEmployer",
  "error": "organisation already has an employer"
}
Response examples (500)
{
  "error": "Bad request: invalid data provided."
}