> ## Documentation Index
> Fetch the complete documentation index at: https://docs.rhinestone.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# List localized Swapped payment methods

> Returns the configured popular method (when merchant-enabled) followed by the supported subset of credit card, bank transfer, and Apple Pay for the trusted edge-resolved x-user-country. A missing/unknown country or unavailable catalog returns the null-country fallback so clients can use their built-in global defaults.



## OpenAPI

````yaml https://raw.githubusercontent.com/rhinestonewtf/openapi/refs/heads/main/deposit-service.json get /onramp/swapped/payment-methods
openapi: 3.1.0
info:
  title: Deposit Service API
  version: 1.0.0
  description: >-
    Cross-chain deposit processing service with automatic token bridging and gas
    sponsorship
servers:
  - url: https://v1.orchestrator.rhinestone.dev/deposit-processor
security: []
paths:
  /onramp/swapped/payment-methods:
    get:
      tags:
        - Onramp
      summary: List localized Swapped payment methods
      description: >-
        Returns the configured popular method (when merchant-enabled) followed
        by the supported subset of credit card, bank transfer, and Apple Pay for
        the trusted edge-resolved x-user-country. A missing/unknown country or
        unavailable catalog returns the null-country fallback so clients can use
        their built-in global defaults.
      parameters:
        - schema:
            type: string
            description: API key for authentication (omit when sending Authorization)
            example: your-api-key
          required: false
          description: API key for authentication (omit when sending Authorization)
          name: x-api-key
          in: header
        - schema:
            type: string
            description: >-
              Bearer platform token (e.g. forwarded by user-service). Takes
              precedence over `x-api-key` when both are present.
            example: Bearer eyJhbGciOi...
          required: false
          description: >-
            Bearer platform token (e.g. forwarded by user-service). Takes
            precedence over `x-api-key` when both are present.
          name: authorization
          in: header
        - schema:
            type: string
            pattern: ^[A-Z]{2}$
            description: >-
              Trusted edge-resolved ISO country. When present it overrides
              body.baseCountry and x-client-ip, and enables country-specific
              payment-method validation.
            example: PH
          required: false
          description: >-
            Trusted edge-resolved ISO country. When present it overrides
            body.baseCountry and x-client-ip, and enables country-specific
            payment-method validation.
          name: x-user-country
          in: header
        - schema:
            type: string
            description: >-
              The end user's IP address as observed by the edge, for edges that
              can name the IP but cannot resolve a country themselves (no local
              GeoIP database). Used only when x-user-country is absent, and
              ignored unless it is a publicly-routable address. Prefer
              x-user-country when your edge already has a country — for example
              Cloudflare's cf-ipcountry — since it needs no lookup here.
            example: 203.0.113.7
          required: false
          description: >-
            The end user's IP address as observed by the edge, for edges that
            can name the IP but cannot resolve a country themselves (no local
            GeoIP database). Used only when x-user-country is absent, and
            ignored unless it is a publicly-routable address. Prefer
            x-user-country when your edge already has a country — for example
            Cloudflare's cf-ipcountry — since it needs no lookup here.
          name: x-client-ip
          in: header
      responses:
        '200':
          description: Localized payment methods or the generic fallback
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SwappedPaymentMethodsResponse'
        '400':
          description: Invalid country header
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '401':
          description: Authentication required or invalid credential
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '403':
          description: API key lacks required deposits scope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '503':
          description: Swapped on-ramp is not configured
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
components:
  schemas:
    SwappedPaymentMethodsResponse:
      type: object
      properties:
        country:
          type:
            - string
            - 'null'
          pattern: ^[A-Z]{2}$
          description: ISO-3166-1 alpha-2 country code
          example: US
        methods:
          type: array
          items:
            type: object
            properties:
              method:
                type: string
              label:
                type: string
              iconUrl:
                type:
                  - string
                  - 'null'
              iconUrlLight:
                type:
                  - string
                  - 'null'
              minAmount:
                type:
                  - number
                  - 'null'
                minimum: 0
              maxAmount:
                type:
                  - number
                  - 'null'
                minimum: 0
              badge:
                type:
                  - string
                  - 'null'
                enum:
                  - Popular
            required:
              - method
              - label
              - iconUrl
              - iconUrlLight
              - minAmount
              - maxAmount
              - badge
        recommendedMethod:
          type:
            - string
            - 'null'
      required:
        - country
        - methods
        - recommendedMethod
    ErrorResponse:
      type: object
      properties:
        error:
          type: string
        details:
          type: array
          items:
            type: object
            properties:
              message:
                type: string
              path:
                type: array
                items:
                  anyOf:
                    - type: string
                    - type: number
              code:
                type: string
            required:
              - message
      required:
        - error

````