Onerway
POST

List beneficiaries

Retrieve a page of beneficiaries by creation time and optional filters.

Request

ApiKey
Account service API key assigned by Onerway, supplied in the request header. Use the key for the same environment as the request domain.
Example:
Content-Type
Request media type.
Example:
onBehalfOf
Merchant number that the request applies to. Supply it only when making a request on behalf of another merchant.
beneficiaryId
Onerway beneficiary ID (64-bit integer).
status
Beneficiary status. See beneficiary statuses.
Constraints
Rule
Omitted or blank: pass,unnecessary
Rule
Defaults to pass,unnecessary when omitted.
destinationCountry
Recipient account country or region. See country/region enums.
Constraints
Rule
Maximum length: 12.
targetCurrency
Target currency. See currency enums.
Constraints
Rule
Maximum length: 128.
accountIdentifier
Bank account identifier filter
walletIdentifier
Beneficiary wallet account identifier, used to filter results by partial match. Matching ignores letter case and ordinary spaces.
Constraints
Rule
Maximum length: 64.
paymentMethod
Payment method. See enum values.
Allowed values
BANK_TRANSFER
Bank transfer
SWIFT
SWIFT transfer
E_WALLET
E-wallet
entityType
Entity type. See enum values.
Allowed values
INDIVIDUAL
Individual
BUSINESS
Business
startTime
Start of the creation-time range; time zone: Beijing time (UTC+8).
Constraints
Rule
yyyy-MM-dd HH:mm:ss
Rule
The start time must not be later than the end time. The query period must not exceed three calendar months.
endTime
End of the creation-time range; time zone: Beijing time (UTC+8).
Constraints
Rule
yyyy-MM-dd HH:mm:ss
current
Page number, starting from 1.
Constraints
Rule
≥1
size
Number of records per page.
Constraints
Rule
≥1

Request example

curl -X POST 'https://sandbox-transfer-api.onerway.com/api/v3/beneficiary/queryList' \
  -H 'ApiKey: replace_with_account_service_apikey' \
  -H 'Content-Type: application/json' \
  --data-raw '{
  "startTime": "2026-01-01 00:00:00",
  "endTime": "2026-01-31 23:59:59",
  "current": 1,
  "size": 10,
  "status": "unnecessary"
}'

Response

respCode
Response code; 20000 indicates successful request processing. All other values are error codes.
respMsg
Human-readable description of the response code.
Business data on success; do not consume as valid business data on failure
Constraints
Rule
Pagination uses current, size, total and records, unlike pageNo/pageSize in transfer queries. records is empty when no entries match.
Structured failure information; not present for every failure path

Response example

{
  "respCode": "20000",
  "respMsg": "Success",
  "data": {
    "current": 1,
    "size": 10,
    "total": 1,
    "records": [
      {
        "beneficiaryId": "10001",
        "merchantNo": "10000",
        "status": "unnecessary",
        "entityType": "BUSINESS",
        "paymentMethod": "BANK_TRANSFER",
        "business": {
          "companyName": "Example Demo Company",
          "registrationNumber": "demo_registration_001",
          "registrationDate": "2020-01-01",
          "tin": "demo_tax_id"
        },
        "contact": {
          "email": "demo@example.com"
        },
        "address": {
          "countryCode": "US",
          "state": "Example State",
          "city": "Example City",
          "addressLine1": "Example Address",
          "postalCode": "00000"
        },
        "account": {
          "countryCode": "US",
          "currency": "USD",
          "bankAccount": {
            "accountHolderName": "Example Demo Company",
            "bankName": "Example Bank",
            "accountType": "CHECKING",
            "accountIdentifier": {
              "type": "LOCAL_ACCOUNT",
              "value": "demo_account_001"
            },
            "routingNumber": "000000000"
          }
        }
      }
    ]
  }
}
20040004

The query range exceeds 3 calendar months.

Trigger: The query range exceeds 3 calendar months.

Example

{
  "respCode": "40004",
  "respMsg": "Validation Failed",
  "error": {
    "type": "validation_error",
    "code": "beneficiary_query_list_failed",
    "message": "query time range cannot exceed three months",
    "requestId": "req_00000000000000000000000000000001",
    "errorDetails": [],
    "param": "endTime"
  }
}