Get one counterparty
curl --request GET \
--url http://localhost/v1/counterparties/{id} \
--header 'Authorization: Bearer <token>'import requests
url = "http://localhost/v1/counterparties/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('http://localhost/v1/counterparties/{id}', 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://localhost/v1/counterparties/{id}",
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: Bearer <token>"
],
]);
$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://localhost/v1/counterparties/{id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("http://localhost/v1/counterparties/{id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("http://localhost/v1/counterparties/{id}")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"ok": true,
"data": {
"id": "<string>",
"fullName": "<string>",
"type": "<string>",
"country": "<string>",
"tradeName": "<string>",
"legalForm": "<string>",
"registrationNumber": "<string>",
"taxId": "<string>",
"address": "<string>",
"contactName": "<string>",
"contactRole": "<string>",
"contactPhone": "<string>",
"bankName": "<string>",
"msisdn": "<string>",
"email": "<string>",
"iban": "<string>",
"swiftBic": "<string>",
"bankAccount": "<string>",
"walletAddress": "<string>",
"documents": [
{
"kind": "<string>",
"filename": "<string>",
"storageKey": "<string>"
}
],
"methodDetails": {},
"isVerified": true,
"isBlacklisted": true,
"approvedAt": "<string>",
"rejectionReason": "<string>",
"docsRequiredAt": "<string>",
"createdAt": "<string>",
"accounts": []
}
}{
"ok": false,
"error": {
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}
}{
"ok": false,
"error": {
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}
}counterparties
Get one counterparty
GET
/
v1
/
counterparties
/
{id}
Get one counterparty
curl --request GET \
--url http://localhost/v1/counterparties/{id} \
--header 'Authorization: Bearer <token>'import requests
url = "http://localhost/v1/counterparties/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('http://localhost/v1/counterparties/{id}', 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://localhost/v1/counterparties/{id}",
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: Bearer <token>"
],
]);
$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://localhost/v1/counterparties/{id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("http://localhost/v1/counterparties/{id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("http://localhost/v1/counterparties/{id}")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"ok": true,
"data": {
"id": "<string>",
"fullName": "<string>",
"type": "<string>",
"country": "<string>",
"tradeName": "<string>",
"legalForm": "<string>",
"registrationNumber": "<string>",
"taxId": "<string>",
"address": "<string>",
"contactName": "<string>",
"contactRole": "<string>",
"contactPhone": "<string>",
"bankName": "<string>",
"msisdn": "<string>",
"email": "<string>",
"iban": "<string>",
"swiftBic": "<string>",
"bankAccount": "<string>",
"walletAddress": "<string>",
"documents": [
{
"kind": "<string>",
"filename": "<string>",
"storageKey": "<string>"
}
],
"methodDetails": {},
"isVerified": true,
"isBlacklisted": true,
"approvedAt": "<string>",
"rejectionReason": "<string>",
"docsRequiredAt": "<string>",
"createdAt": "<string>",
"accounts": []
}
}{
"ok": false,
"error": {
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}
}{
"ok": false,
"error": {
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}
}⌘I
