Skip to main content
POST
/
2025-09
/
protection_levels
/
{protection_level_id}
/
base_price
Create Base Price for the Protection Level
curl --request POST \
  --url https://public-api.stora.co/2025-09/protection_levels/{protection_level_id}/base_price \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "weekly": {
    "amount": 999
  },
  "monthly": {
    "amount": 3999
  }
}
'
{
  "protection_level": {
    "id": "plvl_e8f3ad0a07e47566",
    "account_code": null,
    "cover_level": {
      "amount": 2000000,
      "currency": "GBP",
      "formatted": "£20,000.00"
    },
    "created_at": "2025-02-22T14:41:00Z",
    "prices": [
      {
        "billing_period": "weekly",
        "price": {
          "amount": 999,
          "currency": "GBP",
          "formatted": "£9.99"
        },
        "stripe_price_id": "price_OUZT099ynVSlgPkNEzRI55sK"
      },
      {
        "billing_period": "monthly",
        "price": {
          "amount": 3999,
          "currency": "GBP",
          "formatted": "£39.99"
        },
        "stripe_price_id": "price_MwJrt3uovKQOBpbjwpGRdTz3"
      }
    ],
    "public": true,
    "stripe_product_id": "test_Sj6us30iGDiaXO",
    "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"
      }
    ]
  }
}

Authorizations

Authorization
string
header
required

Bearer Token necessary to use API

Path Parameters

protection_level_id
string
required

The ID of the protection level to set the base prices

Query Parameters

expand
string[]

This endpoint supports expandable responses. For more, see the documentation page.

Body

application/json

Base prices available for recurring billing periods (Protection Levels, Unit Types, and Products).

monthly
object
weekly
object
every_four_weeks
object
every_three_months
object
every_six_months
object
yearly
object

Response

201 - application/json

protection level with created base prices

Single Protection Level

protection_level
object

Protection Level

meta
object