Onerway
POST

Retrieve a transfer

Retrieve a transfer’s status, amounts and payer details by transfer identifier or merchant request identifier.

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:
transferId
Onerway payment identifier.
Constraints
Rule
Supply transferId or requestId. If both are supplied, they must identify the same payment.
requestId
Merchant-generated business reference for the payout.
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/queryDetail' \
  -H 'ApiKey: replace_with_account_service_apikey' \
  -H 'Content-Type: application/json' \
  --data-raw '{
  "requestId": "demo_transfer_001"
}'

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
Consume business data only when respCode=20000. Unset transaction fields are omitted.
Rule
No matching transfer produces a business error rather than a successful empty object. A/P/S/F/RETURNED mean created/processing/successful/failed/returned. Inspect payoutStatusReason.
Structured failure information; not present for every failure path

Response example

{
  "respCode": "20000",
  "respMsg": "Success",
  "data": {
    "merchantNo": "800699",
    "requestId": "demo_transfer_001",
    "transferId": "1000001",
    "status": "P",
    "payoutStatusReason": "",
    "beneficiary": {
      "beneficiaryId": "10001"
    },
    "createTime": "2026-10-19 13:45:10",
    "updateTime": "2026-10-19 13:45:11"
  }
}
20050120

Using a nonexistent requestId.

Trigger: Using a nonexistent requestId.

Example

{
  "respCode": "50120",
  "respMsg": "requestId or transferId is invalid",
  "error": {
    "type": "business_error",
    "code": "50120",
    "message": "requestId or transferId is invalid",
    "requestId": "req_00000000000000000000000000000001",
    "errorDetails": [
      {
        "errorCode": "50120",
        "message": "requestId or transferId is invalid"
      }
    ],
    "param": "requestId"
  }
}