hp.com
Add a product to the HP cart
Inputs
url optionalHP US store product link (https://www.hp.com/us-en/shop/pdp/...), as Search HP products returns it.
quantity optionalNumber of units to add, 1 to 10.
Default: 1product_id optionalHP part number, for example 7P8K6AV_1 (product_id of Search HP products). Used when no url is given.
Output
name requiredadded requiredUnits added by this call.
count requiredNumber of units in the cart after the add, all lines together.
lines requiredtotal requiredTotal of the products in US dollars, before tax and shipping.
offerId requiredAlways null: HP sells its products itself.
productId requiredHP part number of the product added.
