Documentation

sale.basketitem.add

sale.basketitem.add(fields)

The method adds item to shopping cart.

When successful, returns shopping cart resource in response body.

Parameters

ParameterType Description
fieldsobject Fields, corresponding to available list of fields.


Examples

BX24.callMethod(
    'sale.basketitem.add', 
	{
        fields: {
			  orderId: 85            
			  productId: 227,
			  quantity: 2,
			  name: 'Dress'
        }
    },
    function(result) {
        if (result.error())
            console.error(result.error().ex);
        else
            console.log(result.data());
    });


© «Bitrix24», 2001-2024