Onerway
POST

List available payment methods

Query available payment methods for the current merchant, recipient country, account currency and entity type.

Request

ApiKey
Account service API key assigned by Onerway, supplied in the request header. Use the key for the same environment as the request domain.
Example:
Content-Type
Request media type.
Example:
destinationCountry
Recipient account country or region. See country/region enums.
Constraints
Rule
2 characters
accountCurrency
Recipient account currency. See currency enums.
Constraints
Rule
Use a recognized three-letter uppercase currency code, such as USD.
entityType
Entity type. See enum values.
Allowed values
INDIVIDUAL
Individual
BUSINESS
Business
onBehalfOf
Merchant number that the request applies to. Supply it only when making a request on behalf of another merchant.

Request example

curl -X POST 'https://sandbox-transfer-api.onerway.com/api/v3/acct/queryPaymentMethods' \
  -H 'ApiKey: replace_with_account_service_apikey' \
  -H 'Content-Type: application/json' \
  --data-raw '{
  "destinationCountry": "US",
  "accountCurrency": "USD",
  "entityType": "BUSINESS"
}'

Response

respCode
Response code; 20000 indicates successful request processing. All other values are error codes.
respMsg
Human-readable description of the response code.
Business data on success; do not consume as valid business data on failure
Structured failure information; not present for every failure path

Response example

{
  "respCode": "20000",
  "respMsg": "Success",
  "data": {
    "destinationCountry": "US",
    "accountCurrency": "USD",
    "entityType": "BUSINESS",
    "paymentMethods": [
      "BANK_TRANSFER"
    ]
  }
}
20040004

Using lowercase us for destinationCountry.

Trigger: Using lowercase us for destinationCountry.

Example

{
  "respCode": "40004",
  "respMsg": "Illegal parameter [destinationCountry]",
  "error": {
    "type": "validation_error",
    "code": "40004",
    "message": "Illegal parameter [destinationCountry]",
    "requestId": "req_00000000000000000000000000000001",
    "errorDetails": [
      {
        "errorCode": "40004",
        "message": "Illegal parameter [destinationCountry]"
      }
    ],
    "param": "destinationCountry"
  }
}