List merchants
curl --request GET \
--url http://api-sandbox.fexpayments.com/merchant/api/v1/public/merchantsimport requests
url = "http://api-sandbox.fexpayments.com/merchant/api/v1/public/merchants"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('http://api-sandbox.fexpayments.com/merchant/api/v1/public/merchants', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "http://api-sandbox.fexpayments.com/merchant/api/v1/public/merchants",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "http://api-sandbox.fexpayments.com/merchant/api/v1/public/merchants"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("http://api-sandbox.fexpayments.com/merchant/api/v1/public/merchants")
.asString();require 'uri'
require 'net/http'
url = URI("http://api-sandbox.fexpayments.com/merchant/api/v1/public/merchants")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"success": true,
"merchants": [
{
"id": "74815c83-e47b-4dc5-aefe-abe4484dd280",
"business_name": "Whole Foods Market"
}
],
"page": 1,
"limit": 20,
"total": 5,
"total_pages": 1
}{
"success": false,
"error": "Failed to create payment intent"
}Public
List merchants
Get a paginated list of all active merchants (public view — returns only ID and business name).
GET
/
merchant
/
api
/
v1
/
public
/
merchants
List merchants
curl --request GET \
--url http://api-sandbox.fexpayments.com/merchant/api/v1/public/merchantsimport requests
url = "http://api-sandbox.fexpayments.com/merchant/api/v1/public/merchants"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('http://api-sandbox.fexpayments.com/merchant/api/v1/public/merchants', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "http://api-sandbox.fexpayments.com/merchant/api/v1/public/merchants",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "http://api-sandbox.fexpayments.com/merchant/api/v1/public/merchants"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("http://api-sandbox.fexpayments.com/merchant/api/v1/public/merchants")
.asString();require 'uri'
require 'net/http'
url = URI("http://api-sandbox.fexpayments.com/merchant/api/v1/public/merchants")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"success": true,
"merchants": [
{
"id": "74815c83-e47b-4dc5-aefe-abe4484dd280",
"business_name": "Whole Foods Market"
}
],
"page": 1,
"limit": 20,
"total": 5,
"total_pages": 1
}{
"success": false,
"error": "Failed to create payment intent"
}⌘I
