---
title: "List payment providers"
---

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

# List payment providers

Path: EdgeCart API › Storefront

`GET /store/payment-providers`

URL: `https://{store_domain}/api/store/payment-providers`

Returns the payment providers available to the storefront and the
Stripe publishable key when Stripe is configured.

## Authentication

- `publishableKey`, apiKey, in header, header `x-publishable-api-key`

## Code samples

### cURL

```bash
curl --request GET \
  --url https://your-store.example.com/api/store/payment-providers \
  --header 'x-publishable-api-key: <x-publishable-api-key>'
```

### TypeScript

```typescript
const url = 'https://your-store.example.com/api/store/payment-providers';
const options = {
  method: 'GET',
  headers: {'x-publishable-api-key': '<x-publishable-api-key>'}
};

fetch(url, options)
  .then(res => res.json())
  .then(json => console.log(json))
  .catch(err => console.error(err));
```

### Python

```python
import requests

url = "https://your-store.example.com/api/store/payment-providers"

headers = {"x-publishable-api-key": "<x-publishable-api-key>"}

response = requests.get(url, headers=headers)

print(response.text)
```

## Responses

### 200

The available providers.

#### Example

```json
{
  "payment_providers": [
    {
      "id": "stripe"
    }
  ],
  "publishable_key": "string"
}
```

- `payment_providers` (`listStorefrontPaymentProviders.response.200.payment_providers`; array of object, required)
  - `id` (`listStorefrontPaymentProviders.response.200.payment_providers.id`; string, required)
- `publishable_key` (`listStorefrontPaymentProviders.response.200.publishable_key`; string | null, optional) — Stripe publishable key when Stripe is configured.

### 401

The publishable API key is missing or invalid.

#### Example

```json
{
  "type": "not_found",
  "message": "No active store is available for this deployment",
  "code": "store_not_configured"
}
```

- `type` (`listStorefrontPaymentProviders.response.401.type`; string, required)
- `message` (`listStorefrontPaymentProviders.response.401.message`; string, required)
- `code` (`listStorefrontPaymentProviders.response.401.code`; string, optional)


Source: https://edgecart.dev/api/store/payment-providers/index.md
