Get Vendor Profile Fields
curl --request GET \
--url https://api.puppetvendors.com/v1/shop/profile \
--header 'x-access-token: <api-key>'import requests
url = "https://api.puppetvendors.com/v1/shop/profile"
headers = {"x-access-token": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-access-token': '<api-key>'}};
fetch('https://api.puppetvendors.com/v1/shop/profile', 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.puppetvendors.com/v1/shop/profile",
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-access-token: <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.puppetvendors.com/v1/shop/profile"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-access-token", "<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.puppetvendors.com/v1/shop/profile")
.header("x-access-token", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.puppetvendors.com/v1/shop/profile")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-access-token"] = '<api-key>'
response = http.request(request)
puts response.read_bodyVendors
Get Vendor Profile Fields
List the custom profile fields available for vendors
GET
/
v1
/
shop
/
profile
Get Vendor Profile Fields
curl --request GET \
--url https://api.puppetvendors.com/v1/shop/profile \
--header 'x-access-token: <api-key>'import requests
url = "https://api.puppetvendors.com/v1/shop/profile"
headers = {"x-access-token": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-access-token': '<api-key>'}};
fetch('https://api.puppetvendors.com/v1/shop/profile', 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.puppetvendors.com/v1/shop/profile",
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-access-token: <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.puppetvendors.com/v1/shop/profile"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-access-token", "<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.puppetvendors.com/v1/shop/profile")
.header("x-access-token", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.puppetvendors.com/v1/shop/profile")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-access-token"] = '<api-key>'
response = http.request(request)
puts response.read_bodyOverview
Returns the list of custom profile field names available for vendor profiles in your shop. These are the field names accepted by the Update Vendor Profile endpoint.Use Cases
- Discover available fields before reading or writing vendor profiles
- Build dynamic forms that adapt to the profile configuration
- Validate vendor data against the expected field list before submission
Response
200
{
"fields": [
"companyName",
"taxId",
"phone",
"website",
"description"
]
}
No Profile Configured
401
{
"error": "Shop profile is not set."
}
Example
curl -X GET https://api.puppetvendors.com/v1/shop/profile \
-H "x-access-token: YOUR_JWT_TOKEN"
Was this page helpful?
⌘I