Get Paymentmethods¶
Use Paymentmethods to get information about the payment methods that have been configured and enabled for a specific merchant. The response can be limited to a specified country and/or currency.
Endpoints¶
GET /api/v3/merchants/{mid}/paymentmethods
Gets information about the payment methods enabled for a specific merchant.
Request parameters¶
| Path parameter | Requirement | Description | Type | 
|---|---|---|---|
| mid | Required | The merchant account reference number. | Number | 
| Query parameter | Requirement | Description | Type | 
|---|---|---|---|
| country | Optional | The ISO 3166 country code. | String | 
| currency | Optional | The ISO 4217 currency code. | String | 
Sample request¶
CURL
curl -X POST \
    -H 'Accept: application/json' \
    -H 'Content-Type: application/json' \
    -H 'Authorization: Bearer 573cec25a87526dcceacad786bbbba83b1a5172' \
    https://    /api/v3/merchants/1570616552/paymentmethods
Sample response¶
Response with no optional parameters
[
    {
        "id": 1003,
        "name": "Amex",
        "keyedName": "AMEX",
        "category": "Card",
        "type": "Card",
        "group": "N/A",
        "availabilities": [
            {
                "country": "FI",
                "currency": "DKK"
            },
            {
                "country": "PW",
                "currency": "USD"
            },
            {
                "country": "IR",
                "currency": "IRR"
            }
        ]
    },
    {
        "id": 1001,
        "name": "Visa",
        "keyedName": "VISA",
        "category": "Card",
        "type": "Card",
        "group": "N/A",
        "availabilities": [
            {
                "country": "UZ",
                "currency": "UZS"
            },
            {
                "country": "GR",
                "currency": "JPY"
            },
            {
                "country": "TV",
                "currency": "AUD"
            }
        ]
    }
]
Response when country=SE
[
    {
        "id": 1003,
        "name": "Amex",
        "keyedName": "AMEX",
        "category": "Card",
        "type": "Card",
        "group": "N/A",
        "availabilities": [
            {
                "country": "SE",
                "currency": "JPY"
            },
            {
                "country": "SE",
                "currency": "CZK"
            },
            {
                "country": "SE",
                "currency": "PLN"
            }
        ]
    },
    {
        "id": 1001,
        "name": "Visa",
        "keyedName": "VISA",
        "category": "Card",
        "type": "Card",
        "group": "N/A",
        "availabilities": [
            {
                "country": "SE",
                "currency": "JPY"
            },
            {
                "country": "SE",
                "currency": "CZK"
            },
            {
                "country": "SE",
                "currency": "PLN"
            }
        ]
    }
]
Response when currency=SEK
[
    {
        "id": 1003,
        "name": "Amex",
        "keyedName": "AMEX",
        "category": "Card",
        "type": "Card",
        "group": "N/A",
        "availabilities": [
            {
                "country": "CY",
                "currency": "SEK"
            },
            {
                "country": "ES",
                "currency": "SEK"
            },
            {
                "country": "HU",
                "currency": "SEK"
            }
        ]
    },
    {
        "id": 1001,
        "name": "Visa",
        "keyedName": "VISA",
        "category": "Card",
        "type": "Card",
        "group": "N/A",
        "availabilities": [
            {
                "country": "CY",
                "currency": "SEK"
            },
            {
                "country": "ES",
                "currency": "SEK"
            },
            {
                "country": "HU",
                "currency": "SEK"
            }
        ]
    }
]
Response when country=SE and currency=SEK
              
            [
    {
        "id": 1003,
        "name": "Amex",
        "keyedName": "AMEX",
        "category": "Card",
        "type": "Card",
        "group": "N/A",
        "availabilities": [
            {
                "country": "SE",
                "currency": "SEK"
            }
        ]
    },
    {
        "id": 1001,
        "name": "Visa",
        "keyedName": "VISA",
        "category": "Card",
        "type": "Card",
        "group": "N/A",
        "availabilities": [
            {
                "country": "SE",
                "currency": "SEK"
            }
        ]
    }
]