Setup
Setup steps
Select the base URL
Use the base URL for your integration environment and the apiKey Onerway provides for that environment. See each API Reference page for its request method and path.
| Environment | Base URL |
|---|---|
| Production | https://baas.onerway.com |
| Sandbox | https://sandbox-baas.onerway.com/embedded-finance |
apiKey, and event callback configuration all correspond to the target environment.Arrange sandbox access
Contact Onerway to confirm how to enable Embedded Finance sandbox access and obtain the apiKey, webhook_secret for webhook verification, and event callback configuration requirements for that environment.
Provide source IP addresses
Before calling Embedded Finance APIs, provide Onerway with stable server source IP addresses for the access allowlist. Provide separate addresses if sandbox and production use different source IPs, and update the allowlist before switching traffic when a source IP changes.
Store credentials securely
Embedded Finance APIs identify the caller through the apiKey request header. Store the apiKey and webhook_secret on your server.
apiKey or webhook_secret in frontend pages, mobile apps, client-side bundles, logs, or public repositories.Configure event callbacks
Prepare a server-side callback URL for Embedded Finance events and confirm the callback configuration with Onerway. Once you have the webhook_secret, follow the Webhook description to verify x-signature using x-timestamp and the raw request body as received. Deduplicate deliveries by request_id. After accepting a notification, return HTTP 200 and JSON respCode=20000.
Suggested integration flow
| Step | Action | Endpoint or notification |
|---|---|---|
| 1 | Upload materials that require file IDs, submit business KYC, and save the returned userId. | Upload file, Business KYC |
| 2 | Continue based on the KYC review result. If more information is requested, submit the materials listed in the notification. | Handle KYC status notifications |
| 3 | Request a currency or virtual account for the relevant userId, according to your use case, and handle the virtual account opening result. | Open currency account, Open virtual account |
| 4 | After receiving a deposit notification, match the deposit and track the result. Respond if additional information is requested. | Deposit notification, Match deposit |
Next steps
- Business scenarios — choose a guide for accounts, deposits, refunds, or additional materials
- API specifications — review common Embedded Finance API rules
- Webhook description — implement signature verification, deduplication, and acknowledgement
- Business KYC — submit your first business KYC request
Overview
Explore business KYC, account opening, deposit processing, and event notifications in Embedded Finance.
Overview
This section describes each business scenario — concepts, lifecycle and result notifications — independently of how you integrate. Decide what you are doing first, then which endpoint to call.