# API: Edit product

# editProduct

Edit product

# Required parameters

Parameter Description
id Product ID

# Optional parameters

Parameter Description
category_id category ID
type Type ID - available in call: getProductTypes
name Product name
description Product description
visible show Product [0
client_limit limit on how much a customer can have of a given product
tax Indicates whether product is taxed (1) or not (0)
code Product code
tax_group_id Tax Group ID
hostname [0
layout Layout [right
contract_id Contract template ID
autohostname Auto-hostname pattern
username_generation Username generation pattern
autosetup autosetup - Default (0)
upgrades array of possible upgrades
domain_options Additional option to Domain (1) - Default (0)
subdomain Name Subdomain, to set domain_options must be set to 1
owndomain Flag owndomain - 1, to set domain_options must be set to 1
paytype Free
m1 When paytype is Once is price
m_setup1 When paytype is Once is fee
m_enabled1 When paytype is Once set 1
m When Paytype is Regular is month cost
m_setup When Paytype is Regular is month fee cost
w When Paytype is Regular is weekly cost
w_setup When Paytype is Regular is month fee cost
q When Paytype is Regular is quarterly cost
q_setup When Paytype is Regular is quarterly fee cost
s When Paytype is Regular is semi-annual cost
s_setup When Paytype is Regular is semi-annual fee cost
a When Paytype is Regular is annually cost
a_setup When Paytype is Regular is annually fee cost
b When Paytype is Regular is biannually cost
b_setup When Paytype is Regular is biannually fee cost
stock_usage Whether stock is turned on on|off
qty Quantity on stock
config[ReturnToStockOnTerminate] Return items to stock when service is terminated 1|0
config[NotifyLowStock] Notify about low stock when the number of items drop below set amount

# Request

GET /admin/api.php?api_id=API_ID&api_key=API_KEY&call=editProduct&id=ID

# PHP Samples

# Response

{
    "success": true,
    "call": "editProduct",
    "server_time": 1706610852,
    "info": [
        "Product updated"
    ]
}
Last Updated: 3/10/2025, 3:22:33 PM