Documentation

sale.shipment.update

sale.shipment.update(shipmentId, fields)

The method updates fields of shipment item.

When successful, returns shipment resource in response body.

Parameters

ParameterType Description
shipmentIdstring Number of shipment item.
fieldsobject Fields, corresponding to available list of fields.


Examples

BX24.callMethod(
    'sale.shipment.update', 
    {
	  id: 34,
	  fields: {		 
		deducted: 'N',
		deliveryDocNum: '000000001',
		trackingNumber: '0000000002',
		comments: 'Comments',
		statusId: 'DN',
		responsibleId: '1',
		deliveryId: '1',
		customPriceDelivery: 'N',
		priceDelivery: '500',
		allowDelivery: 'Y',
		basePriceDelivery: '500'
	}, 
    function(result)
    {
        if(result.error())
            console.error(result.error().ex);
        else
            console.log(result.data());
	});


© «Bitrix24», 2001-2022
Up