UAPI accesses the cPanel interface's features. Use this API to access and modify cPanel account data and settings.
https://api.docs.cpanel.net/_mock/specifications/cpanel.openapi/
https://{host}:{port}/execute/
The access token to connect to the provider.
The items to add to the shopping cart.
Note:
The value is a JSON string.
This object has one required key, product_id, which is a string.
The other keys/values in this object vary depending on the provider.
- Mock server
https://api.docs.cpanel.net/_mock/specifications/cpanel.openapi/Market/create_shopping_cart
- A server running cPanel.
https://cpanel-server.tld:2083/execute/Market/create_shopping_cart
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
-u <username>:<password> \
'https://api.docs.cpanel.net/_mock/specifications/cpanel.openapi/Market/create_shopping_cart?access_token=1a676e6f-99fc-11e6-9ab6-e60a769b73bc&item={%22product_id%22%3A123456%2C%22provider-specfic-key%22%3A%22provider-specfic-value%22%2C%22another-provider-specfic-key%22%3A%22another-provider-specfic-value%22}%2C{%22product_id%22%3A123457%2C%22provider-specfic-key%22%3A%22provider-specfic-value%22%2C%22another-provider-specfic-key%22%3A%22another-provider-specfic-value%22}&provider=cPStore&url_after_checkout=http%3A%2F%2Fwww.example.com%2Fthenextplace'{ "apiversion": 3, "func": "create_shopping_cart", "module": "Market", "result": { "data": { … }, "errors": null, "messages": null, "metadata": {}, "status": 1, "warnings": null } }
- Mock server
https://api.docs.cpanel.net/_mock/specifications/cpanel.openapi/Market/get_all_products
- A server running cPanel.
https://cpanel-server.tld:2083/execute/Market/get_all_products
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
-u <username>:<password> \
https://api.docs.cpanel.net/_mock/specifications/cpanel.openapi/Market/get_all_productsproduct_group=ssl_certificate
{ "apiversion": 3, "func": "get_all_products", "module": "Market", "result": { "data": [ … ], "errors": null, "messages": null, "metadata": { … }, "status": 1, "warnings": null } }
- Mock server
https://api.docs.cpanel.net/_mock/specifications/cpanel.openapi/Market/get_login_url
- A server running cPanel.
https://cpanel-server.tld:2083/execute/Market/get_login_url
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
-u <username>:<password> \
'https://api.docs.cpanel.net/_mock/specifications/cpanel.openapi/Market/get_login_url?provider=cPStore&url_after_login=http%3A%2F%2Fhostname.example.com%2Fredirectionlocation.cgi%3Fstate'{ "apiversion": 3, "func": "get_login_url", "module": "Market", "result": { "data": "https://example.com/api/?client_id=MyHearseIsAmazing&function=login&module=bogoSSL&redirect_uri=https%3A%2F%2Fqaportal.cpanel.net%2Fbogus.cgi&response_type=token", "errors": null, "messages": null, "metadata": { … }, "status": 1, "warnings": null } }