Create or update a clinic-owned item
curl --request PUT \
--url https://vitarelay.com/api/public/v1/shop/custom-products \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"price_cents": 2,
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"description": "<string>",
"product_kind": "<string>",
"is_listed": true,
"is_active": true,
"first_order_immediate": true
}
'import requests
url = "https://vitarelay.com/api/public/v1/shop/custom-products"
payload = {
"name": "<string>",
"price_cents": 2,
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"description": "<string>",
"product_kind": "<string>",
"is_listed": True,
"is_active": True,
"first_order_immediate": True
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: '<string>',
price_cents: 2,
id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
description: '<string>',
product_kind: '<string>',
is_listed: true,
is_active: true,
first_order_immediate: true
})
};
fetch('https://vitarelay.com/api/public/v1/shop/custom-products', 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://vitarelay.com/api/public/v1/shop/custom-products",
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([
'name' => '<string>',
'price_cents' => 2,
'id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'description' => '<string>',
'product_kind' => '<string>',
'is_listed' => true,
'is_active' => true,
'first_order_immediate' => true
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$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://vitarelay.com/api/public/v1/shop/custom-products"
payload := strings.NewReader("{\n \"name\": \"<string>\",\n \"price_cents\": 2,\n \"id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"description\": \"<string>\",\n \"product_kind\": \"<string>\",\n \"is_listed\": true,\n \"is_active\": true,\n \"first_order_immediate\": true\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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://vitarelay.com/api/public/v1/shop/custom-products")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"<string>\",\n \"price_cents\": 2,\n \"id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"description\": \"<string>\",\n \"product_kind\": \"<string>\",\n \"is_listed\": true,\n \"is_active\": true,\n \"first_order_immediate\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://vitarelay.com/api/public/v1/shop/custom-products")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"<string>\",\n \"price_cents\": 2,\n \"id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"description\": \"<string>\",\n \"product_kind\": \"<string>\",\n \"is_listed\": true,\n \"is_active\": true,\n \"first_order_immediate\": true\n}"
response = http.request(request)
puts response.read_body{
"error": {
"code": "validation_failed",
"message": "One or more fields are invalid"
}
}{
"error": {
"code": "validation_failed",
"message": "One or more fields are invalid"
}
}Storefront
Create or update a clinic-owned item
Creates a service or custom physical item using the same storefront rules as the admin UI. Requires shop:write.
PUT
/
shop
/
custom-products
Create or update a clinic-owned item
curl --request PUT \
--url https://vitarelay.com/api/public/v1/shop/custom-products \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"price_cents": 2,
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"description": "<string>",
"product_kind": "<string>",
"is_listed": true,
"is_active": true,
"first_order_immediate": true
}
'import requests
url = "https://vitarelay.com/api/public/v1/shop/custom-products"
payload = {
"name": "<string>",
"price_cents": 2,
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"description": "<string>",
"product_kind": "<string>",
"is_listed": True,
"is_active": True,
"first_order_immediate": True
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: '<string>',
price_cents: 2,
id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
description: '<string>',
product_kind: '<string>',
is_listed: true,
is_active: true,
first_order_immediate: true
})
};
fetch('https://vitarelay.com/api/public/v1/shop/custom-products', 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://vitarelay.com/api/public/v1/shop/custom-products",
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([
'name' => '<string>',
'price_cents' => 2,
'id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'description' => '<string>',
'product_kind' => '<string>',
'is_listed' => true,
'is_active' => true,
'first_order_immediate' => true
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$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://vitarelay.com/api/public/v1/shop/custom-products"
payload := strings.NewReader("{\n \"name\": \"<string>\",\n \"price_cents\": 2,\n \"id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"description\": \"<string>\",\n \"product_kind\": \"<string>\",\n \"is_listed\": true,\n \"is_active\": true,\n \"first_order_immediate\": true\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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://vitarelay.com/api/public/v1/shop/custom-products")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"<string>\",\n \"price_cents\": 2,\n \"id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"description\": \"<string>\",\n \"product_kind\": \"<string>\",\n \"is_listed\": true,\n \"is_active\": true,\n \"first_order_immediate\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://vitarelay.com/api/public/v1/shop/custom-products")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"<string>\",\n \"price_cents\": 2,\n \"id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"description\": \"<string>\",\n \"product_kind\": \"<string>\",\n \"is_listed\": true,\n \"is_active\": true,\n \"first_order_immediate\": true\n}"
response = http.request(request)
puts response.read_body{
"error": {
"code": "validation_failed",
"message": "One or more fields are invalid"
}
}{
"error": {
"code": "validation_failed",
"message": "One or more fields are invalid"
}
}Authorizations
API key issued by VitaRelay. Send as Authorization: Bearer vr_live_…
(production) or Authorization: Bearer vr_test_… (sandbox).
Body
application/json
Required range:
x >= 1Use service for non-shippable services; other values are treated as custom physical items.
Controls whether checkout permits one-time purchases, subscriptions, or both.
Available options:
one_time, subscription, both Available options:
weekly, monthly, quarterly, null Response
Created or updated item.

