Setup
Before calling Transfer V3 APIs, confirm that payment API access is enabled and obtain the ApiKey for the target environment.
Setup steps
Confirm API access
Confirm your destination countries, currencies and payment methods with Onerway. If you need to act on behalf of another merchant, also confirm the relevant permissions and supply that merchant's number in onBehalfOf.
Select the base URL
| Environment | Base URL |
|---|---|
| Sandbox | https://sandbox-transfer-api.onerway.com |
| Production | https://transfer-api.onerway.com |
Append the path shown on the endpoint page to the base URL. For example, the sandbox exchange-rate query URL is:
https://sandbox-transfer-api.onerway.com/api/v3/acct/queryExchangeRate
Obtain credentials
Obtain the credentials for the corresponding environment in the merchant portal:
| Credential | Purpose |
|---|---|
merchantNo | Identifies the merchant. Use it as required by each endpoint. |
API Key of type API_KEY | Authenticates server-side Transfer V3 requests through the ApiKey header. |
| Notification signing key | Verifies webhook notifications on your server. Use it separately from the API Key. |
Use the following merchant portal pages to obtain your credentials:
merchantNo: Settings → Merchant → Merchant information — Sandbox · Production.- API Key and notification signing key: Developer center → API keys — Sandbox · Production.
Keep both keys on your server. Do not put them in client-side code, mobile app packages, version control, or logs. Send the API Key in the ApiKey request header and set Content-Type: application/json. See Webhooks and signature verification for notification verification.
Configure the IP allowlist
Before making your first server-side API request in the sandbox, add all public outbound IP addresses used by your server to the sandbox IP allowlist. In the sandbox merchant portal, go to Developer center → IP allowlist and add these addresses. Use your server's outbound IP addresses, not the IP addresses of customer devices or browsers visiting your website.
Configure the IP allowlist separately for the sandbox and production environments. Before going live, add all public outbound IP addresses used by your production servers in the production merchant portal. Add the addresses in each environment even if they are the same.
| Environment | When to configure | Merchant portal page |
|---|---|---|
| Sandbox | Before your first server-side API request in the sandbox | Sandbox IP allowlist |
| Production | Before your first server-side API request in production | Production IP allowlist |
When the IP allowlist is enabled, requests from IP addresses that are not on the allowlist for the target environment may be rejected.
To restrict the source IPs of incoming webhooks, configure your receiving endpoint using the webhook source IP allowlist.
Send a server-side request
Confirm the outbound IP allowlist is configured before sending a request from your server.
Start with Query an exchange rate. Follow the endpoint's request example to supply the source currency, target currency and amount, and include the headers above.
Read business data when respCode is 20000. Treat other values as errors and use the error code and message to investigate. After a successful exchange-rate query, continue validating the beneficiary and payment flow.
Complete the payment integration
- List available payment methods for your payment scenario.
- Retrieve beneficiary field rules, prepare the details, then validate and create the beneficiary.
- Use the saved
beneficiaryIdto validate a transfer, then create the transfer. - Track the result through transfer details and V3 payment notifications. Acceptance does not mean the payment has succeeded. If the request outcome is unclear, query with the original
requestIdto avoid duplicate payments.
See the V3 API overview for the detailed flow and status handling.
Payment status flow
The following shows a common payment status flow:
A Created → P Processing → S Succeeded → RETURNED Returned
↘ F Failed
Queries and callbacks may not show every intermediate status. Acceptance does not mean the payment has succeeded, and a successful payment can subsequently be returned. On receiving RETURNED, update the original transaction and inspect payoutStatusReason; do not automatically initiate another payment. If a request times out or its outcome is unclear, query the payment details using the original requestId first.
See payment statuses for all values and Webhooks and signature verification for notification handling.
Account balances and transactions
Account balance and account transaction queries use Account service APIs. Refer to Account service setup for their base URLs, request headers and integration requirements.