Integration Guide

Onerway issuing integration workflow covering preparation, business overview, environment setup, card creation, card transaction queries, and event notifications.

Preparation

The production and sandbox environments differ only in the request domain. You can first test the Onerway API in the sandbox environment. Once testing is complete, switch to production by changing the request domain and configuration parameters.

  1. To create a sandbox merchant account, you need to provide an email, request source IP, and event receiving URL. After submission, check your email and click the link to log in to the merchant portal to obtain your merchant ID and secret key for signature verification. Then choose a suitable integration method to start the integration process.
  2. We will whitelist the request source IP — only whitelisted IPs can call the Onerway API.
  3. Obtain merchant information: Reset your password on first login to the merchant portal, then obtain your merchant ID and secret key.

Business Overview

  1. After successful integration, contact your Onerway representative to obtain card products.
  2. Create cardholders and cards. Onerway will push card change notifications to the merchant. Merchants can also actively query card information.
  3. After card transactions, Onerway will push transaction information to the merchant. Merchants can also actively query transactions.

Environment

Onerway provides sandbox and production API environments for different stages of development, testing, and deployment. We recommend completing full integration testing in the sandbox environment before switching to production.

EndpointEnvironment
https://sandbox-issuer.onerway.com/api/v1/merchantSandbox
https://issuer.onerway.com/api/v1/merchantProduction

Card Creation

Complete the card creation workflow in the following order.

StepActionEndpoint / SourceDescription
1Get Card ProductCard Product ListBrowse the card product list to select the card to issue. View BIN, issuing market, currency, card network, and usage details. Record the cardProductId. Please contact your integration representative to obtain this.
2Create CardholderPOST /api/v1/merchant/cardholder/createCardholderCreate a cardholder matching the card product. Submit required info (name, contact, billing address) to obtain cardholderId. If a suitable cardholder already exists, you can reuse it via the cardholder query API.
3Create CardPOST /api/v1/merchant/card/createCardPass cardProductId, cardholderId, card amount, and other parameters to create a card (refer to API documentation for exact fields).
4Query Card InfoSee API - Cards - QueriesQuery card-related information including: card creation and operation progress, basic card info and status, card balance or available limit, and sensitive info under compliance requirements.
5Event NotificationSee API - Webhooks - Card Operation EventsOnerway pushes event notifications to the merchant when card operations (creation, freeze, unfreeze, deposit, etc.) change status.

Card Transactions

After card spending, merchants can query card transaction records. Onerway will also push events to the merchant.

StepActionEndpointDescription
1Query TransactionsPOST /api/v1/merchant/queryTxnListQuery transaction records covering all supported types (authorization, clearing, refund, etc.). Filtering, pagination, and response fields are defined in the API documentation.
2Transaction Event PushSee API - Webhooks - Transaction EventsOnerway proactively pushes transaction event notifications to the merchant after card transactions occur.

Workflow Overview