POST
Beneficiary Add
Create a beneficiary that can be used in later Transfer payouts.
Request
merchantNoMerchant number assigned by Onerway. Retrieve it from the merchant portal or onboarding material after your sandbox or production account is created.
Example:
801129merchantRefIdMerchant-side user or beneficiary reference ID used for mapping, search, or internal reconciliation.
bankCountryDestination country of the beneficiary.
Example:
PKpayoutCurrencyPayout currency used by the beneficiary.
Example:
PKRentityTypeBeneficiary entity type.
0 for business and 1 for individual.Example:
1paymentMethodPayout method used for this beneficiary. It must match the country, currency, and entity type selected for the beneficiary.
Example:
E_WALLETreceiverInfo{ companyName, lastName, ... }Beneficiary identity information encoded as a JSON string. Include every identity field required by the selected payout method.
address{ countryCode, state, ... }Beneficiary address information encoded as a JSON string, including country, state, city, and address lines when required.
accountInfomation{ cardNumber, accountType, ... }Beneficiary account information encoded as a JSON string. Include the account fields required by the selected payout method.
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/beneficiary/add' \
-H 'Content-Type: application/json' \
--data-raw '{
"accountInfomation": "{\"walletType\":\"EASYPAISA\",\"walletPhone\":\"03001234567\"}",
"address": "{\"countryCode\":\"PK\",\"state\":\"Punjab\",\"city\":\"Lahore\",\"addressLine1\":\"12 Demo Street\",\"postalCode\":\"54000\"}",
"bankCountry": "PK",
"entityType": "1",
"merchantNo": "801129",
"merchantRefId": "bene_demo_001",
"paymentMethod": "E_WALLET",
"payoutCurrency": "PKR",
"receiverInfo": "{\"firstName\":\"Beta\",\"lastName\":\"Tester\",\"areaCode\":\"+92\",\"phone\":\"3001234567\",\"email\":\"beneficiary@example.com\",\"identityType\":\"NID\",\"identityNumber\":\"3520212345671\"}",
"sign": "{{SIGN}}"
}'Response
respCodeResponse code returned by Onerway.
respMsgResponse message returned by Onerway.
data{ beneficiaryId, payeeStatus }Created beneficiary result.
{
"respCode": "20000",
"respMsg": null,
"data": {
"beneficiaryId": "1984102812163112960",
"payeeStatus": "unnecessary"
}
}No error responses are documented for this endpoint.