Onerway
Get Started

Setup

Before calling Issuing APIs, read the flow below carefully.

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.

CredentialPortal pathDirect link
ApiKeyDeveloper Center → API Keys → Create API Key, select API_KEY as the type, and select Issuing as the API productSandbox · Production
secretDeveloper Center → API Keys → Create API Key, then select HMAC_SHA256 as the typeSandbox · Production

Issuing APIs identify caller permissions through the ApiKey request header. Securely store the ApiKey and secret on your server.

Do not expose issuing credentials in frontend pages, mobile apps, client-side bundles, logs, or public repositories.

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.

EnvironmentWhen to configurePortal link
SandboxBefore your first server-side API request in the sandboxSandbox IP allowlist
ProductionBefore your first server-side API request in productionProduction 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.

EnvironmentBase URL
Productionhttps://issuer.onerway.com/api/v1/merchant
Sandboxhttps://sandbox-issuer.onerway.com/api/v1/merchant
Sandbox and production credentials are separate. API paths, request methods, and request structures stay the same across environments, but the base URL and 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

StepActionEndpoint or source
1Get card product information and confirm the productId with Onerway.List card products
2Create a cardholder and complete pre-issuance preparation.Create cardholder
3Create a card with productId, cardholderId, and the deposit amount.Create card
4Query card operation progress, basic card information, balance, and sensitive information when needed.Card queries
5Receive card operation event notifications.Card operation event
6Query card transaction records and receive transaction event notifications.Query transaction records
7Receive 3DS event notifications when a transaction triggers 3DS verification (as needed; not every transaction triggers it).3DS event

Next steps