# Payment Methods

This `GET` endpoint gets the payment methods activated in your application.

The `publicKey` is passed in the header and `currencyType` can either be `FIAT` or `CRYPTO` which is passed as a query and this returns `name`, `isEnabled`, `methodReference`, `paymentType` and `currencyType`. See below for an example;

## Gets the available payment methods.

<mark style="color:blue;">`GET`</mark> `https://checkout-api-sandbox.xendbridge.com/api/ThirdPartyUI/PaymentMethods`

#### Query Parameters

| Name                                           | Type   | Description    |
| ---------------------------------------------- | ------ | -------------- |
| currencyType<mark style="color:red;">\*</mark> | string | {FIAT, CRYPTO} |

#### Headers

| Name                                        | Type   | Description |
| ------------------------------------------- | ------ | ----------- |
| publicKey<mark style="color:red;">\*</mark> | string | {publicKey} |

{% tabs %}
{% tab title="200: OK Success - FIAT" %}

```json
{
    "data": [
        {
            "name": "Mpesa",
            "isEnabled": true,
            "methodReference": "438C732A4353481DA61963C0F25C0235",
            "method": "Mpesa",
            "paymentType": "MobileMoney",
            "currencyType": "FIAT"
        },
        {
            "name": "Momo",
            "isEnabled": true,
            "methodReference": "96668EDB4617427EB58C0D51F5144AA6",
            "method": "Momo",
            "paymentType": "MobileMoney",
            "currencyType": "FIAT"
        },
        {
            "name": "Chipper Cash",
            "isEnabled": true,
            "methodReference": "AA1AF5E3A3904BE69D12FDEAB11B03C5",
            "method": "ChipperCash",
            "paymentType": "Fintech",
            "currencyType": "FIAT"
        },
        {
            "name": "Bank Transfer",
            "isEnabled": true,
            "methodReference": "DC5305D4EBB34719A503AB4DA689B216",
            "method": "Bank",
            "paymentType": "Bank",
            "currencyType": "FIAT"
        }
    ],
    "status": "OK",
    "message": ""
}
```

{% endtab %}

{% tab title="200: OK Success - CRYPTO" %}

```json
{
    "data": [
        {
            "name": "Cryptocurrency",
            "isEnabled": true,
            "methodReference": "D38B6A22292C4DB596FF9615DF432779",
            "method": "Crypto",
            "paymentType": "Crypto",
            "currencyType": "CRYPTO"
        }
    ],
    "status": "OK",
    "message": ""
}
```

{% endtab %}
{% endtabs %}

{% tabs %}
{% tab title="Request Fields" %}

| Parameters     | Type   | Definitions                                                             |
| -------------- | ------ | ----------------------------------------------------------------------- |
| `publicKey`    | string | `Required` This is the key   generated upon creation of an application. |
| `currencyType` | string | `Required` This is the currency type being either FIAT or CRYPTO        |
| {% endtab %}   |        |                                                                         |

{% tab title="Response Fields" %}

|                   |        |                                                     |
| ----------------- | ------ | --------------------------------------------------- |
| `name`            | string | This is the name of the payment method.             |
| `isEnabled`       | bool   | This is status of the payment method.               |
| `methodReference` | string | This is the reference number of the payment method. |
| `method`          | enum   | This is the method type.                            |
| `paymentType`     | enum   | This is the payment type.                           |
| `currencyType`    | enum   | This is the currency type.                          |
| {% endtab %}      |        |                                                     |
| {% endtabs %}     |        |                                                     |


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://doc.xendbridge.com/xendbridge-portal/checkout-url/payment-methods.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
