# GET /paymentgateways — List All Payment Gateways

> Product: **Pabbly Subscription Billing** (v1)
> Base URL: `https://payments.pabbly.com/api/v1`
> Auth: Basic via `Authorization` header
> Canonical: `/subscription-billing/payment-gateway/list-all-payment-gateways`

This API is used to retrieve a list of all the available payment gateways.

**Query parameters:**

| Name | Type | Required | Description |
|------|------|----------|-------------|
| limit | string | No | Integer, default=10, min=1, max=100 The number of resources to be returned. |
| page | string | No | By default first page will be listed. For navigating through pages, use the page parameter. |

**Response (200)** — List All Payment Gateway:

```json
{
    "status": "success",
    "message": "Gateway data",
    "data": [
        {
            "createdAt": "2021-01-25T06:43:50.905Z",
            "updatedAt": "2022-04-23T08:37:35.654Z",
            "id": "600e68a6e72183578f82f73c",
            "gateway_name": "Stripe Gateway",
            "gateway_type": "stripe",
            "gateway_status": true
        },
        {
            "createdAt": "2021-01-25T06:46:52.621Z",
            "updatedAt": "2021-12-11T05:48:58.191Z",
            "id": "600e695ce72183578f82f74d",
            "gateway_name": "My Paypal Gateway US",
            "gateway_type": "paypal",
            "gateway_status": true
        },
        {
            "custom_gateway_type": "custom",
            "gateway_url": "https://payments.pabbly.com/paymentgateway/authorizedotnet/",
            "createdAt": "2021-03-05T07:27:00.025Z",
            "updatedAt": "2021-12-11T05:46:18.592Z",
            "id": "6041dd44f299e63c79922cba",
            "gateway_name": "Custom",
            "gateway_type": "custom",
            "gateway_status": true
        },
        {
            "connect_gateway_type": "adyen",
            "gateway_url": "https://connect.pabbly.com/workflow/sendwebhookdata/IjIxNDk4Ig_3D_3D",
            "createdAt": "2021-04-09T10:44:32.201Z",
            "updatedAt": "2021-04-09T10:44:32.201Z",
            "id": "607030107de93e2da894164d",
            "gateway_name": "Adyen",
            "gateway_type": "connect",
            "gateway_status": true
        },
        {
            "connect_gateway_type": "payhere",
            "gateway_url": "https://connect.pabbly.com/workflow/sendwebhookdata/IjIxMDAzIg_3D_3D",
            "createdAt": "2021-04-09T11:46:50.969Z",
            "updatedAt": "2021-12-11T09:37:14.548Z",
            "id": "60703eaa7de93e2da894164e",
            "gateway_name": "PayHere",
            "gateway_type": "connect",
            "gateway_status": true
        },
        {
            "connect_gateway_type": "flutterwave",
            "gateway_url": "https://connect.pabbly.com/workflow/sendwebhookdata/IjIxNDg1Ig_3D_3D",
            "createdAt": "2021-04-09T14:19:48.285Z",
            "updatedAt": "2021-04-09T14:19:48.285Z",
            "id": "60706284626a411e4cdccb82",
            "gateway_name": "Flutterwave",
            "gateway_type": "connect",
            "gateway_status": true
        },
        {
            "connect_gateway_type": "spektra",
            "gateway_url": "https://connect.pabbly.com/workflow/sendwebhookdata/IjIyMjcwIg_3D_3D",
            "createdAt": "2021-04-09T14:19:57.165Z",
            "updatedAt": "2021-04-09T14:19:57.165Z",
            "id": "6070628d626a411e4cdccb83",
            "gateway_name": "Spektra",
            "gateway_type": "connect",
            "gateway_status": true
        },
        {
            "connect_gateway_type": "2c2p",
            "gateway_url": "https://connect.pabbly.com/workflow/sendwebhookdata/IjI0MDM3Ig_3D_3D",
            "createdAt": "2021-04-09T14:34:44.872Z",
            "updatedAt": "2021-04-09T14:34:44.872Z",
            "id": "60706604626a411e4cdccb84",
            "gateway_name": "2C2P",
            "gateway_type": "connect",
            "gateway_status": true
        },
        {
            "connect_gateway_type": "gb-prime-pay",
            "gateway_url": "https://connect.pabbly.com/workflow/sendwebhookdata/IjI1NzMwIg_3D_3D",
            "createdAt": "2021-04-10T06:57:27.513Z",
            "updatedAt": "2021-04-10T06:57:27.513Z",
            "id": "60714c57e16fcc24242e2a24",
            "gateway_name": "GB Prime Pay",
            "gateway_type": "connect",
            "gateway_status": true
        },
        {
            "connect_gateway_type": "qlick-n-pay",
            "gateway_url": "https://connect.pabbly.com/workflow/sendwebhookdata/IjI0NzUyIg_3D_3D",
            "createdAt": "2021-04-10T09:25:49.853Z",
            "updatedAt": "2021-04-10T09:25:49.853Z",
            "id": "60716f1d370be5282412b2b1",
            "gateway_name": "Qlick n Pay",
            "gateway_type": "connect",
            "gateway_status": true
        },
        {
            "connect_gateway_type": "mercadopago",
            "gateway_url": "https://connect.pabbly.com/workflow/sendwebhookdata/IjI1NzYzIg_3D_3D",
            "createdAt": "2021-04-10T09:29:28.437Z",
            "updatedAt": "2021-04-10T09:29:28.437Z",
            "id": "60716ff8370be5282412b2b2",
            "gateway_name": "MercadoPago",
            "gateway_type": "connect",
            "gateway_status": true
        },
        {
            "connect_gateway_type": "mollie",
            "gateway_url": "https://connect.pabbly.com/workflow/sendwebhookdata/IjIxMjA4Ig_3D_3D",
            "createdAt": "2021-04-10T09:34:56.016Z",
            "updatedAt": "2021-04-10T09:34:56.016Z",
            "id": "60717140370be5282412b2b3",
            "gateway_name": "Mollie",
            "gateway_type": "connect",
            "gateway_status": true
        },
        {
            "createdAt": "2021-04-30T08:00:24.006Z",
            "updatedAt": "2022-09-03T12:44:23.337Z",
            "id": "608bb918996ba815ec7ac5b5",
            "gateway_name": "Testing Gateway",
            "gateway_type": "test",
            "gateway_status": true
        },
        {
            "createdAt": "2021-05-08T06:54:50.951Z",
            "updatedAt": "2021-05-08T06:54:50.951Z",
            "id": "609635ba052fff38dcde9413",
            "gateway_name": "Paypal 2",
            "gateway_type": "paypal",
            "gateway_status": true
        },
        {
            "createdAt": "2021-05-08T07:16:44.279Z",
            "updatedAt": "2021-05-08T07:16:44.279Z",
            "id": "60963adc052fff38dcde946d",
            "gateway_name": "Paypal",
            "gateway_type": "paypal",
            "gateway_status": true
        },
        {
            "createdAt": "2021-07-05T09:19:28.243Z",
            "updatedAt": "2022-08-13T11:03:01.676Z",
            "id": "60e2cea0dcbb4a7b23c3159b",
            "gateway_name": "My Stripe",
            "gateway_type": "stripe",
            "gateway_status": true
        },
        {
            "connect_gateway_type": "ipaymu",
            "gateway_url": "https://connect.pabbly.com/workflow/sendwebhookdata/IjIyODg2Ig_3D_3D",
            "createdAt": "2021-07-12T06:29:50.050Z",
            "updatedAt": "2021-07-12T06:29:50.050Z",
            "id": "60ebe15eddc0391bbc53c5ee",
            "gateway_name": "iPaymu",
            "gateway_type": "connect",
            "gateway_status": true
        },
        {
            "custom_gateway_type": "authorize",
            "gateway_url": "https://payments.pabbly.com/paymentgateway/authorizedotnet/",
            "createdAt": "2021-07-15T10:54:59.039Z",
            "updatedAt": "2021-07-15T10:54:59.039Z",
            "id": "60f0140341191f43bcae57c2",
            "gateway_name": "Authorize",
            "gateway_type": "custom",
            "gateway_status": true
        },
        {
            "connect_gateway_type": "toyyibpay",
            "gateway_url": "https://connect.pabbly.com/workflow/sendwebhookdata/IjI1ODIzIg_3D_3D",
            "createdAt": "2021-09-02T12:47:07.293Z",
            "updatedAt": "2021-09-02T12:47:07.293Z",
            "id": "6130c7cbf081b84a88e9a903",
            "gateway_name": "toyyibPay",
            "gateway_type": "connect",
            "gateway_status": true
        },
        {
            "connect_gateway_type": "paytabs",
            "gateway_url": "https://connect.pabbly.com/workflow/sendwebhookdata/IjI1MzEyIg_3D_3D",
            "createdAt": "2021-09-06T07:08:36.831Z",
            "updatedAt": "2021-09-06T07:08:36.831Z",
            "id": "6135be74cf91f4682b6c0e60",
            "gateway_name": "PayTabs",
            "gateway_type": "connect",
            "gateway_status": true
        },
        {
            "connect_gateway_type": "paddle",
            "gateway_url": "https://connect.pabbly.com/workflow/sendwebhookdata/IjE4NzQ5MyI_3D",
            "createdAt": "2021-11-22T04:54:41.081Z",
            "updatedAt": "2021-11-22T04:54:41.081Z",
            "id": "619b22912cd4763cbc7bcbf0",
            "gateway_name": "Paddle",
            "gateway_type": "connect",
            "gateway_status": true
        },
        {
            "connect_gateway_type": "instamojo",
            "gateway_url": "https://connect.pabbly.com/workflow/sendwebhookdata/IjIwMTIxIg_3D_3D",
            "createdAt": "2021-12-04T06:49:34.661Z",
            "updatedAt": "2021-12-11T05:45:39.549Z",
            "id": "61ab0f7e5baede288f809b6b",
            "gateway_name": "InstaMojo",
            "gateway_type": "connect",
            "gateway_status": true
        },
        {
            "connect_gateway_type": "payfast",
            "gateway_url": "https://connect.pabbly.com/workflow/sendwebhookdata/IjIwOTY0Ig_3D_3D",
            "createdAt": "2022-02-04T13:18:35.833Z",
            "updatedAt": "2022-02-04T13:18:35.833Z",
            "id": "61fd27ab75b78f74c9a3696f",
            "gateway_name": "PayFast",
            "gateway_type": "connect",
            "gateway_status": true
        },
        {
            "custom_gateway_type": "razorpay_subscription",
            "gateway_url": null,
            "createdAt": "2022-02-28T11:41:36.110Z",
            "updatedAt": "2022-02-28T11:41:36.110Z",
            "id": "621cb4f08462754f6d4abc26",
            "gateway_name": "My Razorpay Subscription",
            "gateway_type": "custom",
            "gateway_status": true
        },
        {
            "custom_gateway_type": "razorpay",
            "gateway_url": "https://payments.pabbly.com/paymentgateway/razorpay-v1/",
            "createdAt": "2022-03-12T13:09:44.141Z",
            "updatedAt": "2022-08-24T12:34:44.768Z",
            "id": "622c9b9849a2a7270abdbd28",
            "gateway_name": "Razorpay Onetime",
            "gateway_type": "custom",
            "gateway_status": true
        },
        {
            "connect_gateway_type": "paddle",
            "gateway_url": "https://connect.pabbly.com/workflow/sendwebhookdata/IjE4NzQ5MyI_3D",
            "createdAt": "2022-03-15T12:37:53.778Z",
            "updatedAt": "2022-03-15T12:37:53.778Z",
            "id": "623088a1b843325d2da801a6",
            "gateway_name": "Paddle Pabbly",
            "gateway_type": "connect",
            "gateway_status": true
        },
        {
            "custom_gateway_type": "authorize",
            "gateway_url": "https://payments.pabbly.com/paymentgateway/authorizedotnet/",
            "createdAt": "2022-03-26T12:14:34.846Z",
            "updatedAt": "2022-03-26T12:14:34.846Z",
            "id": "623f03aa018cd220e3aca314",
            "gateway_name": "My Authorize",
            "gateway_type": "custom",
            "gateway_status": true
        },
        {
            "connect_gateway_type": "quickpay",
            "gateway_url": "https://connect.pabbly.com/workflow/sendwebhookdata/IjIyODMzIg_3D_3D",
            "createdAt": "2022-03-28T07:53:03.301Z",
            "updatedAt": "2022-03-28T07:53:03.301Z",
            "id": "6241695fa8bbf14d7f8f63f2",
            "gateway_name": "QuickPay Azhsr",
            "gateway_type": "connect",
            "gateway_status": true
        },
        {
            "connect_gateway_type": "sslcommerz",
            "gateway_url": "https://connect.pabbly.com/workflow/sendwebhookdata/IjI3MTM3Ig_3D_3D",
            "createdAt": "2022-03-30T11:38:22.087Z",
            "updatedAt": "2022-03-30T11:38:22.087Z",
            "id": "6244412e27c67032b8770372",
            "gateway_name": "SSLCOMMERZ",
            "gateway_type": "connect",
            "gateway_status": true
        },
        {
            "createdAt": "2022-08-01T08:14:01.447Z",
            "updatedAt": "2022-08-01T08:14:01.447Z",
            "id": "62e78b49a849ae6d0afc67df",
            "gateway_name": "Offline",
            "gateway_type": "offline",
            "gateway_status": true
        }
    ]
}
```

