Get merchant profile
curl --request GET \
--url https://api.example.com/merchants/meimport requests
url = "https://api.example.com/merchants/me"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.example.com/merchants/me', 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://api.example.com/merchants/me",
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 := "https://api.example.com/merchants/me"
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("https://api.example.com/merchants/me")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/merchants/me")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"data": {
"active": "true,",
"address": {
"city": "South Ted",
"country": "NG",
"line1": "28 Kristy Place",
"line2": "Suite 289",
"state": "Adamawa",
"zip_code": 35654
},
"email": "flossie1994@fay.com",
"id": "21b44c27-6017-4815-84a2-be128426b7ce",
"mcc": 5997,
"name": "Hoeger-Hills",
"display_name": "Hoeger-Hills",
"logo_url": "https://picsum.photos/786",
"phone": "+2348026585106",
"settings": {
"accept_overpayment": false,
"accept_underpayment": true,
"fee_chargeable_to": "merchant"
}
}
}"<string>"payments
Get merchant profile
GET
/
merchants
/
me
Get merchant profile
curl --request GET \
--url https://api.example.com/merchants/meimport requests
url = "https://api.example.com/merchants/me"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.example.com/merchants/me', 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://api.example.com/merchants/me",
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 := "https://api.example.com/merchants/me"
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("https://api.example.com/merchants/me")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/merchants/me")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"data": {
"active": "true,",
"address": {
"city": "South Ted",
"country": "NG",
"line1": "28 Kristy Place",
"line2": "Suite 289",
"state": "Adamawa",
"zip_code": 35654
},
"email": "flossie1994@fay.com",
"id": "21b44c27-6017-4815-84a2-be128426b7ce",
"mcc": 5997,
"name": "Hoeger-Hills",
"display_name": "Hoeger-Hills",
"logo_url": "https://picsum.photos/786",
"phone": "+2348026585106",
"settings": {
"accept_overpayment": false,
"accept_underpayment": true,
"fee_chargeable_to": "merchant"
}
}
}"<string>"Response
Merchant profile
Show child attributes
Show child attributes
⌘I