Setup steps
Create a sandbox merchant account
Provide your email address, source IP address, and event callback URL to Onerway technical support. After the sandbox account is created, use the link in the email to sign in to the merchant portal and obtain the ApiKey and secret required for integration and webhook verification.
Retrieve your credentials
Sign in to the merchant portal and obtain the following credentials for server-side API calls and webhook signature verification.
| Credential | Portal path | Direct link |
|---|---|---|
ApiKey | Developer Center → API Keys → Create API Key, select API_KEY as the type, and select Issuing as the API product | Sandbox · Production |
secret | Developer Center → API Keys → Create API Key, then select HMAC_SHA256 as the type | Sandbox · Production |
Issuing APIs identify caller permissions through the ApiKey request header. Securely store the ApiKey and secret on your server.
Configure a server-side callback URL that can receive Issuing event webhooks. The callback must use secret to verify x-signature, deduplicate events by request_id, and return respCode=20000 after accepting an event.
Configure your IP allowlist
Before making your first server-side API request in the sandbox, you must add every public outbound IP address used by your servers to the sandbox IP allowlist. In the sandbox merchant portal, go to Developers → IP allowlist and add these addresses. Use your servers' outbound IP addresses, not the IP addresses of customers visiting your website.
Configure the IP allowlist separately for the sandbox and production environments. Before going live, you must add all public outbound IP addresses used by your production servers in the production merchant portal. Add the IP addresses in each environment even if they are the same.
| Environment | When to configure | Portal link |
|---|---|---|
| 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.
Build and test
Use the base URL that matches the environment of your ApiKey.
| Environment | Base URL |
|---|---|
| Production | https://issuer.onerway.com/api/v1/merchant |
| Sandbox | https://sandbox-issuer.onerway.com/api/v1/merchant |
ApiKey must come from the same environment.After configuring the sandbox IP allowlist, use your sandbox credentials to develop your integration and verify all APIs, error handling, and webhook callbacks. Before switching to the production API base URL and credentials, you must add your production servers' public outbound IP addresses to the production IP allowlist.
Integration flow
| Step | Action | Endpoint or source |
|---|---|---|
| 1 | Get card product information and confirm the productId with Onerway. | List card products |
| 2 | Create a cardholder and complete pre-issuance preparation. | Create cardholder |
| 3 | Create a card with productId, cardholderId, and the deposit amount. | Create card |
| 4 | Query card operation progress, basic card information, balance, and sensitive information when needed. | Card queries |
| 5 | Receive card operation event notifications. | Card operation event |
| 6 | Query card transaction records and receive transaction event notifications. | Query transaction records |
| 7 | Receive 3DS event notifications when a transaction triggers 3DS verification (as needed; not every transaction triggers it). | 3DS event |
Next steps
- API specifications — review common Issuing API rules
- Create cardholder — create a cardholder before card creation
- Create card — create the first virtual card
- Event webhooks — configure Issuing event handling and verification