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. An employer-scoped access token receives 403 Forbidden.

Converts a single_employer managed organisation into a multi_employer one, so it can hold more than one employer. The organisation’s users and its existing employer are unchanged. Only type: multi_employer is accepted; converting back to single_employer is not supported.

Returns 404 Not Found when the organisation does not exist or is not managed by your Partner organisation, and 409 Conflict when it is already multi_employer.

Path parameters

  • organisation_id string Required

    Unique identifier for the managed organisation.

application/json

Body Required

  • type string Required

    The organisation type to convert to. Only multi_employer is accepted: a single_employer organisation becomes multi_employer. Converting back to single_employer is not supported, so sending it returns 400.

    Value is multi_employer.

Responses

  • 200 application/json

    Organisation converted to multi-employer.

    Hide response attributes Show response attributes object
    • id string Required

      The unique identifier for the managed organisation. Store this; it is the key for every other organisation endpoint.

    • display_name string Required

      The name of the managed organisation.

    • type string Required

      The shape of a managed organisation.

      • single_employer: the organisation is one employer.
      • multi_employer: the organisation runs payroll for several employers, for example a payroll bureau.

      Values are single_employer or multi_employer.

    • created_at string(date-time) Required

      The date and time the managed organisation was created, in ISO 8601 format.

  • 400 application/json

    Bad request, the request is malformed or type is not multi_employer.

    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

    Unauthorized

    Hide response attribute Show response attribute object
    • error string

      A descriptive error message.

  • 403 application/json

    Forbidden, the access token is scoped to an employer.

    Hide response attribute Show response attribute object
    • error string

      A descriptive error message.

  • 404 application/json

    Organisation not found, or not managed by your Partner organisation.

    Hide response attribute Show response attribute object
    • error string

      A descriptive error message.

  • 405 application/json

    Method not allowed

    Hide response attribute Show response attribute object
    • error string

      A descriptive error message.

  • 409 application/json

    The organisation is already multi_employer. Nothing was changed. Use code, not error, to detect this case; error is a human-readable message and its wording may change.

    Hide response attributes Show response attributes object
    • code string Required

      The organisation is already multi_employer. Nothing was changed.

      Value is OrganisationAlreadyMultiEmployer.

    • error string Required
  • 500 application/json

    Internal server error. Nothing was changed, so you can retry.

    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": "multi_employer"
}'
Request examples
{
  "type": "multi_employer"
}
Response examples (200)
{
  "id": "cm1abcd2e0000xyz123456789",
  "display_name": "Acme Payroll Services",
  "type": "single_employer",
  "created_at": "2026-10-20T12:00:00.000Z"
}
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 (403)
{
  "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": "OrganisationAlreadyMultiEmployer",
  "error": "organisation is already multi-employer"
}
Response examples (500)
{
  "error": "Bad request: invalid data provided."
}