Authorizations
Enter your API key as: Bearer your-api-key
Body
application/json
Response
Successful response
The response is of type any.
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"
}Create a new product with variants and prices for a specific store
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"
}Enter your API key as: Bearer your-api-key
Successful response
The response is of type any.