cURL
curl --request GET \
--url https://billing.b5test.eu/api/v1/partners/accounts/{customer_account_uid} \
--header 'Authorization: Bearer <token>'const url = 'https://billing.b5test.eu/api/v1/partners/accounts/{customer_account_uid}';
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch(url, options)
.then(res => res.json())
.then(json => console.log(json))
.catch(err => console.error(err));import requests
url = "https://billing.b5test.eu/api/v1/partners/accounts/{customer_account_uid}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://billing.b5test.eu/api/v1/partners/accounts/{customer_account_uid}"
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))
}using RestSharp;
var options = new RestClientOptions("https://billing.b5test.eu/api/v1/partners/accounts/{customer_account_uid}");
var client = new RestClient(options);
var request = new RestRequest("");
request.AddHeader("Authorization", "Bearer <token>");
var response = await client.GetAsync(request);
Console.WriteLine("{0}", response.Content);
HttpResponse<String> response = Unirest.get("https://billing.b5test.eu/api/v1/partners/accounts/{customer_account_uid}")
.header("Authorization", "Bearer <token>")
.asString();<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://billing.b5test.eu/api/v1/partners/accounts/{customer_account_uid}",
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;
}$headers=@{}
$headers.Add("Authorization", "Bearer <token>")
$response = Invoke-WebRequest -Uri 'https://billing.b5test.eu/api/v1/partners/accounts/{customer_account_uid}' -Method GET -Headers $headersrequire 'uri'
require 'net/http'
url = URI("https://billing.b5test.eu/api/v1/partners/accounts/{customer_account_uid}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"customer_account_uid": "aabee51b-0be2-4a0c-aa39-5bbcbb903d1b",
"account_type": "I",
"activation_token": "PNS-DEFG1234",
"domain": "b5test.com",
"status": "provisioned",
"deployed_members": 1,
"created_at": "2023-01-23T15:55:58.000Z",
"updated_at": "2023-01-23T15:58:22.000Z",
"ends_at": null
}
Partnership API
Get billing account
Returns an account based on an UID.
GET
/
api
/
v1
/
partners
/
accounts
/
{customer_account_uid}
cURL
curl --request GET \
--url https://billing.b5test.eu/api/v1/partners/accounts/{customer_account_uid} \
--header 'Authorization: Bearer <token>'const url = 'https://billing.b5test.eu/api/v1/partners/accounts/{customer_account_uid}';
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch(url, options)
.then(res => res.json())
.then(json => console.log(json))
.catch(err => console.error(err));import requests
url = "https://billing.b5test.eu/api/v1/partners/accounts/{customer_account_uid}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://billing.b5test.eu/api/v1/partners/accounts/{customer_account_uid}"
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))
}using RestSharp;
var options = new RestClientOptions("https://billing.b5test.eu/api/v1/partners/accounts/{customer_account_uid}");
var client = new RestClient(options);
var request = new RestRequest("");
request.AddHeader("Authorization", "Bearer <token>");
var response = await client.GetAsync(request);
Console.WriteLine("{0}", response.Content);
HttpResponse<String> response = Unirest.get("https://billing.b5test.eu/api/v1/partners/accounts/{customer_account_uid}")
.header("Authorization", "Bearer <token>")
.asString();<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://billing.b5test.eu/api/v1/partners/accounts/{customer_account_uid}",
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;
}$headers=@{}
$headers.Add("Authorization", "Bearer <token>")
$response = Invoke-WebRequest -Uri 'https://billing.b5test.eu/api/v1/partners/accounts/{customer_account_uid}' -Method GET -Headers $headersrequire 'uri'
require 'net/http'
url = URI("https://billing.b5test.eu/api/v1/partners/accounts/{customer_account_uid}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"customer_account_uid": "aabee51b-0be2-4a0c-aa39-5bbcbb903d1b",
"account_type": "I",
"activation_token": "PNS-DEFG1234",
"domain": "b5test.com",
"status": "provisioned",
"deployed_members": 1,
"created_at": "2023-01-23T15:55:58.000Z",
"updated_at": "2023-01-23T15:58:22.000Z",
"ends_at": null
}
Authorizations
Response
An Account object is returned upon successful retrieval of a partner account.
The activation token is a coupon code to link a new or existing 1Password account to a partnership promotion. For example, it can be used for 1Password account creation at https://start.{{1password_domain}}/partnership/redeem?t={{account_type}}&c={{activation_token}} during end-user signup.
Was this page helpful?