List reseller organizations
curl --request GET \
--url https://api-alpha.fourvenues.com/resellers/v2/organizations \
--header 'Authorization: <api-key>'import requests
url = "https://api-alpha.fourvenues.com/resellers/v2/organizations"
headers = {"Authorization": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: '<api-key>'}};
fetch('https://api-alpha.fourvenues.com/resellers/v2/organizations', 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-alpha.fourvenues.com/resellers/v2/organizations",
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: <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://api-alpha.fourvenues.com/resellers/v2/organizations"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "<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://api-alpha.fourvenues.com/resellers/v2/organizations")
.header("Authorization", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api-alpha.fourvenues.com/resellers/v2/organizations")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"data": [
{
"_id": "abcdefghijk1234567890",
"name": "Ginger Klub",
"slug": "ginger-klub",
"logo_url": "https://cdn.fourvenues.com/ginger-klub/logo.png",
"flyer_url": "https://cdn.fourvenues.com/ginger-klub/cover.jpg",
"currency": "EUR",
"created_at": "2023-11-02T09:14:31.000Z"
}
],
"has_more": true,
"success": true
}{
"success": false,
"error": "VALIDATION_ERROR"
}{
"valid": false,
"swappable": false,
"error": "UNAUTHORIZED"
}{
"success": false,
"error": "INTERNAL_ERROR"
}V2
List reseller organizations
Lists the organizations the API key may sell for. The key itself is the scope: a key that covers no organization answers an empty page. Ordered by id so paging is deterministic.
GET
/
resellers
/
v2
/
organizations
List reseller organizations
curl --request GET \
--url https://api-alpha.fourvenues.com/resellers/v2/organizations \
--header 'Authorization: <api-key>'import requests
url = "https://api-alpha.fourvenues.com/resellers/v2/organizations"
headers = {"Authorization": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: '<api-key>'}};
fetch('https://api-alpha.fourvenues.com/resellers/v2/organizations', 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-alpha.fourvenues.com/resellers/v2/organizations",
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: <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://api-alpha.fourvenues.com/resellers/v2/organizations"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "<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://api-alpha.fourvenues.com/resellers/v2/organizations")
.header("Authorization", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api-alpha.fourvenues.com/resellers/v2/organizations")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"data": [
{
"_id": "abcdefghijk1234567890",
"name": "Ginger Klub",
"slug": "ginger-klub",
"logo_url": "https://cdn.fourvenues.com/ginger-klub/logo.png",
"flyer_url": "https://cdn.fourvenues.com/ginger-klub/cover.jpg",
"currency": "EUR",
"created_at": "2023-11-02T09:14:31.000Z"
}
],
"has_more": true,
"success": true
}{
"success": false,
"error": "VALIDATION_ERROR"
}{
"valid": false,
"swappable": false,
"error": "UNAUTHORIZED"
}{
"success": false,
"error": "INTERNAL_ERROR"
}Authorizations
Reseller API key, sent raw in the Authorization header: Authorization: rs_live_xxxxxxxxxxxxxxxx. Keys prefixed rs_test_ operate against the test environment. The same key serves v2 and the swap operations, and it only reaches the organizations Fourvenues authorized on it.
Query Parameters
Page size.
Required range:
1 <= x <= 100Number of items skipped before the page.
Required range:
x >= 0