# List Merchant Accounts

> Discover payment providers available to your Telegram or Discord subscription bot, their credential fields and installed account status.

Source: https://docs.botsubscription.com/api/merchant-accounts/list/

Discover the payment providers available to your project, their installation fields and installed accounts. Use this result to populate provider choices; availability is project-specific.

Each key in `data` is an available provider ID. Use the returned catalog to build provider choices and credential forms. See [Install Provider](https://docs.botsubscription.com/api/merchant-accounts/install/) for how to send those fields when connecting an account.

Read `required_params` together with `optional_params`, when present. Despite its name, `required_params` includes declared optional credential fields; `optional_params` identifies which can be omitted. `credential_help`, when supplied, provides translated credential instructions. The response also advertises provider capabilities and `installed_merchant_accounts`.

`supports_saved_payment_methods` is a required boolean. Optional capability fields include `supports_standalone_setup`, `supports_offsession_charge` and `configuration_editable`. These describe provider features; they do not authorize project API keys to charge a customer's saved payment method. `platform_restriction`, when supplied, is a platform identifier string or `null`.

When an installed account includes `webhook_verification`, use `can_mark_verified` to decide whether this caller can mark it verified; `pending` alone does not grant that ability. Status is `verified`, `pending` or `not_required`; mode is `auto`, `manual`, `per_request` or `none`. The verification method is `webhook_arrival`, `signature_check`, `manual_only` or `null`. Verification metadata may be omitted, and `stripe_managed_payments_enabled` applies only to applicable Stripe accounts.

Installed accounts can include `setup_status: "complete"` or `"incomplete"`. This describes installation completion, separately from whether the account is active, webhook verification has finished, or other provider requirements are satisfied. It can be omitted when credentials cannot be read.

<ApiEndpoint method="GET" endpoint="/v2/projects/{project_id}/merchant-accounts" />

<ApiAuthorization type="Bearer API Key" />

**API key scope:** `merchant-accounts:read` (required for restricted keys).

<ApiSection title="Path Parameters">
  <ApiParameter name="project_id" type="string" required description="The unique identifier of the project." />
</ApiSection>

<ApiSamplePane>

<ApiRequestSample title="Request">

```bash
curl -X GET "https://api.botsubscription.com/v2/projects/YOUR_PROJECT_ID/merchant-accounts" \
  -H "Authorization: Bearer YOUR_API_KEY"
```

```javascript
const project_id = 'YOUR_PROJECT_ID';
const response = await fetch(`https://api.botsubscription.com/v2/projects/${project_id}/merchant-accounts`, {
  method: 'GET',
  headers: {
    'Authorization': 'Bearer YOUR_API_KEY'
  }
});
const data = await response.json();
```

```python
import requests

project_id = 'YOUR_PROJECT_ID'
response = requests.get(
    f'https://api.botsubscription.com/v2/projects/{project_id}/merchant-accounts',
    headers={'Authorization': 'Bearer YOUR_API_KEY'}
)
data = response.json()
```

```php
$project_id = 'YOUR_PROJECT_ID';
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "https://api.botsubscription.com/v2/projects/{$project_id}/merchant-accounts");
curl_setopt($ch, CURLOPT_HTTPHEADER, ['Authorization: Bearer YOUR_API_KEY']);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($ch);
```

</ApiRequestSample>

<ApiResponseTabs>
  <ApiResponse status={200} description="Success">

```json
{
  "ok": true,
  "request_id": "11111111-1111-1111-1111-111111111111",
  "method": "GET",
  "path": "/v2/projects/11111111-1111-4111-8111-111111111111/merchant-accounts",
  "code": 200,
  "total": 4,
  "message": "Available merchant account providers retrieved successfully",
  "data": {
    "stripe": {
      "required_params": [
        "stripe_secret_key"
      ],
      "multiple_environments_supported": true,
      "has_requirements": false,
      "installed_merchant_accounts": [
        {
          "merchant_account_id": "11111111-1111-1111-1111-111111111111",
          "provider": "stripe",
          "environment": "sandbox",
          "active": true,
          "has_requirements": false,
          "configuration_editable": false,
          "label": null,
          "stripe_managed_payments_enabled": false,
          "webhook_status": "not_required",
          "webhook_verification": {
            "required": false,
            "mode": "auto",
            "status": "not_required",
            "verification_method": null,
            "verification_supported": false,
            "can_mark_verified": false,
            "action_required": false
          },
          "setup_status": "complete"
        }
      ],
      "configuration_editable": false,
      "supports_saved_payment_methods": true,
      "supports_standalone_setup": true,
      "supports_offsession_charge": true
    },
    "nowpayments": {
      "required_params": [
        "nowpayments_api_key",
        "nowpayments_ipn_secret"
      ],
      "multiple_environments_supported": true,
      "has_requirements": true,
      "installed_merchant_accounts": [],
      "configuration_editable": false,
      "supports_saved_payment_methods": false,
      "supports_standalone_setup": false,
      "supports_offsession_charge": false
    },
    "paypal": {
      "required_params": [
        "paypal_client_id",
        "paypal_client_secret"
      ],
      "multiple_environments_supported": true,
      "has_requirements": false,
      "installed_merchant_accounts": [
        {
          "merchant_account_id": "22222222-2222-2222-2222-222222222222",
          "provider": "paypal",
          "environment": "sandbox",
          "active": true,
          "has_requirements": false,
          "configuration_editable": false,
          "label": "PayPal",
          "setup_status": "complete"
        }
      ],
      "configuration_editable": false,
      "supports_saved_payment_methods": true,
      "supports_standalone_setup": true,
      "supports_offsession_charge": true
    },
    "frisbii": {
      "required_params": [
        "frisbii_private_key",
        "frisbii_webhook_secret"
      ],
      "optional_params": [
        "frisbii_webhook_secret"
      ],
      "credential_help": {
        "frisbii_private_key": "Frisbii admin \u2192 Developers \u2192 API credentials. Use a private key (not a public pub_ key) from the account that matches the environment you selected: a live account for Production, a test account for Sandbox.",
        "frisbii_webhook_secret": "The webhook secret is shown in the Frisbii admin webhook settings. Complete installation first, then use Complete Setup to add our Webhook URL and copy the secret."
      },
      "multiple_environments_supported": true,
      "has_requirements": false,
      "supports_saved_payment_methods": false,
      "supports_standalone_setup": false,
      "supports_offsession_charge": false,
      "configuration_editable": false,
      "platform_restriction": null,
      "installed_merchant_accounts": [
        {
          "merchant_account_id": "22222222-2222-4222-8222-222222222222",
          "provider": "frisbii",
          "environment": "sandbox",
          "active": true,
          "setup_status": "complete",
          "configuration_editable": false,
          "has_requirements": false,
          "label": null,
          "webhook_status": "pending",
          "webhook_verification": {
            "required": true,
            "mode": "manual",
            "status": "pending",
            "verification_method": "webhook_arrival",
            "verification_supported": true,
            "can_mark_verified": false,
            "action_required": true
          }
        }
      ]
    }
  }
}
```

  </ApiResponse>
  <ApiResponse status={401} description="Invalid or expired API key">

```json
{
  "ok": false,
  "request_id": "44444444-4444-4444-8444-444444444444",
  "method": "GET",
  "path": "/v2/projects/11111111-1111-4111-8111-111111111111/merchant-accounts",
  "code": 401,
  "error": {
    "message": "Invalid or expired authentication token.",
    "error_code": "UNAUTHORIZED"
  }
}
```

  </ApiResponse>
</ApiResponseTabs>

</ApiSamplePane>
