Documentation

sale.shipment.add

sale.shipment.add(fields)

The method adds shipment item.

When successful, returns shipment resource in response body.

Parameters

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


Examples

BX24.callMethod(
    'sale.shipment.add', 
    {
	  fields: {
			orderId: 81,
			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