Skip to main content
PATCH
/
stores
/
{storeId}
/
products
/
{productId}
cURL
curl --request PATCH \
  --url https://api.pandabase.io/v2/core/stores/{storeId}/products/{productId} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "title": "<string>",
  "subtitle": "<string>",
  "description": "<string>",
  "productType": "SUBSCRIPTION",
  "price": 1,
  "compareAtPrice": 1,
  "images": [
    "<string>"
  ],
  "message": "<string>",
  "inStock": true,
  "fulfillmentMode": "MANAGED_LICENSE",
  "pricingModel": "STANDARD",
  "status": "DRAFT",
  "minimumPrice": 1,
  "maxPerCustomer": 2,
  "availableFrom": "2023-11-07T05:31:56Z",
  "availableUntil": "2023-11-07T05:31:56Z",
  "downloadUrl": "<string>",
  "redirectUrl": "<string>",
  "keyFormat": "ALPHANUMERIC",
  "customPrefix": "<string>",
  "maxActivations": 2,
  "licenseDuration": "THIRTY_DAYS",
  "revokeOnRefund": true,
  "lowStockThreshold": 1,
  "webhookUrl": "<string>",
  "webhookSecret": "<string>",
  "billingInterval": "WEEKLY",
  "billingAnchor": "IMMEDIATELY",
  "trialDays": 1,
  "licenseKeys": [
    "<string>"
  ],
  "variants": [
    {
      "id": "<string>",
      "title": "<string>",
      "slug": "<string>",
      "description": "<string>",
      "sku": "<string>",
      "options": "<unknown>",
      "price": 1,
      "compareAtPrice": 1,
      "images": [
        "<string>"
      ],
      "inStock": true,
      "quantity": 1,
      "trackStock": true,
      "position": 1
    }
  ],
  "options": [
    {
      "name": "<string>",
      "values": [
        "<string>"
      ],
      "position": 0
    }
  ],
  "categoryIds": [
    "<string>"
  ]
}
'
{
  "ok": true,
  "data": {
    "id": "prd_8h4t6sqzy3x9w5n2k1m0vqbf",
    "title": "Pro Plan",
    "subtitle": "Everything you need to ship",
    "description": "Full access to the platform — unlimited stores, no transaction caps.",
    "handle": "pro-plan",
    "price": 2900,
    "compareAtPrice": 4900,
    "images": [
      "https://cdn.pandabase.io/products/img_xxx.jpg"
    ],
    "inStock": true,
    "currency": "USD",
    "productType": "DIGITAL",
    "fulfillmentMode": "LICENSE_POOL",
    "pricingModel": "STANDARD",
    "status": "ACTIVE",
    "minimumPrice": null,
    "maxPerCustomer": null,
    "availableFrom": null,
    "availableUntil": null,
    "revokeOnRefund": true,
    "options": [],
    "variants": [],
    "categories": []
  }
}

Documentation Index

Fetch the complete documentation index at: https://docs.pandabase.io/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Bearer token mode — passes the secret directly. Token starts with sk_.

Path Parameters

storeId
string
required
Required string length: 12 - 48
productId
string
required
Required string length: 12 - 48

Body

application/json
title
string
Required string length: 1 - 256
subtitle
string | null
Maximum string length: 512
description
string | null
Maximum string length: 10000
productType
Available options:
SUBSCRIPTION
price
integer
Required range: x >= 0
compareAtPrice
integer | null
Required range: x >= 0
images
string[]
Maximum array length: 10
message
string | null
Maximum string length: 1000
inStock
boolean
fulfillmentMode
Available options:
MANAGED_LICENSE
pricingModel
Available options:
STANDARD
status
Available options:
DRAFT
minimumPrice
integer | null
Required range: x >= 0
maxPerCustomer
integer | null
Required range: x >= 1
availableFrom
string<date-time> | null
availableUntil
string<date-time> | null
downloadUrl
string | null
Maximum string length: 2048
redirectUrl
string | null
Maximum string length: 2048
keyFormat
Available options:
ALPHANUMERIC
customPrefix
string | null
Maximum string length: 32
maxActivations
integer | null
Required range: x >= 1
licenseDuration
Available options:
THIRTY_DAYS
revokeOnRefund
boolean
lowStockThreshold
integer | null
Required range: x >= 0
webhookUrl
string | null
Maximum string length: 2048
webhookSecret
string | null
Maximum string length: 256
billingInterval
Available options:
WEEKLY
billingAnchor
Available options:
IMMEDIATELY
trialDays
integer | null
Required range: x >= 0
licenseKeys
string[]
Maximum array length: 1000
Required string length: 1 - 512
variants
object[]
Maximum array length: 4
options
object[]
Maximum array length: 20
categoryIds
string[]
Maximum array length: 20
Required string length: 12 - 48

Response

Default Response

ok
enum<boolean>
required
Available options:
true
data
any
required