# API: Add product
# addProduct
Add product
# Required parameters
Parameter | Description |
---|---|
category_id | category ID |
type | Type ID - available in call: getProductTypes |
name | Product name |
# Optional parameters
Parameter | Description |
---|---|
description | Product description |
visible | Product visibility, integer where: hidden = 0 , visible = 1 , archived = -1 , admin only = -2 , hide from unregistered = -3 , hidden from direct orders = -4 |
# Request
GET /admin/api.php?api_id=API_ID&api_key=API_KEY&call=addProduct&category_id=CATEGORY_ID&type=TYPE&name=NAME
# PHP Samples
# Response
{
"success": true,
"product_id": 248,
"call": "addProduct",
"server_time": 1721114816,
"info": [
"Product added"
]
}