ProductUpdate resource

Methods

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

Resource

{
    "products": {
        "<key>": {
            "quantity": "int32"
        }
    }
}

Properties

Name Type Description Additional
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.

Example

{
    "products": "\"products\":{\"82fc0517-358a-49a8-b5fb-8be1a0ced674\": {\"quantity\":\"2\"}}"
}