Retrieve
curl --request GET \
--url https://{defaultHost}/v1/account \
--header 'Authorization: Bearer <token>'import requests
url = "https://{defaultHost}/v1/account"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://{defaultHost}/v1/account', 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://{defaultHost}/v1/account",
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 := "https://{defaultHost}/v1/account"
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("https://{defaultHost}/v1/account")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://{defaultHost}/v1/account")
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{
"id": "4bc3f13d-f416-4b40-a419-9a3064b805b7",
"object": "account",
"cache_keys": {
"coupons": "coupons/query-ff202ed5e99d0a560cd3f518c99173e9-2-20261130183828197988",
"display_currencies": "display_currencies/query-1caa345496ea4dce90f9735d819f3c58-1-20261130183828192086",
"manual_payment_methods": "manual_payment_methods/query-2ddf3dc7d6c75de8c48679edee2e90dd-0",
"processors": "processors/query-5c4b523770dc6d3249a3ad8d1f1ec641-1-20261130183828215657",
"products": "products/query-7e98a1526fbd392c76dfaf004c1f9e01-0",
"product_collections": "product_collections/query-9ec14d15266c8898c5aa0ee5a2031368-0",
"reviews": "reviews/query-93d2c5773b27558b1856d55a5296ce21-0",
"shipping_providers": "shipping_providers/query-67053b84cb255b118b8a15797a9172a0-0",
"webhook_endpoints": "webhook_endpoints/query-6d519ba7654d3b509d58e8d0858204eb-0"
},
"claimed": true,
"claim_url": null,
"claim_window_ends_at": null,
"currency": "usd",
"currency_locked": false,
"locale": "en",
"medias_total_byte_size": 0,
"name": "Test Account",
"slug": "test-account",
"time_zone": "Etc/UTC",
"url": null,
"plan": {
"free": true,
"name": "Launch"
},
"public_token": "pt_cq1j8Qxwbr8TsFzSAHMyNrt8",
"seeded_at": null,
"seeded_resources": [],
"abandoned_checkout_protocol": "099ab4ba-afce-4b09-b893-989ba3c7576d",
"affiliation_protocol": "64018ca8-9fe4-42b9-80b4-b7f138c3271c",
"brand": "ab0aabbf-3fab-40e3-94a0-a4fed85b8de9",
"checkout_portal_protocol": "1ab83fab-8f6b-4035-b42c-9e56e1edc541",
"customer_notification_protocol": "2178a174-117c-4bb1-ba1f-887f05a684ca",
"customer_portal_protocol": "15826575-aef8-4f94-a09e-4293a4dc7255",
"order_protocol": "af178e2f-7cf1-4115-a490-653bd3e003b5",
"review_protocol": "017f7349-6c63-4f76-a4a1-a7abed9600a3",
"shipping_protocol": "d5468d67-a47b-4063-b0c1-0097a9e5717d",
"subscription_protocol": "ba372a92-b14f-40c4-a694-e42b5ff73cbd",
"tax_protocol": "ca6cda85-2545-4e9f-bb1a-df1be887825e",
"test_data_purged_at": null,
"created_at": 1796063908,
"updated_at": 1796063908
}Accounts
Retrieve
Retrieves details of the current account.
GET
/
v1
/
account
Retrieve
curl --request GET \
--url https://{defaultHost}/v1/account \
--header 'Authorization: Bearer <token>'import requests
url = "https://{defaultHost}/v1/account"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://{defaultHost}/v1/account', 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://{defaultHost}/v1/account",
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 := "https://{defaultHost}/v1/account"
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("https://{defaultHost}/v1/account")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://{defaultHost}/v1/account")
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{
"id": "4bc3f13d-f416-4b40-a419-9a3064b805b7",
"object": "account",
"cache_keys": {
"coupons": "coupons/query-ff202ed5e99d0a560cd3f518c99173e9-2-20261130183828197988",
"display_currencies": "display_currencies/query-1caa345496ea4dce90f9735d819f3c58-1-20261130183828192086",
"manual_payment_methods": "manual_payment_methods/query-2ddf3dc7d6c75de8c48679edee2e90dd-0",
"processors": "processors/query-5c4b523770dc6d3249a3ad8d1f1ec641-1-20261130183828215657",
"products": "products/query-7e98a1526fbd392c76dfaf004c1f9e01-0",
"product_collections": "product_collections/query-9ec14d15266c8898c5aa0ee5a2031368-0",
"reviews": "reviews/query-93d2c5773b27558b1856d55a5296ce21-0",
"shipping_providers": "shipping_providers/query-67053b84cb255b118b8a15797a9172a0-0",
"webhook_endpoints": "webhook_endpoints/query-6d519ba7654d3b509d58e8d0858204eb-0"
},
"claimed": true,
"claim_url": null,
"claim_window_ends_at": null,
"currency": "usd",
"currency_locked": false,
"locale": "en",
"medias_total_byte_size": 0,
"name": "Test Account",
"slug": "test-account",
"time_zone": "Etc/UTC",
"url": null,
"plan": {
"free": true,
"name": "Launch"
},
"public_token": "pt_cq1j8Qxwbr8TsFzSAHMyNrt8",
"seeded_at": null,
"seeded_resources": [],
"abandoned_checkout_protocol": "099ab4ba-afce-4b09-b893-989ba3c7576d",
"affiliation_protocol": "64018ca8-9fe4-42b9-80b4-b7f138c3271c",
"brand": "ab0aabbf-3fab-40e3-94a0-a4fed85b8de9",
"checkout_portal_protocol": "1ab83fab-8f6b-4035-b42c-9e56e1edc541",
"customer_notification_protocol": "2178a174-117c-4bb1-ba1f-887f05a684ca",
"customer_portal_protocol": "15826575-aef8-4f94-a09e-4293a4dc7255",
"order_protocol": "af178e2f-7cf1-4115-a490-653bd3e003b5",
"review_protocol": "017f7349-6c63-4f76-a4a1-a7abed9600a3",
"shipping_protocol": "d5468d67-a47b-4063-b0c1-0097a9e5717d",
"subscription_protocol": "ba372a92-b14f-40c4-a694-e42b5ff73cbd",
"tax_protocol": "ca6cda85-2545-4e9f-bb1a-df1be887825e",
"test_data_purged_at": null,
"created_at": 1796063908,
"updated_at": 1796063908
}Authorizations
Response
200 - application/json
Success
Expandable – The associated abandoned checkout protocol ID.
Expandable – The associated affililiation protocol ID.
Expandable – The associated brand ID.
Expandable – The associated checkout portal protocol ID.
Expandable – The associated customer notification protocol ID.
Expandable – The associated customer portal protocol ID.
Expandable – The associated review protocol ID.
Expandable – The associated shipping protocol ID.
Expandable – The associated subscription protocol ID.
Expandable – The associated tax protocol ID.
Was this page helpful?