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.
uapi --output=jsonpretty \ --user=username \ Market \ create_shopping_cart \ provider='cPStore' \ access_token='1a676e6f-99fc-11e6-9ab6-e60a769b73bc' \ url_after_checkout='http://www.example.com/thenextplace' \ item='{"product_id":123456,"provider-specfic-key":"provider-specfic-value","another-provider-specfic-key":"another-provider-specfic-value"}' item='{"product_id":123457,"provider-specfic-key":"provider-specfic-value","another-provider-specfic-key":"another-provider-specfic-value"}'
{- "apiversion": 3,
- "func": "create_shopping_cart",
- "module": "Market",
- "result": {
- "data": {
- "order_id": "8765309",
- "order_items": [
- { }
]
}, - "errors": null,
- "messages": null,
- "metadata": { },
- "status": 1,
- "warnings": null
}
}