**Code examples:**

_cURL_

```curl
curl https://payments.pabbly.com/api/v1/paymentgateways?limit={{limit}}&page={{page}} \
  -u {{YOUR_API_KEY}}:{{YOUR_SECRET_KEY}}
```

_Ruby_

```ruby
require 'net/http'
require 'json'

uri = URI('https://payments.pabbly.com/api/v1/paymentgateways?limit={{limit}}&page={{page}}')
request = Net::HTTP::Get.new(uri)
request.basic_auth '{{YOUR_API_KEY}}', '{{YOUR_SECRET_KEY}}'

response = Net::HTTP.start(uri.hostname, uri.port, use_ssl: uri.scheme == 'https') do |http|
  http.request(request)
end

data = JSON.parse(response.body)
```

_Python_

```python
import requests
from requests.auth import HTTPBasicAuth

response = requests.get(
    'https://payments.pabbly.com/api/v1/paymentgateways?limit={{limit}}&page={{page}}',
    auth=HTTPBasicAuth('{{YOUR_API_KEY}}', '{{YOUR_SECRET_KEY}}'),
)

data = response.json()
```

_PHP_

```php
<?php
$ch = curl_init('https://payments.pabbly.com/api/v1/paymentgateways?limit={{limit}}&page={{page}}');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_USERPWD, '{{YOUR_API_KEY}}:{{YOUR_SECRET_KEY}}');

$response = curl_exec($ch);
curl_close($ch);
$data = json_decode($response, true);
```

