login - първо се извиква функция за вход която връща сесия.
URL:https://v5.icash.bg/clientapi/v1/login
array (
'api_key' => '90alm54bg26voiq9jfgwxo38kfro513b',
'nonce' => 1713970546,
'signature' => '9C2E57DFB59EA9E37AA7C2FD7FFE7B4254026CB685F6E8E5CCDA32BF7E15E4F9',
'WareHouseID' => '11174',
'UserID' => '2',
)''
Добавяне на артикул
URL:https://v5.icash.bg/clientapi/v1/add-sale-item
array (
'api_key' => '90alm54bg26voiq9jfgwxo38kfro513b',
'nonce' => 1713970547,
'signature' => '39265AADFB2530E9FE509A9E5E2722186AD22D52BFC30830577278AC81EEB70A',
'WareHouseID' => '11174',
'UserID' => '2',
'ses' => NULL,
'SaleItemBarcode' => '34443',
'SaleItemInventoryID' => '34443',
'SaleItemName' => 'СУПЕр е 34443',
'SaleItemType' => 'PRODUCT',
'SaleItemCashRegisterName' => 'Мед от злато номер 34443',
'SaleItemPrimaryMeasureUnitID' => '1',
'SaleItemTaxGroupID' => '1',
'SaleItemSellPrice' => '2.00',
)'{"nonce":"1713970547","status":0,"error_message":"Missing value for ses"}'
Добавяне на контрагент
URL:https://v5.icash.bg/clientapi/v1/add-contragent
array (
'api_key' => '90alm54bg26voiq9jfgwxo38kfro513b',
'nonce' => 1713970548,
'signature' => '0878E9C279FD3ADFBCD33F2CF7AD3724C8B9648AF025064C463731907C307782',
'WareHouseID' => '11174',
'UserID' => '2',
'ses' => NULL,
'ContragentName' => 'Иван Иванов',
'ContragentType' => 'CLIENT',
'ContragentCountryCode' => 'BG',
'ContragentCityName' => 'София',
'ContragentTaxNum' => 'BG131047312',
'ContragentVatRegistered' => '1',
'ContragentAddress' => 'София',
'ContragentPhone' => '0889447481',
)'{"nonce":"1713970548","status":0,"error_message":"Missing value for ses"}'
Създаване на нова операция
URL:https://v5.icash.bg/clientapi/v1/new-operation
array (
'api_key' => '90alm54bg26voiq9jfgwxo38kfro513b',
'nonce' => 1713970550,
'signature' => 'AD5DE102986C6DA0E7241EB2F8CE6C6A269EF6B3A4909E0CB36AC29FAAE1E2B1',
'WareHouseID' => '11174',
'UserID' => '2',
'ses' => NULL,
'ImportSource' => 'Lotarry',
'ImportRefID' => '344432',
'OperationType' => 'Sell',
'CashRegisterID' => '2',
'StoreID' => '1',
'ContragentID' => 0,
)'{"nonce":"1713970550","status":0,"error_message":"Missing value for ses"}'
Добавяне на артикул към операцията
Приключване на операцията