Market
Market Integration
Build cart URL for a product
This function builds the URL for the shopping cart page for the specified product. The system saves session data and constructs a full cPanel URL pointing to the product purchase page.
get/Market/get_build_cart_url
Query parameters
product_namestring required
Example:cpanel-ssl
The name of the product for which to build the cart URL.
domainstring
Example:example.com
The domain associated with the product purchase. This parameter is optional.
Response
HTTP Request was successful.
Example response
{
"apiversion": 3,
"func": "get_build_cart_url",
"module": "Market",
"result": {
"data": {
"url": "https://hostname.example.com:2083/cpsessXXXXXXXXXX/frontend/jupiter/store/purchase_product_build_cart.html?product_name=cpanel-ssl"
},
"status": 1
}
}