POST
Beneficiary Required Fields Query
Query the field requirements for a specific country, currency, entity type, and transfer method.
Request
merchantNoMerchant number assigned by Onerway. Retrieve it from the merchant portal or onboarding material after your sandbox or production account is created.
Example:
801129payoutCurrencyPayout currency to validate.
Example:
NGNbankCountryDestination country of the beneficiary account.
Example:
USentityTypeBeneficiary entity type.
0 for business and 1 for individual.Example:
0paymentMethodPayout method to validate.
Example:
BANK_TRANSFERwalletTypeCondition: Required when the payout method is a wallet-based method.
Wallet subtype used in wallet-based payout methods.signRequest signature string. Generate it according to the Transfer request-signing rules with your merchant private key.
curl -X POST 'https://sandbox-api.onerway.com/payout/api/v1/acct/queryPaymentFeild' \
-H 'Content-Type: application/json' \
--data-raw '{
"bankCountry": "US",
"entityType": "1",
"merchantNo": "801129",
"paymentMethod": "BANK_TRANSFER",
"payoutCurrency": "USD",
"sign": "{{SIGN}}"
}'Response
respCodeResponse code returned by Onerway.
respMsgResponse message returned by Onerway.
data{ merchantNo, accountInfomation, ... }Field requirement matrix for the requested payout scenario.
{
"respCode": "20000",
"respMsg": null,
"data": {
"merchantNo": "801129",
"accountInfomation": {
"cardNumber": "Y",
"accountType": "Y",
"swiftCode": "C",
"sortCode": "C",
"branchCode": "N",
"bankHolderName": "Y",
"walletType": "N",
"walletPhone": "N"
},
"address": {
"state": "Y",
"city": "Y",
"addressLine1": "Y",
"addressLine2": "N",
"addressLine3": "N",
"postalCode": "Y"
},
"receiverInfo": {
"nickName": "N",
"companyName": "N",
"lastName": "Y",
"firstName": "Y",
"areaCode": "C",
"phone": "C",
"vatNumber": "N",
"birthDate": "C",
"email": "C"
}
}
}No error responses are documented for this endpoint.