# API: Bulk update TLD prices

# bulkSetPrices

Update prices of your TLD portfolio in bulk.

# Required parameters

Parameter Description
category_id Orderpage category id to change prices for
products[n][name] Name of product / TLD to change

# Optional parameters

Parameter Description
products[n][periods][k][register] For tlds, set register price for {k} years for amount passed trough this argument
products[n][periods][k][transfer] For tlds, set transfer price for {k} years for amount passed trough this argument
products[n][periods][k][renew] For tlds, set renew price for {k} years for amount passed trough this argument
products[n][updatedomains] Set to 1 to update (increase/decrease) pricing of existing domains with this TLD. Note: This is slow feature due to number of related operations, if enabled, please consider splitting update price call for multiple tlds into multiple subsequent calls

# Request

GET /admin/api.php?api_id=API_ID&api_key=API_KEY&call=bulkSetPrices&category_id=CATEGORY_ID&products%5Bn%5D%5Bname%5D=PRODUCTS%5BN%5D%5BNAME%5D

# PHP Samples

# Response

{
    "success": false,
    "call": "bulkSetPrices",
    "server_time": 1478712115,
    "info": [
        "Product updated"
    ]
}
Last Updated: 5/12/2023, 3:22:14 PM