curl --request POST \
--url https://public-api.stora.co/2025-09/products/{product_id}/base_price \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"weekly": {
"amount": 999
},
"monthly": {
"amount": 3999
}
}
'{
"product": {
"id": "prod_2af1a177df617f3c",
"accounting_code": "CUSTOM-PRODUCT-1",
"category": {
"id": "pcat_a434b3a5bc8102bc"
},
"charge_type": "recurring",
"created_at": "2025-02-22T14:41:00Z",
"description": "Custom product description",
"images": {
"default": null
},
"name": "Recurring Product",
"prices": [
{
"billing_period": "monthly",
"price": {
"amount": 3999,
"currency": "GBP",
"formatted": "£39.99"
},
"stripe_price_id": "price_1OFEj4jqBxezmkUMuPhySwmO"
},
{
"billing_period": "weekly",
"price": {
"amount": 999,
"currency": "GBP",
"formatted": "£9.99"
},
"stripe_price_id": "price_5ZRMiQmM3BfIzoTtNNQZpUnh"
}
],
"site": {
"id": "site_14b419f1096013f1"
},
"sku": null,
"updated_at": "2025-02-22T14:41:00Z"
},
"meta": {
"request_id": "01563646-58c1-4607-8fe0-cae3e92c4477",
"curies": [
{
"name": "bo",
"href": "https://app.stora.test{rel}",
"templated": true,
"title": "Backoffice"
},
{
"name": "sf",
"href": "https://acme.stora.test{rel}",
"templated": true,
"title": "Storefront"
}
]
}
}Create Base Price for the Product
Set the product’s base price. A one_time product takes a one_time price. A recurring product takes a price for one or more billing periods, such as monthly or weekly. The new prices apply right away to new orders. Billing periods you leave out keep their prices, and existing subscriptions don’t change.
Required authorization scope: public.product:write
curl --request POST \
--url https://public-api.stora.co/2025-09/products/{product_id}/base_price \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"weekly": {
"amount": 999
},
"monthly": {
"amount": 3999
}
}
'{
"product": {
"id": "prod_2af1a177df617f3c",
"accounting_code": "CUSTOM-PRODUCT-1",
"category": {
"id": "pcat_a434b3a5bc8102bc"
},
"charge_type": "recurring",
"created_at": "2025-02-22T14:41:00Z",
"description": "Custom product description",
"images": {
"default": null
},
"name": "Recurring Product",
"prices": [
{
"billing_period": "monthly",
"price": {
"amount": 3999,
"currency": "GBP",
"formatted": "£39.99"
},
"stripe_price_id": "price_1OFEj4jqBxezmkUMuPhySwmO"
},
{
"billing_period": "weekly",
"price": {
"amount": 999,
"currency": "GBP",
"formatted": "£9.99"
},
"stripe_price_id": "price_5ZRMiQmM3BfIzoTtNNQZpUnh"
}
],
"site": {
"id": "site_14b419f1096013f1"
},
"sku": null,
"updated_at": "2025-02-22T14:41:00Z"
},
"meta": {
"request_id": "01563646-58c1-4607-8fe0-cae3e92c4477",
"curies": [
{
"name": "bo",
"href": "https://app.stora.test{rel}",
"templated": true,
"title": "Backoffice"
},
{
"name": "sf",
"href": "https://acme.stora.test{rel}",
"templated": true,
"title": "Storefront"
}
]
}
}Headers
A unique key, such as a UUID, that makes it safe to retry this request. The first successful (2xx) response for a key is stored for 24 hours and returned unchanged, including its request_id, for later requests with the same key, without running the request again. Keys are unique per operator, case-insensitive and trimmed of surrounding whitespace. Failed requests are not stored, so they can be retried with the same key. While a request with the same key is still in progress, another one returns 409 Conflict with code idempotency_conflict. The request body and path are not compared, so use a new key for each request. For more, see the documentation page.
Query Parameters
This endpoint supports expandable responses. For more, see the documentation page.
Returns only the listed fields, such as id,status,site.name. Identifiers and constant fields such as object are always returned. A field inside an expandable association also needs it in expand, unless the collapsed association returns it, such as site.id. For more, see the documentation page.
Body
- Option 1
- Option 2
Base prices available for recurring billing periods (Protection Levels, Unit Types, and Products).
Was this page helpful?