---
updatedAt: 2026-04-20T19:14:03.000Z
agentTools:
  projectIndex: https://docs.paymentlabs.io/llms.txt
---

# Search Payees

Searches the payees of your payor account and returns one page of results.

Use it to list payees, to look one up by email or reference ID, or to find who is not yet payable.

Any payout role can call it.

You can filter and sort on these fields only:
- `userId`: the payee ID.
- `referenceId`, `email`.
- `displayFirstName`, `displayLastName`, `businessName`.
- `type`: `personal` or `business`.
- `payable`: `true` or `false`.
- `currentStep`: the onboarding step the payee is on.

Any other field is rejected. Pages hold 10 to 1000 payees (100 by default), and `page` × `pageSize` cannot exceed 10,000. See
[Getting Started with Search](/docs/getting-started-with-search) for the filter syntax.

**Errors**
- `400 VALIDATION_ERROR`: the body is malformed, for example a field that is not searchable, a missing `operator`, or a
  `pageSize` out of range.
- `400 INVALID_REQUEST`: the search could not run with this filter, for example a value of the wrong type for the field.

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "title": "Payout API Specification",
    "version": "0.0.1",
    "description": "Describes the operations a Payor can do to manage payments"
  },
  "paths": {
    "/payors/me/payees/search": {
      "post": {
        "operationId": "Search Payees Endpoint",
        "tags": [
          "Payees"
        ],
        "description": "Searches the payees of your payor account and returns one page of results.\n\nUse it to list payees, to look one up by email or reference ID, or to find who is not yet payable.\n\nAny payout role can call it.\n\nYou can filter and sort on these fields only:\n- `userId`: the payee ID.\n- `referenceId`, `email`.\n- `displayFirstName`, `displayLastName`, `businessName`.\n- `type`: `personal` or `business`.\n- `payable`: `true` or `false`.\n- `currentStep`: the onboarding step the payee is on.\n\nAny other field is rejected. Pages hold 10 to 1000 payees (100 by default), and `page` × `pageSize` cannot exceed 10,000. See\n[Getting Started with Search](/docs/getting-started-with-search) for the filter syntax.\n\n**Errors**\n- `400 VALIDATION_ERROR`: the body is malformed, for example a field that is not searchable, a missing `operator`, or a\n  `pageSize` out of range.\n- `400 INVALID_REQUEST`: the search could not run with this filter, for example a value of the wrong type for the field.",
        "summary": "Search Payees",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "filter": {
                    "description": "Conditions a record must match. Omit to return every record. Use `all` for AND and `any` for OR; groups can be nested.",
                    "anyOf": [
                      {
                        "description": "Matches records that satisfy every condition in the list.",
                        "type": "object",
                        "properties": {
                          "all": {
                            "description": "Conditions, or nested `all`/`any` groups; all of them must match.",
                            "type": "array",
                            "items": {
                              "anyOf": [
                                {
                                  "description": "A single condition on one field.",
                                  "type": "object",
                                  "properties": {
                                    "fact": {
                                      "description": "Field to filter on. Only the fields listed for the endpoint are accepted.",
                                      "enum": [
                                        "businessName",
                                        "currentStep",
                                        "displayFirstName",
                                        "displayLastName",
                                        "email",
                                        "payable",
                                        "referenceId",
                                        "type",
                                        "userId"
                                      ],
                                      "type": "string",
                                      "title": "fact"
                                    },
                                    "operator": {
                                      "$ref": "#/components/schemas/SearchFilterOperator",
                                      "description": "How `value` is compared with the field. `blank` and `notBlank` take no value; `inRange` takes a two-item array `[from, to]`.",
                                      "title": "operator"
                                    },
                                    "value": {
                                      "description": "Value to compare with. Dates are ISO 8601 strings.",
                                      "title": "value"
                                    }
                                  },
                                  "required": [
                                    "fact",
                                    "operator"
                                  ]
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "all": {
                                      "type": "array",
                                      "items": {
                                        "description": "A single condition on one field.",
                                        "type": "object",
                                        "properties": {
                                          "fact": {
                                            "description": "Field to filter on. Only the fields listed for the endpoint are accepted.",
                                            "enum": [
                                              "businessName",
                                              "currentStep",
                                              "displayFirstName",
                                              "displayLastName",
                                              "email",
                                              "payable",
                                              "referenceId",
                                              "type",
                                              "userId"
                                            ],
                                            "type": "string",
                                            "title": "fact"
                                          },
                                          "operator": {
                                            "$ref": "#/components/schemas/SearchFilterOperator",
                                            "description": "How `value` is compared with the field. `blank` and `notBlank` take no value; `inRange` takes a two-item array `[from, to]`.",
                                            "title": "operator"
                                          },
                                          "value": {
                                            "description": "Value to compare with. Dates are ISO 8601 strings.",
                                            "title": "value"
                                          }
                                        },
                                        "required": [
                                          "fact",
                                          "operator"
                                        ]
                                      },
                                      "title": "all"
                                    }
                                  },
                                  "required": [
                                    "all"
                                  ]
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "any": {
                                      "type": "array",
                                      "items": {
                                        "description": "A single condition on one field.",
                                        "type": "object",
                                        "properties": {
                                          "fact": {
                                            "description": "Field to filter on. Only the fields listed for the endpoint are accepted.",
                                            "enum": [
                                              "businessName",
                                              "currentStep",
                                              "displayFirstName",
                                              "displayLastName",
                                              "email",
                                              "payable",
                                              "referenceId",
                                              "type",
                                              "userId"
                                            ],
                                            "type": "string",
                                            "title": "fact"
                                          },
                                          "operator": {
                                            "$ref": "#/components/schemas/SearchFilterOperator",
                                            "description": "How `value` is compared with the field. `blank` and `notBlank` take no value; `inRange` takes a two-item array `[from, to]`.",
                                            "title": "operator"
                                          },
                                          "value": {
                                            "description": "Value to compare with. Dates are ISO 8601 strings.",
                                            "title": "value"
                                          }
                                        },
                                        "required": [
                                          "fact",
                                          "operator"
                                        ]
                                      },
                                      "title": "any"
                                    }
                                  },
                                  "required": [
                                    "any"
                                  ]
                                }
                              ]
                            },
                            "title": "all"
                          }
                        },
                        "required": [
                          "all"
                        ]
                      },
                      {
                        "description": "Matches records that satisfy at least one condition in the list.",
                        "type": "object",
                        "properties": {
                          "any": {
                            "description": "Conditions, or nested `all`/`any` groups; at least one must match.",
                            "type": "array",
                            "items": {
                              "anyOf": [
                                {
                                  "description": "A single condition on one field.",
                                  "type": "object",
                                  "properties": {
                                    "fact": {
                                      "description": "Field to filter on. Only the fields listed for the endpoint are accepted.",
                                      "enum": [
                                        "businessName",
                                        "currentStep",
                                        "displayFirstName",
                                        "displayLastName",
                                        "email",
                                        "payable",
                                        "referenceId",
                                        "type",
                                        "userId"
                                      ],
                                      "type": "string",
                                      "title": "fact"
                                    },
                                    "operator": {
                                      "$ref": "#/components/schemas/SearchFilterOperator",
                                      "description": "How `value` is compared with the field. `blank` and `notBlank` take no value; `inRange` takes a two-item array `[from, to]`.",
                                      "title": "operator"
                                    },
                                    "value": {
                                      "description": "Value to compare with. Dates are ISO 8601 strings.",
                                      "title": "value"
                                    }
                                  },
                                  "required": [
                                    "fact",
                                    "operator"
                                  ]
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "all": {
                                      "type": "array",
                                      "items": {
                                        "description": "A single condition on one field.",
                                        "type": "object",
                                        "properties": {
                                          "fact": {
                                            "description": "Field to filter on. Only the fields listed for the endpoint are accepted.",
                                            "enum": [
                                              "businessName",
                                              "currentStep",
                                              "displayFirstName",
                                              "displayLastName",
                                              "email",
                                              "payable",
                                              "referenceId",
                                              "type",
                                              "userId"
                                            ],
                                            "type": "string",
                                            "title": "fact"
                                          },
                                          "operator": {
                                            "$ref": "#/components/schemas/SearchFilterOperator",
                                            "description": "How `value` is compared with the field. `blank` and `notBlank` take no value; `inRange` takes a two-item array `[from, to]`.",
                                            "title": "operator"
                                          },
                                          "value": {
                                            "description": "Value to compare with. Dates are ISO 8601 strings.",
                                            "title": "value"
                                          }
                                        },
                                        "required": [
                                          "fact",
                                          "operator"
                                        ]
                                      },
                                      "title": "all"
                                    }
                                  },
                                  "required": [
                                    "all"
                                  ]
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "any": {
                                      "type": "array",
                                      "items": {
                                        "description": "A single condition on one field.",
                                        "type": "object",
                                        "properties": {
                                          "fact": {
                                            "description": "Field to filter on. Only the fields listed for the endpoint are accepted.",
                                            "enum": [
                                              "businessName",
                                              "currentStep",
                                              "displayFirstName",
                                              "displayLastName",
                                              "email",
                                              "payable",
                                              "referenceId",
                                              "type",
                                              "userId"
                                            ],
                                            "type": "string",
                                            "title": "fact"
                                          },
                                          "operator": {
                                            "$ref": "#/components/schemas/SearchFilterOperator",
                                            "description": "How `value` is compared with the field. `blank` and `notBlank` take no value; `inRange` takes a two-item array `[from, to]`.",
                                            "title": "operator"
                                          },
                                          "value": {
                                            "description": "Value to compare with. Dates are ISO 8601 strings.",
                                            "title": "value"
                                          }
                                        },
                                        "required": [
                                          "fact",
                                          "operator"
                                        ]
                                      },
                                      "title": "any"
                                    }
                                  },
                                  "required": [
                                    "any"
                                  ]
                                }
                              ]
                            },
                            "title": "any"
                          }
                        },
                        "required": [
                          "any"
                        ]
                      }
                    ],
                    "title": "filter"
                  },
                  "sort": {
                    "description": "Sort order, applied in the order listed.",
                    "type": "array",
                    "items": {
                      "description": "One sort key.",
                      "type": "object",
                      "properties": {
                        "fieldName": {
                          "description": "Field to sort by. Only the fields listed for the endpoint are accepted.",
                          "enum": [
                            "businessName",
                            "currentStep",
                            "displayFirstName",
                            "displayLastName",
                            "email",
                            "payable",
                            "referenceId",
                            "type",
                            "userId"
                          ],
                          "type": "string",
                          "title": "fieldName"
                        },
                        "order": {
                          "$ref": "#/components/schemas/SearchInputSortOrder",
                          "description": "`asc` for ascending, `desc` for descending.",
                          "title": "order"
                        }
                      },
                      "required": [
                        "fieldName",
                        "order"
                      ]
                    },
                    "title": "sort"
                  },
                  "pageSize": {
                    "description": "Records per page, between 10 and 1000. Defaults to 100. `page` × `pageSize` cannot exceed 10,000; narrow the filter to reach\nolder records.",
                    "minimum": 10,
                    "maximum": 1000,
                    "default": 100,
                    "type": "number",
                    "title": "pageSize"
                  },
                  "page": {
                    "description": "Page to return, starting at 1. Defaults to 1.",
                    "minimum": 1,
                    "default": 1,
                    "type": "number",
                    "title": "page"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "One page of payees that match the filter.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "page": {
                      "description": "Page returned, starting at 1.",
                      "type": "number",
                      "title": "page"
                    },
                    "pageSize": {
                      "description": "Records per page requested.",
                      "type": "number",
                      "title": "pageSize"
                    },
                    "count": {
                      "description": "Total number of records that match the filter, across all pages.",
                      "type": "number",
                      "title": "count"
                    },
                    "data": {
                      "description": "Records on this page.",
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Payee"
                      },
                      "title": "data"
                    }
                  },
                  "required": [
                    "count",
                    "data",
                    "page",
                    "pageSize"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "The request was understood but refused by a business rule. Read `code` to decide what to do; the possible codes are listed\nin the endpoint description. `message` is for humans and may change.\nOne or more fields in the request are missing or invalid. `details` maps each failing field (a dotted path for nested\nfields) to the list of rules it broke. Fix every listed field before retrying.\n\nExample: `{\"code\": \"VALIDATION_ERROR\", \"message\": \"There have been validation errors\", \"details\": {\"email\": [{\"code\": \"MISSING_REQUIRED_FIELD\", \"message\": \"email is required\"}]}}`",
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "type": "object",
                      "properties": {
                        "code": {
                          "description": "Machine-readable error code, stable across releases.",
                          "type": "string",
                          "title": "code"
                        },
                        "message": {
                          "description": "Human-readable explanation. Do not parse it.",
                          "type": "string",
                          "title": "message"
                        }
                      },
                      "required": [
                        "code",
                        "message"
                      ]
                    },
                    {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string",
                          "enum": [
                            "VALIDATION_ERROR"
                          ],
                          "title": "code"
                        },
                        "message": {
                          "description": "Human-readable summary.",
                          "type": "string",
                          "title": "message"
                        },
                        "details": {
                          "description": "Failing fields, each with the list of rules it broke.",
                          "type": "object",
                          "title": "details"
                        }
                      },
                      "required": [
                        "code",
                        "details",
                        "message"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "401": {
            "description": "The request has no valid access token. Get a new token from `POST /login` and send it as `Authorization: Bearer <token>`.\n\nCodes: `UNAUTHORIZED_NO_TOKEN` (no `Authorization` header), `UNAUTHORIZED_INVALID_TOKEN` (expired or malformed token),\n`UNAUTHORIZED_NO_CONTEXT` (the token does not belong to a payor or merchant), `UNAUTHORIZED_NO_PAYOR` (the token gives access\nto more than one payor and the request did not send `x-payor-id`). A few endpoints answer from the API gateway instead and\nreturn only `{\"message\": \"Unauthorized\"}`.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "code": {
                      "description": "Machine-readable reason. Absent when the API gateway rejects the request.",
                      "enum": [
                        "UNAUTHORIZED_INVALID_TOKEN",
                        "UNAUTHORIZED_NO_CONTEXT",
                        "UNAUTHORIZED_NO_PAYOR",
                        "UNAUTHORIZED_NO_TOKEN"
                      ],
                      "type": "string",
                      "title": "code"
                    },
                    "message": {
                      "description": "Human-readable explanation.",
                      "type": "string",
                      "title": "message"
                    }
                  },
                  "required": [
                    "message"
                  ]
                }
              }
            }
          },
          "403": {
            "description": "The token is valid but is not allowed to perform this operation.\n\nCodes: `FORBIDDEN_INSUFFICIENT_TAGS` (your credential's role does not allow this operation), `FORBIDDEN_CONDITION_NOT_MET`\n(the payment amount is above your approval limit). Some endpoints add their own codes; they are listed in the endpoint\ndescription.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "code": {
                      "description": "Machine-readable reason.",
                      "type": "string",
                      "title": "code"
                    },
                    "message": {
                      "description": "Human-readable explanation.",
                      "type": "string",
                      "title": "message"
                    }
                  },
                  "required": [
                    "code",
                    "message"
                  ]
                }
              }
            }
          },
          "422": {
            "description": "The request body is not valid JSON, or is not a JSON object. Send `Content-Type: application/json` with a JSON object body.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "code": {
                      "type": "string",
                      "enum": [
                        "INVALID_BODY"
                      ],
                      "title": "code"
                    },
                    "message": {
                      "description": "Human-readable explanation.",
                      "type": "string",
                      "title": "message"
                    }
                  },
                  "required": [
                    "code",
                    "message"
                  ]
                }
              }
            }
          }
        },
        "security": [
          {
            "bearerToken": []
          }
        ]
      }
    }
  },
  "servers": [
    {
      "url": "https://api-sandbox.paymentlabs.io",
      "description": "Sandbox Server"
    },
    {
      "url": "https://api.paymentlabs.io",
      "description": "Production Server"
    }
  ],
  "components": {
    "securitySchemes": {
      "bearerToken": {
        "scheme": "bearer",
        "type": "http",
        "bearerFormat": "JWT",
        "description": "Bearer Token using JWT"
      }
    },
    "schemas": {
      "TaxJurisdiction": {
        "title": "TaxJurisdiction",
        "enum": [
          "de",
          "fi",
          "gb",
          "my",
          "none",
          "pl",
          "sa",
          "se",
          "us"
        ],
        "type": "string",
        "description": "Tax jurisdiction whose rules apply to a payment, as a lower-case country code: `us`, `gb`, `de`, `fi`, `pl`, `se`, `sa`, `my`; or `none` for no tax treatment. Only jurisdictions enabled on your account are accepted."
      },
      "SearchFilterOperator": {
        "description": "Operator to use in the filter",
        "title": "SearchFilterOperator",
        "enum": [
          "blank",
          "contains",
          "endsWith",
          "equals",
          "greaterThan",
          "greaterThanOrEqual",
          "inRange",
          "lessThan",
          "lessThanOrEqual",
          "notBlank",
          "notContains",
          "notEqual",
          "startsWith"
        ],
        "type": "string"
      },
      "SearchInputSortOrder": {
        "title": "SearchInputSortOrder",
        "enum": [
          "asc",
          "desc"
        ],
        "type": "string",
        "description": "Sort direction: `asc` (ascending) or `desc` (descending)."
      },
      "Payee": {
        "description": "A payee: a person or business you pay.",
        "title": "Payee",
        "type": "object",
        "properties": {
          "onboarded": {
            "type": "boolean",
            "title": "onboarded",
            "description": "`true` once the payee's personal information has been accepted. It stays `true` afterwards, and says nothing about payment methods or tax forms: use `payable` to know whether the payee can be paid."
          },
          "referenceId": {
            "description": "Your own ID for the payee, unique within your payor account. If you did not send one when the payee was created, it is the payee's email. See [Payee Reference IDs](/docs/payee-reference-ids).",
            "type": "string",
            "title": "referenceId"
          },
          "userId": {
            "description": "Payee ID.",
            "type": "string",
            "title": "userId"
          },
          "payorId": {
            "description": "ID of the payor this payee belongs to: your payor ID.",
            "type": "string",
            "title": "payorId"
          },
          "email": {
            "description": "Email address of the payee. Payment Labs sends the payee's invitation and notifications to it.",
            "type": "string",
            "title": "email"
          },
          "payable": {
            "description": "`true` when the payee has finished onboarding (personal details, payment method and any required tax form or identity check) and can be paid. Payments to a payee that is not payable wait in `WAITING_PAYABILITY` or `WAITING_PAYMENT_METHOD`.",
            "type": "boolean",
            "title": "payable"
          },
          "payableByJurisdiction": {
            "description": "Payability per tax jurisdiction, keyed by jurisdiction code, for example `{\"us\": true, \"gb\": false}`. A payee can be payable for one jurisdiction and not yet for another whose tax form is missing.",
            "type": "object",
            "properties": {
              "fi": {
                "type": "boolean",
                "title": "fi"
              },
              "us": {
                "type": "boolean",
                "title": "us"
              },
              "pl": {
                "type": "boolean",
                "title": "pl"
              },
              "de": {
                "type": "boolean",
                "title": "de"
              },
              "sa": {
                "type": "boolean",
                "title": "sa"
              },
              "se": {
                "type": "boolean",
                "title": "se"
              },
              "gb": {
                "type": "boolean",
                "title": "gb"
              },
              "my": {
                "type": "boolean",
                "title": "my"
              },
              "none": {
                "type": "boolean",
                "title": "none"
              }
            },
            "title": "payableByJurisdiction"
          },
          "firstName": {
            "description": "First name the payee entered. Absent until the payee fills in personal details.",
            "type": "string",
            "title": "firstName"
          },
          "middleName": {
            "description": "Middle name the payee entered, if any.",
            "type": "string",
            "title": "middleName"
          },
          "lastName": {
            "description": "Last name the payee entered. Absent until the payee fills in personal details.",
            "type": "string",
            "title": "lastName"
          },
          "businessName": {
            "description": "Business name, when the payee is a `business`.",
            "type": "string",
            "title": "businessName"
          },
          "contactFirstName": {
            "description": "First name of the contact person, when the payee is a `business`.",
            "type": "string",
            "title": "contactFirstName"
          },
          "contactLastName": {
            "description": "Last name of the contact person, when the payee is a `business`.",
            "type": "string",
            "title": "contactLastName"
          },
          "displayFirstName": {
            "description": "First name to show for the payee: `firstName` when set, otherwise `contactFirstName`.",
            "type": "string",
            "title": "displayFirstName"
          },
          "displayLastName": {
            "description": "Last name to show for the payee: `lastName` when set, otherwise `contactLastName`.",
            "type": "string",
            "title": "displayLastName"
          },
          "taxJurisdictions": {
            "description": "Tax jurisdictions the payee must meet: the payee fills in a tax form for each one during onboarding.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TaxJurisdiction"
            },
            "title": "taxJurisdictions"
          },
          "type": {
            "allOf": [
              {
                "$ref": "#/components/schemas/PayeeType"
              }
            ],
            "description": "Whether the payee is a person (`personal`) or a company (`business`). Absent until the payee fills in personal details."
          },
          "currentStep": {
            "allOf": [
              {
                "$ref": "#/components/schemas/OnboardingWorkflowStepType"
              }
            ],
            "description": "Onboarding step the payee must complete next: `identityVerification`, `personalInformation`, `paymentMethods` or `taxForms`. Absent once every step is complete. Look at `payable` to know whether the payee can be paid."
          }
        },
        "required": [
          "email",
          "payable",
          "payorId",
          "referenceId",
          "userId"
        ]
      },
      "PayeeType": {
        "title": "PayeeType",
        "enum": [
          "business",
          "personal"
        ],
        "type": "string",
        "description": "Kind of payee: `personal` for an individual, `business` for a company."
      },
      "OnboardingWorkflowStepType": {
        "title": "OnboardingWorkflowStepType",
        "enum": [
          "identityVerification",
          "paymentMethods",
          "personalInformation",
          "taxForms"
        ],
        "type": "string",
        "description": "An onboarding step of the payee widget: `identityVerification` (scan of an identity document, when your account requires it), `personalInformation` (name, address and type), `paymentMethods` (where to receive payouts), `taxForms` (tax form for each of the payee's tax jurisdictions)."
      }
    }
  }
}
```