Onerway
POST

Beneficiary Delete

Delete a beneficiary that is no longer needed.

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.
beneficiaryId
Onerway beneficiary ID.
Constraints
Rule
ID of the beneficiary to delete. It must belong to the operating merchant. Deletion is rejected while related payouts remain in statuses that block deletion.
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/remove' \
  -H 'Content-Type: application/json' \
  --data-raw '{
  "beneficiaryId": "1984102812163112960",
  "merchantNo": "800699",
  "sign": "{{SIGN}}"
}'

Response

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

Response example

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