# Create shopping cart 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 function. Endpoint: GET /Market/create_shopping_cart Version: 11.134.0.5 Security: BasicAuth ## Query parameters: - `access_token` (string, required) The access token to connect to the provider. Example: "1a676e6f-99fc-11e6-9ab6-e60a769b73bc" - `item` (array, required) The items to add to the shopping cart. : The value is a JSON string. This object has one required key, , which is a string. The other keys/values in this object vary depending on the provider. Example: ["{\"product_id\":123456,\"provider-specfic-key\":\"provider-specfic-value\",\"another-provider-specfic-key\":\"another-provider-specfic-value\"}","{\"product_id\":123457,\"provider-specfic-key\":\"provider-specfic-value\",\"another-provider-specfic-key\":\"another-provider-specfic-value\"}"] - `provider` (string, required) The cPanel Market provider’s name. Example: "cPStore" - `url_after_checkout` (string, required) The location to which the provider directs the user after the checkout process is complete. Example: "http://www.example.com/thenextplace" ## Response 200 fields (application/json): - `apiversion` (integer) The version of the API. Example: 3 - `func` (string) The name of the method called. Example: "create_shopping_cart" - `module` (string) The name of the module called. Example: "Market" - `result` (object) - `result.data` (object) - `result.data.checkout_url` (string) The location of the provider’s check out page. Example: "http://www.example.com/checkout" - `result.data.order_id` (string) The order’s ID. Example: "8765309" - `result.data.order_items` (array) An array of objects that contain information about Items in the shopping cart. The function returns these values in the order in which you called them. This array of objects returns values that vary between providers. - `result.errors` (array,null) List of errors if the API failed. - `result.messages` (array,null) List of messages generated by the API. - `result.metadata` (object) - `result.status` (integer) * — Success. * — Failed. Check the field for more details. Enum: 0, 1 - `result.warnings` (array,null) List of warnings generated by the API. Warnings describe non-critical failures or other problematic conditions noted while running a API.