Set an employer’s AML verification status

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
POST /sandbox/employers/{employer_id}/aml_verification_status

Sandbox only, not available in production. In production this route returns 404 Not Found.

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

Set the AML verification status of the employer’s company, as if Penfold had completed its AML check. Contribution uploads are refused until the status is Accepted, so set it to Accepted to test uploads.

Path parameters

  • employer_id string Required

    The employer's id, as returned by GET /employers. This is not the employer's external_reference.

application/json

Body Required

  • status string Required

    The status of an employer company’s AML verification.

    Values are Pending, Accepted, Failed, or Open.

Responses

  • 200 application/json

    The AML verification status was set.

    Hide response attributes Show response attributes object
    • employer_id string Required

      The employer whose company AML status was set.

    • aml_verification_status string Required

      The status of an employer company’s AML verification.

      Values are Pending, Accepted, Failed, or Open.

  • 400 application/json

    Bad request, the request is malformed or contains invalid data.

    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, the request requires authentication, and the provided credentials are either missing or incorrect.

    Hide response attribute Show response attribute object
    • error string

      A descriptive error message.

  • 404 application/json

    Employer not found, the specified employer_id does not match any employer your organisation can access. Also returned in production.

    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.

POST /sandbox/employers/{employer_id}/aml_verification_status
curl \
 --request POST 'https://payroll-api.getpenfold.dev/v4/sandbox/employers/{employer_id}/aml_verification_status' \
 --header "Authorization: Bearer $ACCESS_TOKEN" \
 --header "Content-Type: application/json" \
 --data '{
  "status": "Pending"
}'
Request examples
{
  "status": "Pending"
}
Response examples (200)
{
  "employer_id": "string",
  "aml_verification_status": "Pending"
}
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."
}