fbpx
3.15 Add row/item to operation


Connection URL

TEST URL  http://nap.dev.icash.bg/clientapi/v1/add-operation-sale-item
( AL )PRODUCTION URL  https://v1.icash.al/clientapi/v1/add-operation-sale-item
( BG ) PRODUCTION URL https://v5.icash.bg/clientapi/v1/add-operation-sale-item

 

POST REQUEST

Param Description Field type Required
api_key API Key String YES
nonce Nonce Integer YES
signature Signature String YES
ses Session indentificator String YES
OperationID Operation Indentificator  Integer YES
SaleItemID* Item Indentificator Integer YES
SaleItemInventoryID* Item Inventory number  String(20) YES
Qty Quantity DECIMAL(10,5) YES
SaleItemSinglePrice Unit price with VAT DECIMAL(10,5) YES
SaleItemDiscount Discount in % DECIMAL(4,2) No

* – if haven’t  SaleItemID Required YES , if have  SaleitemInventoryID – opposite

 

JSON response on success

Param Description Field type Required
nonce Nonce from request Integer YES
status Request status Integer

1 – successful

YES
data Result result YES

 

Structure of type “result

Param Description Field type Required
OperationSaleItemID Row Indentificator Integer YES

 

Example:

{
    „nonce“: „1553075920“,
    „status“: 1,
    „data“: {
        „OperationSaleItemID“: 86663
    }
}

 

JSON response on unsuccess

Param Description Field type Required
nonce Nonce from request Integer YES
status Request status Integer

0 – unsuccess request

YES
error_message Error Description String YES

 

Example:

{
    „nonce“: „1553075918“,
    „status“: 0,
    „error_message“: „Wrong value for OperationID“
}

 

Безплатна консултация



Безплатна консултация



Безплатна консултация




Безплатна консултация




Безплатна консултация




Безплатна консултация