Skip to main content
GET
/
v1
/
vendors
/
{vendorId}
/
address
Get Vendor Address
curl --request GET \
  --url https://staging-api.puppetvendors.com/v1/vendors/{vendorId}/address \
  --header 'x-access-token: <api-key>'
import requests

url = "https://staging-api.puppetvendors.com/v1/vendors/{vendorId}/address"

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://staging-api.puppetvendors.com/v1/vendors/{vendorId}/address', 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://staging-api.puppetvendors.com/v1/vendors/{vendorId}/address",
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://staging-api.puppetvendors.com/v1/vendors/{vendorId}/address"

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://staging-api.puppetvendors.com/v1/vendors/{vendorId}/address")
.header("x-access-token", "<api-key>")
.asString();
require 'uri'
require 'net/http'

url = URI("https://staging-api.puppetvendors.com/v1/vendors/{vendorId}/address")

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_body

Overview

Returns the vendor’s business address stored in their profile.

Use Cases

  • Generate shipping labels with the vendor’s return address
  • Display vendor locations on a store locator map
  • Pre-fill address fields in invoicing or payout systems

Path Parameters

vendorId
string
required
The vendor’s unique ID.

Response

200
{
  "address1": "123 Market Street",
  "address2": "Suite 400",
  "city": "London",
  "state": "England",
  "postalCode": "EC1A 1BB",
  "country": "United Kingdom"
}
Returns an empty object {} if no address is set.

Example

curl -X GET "https://api.puppetvendors.com/v1/vendors/6157faecbebcf01bf49097d9/address" \
  -H "x-access-token: YOUR_JWT_TOKEN"