_Java_

```java
import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
import java.util.Base64;

String credentials = Base64.getEncoder().encodeToString("{{YOUR_API_KEY}}:{{YOUR_SECRET_KEY}}".getBytes());

HttpClient client = HttpClient.newHttpClient();
HttpRequest.Builder builder = HttpRequest.newBuilder()
    .uri(URI.create("https://payments.pabbly.com/api/v1/paymentgateways?limit={{limit}}&page={{page}}"))
    .header("Authorization", "Basic " + credentials)
    .GET();

HttpRequest request = builder.build();
HttpResponse<String> response = client.send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
```

_Node.js_

```node
const credentials = Buffer.from('{{YOUR_API_KEY}}:{{YOUR_SECRET_KEY}}').toString('base64');

const response = await fetch('https://payments.pabbly.com/api/v1/paymentgateways?limit={{limit}}&page={{page}}', {
  method: 'GET',
  headers: {
    'Authorization': `Basic ${credentials}`,
  },
});

const data = await response.json();
```

_Go_

```go
package main

import (
    "fmt"
    "io"
    "net/http"
)

func main() {
    req, _ := http.NewRequest("GET", "https://payments.pabbly.com/api/v1/paymentgateways?limit={{limit}}&page={{page}}", nil)
    req.SetBasicAuth("{{YOUR_API_KEY}}", "{{YOUR_SECRET_KEY}}")

    res, _ := http.DefaultClient.Do(req)
    defer res.Body.Close()
    body, _ := io.ReadAll(res.Body)
    fmt.Println(string(body))
}
```

_.NET_

```dotnet
using System.Net.Http;
using System.Net.Http.Headers;
using System.Text;
using System.Threading.Tasks;

var credentials = Convert.ToBase64String(Encoding.ASCII.GetBytes("{{YOUR_API_KEY}}:{{YOUR_SECRET_KEY}}"));

var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Get, "https://payments.pabbly.com/api/v1/paymentgateways?limit={{limit}}&page={{page}}");
request.Headers.TryAddWithoutValidation("Authorization", $"Basic {credentials}");

var response = await client.SendAsync(request);
var data = await response.Content.ReadAsStringAsync();
Console.WriteLine(data);
```

