Onerway
POST

Beneficiary Edit

Update the profile information of an existing beneficiary.

Request

merchantNo
Merchant number of the request initiator.
Example:
onBehalfOf
Merchant number that the request is for. Include only when making a request on behalf of another merchant.
merchantRefId
User ID in the merchant system, used to associate the beneficiary with the merchant user.
Constraints
Rule
Maximum length: 64.
beneficiaryId
Onerway beneficiary ID.
Constraints
Rule
ID of the beneficiary to update. The beneficiary must belong to the operating merchant.
bankCountry
Destination country of the beneficiary account.
Example:
Constraints
Rule
Maximum length: 12.
Rule
The destination must be supported for the merchant and payout method.
payoutCurrency
Payout currency.
Example:
Constraints
Rule
Maximum length: 128.
Rule
The currency must be supported for the merchant and destination country.
entityType
Beneficiary entity type. See enum values.
Example:
Allowed values
0
Business
1
Individual
Constraints
Rule
Maximum length: 1.
paymentMethod
Payout method. See enum values.
Example:
Allowed 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.
Beneficiary identity and contact information. Encoded as a JSON string.
Constraints
Rule
Maximum length of the serialized JSON string: 1000.
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.
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.
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.
sign
Request signature. Generate it using the signing method and credentials configured for the initiating merchant, following the request-signing rules.

Request example

curl -X POST 'https://sandbox-api.onerway.com/payout/api/v1/beneficiary/edit' \
  -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}}",
  "beneficiaryId": "1984102812163112960"
}'

Response

respCode
Response code; 20000 indicates successful request processing. All other values are error codes.
respMsg
Human-readable description of the response code.
Updated beneficiary result.

Response example

{
  "respCode": "20000",
  "respMsg": null,
  "data": {
    "beneficiaryId": "1984102812163112960",
    "payeeStatus": "unnecessary"
  }
}
No error responses are documented for this endpoint.