# List available payment methods

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

```yaml
openapi: 3.1.0
x-onerway-docs-version: original
x-onerway-spec-key: transfer/v3-beneficiaries/query-payment-methods
info:
  title: List available payment methods
  version: original
  description: Query available payment methods for the current merchant, recipient
    country, account currency and entity type.
servers:
  - url: https://sandbox-transfer-api.onerway.com
    description: sandbox
  - url: https://transfer-api.onerway.com
    description: production
paths:
  /api/v3/acct/queryPaymentMethods:
    post:
      summary: List available payment methods
      description: Query available payment methods for the current merchant, recipient
        country, account currency and entity type.
      parameters:
        - name: ApiKey
          in: header
          required: true
          description: Account service API key assigned by Onerway, supplied in the
            request header. Use the key for the same environment as the request
            domain.
          schema:
            type: string
            description: Account service API key assigned by Onerway, supplied in the
              request header. Use the key for the same environment as the
              request domain.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                destinationCountry:
                  type: string
                  description: Recipient account country or region. See [country/region
                    enums](/transfer/api-reference/v3-enums#countryregion-enums).
                  x-onerway-constraints:
                    - kind: rule
                      text: 2 characters
                accountCurrency:
                  type: string
                  description: Recipient account currency. See [currency
                    enums](/transfer/api-reference/v3-enums#currency-enums).
                  x-onerway-constraints:
                    - kind: rule
                      text: Use a recognized three-letter uppercase currency code, such as USD.
                entityType:
                  type: string
                  description: Entity type. See [enum
                    values](/transfer/api-reference/v3-enums#entitytype-entity-types).
                  enum:
                    - INDIVIDUAL
                    - BUSINESS
                  x-enum-descriptions:
                    INDIVIDUAL: Individual
                    BUSINESS: Business
                onBehalfOf:
                  type: string
                  description: Merchant number that the request applies to. Supply it only when
                    making a request on behalf of another merchant.
              required:
                - destinationCountry
                - accountCurrency
                - entityType
            examples:
              default:
                summary: Request structure (replace with your merchant data)
                value:
                  destinationCountry: US
                  accountCurrency: USD
                  entityType: BUSINESS
      responses:
        "200":
          description: Success example
          content:
            application/json:
              schema:
                anyOf:
                  - type: object
                    properties:
                      respCode:
                        type: string
                        description: Response code; `20000` indicates successful request processing. All
                          other values are error codes.
                      respMsg:
                        type: string
                        description: Human-readable description of the response code.
                      data:
                        type: object
                        properties:
                          destinationCountry:
                            type: string
                            description: Recipient account country or region. See [country/region
                              enums](/transfer/api-reference/v3-enums#countryregion-enums).
                          accountCurrency:
                            type: string
                            description: Recipient account currency. See [currency
                              enums](/transfer/api-reference/v3-enums#currency-enums).
                          entityType:
                            type: string
                            description: Entity type. See [enum
                              values](/transfer/api-reference/v3-enums#entitytype-entity-types).
                            enum:
                              - INDIVIDUAL
                              - BUSINESS
                            x-enum-descriptions:
                              INDIVIDUAL: Individual
                              BUSINESS: Business
                          paymentMethods:
                            type: array
                            description: Payment method. See [enum
                              values](/transfer/api-reference/v3-enums#paymentmethod-payment-methods).
                            items:
                              type: string
                              enum:
                                - BANK_TRANSFER
                                - SWIFT
                                - E_WALLET
                                - CASH_PICKUP
                              x-enum-descriptions:
                                BANK_TRANSFER: Bank transfer
                                SWIFT: SWIFT transfer
                                E_WALLET: E-wallet
                                CASH_PICKUP: Cash pickup
                        description: Business data on success; do not consume as valid business data on
                          failure
                      error:
                        type: object
                        properties:
                          type:
                            type: string
                            description: Error type.
                          code:
                            type: string
                            description: Endpoint error identifier.
                          declineCode:
                            type: string
                            description: Decline reason code; may be empty.
                          message:
                            type: string
                            description: Detailed error description
                          param:
                            type: string
                            description: Failed field or condition; may be empty when no field is identified
                          docUrl:
                            type: string
                            description: Link to error documentation; may be empty.
                          requestId:
                            type: string
                            description: Server-generated error trace identifier, req_ plus 32 hexadecimal
                              characters; not the merchant requestId
                          errorDetails:
                            type: array
                            description: Error details; see the variants below
                            items:
                              type: object
                              properties:
                                errorCode:
                                  type: string
                                  description: Business or validation detail code.
                                message:
                                  type: string
                                  description: Detail message
                        description: Structured failure information; not present for every failure path
                  - type: object
                    properties:
                      respCode:
                        type: string
                      respMsg:
                        type: string
                      error:
                        type: object
                        properties:
                          type:
                            type: string
                          code:
                            type: string
                          message:
                            type: string
                          requestId:
                            type: string
                          errorDetails:
                            type: array
                            items:
                              type: object
                              properties:
                                errorCode:
                                  type: string
                                message:
                                  type: string
                              required:
                                - errorCode
                                - message
                          param:
                            type: string
                        required:
                          - type
                          - code
                          - message
                          - requestId
                          - errorDetails
                          - param
                    required:
                      - respCode
                      - respMsg
                      - error
              examples:
                "40004":
                  summary: Using lowercase us for destinationCountry.
                  description: Using lowercase us for destinationCountry.
                  value:
                    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
                success:
                  summary: Success example
                  value:
                    respCode: "20000"
                    respMsg: Success
                    data:
                      destinationCountry: US
                      accountCurrency: USD
                      entityType: BUSINESS
                      paymentMethods:
                        - BANK_TRANSFER
                failure:
                  summary: Using lowercase us for destinationCountry.
                  value:
                    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
```
