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
-
The employer's
id, as returned byGET /employers. This is not the employer'sexternal_reference.
Responses
-
The AML verification status was set.
-
Bad request, the request is malformed or contains invalid data.
-
Unauthorized, the request requires authentication, and the provided credentials are either missing or incorrect.
-
Employer not found, the specified employer_id does not match any employer your organisation can access. Also returned in production.
-
Method not allowed.
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"
}'
{
"status": "Pending"
}
{
"employer_id": "string",
"aml_verification_status": "Pending"
}
{
"error": "Bad request: invalid data provided.",
"validation_errors": [
{
"field": "email",
"message": "Email address is invalid."
}
]
}
{
"error": "Bad request: invalid data provided."
}
{
"error": "Bad request: invalid data provided."
}
{
"error": "Bad request: invalid data provided."
}