ProductUpdate resource

Methods

  • post - Add a product to a cart
  • post - Remove a product to a cart

Resource

{
    "discounts": [
        "string"
    ],
    "products": {
        "<key>": {
            "quantity": "int32"
        }
    }
}

Properties

Name Type Description Additional
discounts[] array of string Optional
products object

map of products id in the cart with its quantity

products.<key> map of object ProductInput Optional
products.<key>.quantity int32

This is the product quantity.