The fractionalQuantityAllowed
actor-chain indicates if fractional quantities are permitted for a product/SKU combination. This actor-chain is Boolean and returns either true or false. It uses the following parameters:
Parameter | Description |
---|---|
| The ID of the product. |
| The ID of the SKU. |
Note that when passing in URL parameters that contain quantities, you must ensure that the SKU or product values being passed in match the quantity type. For example, if a SKU uses fractional values, the value passed in must be a fractional value, such as 14.0. If the SKU does not use fractional values, the value passed in should be a whole number. For additional information on working with Fractional Quantities, refer to the Core Commerce Programming Guide.
Identify Fractional Quantities Allowed Example
curl -L -v -b customer_cookies.txt -H "Content-Type: application/json" –d "{ \"productId\" : \"xprod2085\", \"skuId\" : \"sku225\" }" http://localhost:8280/ rest/model/atg/commerce/catalog/ProductCatalogActor/fractionalQuantityAllowed"