Get Merchants by Client
curl --request GET \
--url https://testapi.fractalpay.com/api/v1/merchant \
--header 'Authorization: Basic <encoded-value>'import requests
url = "https://testapi.fractalpay.com/api/v1/merchant"
headers = {"Authorization": "Basic <encoded-value>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Basic <encoded-value>'}};
fetch('https://testapi.fractalpay.com/api/v1/merchant', 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 => "https://testapi.fractalpay.com/api/v1/merchant",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Basic <encoded-value>"
],
]);
$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 := "https://testapi.fractalpay.com/api/v1/merchant"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Basic <encoded-value>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://testapi.fractalpay.com/api/v1/merchant")
.header("Authorization", "Basic <encoded-value>")
.asString();require 'uri'
require 'net/http'
url = URI("https://testapi.fractalpay.com/api/v1/merchant")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Basic <encoded-value>'
response = http.request(request)
puts response.read_body{
"data": [
{
"businessname": "Rogue 6 Ready Mix",
"email": "jpdemo@fractal.com",
"first_name": "JP",
"join_date": "2024-06-05T13:44:25.000Z",
"last_name": "Gound",
"merchant_id": "m_b9518c1f23",
"phonenumber": "1234567895",
"public_data": {
"public_key": "b03d94339a5a899509e3b05266a1f601"
},
"website": "https://testwebsite.com/"
},
{
"businessname": "Celtic Ready Mix",
"email": "droooobie@fractall.com",
"first_name": "Drew",
"join_date": "2024-07-22T19:18:36.000Z",
"last_name": "Rice",
"merchant_id": "m_31c5d8c748",
"phonenumber": "1234567895",
"public_data": {
"public_key": "38dbd500cb2b0d1c9f4eaac18c0ad131"
},
"website": "https://testwebsite.com/"
},
{
"businessname": "Slab Ready Mix",
"email": "slabreadymix@fractall.com",
"first_name": "MJ",
"join_date": "2024-08-20T18:44:35.000Z",
"last_name": "Mann",
"merchant_id": "m_3f5fa50c5f",
"phonenumber": "1234567895",
"public_data": {
"public_key": "17fd596bb19ad222eaf0207582ce62da"
},
"website": "https://testwebsite.com/"
}
],
"message": "Merchants fetched successfully",
"result": true
}Merchant Onboarding
Get Merchants by Client
Get Merchants by Client
GET
/
merchant
Get Merchants by Client
curl --request GET \
--url https://testapi.fractalpay.com/api/v1/merchant \
--header 'Authorization: Basic <encoded-value>'import requests
url = "https://testapi.fractalpay.com/api/v1/merchant"
headers = {"Authorization": "Basic <encoded-value>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Basic <encoded-value>'}};
fetch('https://testapi.fractalpay.com/api/v1/merchant', 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 => "https://testapi.fractalpay.com/api/v1/merchant",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Basic <encoded-value>"
],
]);
$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 := "https://testapi.fractalpay.com/api/v1/merchant"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Basic <encoded-value>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://testapi.fractalpay.com/api/v1/merchant")
.header("Authorization", "Basic <encoded-value>")
.asString();require 'uri'
require 'net/http'
url = URI("https://testapi.fractalpay.com/api/v1/merchant")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Basic <encoded-value>'
response = http.request(request)
puts response.read_body{
"data": [
{
"businessname": "Rogue 6 Ready Mix",
"email": "jpdemo@fractal.com",
"first_name": "JP",
"join_date": "2024-06-05T13:44:25.000Z",
"last_name": "Gound",
"merchant_id": "m_b9518c1f23",
"phonenumber": "1234567895",
"public_data": {
"public_key": "b03d94339a5a899509e3b05266a1f601"
},
"website": "https://testwebsite.com/"
},
{
"businessname": "Celtic Ready Mix",
"email": "droooobie@fractall.com",
"first_name": "Drew",
"join_date": "2024-07-22T19:18:36.000Z",
"last_name": "Rice",
"merchant_id": "m_31c5d8c748",
"phonenumber": "1234567895",
"public_data": {
"public_key": "38dbd500cb2b0d1c9f4eaac18c0ad131"
},
"website": "https://testwebsite.com/"
},
{
"businessname": "Slab Ready Mix",
"email": "slabreadymix@fractall.com",
"first_name": "MJ",
"join_date": "2024-08-20T18:44:35.000Z",
"last_name": "Mann",
"merchant_id": "m_3f5fa50c5f",
"phonenumber": "1234567895",
"public_data": {
"public_key": "17fd596bb19ad222eaf0207582ce62da"
},
"website": "https://testwebsite.com/"
}
],
"message": "Merchants fetched successfully",
"result": true
}Authorizations
Use your Fractal API credentials.
Username = Client ID Password = Secret Key
Sandbox credentials can be generated from the Test Portal.
Response
200 - application/json
Get Merchants by Client
Show child attributes
Show child attributes
Example:
[
{
"businessname": "Rogue 6 Ready Mix",
"email": "jpdemo@fractal.com",
"first_name": "JP",
"join_date": "2024-06-05T13:44:25.000Z",
"last_name": "Gound",
"merchant_id": "m_b9518c1f23",
"phonenumber": "1234567895",
"public_data": {
"public_key": "b03d94339a5a899509e3b05266a1f601"
},
"website": "https://testwebsite.com/"
},
{
"businessname": "Celtic Ready Mix",
"email": "droooobie@fractall.com",
"first_name": "Drew",
"join_date": "2024-07-22T19:18:36.000Z",
"last_name": "Rice",
"merchant_id": "m_31c5d8c748",
"phonenumber": "1234567895",
"public_data": {
"public_key": "38dbd500cb2b0d1c9f4eaac18c0ad131"
},
"website": "https://testwebsite.com/"
},
{
"businessname": "Slab Ready Mix",
"email": "slabreadymix@fractall.com",
"first_name": "MJ",
"join_date": "2024-08-20T18:44:35.000Z",
"last_name": "Mann",
"merchant_id": "m_3f5fa50c5f",
"phonenumber": "1234567895",
"public_data": {
"public_key": "17fd596bb19ad222eaf0207582ce62da"
},
"website": "https://testwebsite.com/"
}
]
Example:
"Merchants fetched successfully"
Example:
true
⌘I