Retrieve a partner management request

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
GET /partner_management_requests/{partner_management_request_id}

Partner organisations only. A Payroll organisation calling this endpoint receives 405 Method Not Allowed. An employer-scoped access token receives 403 Forbidden.

Returns one of your partner management requests, with its current status. Returns 404 Not Found when the request does not exist or was sent by another organisation.

Path parameters

  • partner_management_request_id string Required

    Penfold’s identifier for the partner management request, as returned when it was created.

Responses

  • 200 application/json

    Partner management request retrieved successfully.

    Hide response attributes Show response attributes object
    • id string Required

      Penfold’s identifier for the request.

    • status string Required

      Where a partner management request has got to.

      • PendingApproval: A Penfold account manager has not decided yet.
      • Approved: You took over the client’s organisation, organisation_id. Read it with the organisation endpoints, then link its people with POST /partner_management_requests/{partner_management_request_id}/sso_identity_links.
      • Rejected: Penfold did not approve the request. rejection_reason says what to do next.
      • Reverted: The request was approved, then Penfold returned the organisation to the client. You no longer manage it.

      Values are PendingApproval, Approved, Rejected, or Reverted.

    • external_id string Required

      Your platform’s identifier for the client, as you sent it.

    • name string Required

      The client’s name, as you sent it.

    • employer_external_references array[string] Required

      The employers’ Penfold references, as you sent them.

    • organisation_id string | null Required

      The managed organisation the client moved into. null unless status is Approved.

    • rejection_reason string Required

      Why Penfold rejected the request. null unless status is Rejected.

      Values are ClientNotConfirmed, ClientDeclined, WithdrawnByPartner, EmployersNotRecognised, NameDoesNotMatch, EmployersInDifferentOrganisations, NotAllEmployersMoving, ClientNotSetUp, AlreadyManaged, DuplicateRequest, ClientNotEligible, or PayrollSoftwareConnected.

    • created_at string(date-time) Required

      The date and time the request was received, in ISO 8601 format.

  • 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

    Partner management request not found, or sent by another 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.

GET /partner_management_requests/{partner_management_request_id}
curl \
 --request GET 'https://payroll-api.getpenfold.dev/v4/partner_management_requests/{partner_management_request_id}' \
 --header "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
{
  "id": "cm1pmrq2e0000abc123456789",
  "status": "PendingApproval",
  "external_id": "client_01HXYZ",
  "name": "Acme Ltd",
  "employer_external_references": [
    "PEN12345678",
    "PEN87654321"
  ],
  "organisation_id": "string",
  "rejection_reason": "ClientNotConfirmed",
  "created_at": "2026-11-05T12:00:00.000Z"
}
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."
}