Documentation

sale.payment.add

sale.payment.add(fields.orderId, fields.payment)

The method adds payment item.

When successful, returns payment resource in response body.

Parameters

ParameterType Description
fields.orderIdobject Order number.
fields.paymentobject Fields, corresponding to available list of fields.


Examples

BX24.callMethod(
    'sale.payment.add', 
    {
	  fields: {
		  orderId: 33,
		  sum: 200,
		  paid: N,		  
		  comments: 'Comment',
		  paySystemId: 3,
		  responsibleId: 1,
		  payVoucherNum: '000000001'
		}
	}, 
    function(result)
    {
        if(result.error())
            console.error(result.error().ex);
        else
            console.log(result.data());
});


© «Bitrix24», 2001-2024