Onerway
POST

Create a transfer

Initiate a transfer and receive its identifier and status at acceptance. A successful response does not mean that the beneficiary has received the funds.

Request

ApiKey
Account service API key assigned by Onerway, supplied in the request header. Use the key for the same environment as the request domain.
Example:
Content-Type
Request media type.
Example:
requestId
Merchant-generated business reference for the payout.
Constraints
Rule
Maximum length: 64.
Rule
requestId must be unique within the operating merchant. Duplicate submissions are rejected rather than replaying the original successful response.
Amount, currencies and payment method
Beneficiary for this payment.
onBehalfOf
Merchant number that the request applies to. Supply it only when making a request on behalf of another merchant.

Request example

curl -X POST 'https://sandbox-transfer-api.onerway.com/api/v3/txn/remittance' \
  -H 'ApiKey: replace_with_account_service_apikey' \
  -H 'Content-Type: application/json' \
  --data-raw '{
  "requestId": "demo_transfer_001",
  "transactionInfo": {
    "sourceAmount": 100,
    "sourceCurrency": "USD",
    "targetCurrency": "USD",
    "destinationCountry": "US",
    "paymentMethod": "BANK_TRANSFER",
    "transactionPurpose": "TRANSFER_TO_OWN_ACCOUNT",
    "chargeBearer": "CRED"
  },
  "beneficiary": {
    "beneficiaryId": 10001
  }
}'

Response

respCode
Response code; 20000 indicates successful request processing. All other values are error codes.
respMsg
Human-readable description of the response code.
Business data on success; do not consume as valid business data on failure
Constraints
Rule
This operation creates a transfer record. If the outcome is uncertain, query using the original requestId before submitting another transfer with a new identifier. Fees, balance, routing and beneficiary status affect acceptance.
Structured failure information; not present for every failure path

Response example

{
  "respCode": "20000",
  "respMsg": "Success",
  "data": {
    "transferId": 1000001,
    "status": "P",
    "requestId": "demo_transfer_001"
  }
}
20050118

Reusing a requestId for the same merchant.

Trigger: Reusing a requestId for the same merchant.

Example

{
  "respCode": "50118",
  "respMsg": "request id repeat",
  "error": {
    "type": "business_error",
    "code": "payout_remittance_failed",
    "message": "request id repeat",
    "requestId": "req_00000000000000000000000000000001",
    "errorDetails": [
      {
        "errorCode": "50118",
        "message": "request id repeat"
      }
    ]
  }
}