Skip to main content
POST
/
products
Create a product
curl --request POST \
  --url https://pandabase.io/api/products \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --header 'X-Storefront-Id: <x-storefront-id>' \
  --data '{
  "name": "Premium Plan",
  "price": 2999,
  "currency": "USD",
  "description": "<string>",
  "categories": [
    "<string>"
  ]
}'
{
  "ok": true,
  "data": {
    "id": "prod_abc123",
    "name": "Premium Plan",
    "price": 2999,
    "currency": "USD",
    "description": "<string>",
    "images": [
      {
        "id": "<string>",
        "hash": "<string>",
        "path": "<string>",
        "preview_url": "<string>",
        "resolution": "<string>"
      }
    ],
    "categories": [
      "<string>"
    ],
    "created_at": "2023-11-07T05:31:56Z"
  }
}

Authorizations

Authorization
string
header
required

V3 API key authentication. Format: sk_v3_xxxxx

Headers

X-Storefront-Id
string
required

Your storefront/shop ID

Body

application/json
name
string
required
Example:

"Premium Plan"

price
integer
required
Example:

2999

currency
string
required
Example:

"USD"

description
string
categories
string[]

Response

Product created successfully

ok
boolean
Example:

true

data
object