Onerway
POST

Match deposit

Use this endpoint to match a deposit transaction. The result will be reported through the Deposit matching result webhook. If additional documents are required, you will receive a Deposit matching information request webhook and must respond through the Deposit RFI additional materials endpoint.

Request

apiKey
API key assigned for Embedded Finance API access.
Example:
Content-Type
Request content type.
Example:
userId
ID of the user associated with the deposit.
Example:
rechargeId
Recharge ID to match with the deposit.
Example:
sourceOrderNo
Merchant order number.
Example:
Constraints
Range
64characters

Request example

curl -X POST 'https://sandbox-baas.onerway.com/embedded-finance/api/v2/deposit/match' \
  -H 'apiKey: replace_with_api_key' \
  -H 'Content-Type: application/json' \
  --data-raw '{
  "userId": 12345678,
  "rechargeId": 2098358000329,
  "sourceOrderNo": "example_order_001"
}'

Response

respCode
Response code returned by Onerway. 20000 indicates that the request succeeded.
Example:
respMsg
Human-readable response message.
Example:
Deposit matching status returned for a successful request.

Response example

{
  "respCode": "20000",
  "respMsg": "Success",
  "data": {
    "merchantNo": "800***",
    "userId": 12345678,
    "status": "S"
  }
}
No error responses are documented for this endpoint.