Onerway
POST

Transfer with beneficiary ID

Submit a Transfer payout by using an approved beneficiary ID.

Request

merchantNo
Merchant number assigned by Onerway. Retrieve it from the merchant portal or onboarding material after your sandbox or production account is created.
Example:
payerId
Condition: Provide payerId or payerDetail.
Stored payer ID used for the transfer. Reuse this field when the payer has already been created and does not need to be passed inline.
Condition: Provide payerDetail or payerId.
Inline payer details encoded as a JSON string. Use it when the payer is not pre-created or when the latest payer attributes must be sent with the request.
beneficiaryId
Approved beneficiary ID used for the transfer.
Example:
sourceAmount
Condition: Required when chargeFlag=N.
Source amount before downstream deductions. Use this field when the transfer is driven by the debit-side amount.
Example:
sourceCurrency
Source currency of the transfer.
Example:
targetAmount
Condition: Required when chargeFlag=Y.
Expected arrival amount in the beneficiary currency. Use this field when the transfer is driven by the beneficiary-side arrival amount.
Example:
targetCurrency
Target or beneficiary currency of the transfer.
Example:
requestId
Merchant request ID. Keep it unique for each transfer request for reconciliation and idempotency tracking.
Example:
reference
Transfer reference or memo that appears in downstream reconciliation or beneficiary statements when supported.
transactionPurpose
Transfer purpose code. Choose the value that matches the underlying business purpose and compliance requirement of the payout.
chargeFlag
Full-arrival flag used to choose whether the target amount or source amount drives the calculation.
feeBearing
Condition: Required for SWIFT transfers when fee-bearing mode must be declared.
SWIFT fee-bearing mode.
sign
Request signature string. Generate it according to the Transfer request-signing rules with your merchant private key.

Request example

curl -X POST 'https://sandbox-api.onerway.com/payout/api/v1/txn/remittance' \
  -H 'Content-Type: application/json' \
  --data-raw '{
  "beneficiaryId": "1953727182141784064",
  "chargeFlag": "Y",
  "merchantNo": "801040",
  "payerId": "1953712585351499776",
  "reference": "REFERENCE PAYOUT",
  "requestId": "DM2025081120520",
  "sign": "{{SIGN}}",
  "sourceAmount": 113,
  "sourceCurrency": "USD",
  "targetAmount": 1901,
  "targetCurrency": "PKR",
  "transactionPurpose": "4"
}'

Response

respCode
Response code returned by Onerway.
respMsg
Response message returned by Onerway.
Created transfer record.

Response example

{
  "respCode": "20000",
  "respMsg": null,
  "data": {
    "merchantNo": "801129",
    "payoutId": "1984136974445449216",
    "status": "A",
    "requestId": "CYPW20251031055450"
  }
}
No error responses are documented for this endpoint.