curl --request PUT \
--url https://app.base44.com/api/apps/{app_id}/payments/stripe/prices/{price_id} \
--header 'Content-Type: application/json' \
--header 'api_key: <api-key>' \
--data '
{
"active": false,
"metadata": {
"tier": "standard"
},
"nickname": "Monthly membership"
}
'import requests
url = "https://app.base44.com/api/apps/{app_id}/payments/stripe/prices/{price_id}"
payload = {
"active": False,
"metadata": { "tier": "standard" },
"nickname": "Monthly membership"
}
headers = {
"api_key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {api_key: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({active: false, metadata: {tier: 'standard'}, nickname: 'Monthly membership'})
};
fetch('https://app.base44.com/api/apps/{app_id}/payments/stripe/prices/{price_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://app.base44.com/api/apps/{app_id}/payments/stripe/prices/{price_id}",
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([
'active' => false,
'metadata' => [
'tier' => 'standard'
],
'nickname' => 'Monthly membership'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"api_key: <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://app.base44.com/api/apps/{app_id}/payments/stripe/prices/{price_id}"
payload := strings.NewReader("{\n \"active\": false,\n \"metadata\": {\n \"tier\": \"standard\"\n },\n \"nickname\": \"Monthly membership\"\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("api_key", "<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://app.base44.com/api/apps/{app_id}/payments/stripe/prices/{price_id}")
.header("api_key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"active\": false,\n \"metadata\": {\n \"tier\": \"standard\"\n },\n \"nickname\": \"Monthly membership\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.base44.com/api/apps/{app_id}/payments/stripe/prices/{price_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["api_key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"active\": false,\n \"metadata\": {\n \"tier\": \"standard\"\n },\n \"nickname\": \"Monthly membership\"\n}"
response = http.request(request)
puts response.read_body{
"id": "price_1T7mK2Q4r6S8v9Ab",
"product": "prod_T7mK2p9Q4r6S8v",
"unit_amount": 2500,
"currency": "usd",
"active": true,
"metadata": {
"tier": "standard"
},
"recurring": {
"interval": "month",
"interval_count": 1,
"usage_type": "licensed"
}
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Update Stripe price
Updates supplied non-null fields. The amount, currency, and recurring schedule cannot be changed here. The response does not include the nickname even when it was updated. Requires write access to the app. Workspace viewers cannot call this operation. Uses the Stripe account selected by the app’s stored credentials. Live keys select the live catalog and test keys select the test catalog. Products and prices belong to that Stripe account, so apps configured with the same account share its catalog.
curl --request PUT \
--url https://app.base44.com/api/apps/{app_id}/payments/stripe/prices/{price_id} \
--header 'Content-Type: application/json' \
--header 'api_key: <api-key>' \
--data '
{
"active": false,
"metadata": {
"tier": "standard"
},
"nickname": "Monthly membership"
}
'import requests
url = "https://app.base44.com/api/apps/{app_id}/payments/stripe/prices/{price_id}"
payload = {
"active": False,
"metadata": { "tier": "standard" },
"nickname": "Monthly membership"
}
headers = {
"api_key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {api_key: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({active: false, metadata: {tier: 'standard'}, nickname: 'Monthly membership'})
};
fetch('https://app.base44.com/api/apps/{app_id}/payments/stripe/prices/{price_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://app.base44.com/api/apps/{app_id}/payments/stripe/prices/{price_id}",
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([
'active' => false,
'metadata' => [
'tier' => 'standard'
],
'nickname' => 'Monthly membership'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"api_key: <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://app.base44.com/api/apps/{app_id}/payments/stripe/prices/{price_id}"
payload := strings.NewReader("{\n \"active\": false,\n \"metadata\": {\n \"tier\": \"standard\"\n },\n \"nickname\": \"Monthly membership\"\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("api_key", "<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://app.base44.com/api/apps/{app_id}/payments/stripe/prices/{price_id}")
.header("api_key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"active\": false,\n \"metadata\": {\n \"tier\": \"standard\"\n },\n \"nickname\": \"Monthly membership\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.base44.com/api/apps/{app_id}/payments/stripe/prices/{price_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["api_key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"active\": false,\n \"metadata\": {\n \"tier\": \"standard\"\n },\n \"nickname\": \"Monthly membership\"\n}"
response = http.request(request)
puts response.read_body{
"id": "price_1T7mK2Q4r6S8v9Ab",
"product": "prod_T7mK2p9Q4r6S8v",
"unit_amount": 2500,
"currency": "usd",
"active": true,
"metadata": {
"tier": "standard"
},
"recurring": {
"interval": "month",
"interval_count": 1,
"usage_type": "licensed"
}
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Authorizations
Personal API key.
Path Parameters
Stripe price ID in the configured account.
ID of the Base44 app.
Body
Request to update a Stripe price.
Whether the price is active. Omitted or null values leave it unchanged. Defaults to null.
false
Metadata to store. Use string values accepted by Stripe. Defaults to null. Omitted or null metadata leaves an existing value unchanged on update.
{ "tier": "standard" }
New internal price label. Omitted or null values leave it unchanged. Defaults to null.
"Monthly membership"
Response
The operation result.
A price in the Stripe account configured for the app.
Stripe price ID.
"price_1T7mK2Q4r6S8v9Ab"
Stripe product ID this price belongs to.
"prod_T7mK2p9Q4r6S8v"
Amount in the currency's smallest unit, or null for pricing without a fixed integer unit amount.
2500
Currency as a lowercase three-letter ISO 4217 code.
"usd"
Whether the price is active.
true
Metadata stored on the price.
{ "tier": "standard" }
Billing schedule, or null for a one-time price.
Show child attributes
Show child attributes
{
"interval": "month",
"interval_count": 1,
"usage_type": "licensed"
}
Was this page helpful?