Update Vendor Profile
curl --request PUT \
--url https://staging-api.puppetvendors.com/v1/vendors/{vendorId}/profile \
--header 'Content-Type: application/json' \
--header 'x-access-token: <api-key>' \
--data '
{
"field": "<string>",
"value": {}
}
'import requests
url = "https://staging-api.puppetvendors.com/v1/vendors/{vendorId}/profile"
payload = {
"field": "<string>",
"value": {}
}
headers = {
"x-access-token": "<api-key>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {'x-access-token': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({field: '<string>', value: {}})
};
fetch('https://staging-api.puppetvendors.com/v1/vendors/{vendorId}/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://staging-api.puppetvendors.com/v1/vendors/{vendorId}/profile",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'field' => '<string>',
'value' => [
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"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"
"strings"
"net/http"
"io"
)
func main() {
url := "https://staging-api.puppetvendors.com/v1/vendors/{vendorId}/profile"
payload := strings.NewReader("{\n \"field\": \"<string>\",\n \"value\": {}\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("x-access-token", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.put("https://staging-api.puppetvendors.com/v1/vendors/{vendorId}/profile")
.header("x-access-token", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"field\": \"<string>\",\n \"value\": {}\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://staging-api.puppetvendors.com/v1/vendors/{vendorId}/profile")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["x-access-token"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"field\": \"<string>\",\n \"value\": {}\n}"
response = http.request(request)
puts response.read_bodyVendors
Update Vendor Profile
Update a vendor’s custom profile fields
PUT
/
v1
/
vendors
/
{vendorId}
/
profile
Update Vendor Profile
curl --request PUT \
--url https://staging-api.puppetvendors.com/v1/vendors/{vendorId}/profile \
--header 'Content-Type: application/json' \
--header 'x-access-token: <api-key>' \
--data '
{
"field": "<string>",
"value": {}
}
'import requests
url = "https://staging-api.puppetvendors.com/v1/vendors/{vendorId}/profile"
payload = {
"field": "<string>",
"value": {}
}
headers = {
"x-access-token": "<api-key>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {'x-access-token': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({field: '<string>', value: {}})
};
fetch('https://staging-api.puppetvendors.com/v1/vendors/{vendorId}/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://staging-api.puppetvendors.com/v1/vendors/{vendorId}/profile",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'field' => '<string>',
'value' => [
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"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"
"strings"
"net/http"
"io"
)
func main() {
url := "https://staging-api.puppetvendors.com/v1/vendors/{vendorId}/profile"
payload := strings.NewReader("{\n \"field\": \"<string>\",\n \"value\": {}\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("x-access-token", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.put("https://staging-api.puppetvendors.com/v1/vendors/{vendorId}/profile")
.header("x-access-token", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"field\": \"<string>\",\n \"value\": {}\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://staging-api.puppetvendors.com/v1/vendors/{vendorId}/profile")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["x-access-token"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"field\": \"<string>\",\n \"value\": {}\n}"
response = http.request(request)
puts response.read_bodyOverview
Update one or more custom profile fields for a vendor. Only fields defined in the shop’s profile configuration are accepted.Use Cases
- Sync vendor profile data from an onboarding form or CRM
- Bulk-update vendor info (tax IDs, bank details) via script
- Allow vendors to update profiles through a custom portal
Path Parameters
The vendor’s unique ID.
Request Body
Send an array of field/value pairs. Use Get Shop Profile Fields to see which fields are available.[
{ "field": "companyName", "value": "Acme Corp" },
{ "field": "taxId", "value": "GB123456789" }
]
The profile field name (must match a shop-defined field).
The value to set. Cannot be an object.
Response
200
{
"message": "Vendor profile updated successfully.",
"vendor": { ... }
}
Example
curl -X PUT "https://api.puppetvendors.com/v1/vendors/6157faecbebcf01bf49097d9/profile" \
-H "Content-Type: application/json" \
-H "x-access-token: YOUR_JWT_TOKEN" \
-d '[
{ "field": "companyName", "value": "Acme Corp" },
{ "field": "phone", "value": "+44 20 7946 0958" }
]'
Was this page helpful?
⌘I