» Support » Entwicklerdokumentation » Get Current Transaction

Get Current Transaction

Method

await r7Connector.getCurrentTransaction();

Parameters

/

Description

Returns the currently open retail transaction which complies to the ARTS Retail Transaction standard with custom extensions. Can be only called when an open retail transaction exists.

High level example response object:


{
Barcode: "0011001202206161001000005"
BeginDateTime: "2022-06-16T05:19:39.000Z",
BusinessDayDate: "2022-06-16T05:19:39.000Z",
BusinessUnit: {UnitID: {…}, Address: {…}, …},
CurrencyCode: "EUR",
DataStructureVersion: 1,
JournalTypeCode: "RetailTransaction",
OperatorID: {WorkerID: "1001", …},
OrgUnitID: "Nl525ju_4",
OrganizationHierarchy: [],
ReceiptDateTime: 2022-06-16T05:19:39.000Z,
ReceiptDateTimeWithTimezone: "2022-06-16T07:19:39.717+02:00",
ReceiptNumber: "5",
RetailTransaction: {LineItem: […], …},
StoreOrgUnitID: "Nl525ju_4",
TillID: "1001",
TrainingModeFlag: false,
TransactionID: "1001202206161001000005",
TypeCode: "SaleTransaction",
VATRegistrationNumber: "123",
WorkstationID: {value: "1001", …},
meta: {…},
}