Skip to main content
POST
/
api
/
public
/
v1
/
products
/
create
Create product
curl --request POST \
  --url https://app.tagadapay.com/api/public/v1/products/create \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "storeId": "store_123",
  "name": "Premium Joint Support Supplement",
  "description": "Advanced joint support with natural ingredients",
  "active": true,
  "isShippable": true,
  "isTaxable": true,
  "variants": [
    {
      "name": "Regular Bottle - 1 Month Supply",
      "description": "Single bottle for one month",
      "sku": "JSS-REG-001",
      "grams": 100,
      "active": true,
      "default": true,
      "imageUrl": "https://example.com/product-image.jpg",
      "prices": [
        {
          "currencyOptions": {
            "USD": {
              "amount": 2999,
              "currency": "USD"
            },
            "EUR": {
              "amount": 2699,
              "currency": "EUR"
            }
          },
          "recurring": false,
          "billingTiming": "usage",
          "interval": null,
          "intervalCount": 1,
          "default": true
        }
      ]
    },
    {
      "name": "Buy 2 Get 1 Free - 3 Month Supply",
      "description": "Special bundle offer",
      "sku": "JSS-B2G1-002",
      "grams": 300,
      "active": true,
      "default": false,
      "imageUrl": "https://example.com/bundle-image.jpg",
      "prices": [
        {
          "currencyOptions": {
            "USD": {
              "amount": 4999,
              "currency": "USD"
            },
            "EUR": {
              "amount": 4499,
              "currency": "EUR"
            }
          },
          "recurring": false,
          "billingTiming": "usage",
          "interval": null,
          "intervalCount": 1,
          "default": true
        }
      ]
    }
  ]
}'
{
  "success": true,
  "message": "Product created successfully with 2 variants"
}

Authorizations

Authorization
string
header
required

Enter your API key as: Bearer your-api-key

Body

application/json
name
string
required
variants
object[]
required
Minimum length: 1
storeId
string
required
description
string | null
unitLabel
string | null
accountingCode
string | null
active
boolean
isShippable
boolean
isTaxable
boolean
autoSync
boolean
taxCategory
string | null
id
string

Response

Successful response

The response is of type any.