Update cadence, quantity, card, or shipping address
curl --request PATCH \
--url https://vitarelay.com/api/public/v1/subscriptions/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"cadence": "quarterly"
}
'import requests
url = "https://vitarelay.com/api/public/v1/subscriptions/{id}"
payload = { "cadence": "quarterly" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({cadence: 'quarterly'})
};
fetch('https://vitarelay.com/api/public/v1/subscriptions/{id}', 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/subscriptions/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'cadence' => 'quarterly'
]),
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/subscriptions/{id}"
payload := strings.NewReader("{\n \"cadence\": \"quarterly\"\n}")
req, _ := http.NewRequest("PATCH", 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.patch("https://vitarelay.com/api/public/v1/subscriptions/{id}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"cadence\": \"quarterly\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://vitarelay.com/api/public/v1/subscriptions/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"cadence\": \"quarterly\"\n}"
response = http.request(request)
puts response.read_body{
"subscription": {
"id": "0f1f2c9e-2f30-4a1b-8b1c-6f4e9a0c1d22",
"item_kind": "product",
"shop_product_id": "153cfbff-3d44-4501-9e45-7e7bf1ab130e",
"quantity": 1,
"cadence": "quarterly",
"status": "active",
"paused_reason": null,
"price_cents_snapshot": 6500,
"next_charge_at": "2026-10-25T04:06:14Z",
"card_brand": "Visa",
"card_last4": "4242"
},
"recent_cycles": []
}{
"error": {
"code": "validation_failed",
"message": "One or more fields are invalid"
}
}{
"error": {
"code": "validation_failed",
"message": "One or more fields are invalid"
}
}Subscriptions
Update cadence, quantity, card, or shipping address
PATCH
/
subscriptions
/
{id}
Update cadence, quantity, card, or shipping address
curl --request PATCH \
--url https://vitarelay.com/api/public/v1/subscriptions/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"cadence": "quarterly"
}
'import requests
url = "https://vitarelay.com/api/public/v1/subscriptions/{id}"
payload = { "cadence": "quarterly" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({cadence: 'quarterly'})
};
fetch('https://vitarelay.com/api/public/v1/subscriptions/{id}', 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/subscriptions/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'cadence' => 'quarterly'
]),
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/subscriptions/{id}"
payload := strings.NewReader("{\n \"cadence\": \"quarterly\"\n}")
req, _ := http.NewRequest("PATCH", 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.patch("https://vitarelay.com/api/public/v1/subscriptions/{id}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"cadence\": \"quarterly\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://vitarelay.com/api/public/v1/subscriptions/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"cadence\": \"quarterly\"\n}"
response = http.request(request)
puts response.read_body{
"subscription": {
"id": "0f1f2c9e-2f30-4a1b-8b1c-6f4e9a0c1d22",
"item_kind": "product",
"shop_product_id": "153cfbff-3d44-4501-9e45-7e7bf1ab130e",
"quantity": 1,
"cadence": "quarterly",
"status": "active",
"paused_reason": null,
"price_cents_snapshot": 6500,
"next_charge_at": "2026-10-25T04:06:14Z",
"card_brand": "Visa",
"card_last4": "4242"
},
"recent_cycles": []
}{
"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).
Path Parameters
Resource UUID.
Body
application/json
Response
Updated subscription detail (same shape as GET).

