APIList Merchant Accounts

List Merchant Accounts

Retrieve a list of available merchant account providers for a project with their installation status.

GET/v2/projects/{project_id}/merchant-accounts

Authorization

Bearer TokenRequired

Path Parameters

project_idstringRequired

The unique identifier of the project.

Request
curl -X GET "https://api.botsubscription.com/v2/projects/YOUR_PROJECT_ID/merchant-accounts" \
  -H "Authorization: Bearer YOUR_TOKEN"
Successapplication/json
{
  "ok": true,
  "request_id": "11111111-1111-1111-1111-111111111111",
  "method": "GET",
  "path": "/v2/projects/YOUR_PROJECT_ID/merchant-accounts",
  "code": 200,
  "total": 3,
  "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
        }
      ],
      "configuration_editable": false
    },
    "nowpayments": {
      "required_params": ["nowpayments_api_key", "nowpayments_ipn_secret"],
      "multiple_environments_supported": true,
      "has_requirements": true,
      "installed_merchant_accounts": [],
      "configuration_editable": 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"
        }
      ],
      "configuration_editable": false
    }
  }
}

Last updated: