Transactions

Transaction is used for invoices and for payments

Get list of Transactions

GET https://api.rnetpos.com/v1/transactions

Query Parameters

Name
Type
Description

from_date

string

to_date

string

Get Single Transactions By Transaction Number

GET https://api.rnetpos.com/v1/transactions/no/{transaction number}

Path Parameters

Name
Type
Description

no

string

{
    "ItemEntries": [
        {
            "TransactionEntryId": "1d037ad2-ca94-49be-8a17-62a091b6e88b",
            "ItemStoreId": "fb8b604e-81fe-446e-b0d1-db11f6647d3a",
            "Sort": 1,
            "EntryType": 0,
            "EntryDescription": "אני יכול לבד",
            "Item": {
                "ItemID": "071ebe03-698b-4d5d-8252-63fd3437c07e",
                "Name": "אני יכול לבד ",
                "BarcodeNumber": "7290107817714",
                "ModelNumber": null,
                "Description": null,
                "GeneralPrice": 30,
                "ERPCode": null
            },
            "Qty": 1,
            "Price": 30,
            "Total": 30,
            "BeforeDiscount": 30,
            "DiscountOnEntryPerc": null,
            "DiscountOnEntryAmount": null,
            "UOMType": null,
            "UOMQty": null,
            "SaleCode": null,
            "ChangePriceReason": null,
            "ParentTransactionEntry": null,
            "Cost": 17.99,
            "Tax": 4.359,
            "AVGCost": null,
            "Note": null,
            "DepartmentID": null,
            "MainGroupID": null,
            "DiscountOnTotalPerc": null,
            "DiscountOnTotalAmount": 0,
            "Status": 1,
            "ReturnTEntryID": null,
            "PriceADisc": 30,
            "BeforeTax": 25.641,
            "TaxRate": 17,
            "NewZTables": false,
            "PromotionID": null,
            "CapsuleQty": null,
            "IfItemFromReceipt": false,
            "CustomerOrderID": 0,
            "CustomerOrderLineIdx": 0,
            "ChooseType": 0,
            "ItemSerialId": null,
            "TempItemName": null,
            "PriceAItemDisc": 30,
            "ExternalNum": null,
            "TotalOriginalPrice": 30,
            "TotalFinalPriceBeforeTax": null,
            "DiscountPercentage": 99.1453,
            "TotalFinalPrice": null,
            "TotalDiscount": null
        },
        {
            "TransactionEntryId": "a4b75e87-a373-4c3e-a4d5-68457c39c0de",
            "ItemStoreId": "239e485c-625a-485e-add8-66c14e8ba06f",
            "Sort": 2,
            "EntryType": 0,
            "EntryDescription": "כיף ללכת לגן",
            "Item": {
                "ItemID": "096499d9-e702-403a-b894-645cc69e6600",
                "Name": "כיף ללכת לגן ",
                "BarcodeNumber": "7290107814904",
                "ModelNumber": null,
                "Description": null,
                "GeneralPrice": 50,
                "ERPCode": null
            },
            "Qty": 1,
            "Price": 30,
            "Total": 30,
            "BeforeDiscount": 30,
            "DiscountOnEntryPerc": null,
            "DiscountOnEntryAmount": null,
            "UOMType": null,
            "UOMQty": null,
            "SaleCode": null,
            "ChangePriceReason": null,
            "ParentTransactionEntry": null,
            "Cost": 17.995,
            "Tax": 4.359,
            "AVGCost": null,
            "Note": null,
            "DepartmentID": null,
            "MainGroupID": null,
            "DiscountOnTotalPerc": null,
            "DiscountOnTotalAmount": 0,
            "Status": 1,
            "ReturnTEntryID": null,
            "PriceADisc": 30,
            "BeforeTax": 25.641,
            "TaxRate": 17,
            "NewZTables": false,
            "PromotionID": null,
            "CapsuleQty": null,
            "IfItemFromReceipt": false,
            "CustomerOrderID": 0,
            "CustomerOrderLineIdx": 0,
            "ChooseType": 0,
            "ItemSerialId": null,
            "TempItemName": null,
            "PriceAItemDisc": 30,
            "ExternalNum": null,
            "TotalOriginalPrice": 30,
            "TotalFinalPriceBeforeTax": null,
            "DiscountPercentage": 99.1453,
            "TotalFinalPrice": null,
            "TotalDiscount": null
        }
    ],
    "DiscountEntries": [],
    "CashTenders": [],
    "CHTenders": [],
    "CCTenders": [
        {
            "TenderEntryId": "1eb8b26f-d2d5-49ea-864a-a4ce5baf1363",
            "Tender": {
                "TenderID": 3,
                "TenderName": "Credit Card"
            },
            "Amount": 60,
            "Date": "2018-09-30 09:09:49Z",
            "No": "6987",
            "CCIsure": 6,
            "CreditType": "LeumiCard",
            "CCExpDate": "0587",
            "CCTransmissionNo": "06333543",
            "MutagCompany": null,
            "CCTenderERPCode": null,
            "Status": 1,
            "CVV": null,
            "CCFirstPaySum": null,
            "CCRestPaySum": null,
            "ApprovalCode": "0024338",
            "CChargeType": 0,
            "PayNumber": null,
            "TZ": null,
            "SolekCompany": 2,
            "CCCreditSubType": 1,
            "EncodedCCNumber": null
        }
    ],
    "CustomTenders": [],
    "TransactionId": "a4ed4fa7-89a6-4633-a375-00044913e26b",
    "TransactionNo": "2-103176",
    "TransactionERPCode": null,
    "Store": {
        "StoreId": "dea6fe69-50e3-4811-819e-6a615a2652a7",
        "StoreName": "סניף באר שבע",
        "Code": "6"
    },
    "ZNo": "6-1784",
    "Total": 60,
    "TotalBeforeTax": 51.282,
    "TotalBeforeDisc": 60,
    "TransactionType": 0,
    "TaxId": "b44ec60b-e8f0-4497-9d0c-d8dbebaffc48",
    "Tax": 8.718,
    "TaxRate": 17,
    "SaleTime": "2018-09-30 09:09:23Z",
    "CouponAmount": null,
    "Rounding": 0,
    "RecieptTxt": null,
    "PrintingXml": null,
    "Register": {
        "RegisterId": "c010edb2-18ae-4b73-8f9e-aef91ed8b889",
        "RegisterName": "RAMOT",
        "Code": "2"
    },
    "Note": null,
    "Status": null,
    "Modifier": {
        "UserId": "b00544db-9fd3-4c8b-a6e6-c54ce3a2fe17",
        "UserNo": "2",
        "Name": "חיה לוי",
        "UserERPCode": null
    },
    "SerialNo": null,
    "VoidTransactionID": null,
    "XID": null,
    "PGT": 0,
    "IsExtended": null,
    "OnHoldID": null,
    "SimplyCulbNo": null,
    "PrivateNumber": null,
    "InvitationComparePrintText": null,
   "Customer": {
        "CustomerID": "ee7dfb15-9f09-457a-974e-cac4e6d58585",
        "CustomerNo": "10002333",
        "FirstName": "ישראל",
        "LastName": "כהן",
        "Club": {
            "ClubId": "d3349c2b-817c-4336-9bea-c261b5b4d564",
            "ClubName": "סימפלי קלאב",
            "ClubCode": 2,
            "ClubPoints": 45.8,
            "ClubNo": "14302653",
            "ClubExpDate": "2018-04-03T00:00:00",
            "ClubStartDate": null,
            "ClubValid": false
        },
        "Address": {
            "CustomerAddressID": "8b18b067-3a7e-43c5-a4a9-1a5126a4d091",
            "Street": "הזית 2",
            "City": "ירושלים",
            "PhoneNo": "0532433644"
        },
        "BirthDay": "1986-12-09T00:00:00",
        "WeddAnniversary": null,
        "SpouseName": null,
        "SpouseBirthDay": null,
        "DateCreated": null,
        "DateModified": "2019-01-17T12:25:56.983",
        "AgreeEMAIL": null,
        "AgreeSMS": null,
        "CustomerERPCode": null,
        "StoreCreated": "5f20e99a-99a8-4f84-91dd-ba2b4e973c8d",
        "IdentityNo": "300741329",
        "CustomerType": 3,
        "FaxNumber": null,
        "Current": 0,
        "Status": 1,
        "BalanceDoe": null
    },
    "Seller": {
        "UserId": "b00544db-9fd3-4c8b-a6e6-c54ce3a2fe17",
        "UserNo": "2",
        "Name": "חיה לוי",
        "UserERPCode": null
    },
    "GroupTourist": null,
    "TaxableTotal": 51.282,
    "TaxFreeTotal": 0
}

Create New Transaction

POST http://api.rnet-tec.com/v1/transactions

Query Parameters

Name
Type
Description

upsert_items

boolean

upsert_customer

boolean

Request Body

Name
Type
Description

object

Transaction object

The Default TransactionType is a Paid Invoice (0) (payment included within the Invoice)

Example of Paid Invoice transaction:

{
    "ItemEntries": [
        {
            "EntryType": 0,
            "EntryDescription": "אגדת השועל ובת המלך - משלי חיות מרתקים",
            "Item": {
                "BarcodeNumber": "123"
            },
            "Qty": 2,
            "Price": 20,
            "Total": 40,
            "Cost": 0,
            "Note": null
        },
        {
            "EntryType": 0,
            "EntryDescription": "שיקאסטה / דורית לסינ",
            "Item": {
                "BarcodeNumber": "3200118186"
            },
            "Qty": 1,
            "Price": 15,
            "Total": 15,
            "Cost": 0,
            "Note": null
        }
    ],
    "CashTenders": [
        {
            "Tender": {
                "TenderID": 1
            },
            "Amount": 11
        }
    ],
     "CCTenders": [
        {
            "Tender": {
                "TenderID": 3
            },
            "Amount": 44.9,
            "No": "6777",
            "CCIsure": 6,
            "CreditType": "LeumiCard",
            "CCExpDate": "0924",
            "CCFirstPaySum": 22.45,
            "CCRestPaySum": 22.45,
            "ApprovalCode": "0021737",
            "PayNumber": 2,
            "TZ": null,
            "CCCreditSubType": 1
        }
    ],
    "TransactionNo": "90-49",
    "TransactionERPCode": null,
    "Total": 55,
    "TotalBeforeTax": 47.0085,
    "TotalBeforeDisc": 55,
    "TransactionType": 0,
    "Tax": 7.9915,
    "SaleTime": "2019-02-10 13:13:46Z",
    "Rounding": 0,
     "Store": {
        "Code": "1"
    },
    "Register": {
        "Code": "9"
    },
    "Note": null,
    "Modifier":  {
        "UserNo": "2"
    },
    "TaxableTotal": 47.0085,
     "Customer": {
        "CustomerNo": "7986"
     }
}

Example of a transaction with discount per item:

{
    "ItemEntries": [
        {
            "EntryType": 0,
            "EntryDescription": "בקבוק",
            "Item": {
                "BarcodeNumber": "3200202632"
            },
            "Qty": 2,
            "Price": 20,
            "Total": 40,
            "Cost": 0,
            "Discount": [
                {
                    "DiscountDescription": "הנחה 5 ש"ח",
                    "DiscAmount": 5
                }
            ]
        },
        {
            "EntryType": 0,
            "EntryDescription": "ספר",
            "Item": {
                "BarcodeNumber": "3200018288"
            },
            "Qty": 1,
            "Price": 74,
            "Total": 74,
            "Cost": 0,
            "Discount": [
                {
                    "DiscountDescription": "הנחה 5%",
                    "DiscPercent": 5
                }
            ]
        }
    ],
    "CashTenders": [
        {
            "Amount": 100.3,
            "Date": "2019-02-11 08:06:50Z"
        }
    ],
    "CHTenders": [],
    "CCTenders": [],
    "CustomTenders": [],
    "TransactionNo": "90-77",
    "Store": {
        "Code": "1"
    },
    "Total": 100.3,
    "Tax": 14.5735,
    "TotalBeforeTax": 85.7265,
    "TotalBeforeDisc": 114,
    "TransactionType": 0,
    "SaleTime": "2019-02-11 08:05:40Z",
    "Rounding": 0,
    "TaxableTotal": 85.7265
}

Examples of discount per transaction:

1.

{
    "ItemEntries": [
        {
            "EntryType": 0,
            "EntryDescription": "בקבוק",
            "Item": {
                "BarcodeNumber": "3200202632"
            },
            "Qty": 2,
            "Price": 20,
            "Total": 40,
            "Cost": 0
        },
        {
            "EntryType": 0,
            "EntryDescription": "ספר",
            "Item": {
                "BarcodeNumber": "3200118186"
            },
            "Qty": 1,
            "Price": 15,
            "Total": 15,
            "Cost": 0
        }
    ],
    "DiscountEntries": [],
    "CashTenders": [
        {
            "Amount": 45,
            "Date": "2019-02-11 08:26:10Z"
        }
    ],
    "CHTenders": [],
    "CCTenders": [],
    "CustomTenders": [],
    "TransactionNo": "90-78",
    "Store": {
        "Code": "1"
    },
    "Total": 45,
    "TotalBeforeTax": 38.4616,
     "Tax": 6.5384,
    "TotalBeforeDisc": 55,
    "TransactionType": 0,
    "SaleTime": "2019-02-11 08:25:47Z",
    "Rounding": 0,
    "Register": {
        "Code": "9"
    },
    "TaxableTotal": 38.4616,
    "Discount": {
        "DiscountDescription": "הנחה ₪ 10.00",
        "DiscAmount": 10
    }
}

2.

{
    "ItemEntries": [
        {
            "EntryType": 0,
            "EntryDescription": "בקבוק",
            "Item": {
                "BarcodeNumber": "3200202632"
            },
            "Qty": 2,
            "Price": 20,
            "Total": 40,
            "Cost": 0
        },
        {
            "EntryType": 0,
            "EntryDescription": "ספר",
            "Item": {
                "BarcodeNumber": "3200118186"
            },
            "Qty": 1,
            "Price": 15,
            "Total": 15,
            "Cost": 0
        }
    ],
    "DiscountEntries": [],
    "CashTenders": [
        {
            "Amount": 49.5,
            "Date": "2019-02-11 08:34:46Z"
        }
    ],
    "CHTenders": [],
    "CCTenders": [],
    "CustomTenders": [],
    "TransactionNo": "90-79",
    "Store": {
        "Code": "1"
    },
    "Total": 49.5,
    "TotalBeforeTax": 42.3077,
    "TotalBeforeDisc": 55,
    "TransactionType": 0,
    "Tax": 7.1923,
    "SaleTime": "2019-02-11 08:34:26Z",
    "Rounding": 0,
    "Register": {
        "Code": "9"
    },
    "TaxableTotal": 42.3077,
    "Discount": {
        "DiscountDescription": "הנחה 10% ",
        "DiscPercent": 10
    }
}

Example of standard invoice (15) (payment is not included within the Invoice)

{
    "ItemEntries": [
        {
            "Sort": 1,
            "Item": {
                "Name": "Item1",
                "ERPCode": null
            },
            "Qty": 1,
            "Price": 1,
            "Total": 1
        },
         {
            "Sort": 2,
            "Item": {
                "Name": "Item2",
                "ERPCode": null
            },
            "Qty": 2,
            "Price": 2,
            "Total": 2
        }
    ],
    "TransactionNo": "1-1",
    "TransactionERPCode": "1-1",
    "Store": {
         "Code": "1"
       },
   "Total": 1,
   "transactionType":15,
    "Customer": {
          "LastName": "Customer1",
          "CustomerERPCode": null

       }
}

Example of Transaction Type Payment (14)

{
    "TransactionNo": "1-2",
    "TransactionERPCode": "1-2",
    "Store": {
         "Code": "1"
       },
   "Total": 1,
   "transactionType":14,
    "Customer": {
          "LastName": "Customer1",
          "CustomerERPCode": null

       }, 
      "CashTenders": [
        {
            "Amount": 45
        }
    ],
     "CHTenders": [],
    "CCTenders": [],
    "CustomTenders": []
}

Example of Transaction Type Delivery Note (16 - updates inventory only)

Note - ERP Code is not needed - it is a good practice to hold there the web site or accounting system internal transaction code

 {  
    "TransactionNo": "1-2",
    "TransactionERPCode": "1-2",
    "TransactionType": 16,
    "Store": {
        "Code": "2"
    },
    "Register": {
        "Code": "10"
    },
     "ItemEntries": [
        {
            "EntryType": 0,
            "Item": {
                "BarcodeNumber": "1111111111"
            },
            "Qty": 10,
            "Price": 20,
            "Total": 40,
            "Cost": 0,
            "Note": null
        }
    ]
}

Last updated

Was this helpful?