Get All Processors
Endpoint for getting all Processors.
info
Please be aware that this endpoint requires a Manage Processors API Key.
GET /api/v1/groups/{group_id}/processors
The successful response of this endpoint contains your linked_account_id
which is required for some endpoints.
Response
Code | Description |
---|---|
200 | Success |
400 | Bad Request / Validation error |
500 | Internal Error |
Example Usage
- JavaScript
- Python
- Go
processors.js
var headers = new Headers();
headers.append('Authorization', 'API_KEY');
var requestOptions = {
method: 'GET',
headers: headers,
redirect: 'follow'
};
const group_id = '';
fetch(`https://api.reverepayments.dev/api/v1/groups/${group_id}/processors`, requestOptions)
.then((response) => response.text())
.then((result) => console.log(result))
.catch((error) => console.log('error', error));
processors.py
import requests
group_id = ""
url = "https://api.reverepayments.dev/api/v1/groups/"+group_id+"/processors"
headers = {
'Authorization': 'API_KEY'
}
response = requests.request("GET", url, headers=headers)
print(response.text)
processors.go
package main
import (
"bytes"
"encoding/json"
"fmt"
"io"
"net/http"
)
func main() {
const group_id = ""
url := "https://api.reverepayments.dev/api/v1/groups/"+group_id+"/processors"
client := &http.Client{}
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "API_KEY")
res, _ := client.Do(req)
defer res.Body.Close()
bytes, err := io.ReadAll(res.Body)
if err != nil {
fmt.Println(err.Error())
return
}
fmt.Println(string(bytes))
}
Example Success Response
{
"data": [
{
"id": "ebc3e4dd-58fa-4c24-9afe-b076f60bc576",
"group_id": "fb0d2186-c6d4-4bb6-bbac-b076f60bc576",
"gateway_processor_id": "",
"name": "Basic Processor",
"description": "Basic processor for simple transfers",
"type": "revere_pay",
"subtype": "Basic",
"environment": "sandbox",
"labels": ["payment_type:card", "payment_type:ach", "currency:usd"],
"type_name": "revere_pay",
"tags": ["synced"],
"linked_account_id": "fdf8ba27-7788-4496-8033-b076f60bc576",
"settings": {
"split_funding_settings": {
"fees": null
},
"default": false
},
"created_at": "2024-02-26T15:11:54.545926Z",
"updated_at": "2024-02-26T15:11:54.545926Z"
},
{
"id": "a73bd43a-94e0-416b-bdef-b076f60bc576",
"group_id": "fb0d2186-c6d4-4bb6-bbac-b076f60bc576",
"gateway_processor_id": "",
"name": "Advanced Processor",
"description": "5% commission",
"type": "revere_pay",
"subtype": "Advanced",
"environment": "sandbox",
"labels": ["payment_type:card", "payment_type:ach", "currency:usd"],
"type_name": "revere_pay",
"tags": ["synced"],
"linked_account_id": "fdf8ba27-7788-4496-8033-b076f60bc576",
"settings": {
"split_funding_settings": {
"fees": {
"d41df0d6-015e-411c-840e-e398d38a9878": {
"flat": null,
"percentage": 5000
}
}
},
"default": false
},
"created_at": "2024-02-25T10:01:11.76647Z",
"updated_at": "2024-02-25T10:01:11.76647Z"
}
]
}