Documentation

catalog.documentcontractor.delete

Scope: catalog Permissions to execute: for all

catalog.documentcontractor.delete(id)

Method deletes CRM entity binding (Contact/Company) to an inventory object/document by a binding ID.

On success, returns true in response body.

Case, when may return errors:

  • where there's no access to inventory management, no access to view stock receipts or no access to edit stock receipt (binding adding/deleting is also deemed as editing action);
  • binding not found with defined ID.

Parameters

ParameterType Description
idinteger CRM entity (Contact/Company) binding ID to inventory document/document.

Examples

BX.rest.callMethod(
    'catalog.documentcontractor.delete',
    { id: 20 },
    function(result) {
       if (result.error())
           console.error(result.answer.error_description);
       else
           console.log(result.data());
});

© «Bitrix24», 2001-2024