cURL
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" } }
Create a new product
V3 API key authentication. Format: sk_v3_xxxxx
sk_v3_xxxxx
Your storefront/shop ID
"Premium Plan"
2999
"USD"
Product created successfully
true
Show child attributes