Relay - Retrieve
curl --request GET \
--url https://sandbox.foldd.com/relay/{relay_id} \
--header 'X-Profile-Id: <x-profile-id>' \
--header 'api-key: <api-key>'import requests
url = "https://sandbox.foldd.com/relay/{relay_id}"
headers = {
"X-Profile-Id": "<x-profile-id>",
"api-key": "<api-key>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {
method: 'GET',
headers: {'X-Profile-Id': '<x-profile-id>', 'api-key': '<api-key>'}
};
fetch('https://sandbox.foldd.com/relay/{relay_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 => "https://sandbox.foldd.com/relay/{relay_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 => [
"X-Profile-Id: <x-profile-id>",
"api-key: <api-key>"
],
]);
$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://sandbox.foldd.com/relay/{relay_id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-Profile-Id", "<x-profile-id>")
req.Header.Add("api-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://sandbox.foldd.com/relay/{relay_id}")
.header("X-Profile-Id", "<x-profile-id>")
.header("api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox.foldd.com/relay/{relay_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-Profile-Id"] = '<x-profile-id>'
request["api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"id": "relay_mbabizu24mvu3mela5njyhpit4",
"status": "created",
"connector_resource_id": "pi_3MKEivSFNglxLpam0ZaL98q9",
"connector_id": "mca_5apGeP94tMts6rg3U3kR",
"profile_id": "pro_abcdefghijklmnopqrstuvwxyz",
"type": "refund",
"error": {
"code": "<string>",
"message": "<string>"
},
"connector_reference_id": "re_3QY4TnEOqOywnAIx1Mm1p7GQ",
"data": {
"refund": {
"amount": 6540,
"currency": "AED",
"reason": "Customer returned the product"
}
}
}Relay
Relay - Retrieve
Retrieves a relay details.
GET
/
relay
/
{relay_id}
Relay - Retrieve
curl --request GET \
--url https://sandbox.foldd.com/relay/{relay_id} \
--header 'X-Profile-Id: <x-profile-id>' \
--header 'api-key: <api-key>'import requests
url = "https://sandbox.foldd.com/relay/{relay_id}"
headers = {
"X-Profile-Id": "<x-profile-id>",
"api-key": "<api-key>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {
method: 'GET',
headers: {'X-Profile-Id': '<x-profile-id>', 'api-key': '<api-key>'}
};
fetch('https://sandbox.foldd.com/relay/{relay_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 => "https://sandbox.foldd.com/relay/{relay_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 => [
"X-Profile-Id: <x-profile-id>",
"api-key: <api-key>"
],
]);
$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://sandbox.foldd.com/relay/{relay_id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-Profile-Id", "<x-profile-id>")
req.Header.Add("api-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://sandbox.foldd.com/relay/{relay_id}")
.header("X-Profile-Id", "<x-profile-id>")
.header("api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox.foldd.com/relay/{relay_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-Profile-Id"] = '<x-profile-id>'
request["api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"id": "relay_mbabizu24mvu3mela5njyhpit4",
"status": "created",
"connector_resource_id": "pi_3MKEivSFNglxLpam0ZaL98q9",
"connector_id": "mca_5apGeP94tMts6rg3U3kR",
"profile_id": "pro_abcdefghijklmnopqrstuvwxyz",
"type": "refund",
"error": {
"code": "<string>",
"message": "<string>"
},
"connector_reference_id": "re_3QY4TnEOqOywnAIx1Mm1p7GQ",
"data": {
"refund": {
"amount": 6540,
"currency": "AED",
"reason": "Customer returned the product"
}
}
}Authorizations
api_keyephemeral_key
Response
Relay Retrieved