POST
Beneficiary Add
Create a beneficiary that can be used in later Transfer payouts.
Request
merchantNoMerchant number of the request initiator.
Example:
800699onBehalfOfMerchant number that the request is for. Include only when making a request on behalf of another merchant.
merchantRefIdUser ID in the merchant system, used to associate the beneficiary with the merchant user.
Constraints
- Rule
- Maximum length: 64.
bankCountryDestination country of the beneficiary account.
Example:
PKConstraints
- Rule
- Maximum length: 12.
- Rule
- The destination must be supported for the merchant and payout method.
payoutCurrencyPayout currency.
Example:
PKRConstraints
- Rule
- Maximum length: 128.
- Rule
- The currency must be supported for the merchant and destination country.
entityTypeBeneficiary entity type. See enum values.
Example:
1Allowed values
0- Business
1- Individual
Constraints
- Rule
- Maximum length: 1.
paymentMethodPayout method. See enum values.
Example:
E_WALLETAllowed values
SWIFT- SWIFT transfer
BANK_TRANSFER- Bank transfer
E_WALLET- E-wallet transfer
Constraints
- Rule
- Use Query payout methods to confirm support for the country, currency, and entity type.
receiverInfo{ companyName, lastName, ... }Beneficiary identity and contact information. Encoded as a JSON string.
Constraints
- Rule
- Maximum length of the serialized JSON string: 1000, including field names, values, and JSON punctuation. Each child field also has its own constraints.
- Rule
- Serialize the object before submission. Use Query required fields with the same merchant, country, currency, entity type, payout method, and applicable wallet type to identify the required fields.
address{ state, city, ... }Beneficiary address information. Encoded as a JSON string.
Constraints
- Rule
- Serialize the object before submission. Use Query required fields with the same merchant, country, currency, entity type, payout method, and applicable wallet type to identify the required fields.
accountInfomation{ cardNumber, accountType, ... }Beneficiary account information. The parameter name is
accountInfomation. Encoded as a JSON string.Constraints
- Rule
- Serialize the object before submission. Use Query required fields with the same merchant, country, currency, entity type, payout method, and applicable wallet type to identify the required fields.
signRequest signature. Generate it using the signing method and credentials configured for the initiating merchant, following the request-signing rules.
curl -X POST 'https://sandbox-api.onerway.com/payout/api/v1/beneficiary/add' \
-H 'Content-Type: application/json' \
--data-raw '{
"accountInfomation": "{\"walletType\":\"EASYPAISA\",\"walletPhone\":\"+920000000000\"}",
"address": "{\"countryCode\":\"PK\",\"state\":\"Punjab\",\"city\":\"Lahore\",\"addressLine1\":\"12 Demo Street\",\"postalCode\":\"54000\"}",
"bankCountry": "PK",
"entityType": "1",
"merchantNo": "800699",
"merchantRefId": "bene_demo_001",
"paymentMethod": "E_WALLET",
"payoutCurrency": "PKR",
"receiverInfo": "{\"firstName\":\"Beta\",\"lastName\":\"Tester\",\"areaCode\":\"+92\",\"phone\":\"3001234567\",\"email\":\"beneficiary@example.com\",\"identityType\":\"NID\"}",
"sign": "{{SIGN}}"
}'Response
respCodeResponse code;
20000 indicates successful request processing. All other values are error codes.respMsgHuman-readable description of the response code.
data{ beneficiaryId, payeeStatus }Result of successful beneficiary creation.
{
"respCode": "20000",
"respMsg": null,
"data": {
"beneficiaryId": "1984102812163112960",
"payeeStatus": "unnecessary"
}
}No error responses are documented for this endpoint.