# Market Integration

Commerce Integration / Market Integration

## Create shopping cart

 - [GET /Market/create_shopping_cart](https://api.docs.cpanel.net/specifications/cpanel.openapi/market-integration/create_shopping_cart.md): This function creates a shopping cart with which the system sends an order to the cPanel Store. Typically, the system will send shopping cart orders for SSL certificates to UAPI’s Market::request_ssl_certificates function.

## Create shopping cart for non-SSL products

 - [GET /Market/create_shopping_cart_non_ssl](https://api.docs.cpanel.net/specifications/cpanel.openapi/market-integration/create_shopping_cart_non_ssl.md): This function creates a shopping cart for non-SSL products. It validates the access token, retrieves product information, creates a shopping cart with the provider, and returns the order details and checkout URL.

## Return provider's available products

 - [GET /Market/get_all_products](https://api.docs.cpanel.net/specifications/cpanel.openapi/market-integration/market-get_all_products.md): This function lists all products available through all enabled cPanel Market providers.

## Build cart URL for a product

 - [GET /Market/get_build_cart_url](https://api.docs.cpanel.net/specifications/cpanel.openapi/market-integration/get_build_cart_url.md): 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 product purchase completion URL

 - [GET /Market/get_completion_url](https://api.docs.cpanel.net/specifications/cpanel.openapi/market-integration/get_completion_url.md): This function builds the full cPanel URL for the product purchase completion page. The URL includes the security token and points to the completion page for the specified product.

## Retrieve license information for a domain

 - [GET /Market/get_license_info](https://api.docs.cpanel.net/specifications/cpanel.openapi/market-integration/get_license_info.md): This function retrieves license information for the specified domain from the cPanel Store and saves it to the current session.

## Return provider's login URL

 - [GET /Market/get_login_url](https://api.docs.cpanel.net/specifications/cpanel.openapi/market-integration/get_login_url.md): This function retrieves the login URL for the cPanel Market provider.

## Retrieve product information

 - [GET /Market/get_product_info](https://api.docs.cpanel.net/specifications/cpanel.openapi/market-integration/get_product_info.md): This function retrieves product information for the specified product name, including the product ID, redirect path, and redirect URLs for successful and failed purchases.

## Return enabled providers

 - [GET /Market/get_providers_list](https://api.docs.cpanel.net/specifications/cpanel.openapi/market-integration/market-get_providers_list.md): This function lists the names of enabled cPanel Market providers.

## Update status of items in pending queue

 - [GET /Market/set_status_of_pending_queue_items](https://api.docs.cpanel.net/specifications/cpanel.openapi/market-integration/set_status_of_pending_queue_items.md): This function sets the status of an item or items in the cPanel Market pending queue.

## Update URL after checkout

 - [GET /Market/set_url_after_checkout](https://api.docs.cpanel.net/specifications/cpanel.openapi/market-integration/set_url_after_checkout.md): This function updates the URL to which a provider sends a user after they check out.

## Validate login token

 - [GET /Market/validate_login_token](https://api.docs.cpanel.net/specifications/cpanel.openapi/market-integration/validate_login_token.md): This function validates a login token to a cPanel Market provider and returns an access token.

