Onerway
POST

List available payment methods

Use this endpoint before creating a payment when your integration needs to display or filter the payment methods available for the customer's country, currency, amount, platform, and merchant configuration.

Request

appId
Application or site identifier assigned by Onerway. It identifies the merchant application that starts this query.
Example:
country
Customer country or region code, using the two-letter ISO 3166-1 alpha-2 format. Onerway uses it to match available payment methods for that region.
Example:
merchantNo
Merchant number assigned by Onerway. See Setup for how to obtain it.
Example:
orderAmount
Order amount as a decimal string in the currency specified by orderCurrency. Format and minimum-amount rules follow currency and amount validation.
Example:
orderCurrency
Order currency, using a three-letter ISO 4217 currency code that matches orderAmount.
Example:
osType
Condition: Required when paymentMode is not WEB.
Operating system type for mobile or app-based payment scenarios.
Example:
Allowed values
IOS
iOS device.
ANDROID
Android device.
paymentMode
Payment mode indicating the transaction platform or environment. Defaults to WEB when omitted.
Example:
Allowed values
WEB
Desktop browser payment.
APP
Native mobile app payment. Submit osType together with this value.
WAP
Mobile browser payment. Submit osType together with this value.
sign
Request signature string. See Request signing for how to generate it.
subProductType
Payment-method category filter. When provided, Onerway returns only payment methods that support this transaction processing mode; when omitted, the available methods are based on the other order parameters.
Example:
Allowed values
DIRECT
Direct payment.
SUBSCRIBE
Subscription payment.
INSTALLMENT
Installment payment.
Constraints
Consistency
The shared enum is a value dictionary only. Actual availability still depends on product compatibility, merchant configuration, and the current order context.

Request example

curl -X POST 'https://sandbox-acq.onerway.com/v1/txn/consultPaymentMethod' \
  -H 'Content-Type: application/json' \
  --data-raw '{
  "appId": "replace_with_app_id",
  "country": "US",
  "merchantNo": "replace_with_merchant_no",
  "orderAmount": "99.99",
  "orderCurrency": "USD",
  "osType": "IOS",
  "paymentMode": "APP",
  "sign": "{{SIGN}}",
  "subProductType": "DIRECT"
}'

Response

respCode
Response code returned by Onerway. 20000 means the request was processed successfully; other values indicate failure or an exception. See Response codes.
respMsg
Human-readable message for the response code.
Payment methods available for the current order context.

Response example

Example code is unavailable.

No error responses are documented for this endpoint.