Xilnex API Guide for 3rd party

Xilnex API Guide for 3rd party

1. Objective

The objective of this API guide is to provide a clear reference for developers and integration partners on how to utilize the Xilnex APIs to establish communication with the Xilnex system. The guide outlines the available endpoints, required parameters, authentication methods, and usage examples to enable seamless data exchange between Xilnex and external systems.


2. Xilnex API overview 


Authentication 

Any web API call that accesses a resource that requires authentication token in the header. To do this, specify a HTTP header in the following format: *Get your account API token from https://developer.xilnex.com

Sample format for API token

  • appid: W1Y0AKP8yrhzduKd3sh51uV2Fwj
  • token:i+bpQ+QBHvWybAyMVQndkaxwWPEa6sHw
  • auth: 5


*Request authentication API token from Xilnex Team

Idempotency key in API request

The API supports idempotency to prevent performing the same operation twice. This is useful when a POST method API is called but you do not receive a response. For example, when you call the create sales invoice API but does not receive respond due to network connection error or server timeout, you can retry the API request with the same idempotency key to verify whether the sinvoice record already created. Please take note idempotency key validity period is 120min.   

To perform an idempotent request, provide an additional Idempotency Key header to the request, as follows:

  • appid: W1Y0AKP8yrhzduKd3sh51uV2Fwj
  • token:i+bpQ+QBHvWybAyMVQndkaxwWPEa6sHw
  • auth: 5
  • Idempotency_Key:4aecafe3-04f1-4a0b-bd7c-686ea2822627



3. Sync Product / Item master

The Sync Item API supports synchronization of item master information to ensure consistency and accuracy across all integrated platforms. This includes product details such as item code, product name, description, category classification, pricing structure, product images, unit of measurement (UOM), taxation settings and etc. 

By synchronizing this information centrally, the system minimizes data discrepancies, maintains standardized pricing and tax treatment, and ensures that all sales channels operate using the same, up-to-date product information. This improves operational efficiency, reporting accuracy, and integration reliability across systems.


The third-party system must implement a scheduled polling mechanism (for example, every 1 minutes) to call the Sync item API using the last successfully synchronized timestamp as param. The API response will return sitem records with an update timestamp greater than the provided value in the Xilnex item master, allowing the external system to retrieve only newly updated records and perform incremental item synchronization efficiently.


Reference URL : https://developers.xilnex.com/docs/xilnex-developers/1f256df2344ec-sync-items

API end points : https://api.xilnex.com/apps/v2/sync/items

API Action : GET 


Usage guides: 

  1. Perform sync Item API for first time with starttimestamp=0x00
  1. System response item information in partial based on API records limit. 
  1. Capture and save the lastTimestamp returned by API response. (Eg from sample 0x0000000159EBC29F)
  1. Perform subsequence  API call item call with starttimestamp = lasttimestamp from last API call as indication the data is up-to date. 
  1. Repeat the process 3-4 by defined period.  eg : every 5mins  



Plain Text
1st time request 
curl --location 'https://api.xilnex.com/apps/v2/sync/items?starttimestamp=0x00' \
--header 'Appid: 7q6ZICVIX7GEBLAr47MCiatFDV2H' \
--header 'token: T7B6hfqlmOb/4P/Hvdd72hEJ/WBpk98FRrtzZV' \
--header 'auth: 5' \
--data ''


JSON
1st time response
{
   "ok": true,
   "status": "SuccessQuery",
   "warning": null,
   "error": null,
   "data": {
       "lastTimestamp": "0x0000000159EBC29F",
       "items": [
           {
               "id": 270276,
               "itemCode": "2001-RW",
               "itemName": "SUGAR 1KG",
               "itemType": "",
               "itemModel": "",
               "alternateLookup": "270276",
               "description": "",
               "brand": "",
               "category": "RAW MATERIAL",
               "departmentCode": "",
               "departmentName": null,
               "vendorCode": "",
               "cost": 4.0000,
               "suggestedPrice": 0.0000,
               "salesPrice": 0.0000,
               "employeePrice": 0.0000,
               "wholesalesPrice": 0.0000,
               "customPrice": 0.0000,
               "webPrice": 0.0000,
               "webDealerPrice": 0.0000,
               "attribute": "",
               "size": "",
               "stockType": "Normal",
               "matrixXGroup": "",
               "matrixYGroup": "",
               "groupName": "",
               "promotionGroup": "",
               "customField1": "",
               "customField2": "",
               "customField3": "",
               "customField4": "",
               "customField5": "",
               "customField6": "",
               "customField7": "",
               "customField8": "",
               "customField9": "",
               "customField10": "",
               "customField11": "",
               "customField12": "",
               "customField13": "",
               "customField14": "",
               "customField15": "",
               "customField16": null,
               "customField17": null,
               "customField18": null,
               "averageCost": 0.0,
               "gstRate": 0.0000,
               "gstSupplyCode": "SST0",
               "gstPurchaseCode": "VAT-0",
               "image": null,
               "sellingPrice": 0.0,
               "barcode": null,
               "foc": false,
               "articleNumber": null,
               "color": "",
               "division": "",
               "weight": 10.0000,
               "height": 0.0000,
               "length": 0.0000,
               "width": 0.0000,
               "packQuantity": 0,
               "unitOfMeasurement": "KG",
               "isOpenPrice": false,
               "isFoc": false,
               "isReturnable": true,
               "isDisable": false,
               "allowSellingWithoutStock": true,
               "goGlobal": false,
               "excludeServiceCharge": false,
               "discountRate": "0.00",
               "deleted": false,
               "batchControl": false,
               "uomFactor": 1.0000,
               "tariffCode": null,
               "tariffDescription": null,
               "isBranchAssortment": false,
               "isLocalPrice": false,
               "isPrint": false,
               "expiryCalculation": 0,
               "activePrice": "0",
               "dayBeforeExpiry": 0,
               "shelfLifeInDays": 0,
               "productMatrixInfo": null,
               "uniqueItemInfo": null,
               "subItems": null,
               "listImageURLs": [],
               "barcodeList": null,
               "multiUomList": null,
               "listPackage": null,
               "purchaseUnavailableRemark": "",
               "itemQuantityDecimalPoint": -1.0000,
               "packageWeight": 0.0000,
               "alertIntervalBeforeExpiry": 0,
               "expiryDuration": 0,
               "minimumQuantity": 0.0,
               "foodStockPackageItemId": null,
               "enableFoodStockPreparation": false,
               "eLHDNClassificationCode": "022",
               "eLHDNTaxType": "01",
               "eLHDNCountryCode": null,
               "eLHDNPurchaseTaxType": "06",
               "eLHDNPurchaseClassificationCode": "022",
               "isPackage": false,
               "isPostPack": false,
               "additionalItemType": "",
               "enableRFID": false,
               "pointFactor": 0.0000
           },
           {
               "id": 270280,
               "itemCode": "2001-RW-BAG",
               "itemName": "SUGAR 25KG",
               "itemType": "BAG",
               "itemModel": "",
               "alternateLookup": "",
               "description": "",
               "brand": "",
               "category": "RAW MATERIAL",
               "departmentCode": "",
               "departmentName": null,
               "vendorCode": "",
               "cost": 100.0000,
               "suggestedPrice": 0.0000,
               "salesPrice": 0.0000,
               "employeePrice": 0.0000,
               "wholesalesPrice": 0.0000,
               "customPrice": 0.0000,
               "webPrice": 0.0000,
               "webDealerPrice": 0.0000,
               "attribute": "",
               "size": "",
               "stockType": "Postpack",
               "matrixXGroup": "",
               "matrixYGroup": "",
               "groupName": "",
               "promotionGroup": "",
               "customField1": "",
               "customField2": "",
               "customField3": "",
               "customField4": "",
               "customField5": "",
               "customField6": "",
               "customField7": "",
               "customField8": "",
               "customField9": "",
               "customField10": "",
               "customField11": "",
               "customField12": "",
               "customField13": "",
               "customField14": "",
               "customField15": "",
               "customField16": null,
               "customField17": null,
               "customField18": null,
               "averageCost": 0.0,
               "gstRate": 0.0000,
               "gstSupplyCode": "SST0",
               "gstPurchaseCode": "VAT-0",
               "image": null,
               "sellingPrice": 0.0,
               "barcode": null,
               "foc": false,
               "articleNumber": null,
               "color": "",
               "division": "",
               "weight": 10.0000,
               "height": 0.0000,
               "length": 0.0000,
               "width": 0.0000,
               "packQuantity": 6,
               "unitOfMeasurement": "BAG",
               "isOpenPrice": false,
               "isFoc": false,
               "isReturnable": true,
               "isDisable": false,
               "allowSellingWithoutStock": true,
               "goGlobal": false,
               "excludeServiceCharge": false,
               "discountRate": "0.00",
               "deleted": false,
               "batchControl": false,
               "uomFactor": 0.0000,
               "tariffCode": null,
               "tariffDescription": null,
               "isBranchAssortment": false,
               "isLocalPrice": false,
               "isPrint": false,
               "expiryCalculation": 0,
               "activePrice": "0",
               "dayBeforeExpiry": 0,
               "shelfLifeInDays": 0,
               "productMatrixInfo": null,
               "uniqueItemInfo": null,
               "subItems": null,
               "listImageURLs": [],
               "barcodeList": null,
               "multiUomList": null,
               "listPackage": null,
               "purchaseUnavailableRemark": "",
               "itemQuantityDecimalPoint": -1.0000,
               "packageWeight": 0.0000,
               "alertIntervalBeforeExpiry": 0,
               "expiryDuration": 0,
               "minimumQuantity": 0.0,
               "foodStockPackageItemId": null,
               "enableFoodStockPreparation": false,
               "eLHDNClassificationCode": "022",
               "eLHDNTaxType": "01",
               "eLHDNCountryCode": null,
               "eLHDNPurchaseTaxType": "06",
               "eLHDNPurchaseClassificationCode": "022",
               "isPackage": true,
               "isPostPack": true,
               "additionalItemType": "",
               "enableRFID": false,
               "pointFactor": 0.0000
           },
           {
               "id": 83028,
               "itemCode": "2001-RW-CTN",
               "itemName": "SUGAR 10KG / CTN ",
               "itemType": "CTN",
               "itemModel": "",
               "alternateLookup": "83028",
               "description": "",
               "brand": "",
               "category": "RAW MATERIAL",
               "departmentCode": "",
               "departmentName": "",
               "vendorCode": "",
               "cost": 40.0000,
               "suggestedPrice": 0.0000,
               "salesPrice": 0.0000,
               "employeePrice": 0.0000,
               "wholesalesPrice": 0.0000,
               "customPrice": 0.0000,
               "webPrice": 0.0000,
               "webDealerPrice": 0.0000,
               "attribute": "",
               "size": "",
               "stockType": "Postpack",
               "matrixXGroup": null,
               "matrixYGroup": null,
               "groupName": "",
               "promotionGroup": null,
               "customField1": "",
               "customField2": "",
               "customField3": "",
               "customField4": "",
               "customField5": "",
               "customField6": "",
               "customField7": "",
               "customField8": "",
               "customField9": "",
               "customField10": "",
               "customField11": "",
               "customField12": "",
               "customField13": "",
               "customField14": "",
               "customField15": "",
               "customField16": null,
               "customField17": null,
               "customField18": null,
               "averageCost": 0.0,
               "gstRate": 0.0000,
               "gstSupplyCode": "SST0",
               "gstPurchaseCode": "VAT-0",
               "image": null,
               "sellingPrice": 0.0,
               "barcode": null,
               "foc": false,
               "articleNumber": null,
               "color": null,
               "division": "",
               "weight": 10.0000,
               "height": 0.0000,
               "length": 0.0000,
               "width": 0.0000,
               "packQuantity": 0,
               "unitOfMeasurement": "CTN",
               "isOpenPrice": false,
               "isFoc": false,
               "isReturnable": true,
               "isDisable": false,
               "allowSellingWithoutStock": true,
               "goGlobal": false,
               "excludeServiceCharge": false,
               "discountRate": null,
               "deleted": false,
               "batchControl": false,
               "uomFactor": 1.0000,
               "tariffCode": null,
               "tariffDescription": null,
               "isBranchAssortment": false,
               "isLocalPrice": false,
               "isPrint": false,
               "expiryCalculation": 0,
               "activePrice": "0",
               "dayBeforeExpiry": 0,
               "shelfLifeInDays": 0,
               "productMatrixInfo": null,
               "uniqueItemInfo": null,
               "subItems": null,
               "listImageURLs": [],
               "barcodeList": null,
               "multiUomList": null,
               "listPackage": null,
               "purchaseUnavailableRemark": null,
               "itemQuantityDecimalPoint": -1.0000,
               "packageWeight": 0.0000,
               "alertIntervalBeforeExpiry": 0,
               "expiryDuration": 0,
               "minimumQuantity": 0.0,
               "foodStockPackageItemId": null,
               "enableFoodStockPreparation": false,
               "eLHDNClassificationCode": "022",
               "eLHDNTaxType": "06",
               "eLHDNCountryCode": null,
               "eLHDNPurchaseTaxType": "06",
               "eLHDNPurchaseClassificationCode": "022",
               "isPackage": true,
               "isPostPack": true,
               "additionalItemType": "",
               "enableRFID": false,
               "pointFactor": 0.0000
           }
               ]
           }
}


Plain Text
2nd time request
curl --location 'https://api.xilnex.com/apps/v2/sync/items?starttimestamp=0x0000000159EBC29F' \
--header 'Appid: 7q6ZICVIX7GEBLAr47MCiatFDV2HP' \
--header 'token: T7B6hfqlmOb/4P/Hvdd72hEJ/WBpk98FRrtzZVq' \
--header 'auth: 5' \
--data ''


JSON
2nd time respond
{
   "ok": true,
   "status": "SuccessQuery",
   "warning": null,
   "error": null,
   "data": {
       "lastTimestamp": "0x0000000159EBC5F3", //new timestamp 
       "items": [
           {
               "id": 104689,
               "itemCode": "BUF2140018",
               "itemName": "BUFF INFINITY LYOCELL ATENSI",
               "itemType": null,
               "itemModel": null,
               "alternateLookup": null,
               "description": null,
               "brand": null,
               "category": "BUF",
               "departmentCode": null,
               "departmentName": null,
               "vendorCode": null,
               "cost": 73.8000,
               "suggestedPrice": 0.0000,
               "salesPrice": 129.9000,
               "employeePrice": 0.0000,
               "wholesalesPrice": 0.0000,
               "customPrice": 0.0000,
               "webPrice": 0.0000,
               "webDealerPrice": 0.0000,
               "attribute": null,
               "size": null,
               "stockType": "Normal",
               "matrixXGroup": "",
               "matrixYGroup": "",
               "groupName": null,
               "promotionGroup": null,
               "customField1": null,
               "customField2": null,
               "customField3": null,
               "customField4": null,
               "customField5": null,
               "customField6": null,
               "customField7": null,
               "customField8": null,
               "customField9": null,
               "customField10": null,
               "customField11": null,
               "customField12": null,
               "customField13": null,
               "customField14": null,
               "customField15": null,
               "customField16": null,
               "customField17": null,
               "customField18": null,
               "averageCost": 0.0,
               "gstRate": 6.0000,
               "gstSupplyCode": "SR",
               "gstPurchaseCode": "VAT-0",
               "image": null,
               "sellingPrice": 0.0,
               "barcode": null,
               "foc": false,
               "articleNumber": null,
               "color": null,
               "division": null,
               "weight": 0.0,
               "height": 0.0,
               "length": 0.0,
               "width": 0.0,
               "packQuantity": 0,
               "unitOfMeasurement": "UNIT",
               "isOpenPrice": false,
               "isFoc": false,
               "isReturnable": true,
               "isDisable": false,
               "allowSellingWithoutStock": true,
               "goGlobal": true,
               "excludeServiceCharge": false,
               "discountRate": "0",
               "deleted": false,
               "batchControl": false,
               "uomFactor": 0.0,
               "tariffCode": null,
               "tariffDescription": null,
               "isBranchAssortment": false,
               "isLocalPrice": false,
               "isPrint": true,
               "expiryCalculation": 0,
               "activePrice": "0",
               "dayBeforeExpiry": 0,
               "shelfLifeInDays": 0,
               "productMatrixInfo": null,
               "uniqueItemInfo": null,
               "subItems": null,
               "listImageURLs": [],
               "barcodeList": null,
               "multiUomList": null,
               "listPackage": null,
               "purchaseUnavailableRemark": "",
               "itemQuantityDecimalPoint": 0.0,
               "packageWeight": -1.0,
               "alertIntervalBeforeExpiry": 0,
               "expiryDuration": 0,
               "minimumQuantity": 0.0,
               "foodStockPackageItemId": null,
               "enableFoodStockPreparation": false,
               "eLHDNClassificationCode": "022",
               "eLHDNTaxType": "01",
               "eLHDNCountryCode": null,
               "eLHDNPurchaseTaxType": "06",
               "eLHDNPurchaseClassificationCode": "022",
               "isPackage": false,
               "isPostPack": false,
               "additionalItemType": "",
               "enableRFID": false,
               "pointFactor": 0.0000
           },
           {
               "id": 104690,
               "itemCode": "BUF2140026",
               "itemName": "BUFF INFINITY LYOCELL BLAIN",
               "itemType": null,
               "itemModel": null,
               "alternateLookup": null,
               "description": null,
               "brand": null,
               "category": "BUF",
               "departmentCode": null,
               "departmentName": null,
               "vendorCode": null,
               "cost": 73.8000,
               "suggestedPrice": 0.0000,
               "salesPrice": 129.9000,
               "employeePrice": 0.0000,
               "wholesalesPrice": 0.0000,
               "customPrice": 0.0000,
               "webPrice": 0.0000,
               "webDealerPrice": 0.0000,
               "attribute": null,
               "size": null,
               "stockType": "Normal",
               "matrixXGroup": "",
               "matrixYGroup": "",
               "groupName": null,
               "promotionGroup": null,
               "customField1": null,
               "customField2": null,
               "customField3": null,
               "customField4": null,
               "customField5": null,
               "customField6": null,
               "customField7": null,
               "customField8": null,
               "customField9": null,
               "customField10": null,
               "customField11": null,
               "customField12": null,
               "customField13": null,
               "customField14": null,
               "customField15": null,
               "customField16": null,
               "customField17": null,
               "customField18": null,
               "averageCost": 0.0,
               "gstRate": 6.0000,
               "gstSupplyCode": "SR",
               "gstPurchaseCode": "VAT-0",
               "image": null,
               "sellingPrice": 0.0,
               "barcode": null,
               "foc": false,
               "articleNumber": null,
               "color": null,
               "division": null,
               "weight": 0.0,
               "height": 0.0,
               "length": 0.0,
               "width": 0.0,
               "packQuantity": 0,
               "unitOfMeasurement": "UNIT",
               "isOpenPrice": false,
               "isFoc": false,
               "isReturnable": true,
               "isDisable": false,
               "allowSellingWithoutStock": true,
               "goGlobal": true,
               "excludeServiceCharge": false,
               "discountRate": "0",
               "deleted": false,
               "batchControl": false,
               "uomFactor": 0.0,
               "tariffCode": null,
               "tariffDescription": null,
               "isBranchAssortment": false,
               "isLocalPrice": false,
               "isPrint": true,
               "expiryCalculation": 0,
               "activePrice": "0",
               "dayBeforeExpiry": 0,
               "shelfLifeInDays": 0,
               "productMatrixInfo": null,
               "uniqueItemInfo": null,
               "subItems": null,
               "listImageURLs": [],
               "barcodeList": null,
               "multiUomList": null,
               "listPackage": null,
               "purchaseUnavailableRemark": "",
               "itemQuantityDecimalPoint": 0.0,
               "packageWeight": -1.0,
               "alertIntervalBeforeExpiry": 0,
               "expiryDuration": 0,
               "minimumQuantity": 0.0,
               "foodStockPackageItemId": null,
               "enableFoodStockPreparation": false,
               "eLHDNClassificationCode": "022",
               "eLHDNTaxType": "01",
               "eLHDNCountryCode": null,
               "eLHDNPurchaseTaxType": "06",
               "eLHDNPurchaseClassificationCode": "022",
               "isPackage": false,
               "isPostPack": false,
               "additionalItemType": "",
               "enableRFID": false,
               "pointFactor": 0.0000
           }
           ]
           }
}
           


Plain Text
N time request
curl --location 'https://api.xilnex.com/apps/v2/sync/items?starttimestamp=0x000000015D17AC2A' \
--header 'Appid: 7q6ZICVIX7GEBLAr47MCiatFDV2HP' \
--header 'token: T7B6hfqlmOb/4P/Hvdd72hEJ/WBpk98FRrtzZVq' \
--header 'auth: 5' \
--data ''


JSON
N time Respond which indicate data already up to date as at time request
{
   "ok": true,
   "status": "SuccessQuery",
   "warning": null,
   "error": null,
   "data": {
       "lastTimestamp": "0x000000015D17AC2A",
       "items": []
   }
}


4. Client/Customer profile lookup


This API is to identify a loyalty member at the POS and retrieve their current profile and points balance.

API URL: https://developers.xilnex.com/docs/xilnex-developers/5f27fffaeed79-search-client-by-different-parameters

API Endpoint: https://api.xilnex.com/logic/v2/clients/query

API Action: GET


Query Param reference:

Field

Type

Description

Example Value

id

string

Xilnex Client ID

9001

code

string

Client Code | member code


clientcode

string

Client Code | member code


email

string

Email

thomas_chin123@gmail.com

ic

string

Identity Card Numbers

991212115144

mobile

string

Client mobile phone number

60123456789

name

string

Client name

"Ah Beng"

Sample Request: 

JSON
Query Client
curl --request GET \
 --url 'https://api.xilnex.com/logic/v2/clients/query?active=true' \
 --header 'Accept: application/json, text/json, text/html, application/xml, text/xml'


JSON
Response:
{
   "ok": true,
   "status": "SuccessQuery",
   "warning": null,
   "error": null,
   "data": {
       "metadata": {
           "offset": 0,
           "limit": 400,
           "total": 1
       },
       "clients": [
           {
               "currency": null,
               "buddyReferenceID": 0,
               "buddyPoints": 0.0000,
               "lifetimePointValueToUpgrade": 0.0,
               "lifetimePointValueToMaintain": 0.0,
               "targetLifetimePointValueToUpgrade": 0.0,
               "targetLifetimePointValueToMaintain": 0.0,
               "id": 9003,
               "name": "123",
               "alternateLookup": null,
               "priceScheme": "0",
               "creditLimit": 0.0000,
               "billingAddress": null,
               "shippingAddress": null,
               "shipping": null,
               "billing": null,
               "code": null,
               "title": null,
               "email": null,
               "type": null,
               "group": null,
               "registrationCode": null,
               "gender": null,
               "dob": null,
               "ic": null,
               "nationality": null,
               "createdBy": null,
               "firstName": null,
               "lastName": null,
               "phone": "63555234243",
               "office": null,
               "mobile": "63555234243",
               "accountNumber": null,
               "alternateName": null,
               "alternateContact": null,
               "alternatePhone": null,
               "additionalInfo": null,
               "fax": null,
               "remarks": null,
               "billingRemarks": null,
               "shippingRemarks": null,
               "race": null,
               "category": "Personal",
               "active": true,
               "allowAllOutlets": true,
               "gstInclusive": false,
               "pointValue": 0.0000,
               "lifetimePointValue": 0.0,
               "lastLifetimePointValue": 0.0,
               "lifetimePointRenewDate": null,
               "lastLifetimePointRenewDate": null,
               "accumulateValueRenewDate": null,
               "defaultSalesType": "RETAIL",
               "expiryDate": null,
               "createdOutlet": null,
               "pointFactor": 1.0000,
               "dedicatedSalesPerson": null,
               "image": null,
               "xilnexConnectOutletId": null,
               "xilnexConnectOutlet": null,
               "paymentTerms": 0,
               "paymentTermsRemark": null,
               "gstNo": null,
               "currencyCode": null,
               "gstNumber": null,
               "taxCode": null,
               "createDate": "2025-11-17T00:00:00.000Z",
               "enableDOB": true,
               "allowToReceiveMarketing": false,
               "updateTimeStamp": "0x000000022A54F82C",
               "individualDiscount": 0.0000,
               "listBranchClients": [],
               "customFieldValue1": null,
               "customFieldValue2": null,
               "customFieldValue3": null,
               "customFieldValue4": null,
               "customFieldValue5": null,
               "customFieldValue6": null,
               "customFieldValue7": null,
               "customFieldValue8": null,
               "customFieldValue9": null,
               "customFieldValue10": null,
               "customFieldValue11": null,
               "customFieldValue12": null,
               "customFieldValue13": null,
               "customFieldValue14": null,
               "customFieldValue15": null,
               "verified": false,
               "xCardCompanyName": null,
               "xCardCompanyCode": null,
               "xCardClientCatagory": null,
               "loyaltyCardpool": null,
               "purchaseLimit": 0.0000,
               "purchaseRenewalFrequency": "",
               "isActivatedBuddyReward": false,
               "isActivatedBuddyReferenceReward": false,
               "storeReferenceID": null,
               "isActivatedStoreReferenceReward": false,
               "floatingPointValue": 0.0000,
               "isAutoEmailReceipt": false,
               "isEmployee": false,
               "pointExpiryNotifyDate": null,
               "maritalStatus": null,
               "buyerType": null,
               "eLHDNTin": null,
               "identificationType": null,
               "eLHDNIsForeign": false,
               "deactivatedDateTime": null,
               "deletedDateTime": null,
               "loyaltyRedemptionPin": "123456",
               "loyaltyClientProfile": null,
               "income": null,
               "priceMarkupPercentage": 0.0,
               "controlledDiscountLimit": 0.0000,
               "password": null,
               "nextBillingDate": null,
               "age": null
           }
       ]
   }
}


5. Create FNB Sales in Xilnex 

5.1 Process Flow

5.2 Get Xilnex Store ID 

The API supports returning the Xilnex's Location table primary key, which serves as the unique identifier for each outlet/location. This key can be used for accurate store or outlet mapping during system integration and when calling other related APIs such as stock balance retrieval.


5.2.1 Highlighted  API mapping info 

Field

Description / Usage

Sample Value

Remarks

id

Xilnex Location ID; used for mapping to external system’s store/outlet

3e2b8a3e31774df4a00cc6976f437883


name

Store name in Xilnex system

01 - PENANG



Reference URL : https://developers.xilnex.com/docs/xilnex-developers/64f5bea0aaa33-get-all-outlets

API end points : https://api.xilnex.com/logic/v2/outlets


5.2.2 Sample API Body and Response

Plain Text
Get outlet ID 
curl --location 'https://api.xilnex.com/logic/v2/outlets' \
--header 'Appid: 7q6ZICVIX7GEBLAr47MCiatFDV2H' \
--header 'token: T7B6hfqlmOb/4P/Hvdd72hEJ/WBpk98FRrtzZV' \
--header 'auth: 5' \
--data ''


JSON
Response
{
   "ok": true,
   "status": "SuccessQuery",
   "warning": null,
   "error": null,
   "data": {
       "outlets": [
           {
               "id": "1",
               "name": "HQ"
           },
           {
               "id": "3e2b8a3e31774df4a00cc6976f437883",
               "name": "01 - PENANG"
           },
           {
               "id": "e3ce34524e4b4d97b7acd54e776404c2",
               "name": "SUNWAY PYRAMID"
           }
       ]
   }
}

5.3 Get Store Info

The API supports returning comprehensive location master data, including fields such as store code(POS's Store code) , store name, address, tax ID, store group, and other related attributes. These details can be used to facilitate outlet master synchronization and mapping between Xilnex and the external system.

Reference URL :https://developers.xilnex.com/docs/xilnex-developers/df9d8c45da4e6-get-outlet-by-outlet-id

API end points : https://api.xilnex.com/logic/v2/outlets/{id}

API Action : GET

5.3.1 Highlighted  API mapping info 

Field

Description / Usage

Sample Value

Remarks

locationId

Xilnex Location ID; used for mapping to external system’s store/outlet

3e2b8a3e31774df4a00cc6976f437883


branchCode

Merchant's store code maintain is ERP / POS 

PG234


locationName

01 - PENANG

Store name for extra validation if needed 



5.3.2 Sample API Body and Response

Plain Text
Get Store info
curl --location 'https://api.xilnex.com/logic/v2/companyinfo?outletid=3e2b8a3e31774df4a00cc6976f437883' \
--header 'Appid: 7q6ZICVIX7GEBLAr47MCiatFDV2H' \
--header 'token: T7B6hfqlmOb/4P/Hvdd72hEJ/WBpk98FRrtzZV' \
--header 'auth: 5' \
--data ''


SQL
Response
{
   "ok": true,
   "status": "SuccessQuery",
   "warning": null,
   "error": null,
   "data": {
       "companyInfo": {
           "printedName": "SPORT DIRECT.COM-TESCO SEBERANG JAYA ",
           "printedAddress": "LOT F32, 1ST FLOOR, TESCO EXTRA SEBERANG JAYA\nNO 2762,PERSIARAN SEMBILANG,\nSEBERANG JAYA\n13700 SEBERANG PERAI TENGAH,PULAU PINANG\n",
           "mainContactEmail": "bslim80@gmail.com",
           "mainContact": "MR LIM",
           "mainContactTel": "60167210162",
           "registrationNumber": "1234567889-999",
           "gstRegistrationNumber": "1234567889-999",
           "outletType": "BS",
           "locationEntity": "01",
           "outletLocation": "000114335744AT",
           "country": "---Please select your country---",
           "fax": "",
           "outletOwnership": "XILNEX PENANG",
           "branchCode": "PG234",
           "branchCreatedDate": "09/07/2020",
           "branchCompletionDate": "09/07/2020",
           "branchCreatedBy": "Lim Boo Sing Kenji",
           "branchOpeningDate": "",
           "financialDimension": "",
           "branchGroup": "NORTHERN",
           "ownershipStatus": "",
           "branchRental": "",
           "branchSize": "4433",
           "locationLatitude": "5.389303",
           "locationLongitude": "100.387455",
           "weatherLocation": "",
           "projetCode": "PG",
           "areaCode": "",
           "isOutletOperate": true,
           "deliveryAddress": "95,JALAN KIKIK",
           "deliveryCity": "PERAI",
           "deliveryState": "Penang",
           "deliveryPostcode": "13600",
           "deliveryCountry": "Malaysia",
           "deliveryNote": null,
           "businessHour": "[{\"BusinessDay\":[1,2,3,4,5,6,0],\"BusinessTime\":[{\"StartTime\":\"0000\",\"EndTime\":\"0400\"},{\"StartTime\":\"0700\",\"EndTime\":\"2330\"}]}]",
           "byodProfile": "Production",
           "companyDisplayName": "penang",
           "timeZone": 8.0,
           "locationId": "3e2b8a3e31774df4a00cc6976f437883",
           "locationName": "01 - PENANG",
           "businessOffday": "[]",
           "enableSignalRServiceBus": true,
           "companyLogo": "",
           "kitchenPreparationTime": 15,
           "enableKioskOrdering": false,
           "refWarehouse": "1339"
       }
   }
}


5.4 Menu Profiles (getMenuProfile) API

Retrieve the list of available menu profiles configured for the selected outlet(s), including the menu setup and availability assigned to each outlet. This API is typically used to identify the applicable menu configuration before order creation and ensure the correct menu items are displayed based on the outlet selection.


API Endpoint :  http://api.xilnex.com/logic/v1/menumanager/menuprofiles/{locationid}

API Action : GET 

Param: locationId, menuProfileId (optional)

5.4.1 Highlighted  API mapping info 


Field Name

Data Type

Format / Allowed Values

Description

Example Value

menuProfileID

Integer

Numeric ID

Unique identifier for the menu profile. Auto-generated by the system.

2708

menuProfileName

String

Free text

Display name of the menu profile.

New Profile

locationId

String

Numeric string

The outlet or location this menu profile is assigned to.

1

date_Created

String

MM/DD/YYYY

The date the menu profile was created.

2/8/2019

bool_IsActivated

String

"True" / "False"

Indicates whether this menu profile is currently active. Only activated profiles will be applied to the POS.

TRUE

remark

String

Free text (optional)

Optional notes or remarks attached to the menu profile.

(empty)

timeStart

String

HHmmss (24-hour)

The time from which this menu profile becomes effective each day. 000000 = midnight (start of day).

0

timeEnd

String

HHmmss (24-hour)

The time until which this menu profile remains effective each day. 235959 = end of day.

235959

dateStart

String

MM/DD/YYYY (optional)

Calendar date from which this profile starts being applied. Leave empty for no start date restriction.

(empty)

dateEnd

String

MM/DD/YYYY (optional)

Calendar date until which this profile is applied. Leave empty for no end date restriction.

(empty)

bool_Monday

String

"True" / "False"

Whether this profile is active on Mondays.

TRUE

bool_Tuesday

String

"True" / "False"

Whether this profile is active on Tuesdays.

TRUE

bool_Wednesday

String

"True" / "False"

Whether this profile is active on Wednesdays.

TRUE

bool_Thursday

String

"True" / "False"

Whether this profile is active on Thursdays.

TRUE

bool_Friday

String

"True" / "False"

Whether this profile is active on Fridays.

TRUE

bool_Saturday

String

"True" / "False"

Whether this profile is active on Saturdays.

TRUE

bool_Sunday

String

"True" / "False"

Whether this profile is active on Sundays.

TRUE

int_Time_Priority

Integer

Positive integer

Priority level when multiple menu profiles overlap in time. Lower value = higher priority.

2

int_Extend_1

Integer

Numeric ID

Extended reference field. Typically mirrors menuProfileID. Reserved for internal system use.

2708


5.4.2 Sample API Body and Response

Plain Text
First time Request
postman request 'http://api.xilnex.com/logic/v1/menumanager/menus?locationid=3e2b8a3e31774df4a00cc6976f437883' \
 --header 'Appid: 7q6ZICVIX7GEBLAr47MCiatFDV2H' \
 --header 'token: T7B6hfqlmOb/4P/Hvdd72hEJ/WBpk98FRrtzZ' \
 --header 'auth: 5' \
 --body ''


JSON
first time response
{
   "ok": true,
   "status": "SuccessQuery",
   "warning": null,
   "error": null,
   "data": [
       {
          "menuProfileID": 2708,
          "menuProfileName": "New Profile",
          "locationId": "1",
          "date_Created": "02/08/2019",
          "bool_IsActivated": "True",
          "remark": "",
          "timeStart": "000000",
          "timeEnd": "235959",
          "dateStart": "",
          "dateEnd": "",
          "bool_Monday": "True",
          "bool_Tuesday": "True",
          "bool_Wednesday": "True",
          "bool_Thursday": "True",
          "bool_Friday": "True",
          "bool_Saturday": "True",
          "bool_Sunday": "True",
          "int_Time_Priority": 2,
          "int_Extend_1": 2708
       }        
   ],
   "timestamp": 1501467541
}


5.5 Menu Product (getMenuList)

Retrieve the list of available menu profiles assigned to the selected outlet(s), including the corresponding menu configurations and availability settings. This API enables the application to determine the applicable menus for each outlet, ensuring customers are presented with the correct product offerings, pricing, and menu structure based on the selected store or sales channel.


Param: locationId, menuProfileId (optional)

ORDER SOURCE Reference

LOCAL – Local application   / 0 

XILNEXFNBGO – Tablet ordering / 1

XILNEXBYODSALES – web Ordering  /2 

XILNEXKIOSK – Kiosk Ordering /3

XILNEXLIVESALES – 3(rd) party integration , no promo apply /5

XILNEXAPPSALES – Order from loyalty app /6

XILNEXORDERTERMINAL – Local terminal ordering  /7

Description: Get product menu from profile 


API Endpoint :  http://api.xilnex.com/logic/v1/menumanager/menus?locationid={locationid}&menuProfileId={menuProfileId}&source={source}

API Action : GET


5.5.1 Highlighted  API mapping info 

Field Name

Data Type

Format / Allowed Values

Description

Example Value

menuProfileID

Integer

Numeric ID

Unique identifier for the menu profile. Auto-generated by the system.

2708

menuProfileName

String

Free text

Display name of the menu profile.

New Profile

locationId

String

Numeric string

The outlet or location this menu profile is assigned to.

1

date_Created

String

MM/DD/YYYY

The date the menu profile was created.

2/8/2019

bool_IsActivated

String

"True" / "False"

Indicates whether this menu profile is currently active. Only activated profiles will be applied to the POS.

TRUE

remark

String

Free text (optional)

Optional notes or remarks attached to the menu profile.

Special Profile for new year

timeStart

String

HHmmss (24-hour)

The time from which this menu profile becomes effective each day. 000000 = midnight (start of day).

00

timeEnd

String

HHmmss (24-hour)

The time until which this menu profile remains effective each day. 235959 = end of day.

235959

dateStart

String

MM/DD/YYYY (optional)

Calendar date from which this profile starts being applied. Leave empty for no start date restriction.

01/01/2026


dateEnd

String

MM/DD/YYYY (optional)

Calendar date until which this profile is applied. Leave empty for no end date restriction.

01/01/2026


bool_Monday

String

"True" / "False"

Whether this profile is active on Mondays.

TRUE

bool_Tuesday

String

"True" / "False"

Whether this profile is active on Tuesdays.

TRUE

bool_Wednesday

String

"True" / "False"

Whether this profile is active on Wednesdays.

TRUE

bool_Thursday

String

"True" / "False"

Whether this profile is active on Thursdays.

TRUE

bool_Friday

String

"True" / "False"

Whether this profile is active on Fridays.

TRUE

bool_Saturday

String

"True" / "False"

Whether this profile is active on Saturdays.

TRUE

bool_Sunday

String

"True" / "False"

Whether this profile is active on Sundays.

TRUE

int_Time_Priority

Integer

Positive integer

Priority level when multiple menu profiles overlap in time. Lower value = higher priority.

2

int_Extend_1

Integer

Numeric ID

Extended reference field. Typically mirrors menuProfileID. Reserved for internal system use.

2708


5.5.2 Sample API Body and Response

Plain Text
Sample Request
postman request 'http://api.xilnex.com/logic/v1/menumanager/menus?locationid=3e2b8a3e31774df4a00cc6976f437883&menuProfileId=101' \
 --header 'Appid: 7q6ZICVIX7GEBLAr47MCiatFDV' \
 --header 'token: T7B6hfqlmOb/4P/Hvdd72hEJ/WBpk98FRrtzZV' \
 --header 'auth: 5'


JSON
sample response
{
   "ok"true,
   "status""SuccessQuery",
   "warning"null,
   "error"null,
   "data": [
       {
           "categoryId""301",
           "categoryName""Breakfast",
           "categoryImageUrl""",
           "colorHex""#DEBAFF",
           "binaryImageUrl"null,
           "products": [
               {
                   "itemId""10202",
                   "itemCode""BF03",
                   "itemName""2 pcs BBQ Chicken & Grilled Cheese Toast",
                   "imageUrl""",
                   "binaryImageUrl""http://wb-storage.azurewebsites.net/img/2895/1505a3a69e5353b43aea262f09151170e22",
                   "colorHex""#debaff",
                   "price"13.39,
                   "description""",
                   "modifiers": [
                       {
                           "type""checkbox",
                           "minSelection"1,
                           "maxSelection"1,
                           "groupId""6d33875addf34b0a8ab78fb5982fd5f8",
                           "groupName""Breakfast Add On",
                           "selections": [
                               {
                                   "itemId""10204",
                                   "name""Americano",
                                   "price"0,
                                   "defaultSelected"false
                               },
                               {
                                   "itemId""10205",
                                   "name""Brilliant Breakfast Tea",
                                   "price"0,
                                   "defaultSelected"false
                               },
                               {
                                   "itemId""10206",
                                   "name""Malaysian Pulled Tea",
                                   "price"0,
                                   "defaultSelected"false
                               }
                           ]
                       }
                   ]
               },
               {
                   "itemId""10201",
                   "itemCode""BF02",
                   "itemName""2 pcs Yam Cake",
                   "imageUrl""",
                   "colorHex""#debaff",
                   "price"10.69,
                   "description""",
                   "modifiers": [
                       {
                           "type""checkbox",
                           "minSelection"1,
                           "maxSelection"1,
                           "groupId""64d11ad9368c4df997c515a8630582a1",
                           "groupName""Breakfast Add On",
                           "selections": [
                               {
                                   "itemId""10204",
                                   "name""Americano",
                                   "price"0,
                                   "defaultSelected"false
                               },
                               {
                                   "itemId""10205",
                                   "name""Brilliant Breakfast Tea",
                                   "price"0,
                                   "defaultSelected"false
                               },
                               {
                                   "itemId""10206",
                                   "name""Malaysian Pulled Tea",
                                   "price"0,
                                   "defaultSelected"false
                               }
                           ]
                       }
                   ]
               },
               {
                   "itemId""10203",
                   "itemCode""BF04",
                   "itemName""Nasi Lemak Small",
                   "imageUrl""",
                   "colorHex""#debaff",
                   "price"8.89,
                   "description""",
                   "modifiers": [
                       {
                           "type""checkbox",
                           "minSelection"1,
                           "maxSelection"1,
                           "groupId""193b5c999acb48a182a7d7cad87034fa",
                           "groupName""Breakfast Add On",
                           "selections": [
                               {
                                   "itemId""10204",
                                   "name""Americano",
                                   "price"0,
                                   "defaultSelected"false
                               },
                               {
                                   "itemId""10205",
                                   "name""Brilliant Breakfast Tea",
                                   "price"0,
                                   "defaultSelected"false
                               },
                               {
                                   "itemId""10206",
                                   "name""Malaysian Pulled Tea",
                                   "price"0,
                                   "defaultSelected"false
                               }
                           ]
                       }
                   ]
               },
               {
                   "itemId""10200",
                   "itemCode""BF01",
                   "itemName""Small Ipoh Hor Fun",
                   "imageUrl""",
                   "colorHex""#debaff",
                   "price"10.69,
                   "description""",
                   "modifiers": [
                       {
                           "type""checkbox",
                           "minSelection"1,
                           "maxSelection"1,
                           "groupId""80544c49d4bc4ba3afe57154645150b4",
                           "groupName""Breakfast Add On",
                           "selections": [
                               {
                                   "itemId""10204",
                                   "name""Americano",
                                   "price"0,
                                   "defaultSelected"false
                               },
                               {
                                   "itemId""10205",
                                   "name""Brilliant Breakfast Tea",
                                   "price"0,
                                   "defaultSelected"false
                               },
                               {
                                   "itemId""10206",
                                   "name""Malaysian Pulled Tea",
                                   "price"0,
                                   "defaultSelected"false
                               }
                           ]
                       }
                   ]
               }
           ]
       }
   ],
   "timestamp"1503634452


5.6 Fnb Sales Calculate

The F&B Orders API is used to pre-calculate the sales transaction by validating and computing item pricing, taxes, discounts, service charges, and voucher deductions before payment confirmation. This API ensures accurate order amount calculation and provides the final payable total prior to order completion and submission to the POS for food preparation processing.


Reference URL :https://developers.xilnex.com/docs/xilnex-developers/620d379026f00-calculate-fn-b-sales

API end points : https://api.xilnex.com/logic/v2/sales/fnbOrders/total


5.6.1 Highlighted  API mapping info 

The following fields are mandatory in every sales submission request. The POS Vendor must map these from the POS transaction record at the time of checkout completion.


Sales Item



Modifiers


Modifiers — For F&B items that carry customisations (e.g. size, sugar level, add-ons), the POS system must populate the modifiers array nested within each salesItems entry. Each modifier carries the same field structure as a sales item. The quantityprice, and subTotal of the modifier must reflect the add-on's own value, not the parent item's value.


Voucher Collection 


5.6.2 Sample API Body and Response

JSON
POST Sales API
{
   "salesType": "Take Away", //Take Away, Dine In, Delivery 
   "paxNo": 0,
   "salesOutlet": "1", //Location ID 
   "orderSource": "XILNEXLIVESALES", //XILNEXLIVESALES=3rd party integration 
   "orderNo": "9993", //Order no or Invoice No from POS. 
   "orderTerminalId": "bddc6a802f4eab5f", //Terminal ID
   "salesDate": "05/05/2026", //DD/MM/yyyy
   "salesTime": "12:00:00", //hh:mm:ss
   "customerId": "9007", //Xilnex client'd ID
   "customerName": "Thomas",//Xilnex Customer Name
   "salesNo": "", //Invoice number , will auto generate 
   "remark": "Remark Testing 123", //Delivery platform long reference number  
   "salesPerson": " Wondercafe",
   "BillDiscountAmt": 5.00, // Total discount amount , system will automatic populate to each item(line level).   
   "billTaxAmount": 0.46, //Tax Amount
   "serviceChargeAmount": 1.50,
   "totalAmount": 50.00,
   "isPrint": false,
   /*"promoCodeCollection": [
       "RM5T001",
       "RM5T002"
   ], // discount voucher code /coupon code / redeem code  */
   "deliverytype": "", //User definable Delivery type:  eg : Grab Food / Shopee Food / Momo/ Zalo OSC/App/Web/ Call Center
   "salesItems": [
       {
           "remark": "",
           "itemId": "101",
           "itemName": "Coffee",
           "price": 15.0,
           "quantity": 1,
           "discountPercentage": 10,
           "modifiers": [
               {
                   "itemCode": "D001",
                   "quantity": 1,
                   "discountPercentage": 10
                   
               }
           ]
       }
   ]
}


JSON
Response
{
   "ok": true,
   "status": "SuccessInsert",
   "warning": null,
   "error": null,
   "data": {
       "salesNo": 90071,
       "salesDate": "05/05/2026",
       "salesTime": "14:00:50",
       "totalAmount": 44.9100,
       "roundingAmount": 0.0000,
       "mgstTaxAmount": 4.8100,
       "billTaxPercentage": 0.0000,
       "serviceChargeAmount": 0.0,
       "serviceChargePercentage": 0.0,
       "customerId": "9007",
       "customerName": "Thomas",
       "recipient": "",
       "salesStatus": "OPEN",
       "salesOutlet": "1",
       "salesType": "Take Away",
       "orderNo": "9993",
       "paxNo": 0,
       "salesPerson": " Wondercafe",
       "remark": "Remark Testing 123",
       "isPrint": false,
       "orderSource": "XILNEXLIVESALES",
       "orderTerminalId": "bddc6a802f4eab5f",
       "orderStatus": "",
       "pickupTime": "",
       "salesDateTime": "2026-05-05T14:00:50.000Z",
       "recipientContact": "",
       "promoCode": null,
       "promoCodeCollection": null,
       "totalDiscountAmount": 4.9900,
       "totalAmountBeforeTax": 45.0900,
       "shippingAddress": {
           "street": "",
           "city": "",
           "state": "",
           "zipcode": "",
           "country": ""
       },
       "shippingRemark": "",
       "recipientContactTel": "",
       "shipmentProvider": "",
       "trackingLink": null,
       "trackingNumber": null,
       "deliveryError": null,
       "deliveryType": "",
       "orderId": null,
       "billDiscountAmount": 0.0,
       "billTaxAmount": 0.0,
       "promoIdentifier": "",
       "shipmentDateTime": null,
       "businessDate": "2026-05-05T00:00:00.000Z",
       "customFieldValueThree": "",
       "customFieldValueFour": "",
       "customFieldValueFive": "",
       "serviceChargeAmountAfterTax": 0.0,
       "subSalesType": "",
       "billingRemark": "",
       "externalDocumentId": null,
       "postStatus": false,
       "integrationModule": null,
       "documentType": null,
       "ExternalRefId": "",
       "ExternalRefId2": "",
       "ExternalRefId3": "",
       "salesItems": [
           {
               "modifiers": [
                   {
                       "subtotal": 9.0000,
                       "salesItemId": 900103,
                       "itemId": 17070,
                       "itemCode": "D001",
                       "itemName": "Coke 325ML",
                       "quantity": 1.0000,
                       "shippedQuantity": 0.0,
                       "price": 10.0000,
                       "discountPercentage": 10.0000,
                       "discountAmount": 1.0000,
                       "remark": "",
                       "isPrint": false,
                       "salesPerson": "",
                       "subTotal": 9.0000,
                       "mgstTaxAmount": 0.9600,
                       "totalTaxAmount": 0.9600,
                       "isInclusiveMgst": true,
                       "orderSource": "XILNEXLIVESALES",
                       "mgstTaxPercentage": 12.0000,
                       "isServiceItem": false,
                       "deliveryType": "",
                       "discountRemark": "",
                       "brand": "",
                       "itemType": "RETAIL",
                       "customField1": "",
                       "customField2": "",
                       "customField3": "",
                       "customField4": "",
                       "customField5": "",
                       "customField6": "",
                       "customField7": "",
                       "customField8": "",
                       "customField9": "",
                       "customField10": "",
                       "customField11": "",
                       "customField12": "",
                       "customField13": "",
                       "customField14": "",
                       "customField15": "",
                       "customField16": "",
                       "customField17": "",
                       "customField18": "",
                       "AdditionalTaxPercentage1": 0.0,
                       "AdditionalTaxPercentage2": 0.0,
                       "AdditionalTaxAmount1": 0.0,
                       "AdditionalTaxAmount2": 0.0,
                       "itemImageURL": [
                           ""
                       ],
                       "scanCode": null,
                       "isVoucherItem": false,
                       "matrixBarcode": null,
                       "matrixX": "",
                       "matrixY": "",
                       "catalogueID": "",
                       "purchaseCatalogueID": "",
                       "promoCode": null,
                       "isPromoDiscountItem": false,
                       "eLhdnClassificationCode": "",
                       "eLhdnTaxType": "",
                       "eLhdnCountryCode": "",
                       "description": null,
                       "category": null,
                       "taxCode": null,
                       "articleNumber": "",
                       "isExemptTax": false,
                       "orderTerminalId": "",
                       "productRecommendationTag": null,
                       "productRecommendationGroupID": null,
                       "productRecommendationItemID": null,
                       "productTestRecommendationSettingID": null,
                       "productTestRecommendationVariantID": null,
                       "salesType": "Take Away",
                       "ruleName": null,
                       "campaignName": null,
                       "promotionDiscountAmount": 0.0,
                       "promotionDiscountPercentage": 0.0
                   }
               ],
               "salesItemId": 900102,
               "itemId": 101,
               "itemCode": "CF001",
               "itemName": "Coffee",
               "quantity": 1.0000,
               "shippedQuantity": 0.0,
               "price": 39.9000,
               "discountPercentage": 10.0000,
               "discountAmount": 3.9900,
               "remark": "",
               "isPrint": false,
               "salesPerson": " Wondercafe",
               "subTotal": 35.9100,
               "mgstTaxAmount": 3.8500,
               "totalTaxAmount": 3.8500,
               "isInclusiveMgst": true,
               "orderSource": "XILNEXLIVESALES",
               "mgstTaxPercentage": 12.0000,
               "isServiceItem": false,
               "deliveryType": "",
               "discountRemark": "",
               "brand": "",
               "itemType": "",
               "customField1": "",
               "customField2": "",
               "customField3": "",
               "customField4": "",
               "customField5": "",
               "customField6": "",
               "customField7": "",
               "customField8": "",
               "customField9": "",
               "customField10": "",
               "customField11": "",
               "customField12": "",
               "customField13": "",
               "customField14": "",
               "customField15": "",
               "customField16": "",
               "customField17": "",
               "customField18": "",
               "AdditionalTaxPercentage1": 0.0,
               "AdditionalTaxPercentage2": 0.0,
               "AdditionalTaxAmount1": 0.0000,
               "AdditionalTaxAmount2": 0.0000,
               "itemImageURL": [
                   ""
               ],
               "scanCode": null,
               "isVoucherItem": false,
               "matrixBarcode": null,
               "matrixX": "",
               "matrixY": "",
               "catalogueID": "",
               "purchaseCatalogueID": "",
               "promoCode": "",
               "isPromoDiscountItem": true,
               "eLhdnClassificationCode": "",
               "eLhdnTaxType": "",
               "eLhdnCountryCode": "",
               "description": null,
               "category": null,
               "taxCode": null,
               "articleNumber": "",
               "isExemptTax": false,
               "orderTerminalId": "",
               "productRecommendationTag": null,
               "productRecommendationGroupID": null,
               "productRecommendationItemID": null,
               "productTestRecommendationSettingID": null,
               "productTestRecommendationVariantID": null,
               "salesType": "Take Away",
               "ruleName": null,
               "campaignName": null,
               "promotionDiscountAmount": 0.0,
               "promotionDiscountPercentage": 0.0
           }
       ],
       "collections": [],
       "paymentFlowType": "",
       "paymentForPromo": null,
       "shipments": null,
       "integrationCustomField1": "",
       "integrationCustomField2": "",
       "integrationCustomField3": "",
       "integrationCustomField4": "",
       "integrationCustomField5": "",
       "integrationCustomField6": "",
       "integrationCustomField7": "",
       "integrationCustomField8": "",
       "integrationCustomField9": "",
       "integrationCustomField10": "",
       "listPromoCodeStatus": null,
       "pickUpBarcode": "",
       "kdsEstimatedWaitingTime": null,
       "returnSalesID": "",
       "integrationStatusStringExtend1": null,
       "integrationStatusStringExtend2": null,
       "integrationStatusStringExtend3": null,
       "eLhdnTin": "",
       "docGuid": "550a2c1f5a",
       "doesELhdnRequiredPosting": false,
       "customerIdentificationType": "",
       "eLhdnUuid": "",
       "lhdnValidateDate": "",
       "pendingAction": "{\"listVoucherToGenerate\":[]}",
       "listGeneratedVoucher": [],
       "eLhdnBuyerType": "",
       "customerIc": "",
       "customerEmail": "",
       "buyerSSTNumber": "",
       "eOwnerProfileId": 0,
       "xCard": "",
       "customerAltLookUp": "",
       "posRefId": "",
       "submitSalesRefId": "",
       "submitSalesRefId2": "",
       "cancelSalesRefId": "",
       "orderApprovalStatus": [
           {
               "id": 90025,
               "approvalUTCDateTime": null,
               "approvalStatus": "",
               "approvalRemark": "",
               "approvalBy": ""
           }
       ],
       "pickupInfo": null
   }
}

5.7 Order Injection for Fnb Sales 

The FNB Orders API is used to create sales in Xilnex. However, to fully complete the transaction, you must also call the Payment API to process the total sales amount.

Reference URL : https://developers.xilnex.com/docs/xilnex-developers/f747a416a6167-fn-b-orders

API end points : https://api.xilnex.com/logic/v2/sales/fnbOrders


5.7.1 Highlighted  API mapping info 

The following fields are mandatory in every sales submission request. The POS Vendor must map these from the POS transaction record at the time of checkout completion.


Sales Item



Modifiers


Modifiers — For F&B items that carry customisations (e.g. size, sugar level, add-ons), the POS system must populate the modifiers array nested within each salesItems entry. Each modifier carries the same field structure as a sales item. The quantityprice, and subTotal of the modifier must reflect the add-on's own value, not the parent item's value.


5.7.2 Sample Body And response

Sample Json:

JSON
POST Sales API
{
   "salesType": "Take Away", //Take Away, Dine In, Delivery 
   "paxNo": 0,
   "salesOutlet": "1", //Location ID 
   "orderSource": "XILNEXLIVESALES", //XILNEXLIVESALES=3rd party integration 
   "orderNo": "9993", //Order no or Invoice No from POS. 
   "orderTerminalId": "bddc6a802f4eab5f", //Terminal ID
   "salesDate": "05/05/2026", //DD/MM/yyyy
   "salesTime": "12:00:00", //hh:mm:ss
   "customerId": "9007", //Xilnex client'd ID
   "customerName": "Thomas",//Xilnex Customer Name
   "salesNo": "", //Invoice number , will auto generate 
   "remark": "Remark Testing 123", //Delivery platform long reference number  
   "salesPerson": " Wondercafe",
   "BillDiscountAmt": 5.00, // Total discount amount , system will automatic populate to each item(line level).   
   "billTaxAmount": 0.46, //Tax Amount
   "serviceChargeAmount": 1.50,
   "totalAmount": 50.00,
   "isPrint": false,
   /*"promoCodeCollection": [
       "RM5T001",
       "RM5T002"
   ], // discount voucher code /coupon code / redeem code  */
   "deliverytype": "", //User definable Delivery type:  eg : Grab Food / Shopee Food / Momo/ Zalo OSC/App/Web/ Call Center
   "salesItems": [
       {
           "remark": "",
           "itemId": "101",
           "itemName": "Coffee",
           "price": 15.0,
           "quantity": 1,
           "discountPercentage": 10,
           "modifiers": [
               {
                   "itemCode": "D001",
                   "quantity": 1,
                   "discountPercentage": 10
               }
           ]
       }
   ]
}

Response:

JSON
Response
{
   "ok": true,
   "status": "SuccessInsert",
   "warning": null,
   "error": null,
   "data": {
       "salesNo": 90071,
       "salesDate": "05/05/2026",
       "salesTime": "14:00:50",
       "totalAmount": 44.9100,
       "roundingAmount": 0.0000,
       "mgstTaxAmount": 4.8100,
       "billTaxPercentage": 0.0000,
       "serviceChargeAmount": 0.0,
       "serviceChargePercentage": 0.0,
       "customerId": "9007",
       "customerName": "Thomas",
       "recipient": "",
       "salesStatus": "OPEN",
       "salesOutlet": "1",
       "salesType": "Take Away",
       "orderNo": "9993",
       "paxNo": 0,
       "salesPerson": " Wondercafe",
       "remark": "Remark Testing 123",
       "isPrint": false,
       "orderSource": "XILNEXLIVESALES",
       "orderTerminalId": "bddc6a802f4eab5f",
       "orderStatus": "",
       "pickupTime": "",
       "salesDateTime": "2026-05-05T14:00:50.000Z",
       "recipientContact": "",
       "promoCode": null,
       "promoCodeCollection": null,
       "totalDiscountAmount": 4.9900,
       "totalAmountBeforeTax": 45.0900,
       "shippingAddress": {
           "street": "",
           "city": "",
           "state": "",
           "zipcode": "",
           "country": ""
       },
       "shippingRemark": "",
       "recipientContactTel": "",
       "shipmentProvider": "",
       "trackingLink": null,
       "trackingNumber": null,
       "deliveryError": null,
       "deliveryType": "",
       "orderId": null,
       "billDiscountAmount": 0.0,
       "billTaxAmount": 0.0,
       "promoIdentifier": "",
       "shipmentDateTime": null,
       "businessDate": "2026-05-05T00:00:00.000Z",
       "customFieldValueThree": "",
       "customFieldValueFour": "",
       "customFieldValueFive": "",
       "serviceChargeAmountAfterTax": 0.0,
       "subSalesType": "",
       "billingRemark": "",
       "externalDocumentId": null,
       "postStatus": false,
       "integrationModule": null,
       "documentType": null,
       "ExternalRefId": "",
       "ExternalRefId2": "",
       "ExternalRefId3": "",
       "salesItems": [
           {
               "modifiers": [
                   {
                       "subtotal": 9.0000,
                       "salesItemId": 900103,
                       "itemId": 17070,
                       "itemCode": "D001",
                       "itemName": "Coke 325ML",
                       "quantity": 1.0000,
                       "shippedQuantity": 0.0,
                       "price": 10.0000,
                       "discountPercentage": 10.0000,
                       "discountAmount": 1.0000,
                       "remark": "",
                       "isPrint": false,
                       "salesPerson": "",
                       "subTotal": 9.0000,
                       "mgstTaxAmount": 0.9600,
                       "totalTaxAmount": 0.9600,
                       "isInclusiveMgst": true,
                       "orderSource": "XILNEXLIVESALES",
                       "mgstTaxPercentage": 12.0000,
                       "isServiceItem": false,
                       "deliveryType": "",
                       "discountRemark": "",
                       "brand": "",
                       "itemType": "RETAIL",
                       "customField1": "",
                       "customField2": "",
                       "customField3": "",
                       "customField4": "",
                       "customField5": "",
                       "customField6": "",
                       "customField7": "",
                       "customField8": "",
                       "customField9": "",
                       "customField10": "",
                       "customField11": "",
                       "customField12": "",
                       "customField13": "",
                       "customField14": "",
                       "customField15": "",
                       "customField16": "",
                       "customField17": "",
                       "customField18": "",
                       "AdditionalTaxPercentage1": 0.0,
                       "AdditionalTaxPercentage2": 0.0,
                       "AdditionalTaxAmount1": 0.0,
                       "AdditionalTaxAmount2": 0.0,
                       "itemImageURL": [
                           ""
                       ],
                       "scanCode": null,
                       "isVoucherItem": false,
                       "matrixBarcode": null,
                       "matrixX": "",
                       "matrixY": "",
                       "catalogueID": "",
                       "purchaseCatalogueID": "",
                       "promoCode": null,
                       "isPromoDiscountItem": false,
                       "eLhdnClassificationCode": "",
                       "eLhdnTaxType": "",
                       "eLhdnCountryCode": "",
                       "description": null,
                       "category": null,
                       "taxCode": null,
                       "articleNumber": "",
                       "isExemptTax": false,
                       "orderTerminalId": "",
                       "productRecommendationTag": null,
                       "productRecommendationGroupID": null,
                       "productRecommendationItemID": null,
                       "productTestRecommendationSettingID": null,
                       "productTestRecommendationVariantID": null,
                       "salesType": "Take Away",
                       "ruleName": null,
                       "campaignName": null,
                       "promotionDiscountAmount": 0.0,
                       "promotionDiscountPercentage": 0.0
                   }
               ],
               "salesItemId": 900102,
               "itemId": 101,
               "itemCode": "CF001",
               "itemName": "Coffee",
               "quantity": 1.0000,
               "shippedQuantity": 0.0,
               "price": 39.9000,
               "discountPercentage": 10.0000,
               "discountAmount": 3.9900,
               "remark": "",
               "isPrint": false,
               "salesPerson": " Wondercafe",
               "subTotal": 35.9100,
               "mgstTaxAmount": 3.8500,
               "totalTaxAmount": 3.8500,
               "isInclusiveMgst": true,
               "orderSource": "XILNEXLIVESALES",
               "mgstTaxPercentage": 12.0000,
               "isServiceItem": false,
               "deliveryType": "",
               "discountRemark": "",
               "brand": "",
               "itemType": "",
               "customField1": "",
               "customField2": "",
               "customField3": "",
               "customField4": "",
               "customField5": "",
               "customField6": "",
               "customField7": "",
               "customField8": "",
               "customField9": "",
               "customField10": "",
               "customField11": "",
               "customField12": "",
               "customField13": "",
               "customField14": "",
               "customField15": "",
               "customField16": "",
               "customField17": "",
               "customField18": "",
               "AdditionalTaxPercentage1": 0.0,
               "AdditionalTaxPercentage2": 0.0,
               "AdditionalTaxAmount1": 0.0000,
               "AdditionalTaxAmount2": 0.0000,
               "itemImageURL": [
                   ""
               ],
               "scanCode": null,
               "isVoucherItem": false,
               "matrixBarcode": null,
               "matrixX": "",
               "matrixY": "",
               "catalogueID": "",
               "purchaseCatalogueID": "",
               "promoCode": "",
               "isPromoDiscountItem": true,
               "eLhdnClassificationCode": "",
               "eLhdnTaxType": "",
               "eLhdnCountryCode": "",
               "description": null,
               "category": null,
               "taxCode": null,
               "articleNumber": "",
               "isExemptTax": false,
               "orderTerminalId": "",
               "productRecommendationTag": null,
               "productRecommendationGroupID": null,
               "productRecommendationItemID": null,
               "productTestRecommendationSettingID": null,
               "productTestRecommendationVariantID": null,
               "salesType": "Take Away",
               "ruleName": null,
               "campaignName": null,
               "promotionDiscountAmount": 0.0,
               "promotionDiscountPercentage": 0.0
           }
       ],
       "collections": [],
       "paymentFlowType": "",
       "paymentForPromo": null,
       "shipments": null,
       "integrationCustomField1": "",
       "integrationCustomField2": "",
       "integrationCustomField3": "",
       "integrationCustomField4": "",
       "integrationCustomField5": "",
       "integrationCustomField6": "",
       "integrationCustomField7": "",
       "integrationCustomField8": "",
       "integrationCustomField9": "",
       "integrationCustomField10": "",
       "listPromoCodeStatus": null,
       "pickUpBarcode": "",
       "kdsEstimatedWaitingTime": null,
       "returnSalesID": "",
       "integrationStatusStringExtend1": null,
       "integrationStatusStringExtend2": null,
       "integrationStatusStringExtend3": null,
       "eLhdnTin": "",
       "docGuid": "550a2c1f5a",
       "doesELhdnRequiredPosting": false,
       "customerIdentificationType": "",
       "eLhdnUuid": "",
       "lhdnValidateDate": "",
       "pendingAction": "{\"listVoucherToGenerate\":[]}",
       "listGeneratedVoucher": [],
       "eLhdnBuyerType": "",
       "customerIc": "",
       "customerEmail": "",
       "buyerSSTNumber": "",
       "eOwnerProfileId": 0,
       "xCard": "",
       "customerAltLookUp": "",
       "posRefId": "",
       "submitSalesRefId": "",
       "submitSalesRefId2": "",
       "cancelSalesRefId": "",
       "orderApprovalStatus": [
           {
               "id": 90025,
               "approvalUTCDateTime": null,
               "approvalStatus": "",
               "approvalRemark": "",
               "approvalBy": ""
           }
       ],
       "pickupInfo": null
   }
}

Member-related fields:

Click the image to view the sheet.

For non-member transactions, customerIdcustomerNamexCard, and customerAltLookUp must be submitted as null or omitted.


Additional Information

By default, the Xilnex API auto-calculates sales. To override this automatic calculation and submit manual sales data, you must include the X-Origin custom header in your API request: 

X-Origin: https://api-wrapper.azurewebsites.net




5.8 FnB Order payment API

This API is used to finalize a sales transaction by capturing and posting the payment details against the order. Once the payment is successfully recorded, the system marks the order as completed and automatically pushes the order to the POS for food preparation processing.


Reference URL : https://xilnex.stoplight.io/docs/xilnex-developers/cc7b914067441-post-payment-tips-and-complete-sales

API end points : https://api.xilnex.com/logic/v2/sales/paymentsv2


5.8.1 Highlighted  API mapping info 

Field Name

Data Type

Format / Allowed Values

Description

Example Value

DOUBLE_Amount

Float

Decimal (2 d.p.)

Payment amount tendered for this transaction.


50

Method

String

"Cash" / "Card" / "eWallet" / "Voucher" / "Points"

Payment method used for the transaction.

Card

Reference

String

Free text

Primary payment reference. For card payments, this is the masked card number.

card number

STRING_EXTEND_1

String

Free text

Extended reference field 1. For card payments, this stores the approval code returned by the payment terminal.

approval code

STRING_EXTEND_2

String

Free text

Extended reference field 2. For card payments, this stores the card type (e.g. Visa, Mastercard).

card type

Reference_3

String

Free text

Extended reference field 3. For card payments, this stores the credit card expiry date.

credit card expiry

Reference_4

String

Free text

Extended reference field 4. For card payments, this stores the trace number from the payment terminal.

trace no

Received_By

String

Email address

Email address of the cashier / user account that received this payment.

Received_By_Cashier_Name

String

Free text

Display name of the cashier who processed this payment.

Wondercafe

Location_ID

String

UUID / alphanumeric hash

Unique identifier of the outlet or location where the payment was collected.

4624401e8fa846579ac81adfc826f4cd

Remark

String

Free text (optional)

Optional remarks or notes attached to this payment record.

remark

Invoice_ID

String

Numeric string

The invoice or bill number this payment is linked to.

900272

5.8.2 Sample Body And response

By Cash Payment

JSON
[
 {
   "DOUBLE_Amount": 50.0,
   "INT_EXTEND_1": 0,
   "Location_ID": "1",
   "Method": "cash",
   "Invoice_ID": "900272",
   "Received_By": "wondercafe@xilnex.com",
   "Received_By_Cashier_name": " Wondercafe"
 }
]

By Cash Response:

JSON
{
   "ok": true,
   "status": "SuccessInsert",
   "warning": null,
   "error": null,
   "data": {
       "salesNo": 90071,
       "salesDate": "05/05/2026",
       "salesTime": "14:00:50",
       "totalAmount": 44.9100,
       "roundingAmount": 0.0000,
       "mgstTaxAmount": 4.8100,
       "billTaxPercentage": 0.0000,
       "serviceChargeAmount": 0.0,
       "serviceChargePercentage": 0.0,
       "customerId": "9007",
       "customerName": "Thomas",
       "recipient": "",
       "salesStatus": "COMPLETED",
       "salesOutlet": "1",
       "salesType": "Take Away",
       "orderNo": "9993",
       "paxNo": 0,
       "salesPerson": " Wondercafe",
       "remark": "Remark Testing 123",
       "isPrint": false,
       "orderSource": "XILNEXLIVESALES",
       "orderTerminalId": "bddc6a802f4eab5f",
       "orderStatus": "",
       "pickupTime": "",
       "salesDateTime": "2026-05-05T14:00:50.000Z",
       "recipientContact": "",
       "promoCode": null,
       "promoCodeCollection": null,
       "totalDiscountAmount": 4.9900,
       "totalAmountBeforeTax": 45.0900,
       "shippingAddress": {
           "street": "",
           "city": "",
           "state": "",
           "zipcode": "",
           "country": ""
       },
       "shippingRemark": "",
       "recipientContactTel": "",
       "shipmentProvider": "",
       "trackingLink": null,
       "trackingNumber": null,
       "deliveryError": null,
       "deliveryType": "",
       "orderId": null,
       "billDiscountAmount": 0.0000,
       "billTaxAmount": 0.0,
       "promoIdentifier": "",
       "shipmentDateTime": null,
       "businessDate": "2026-05-05T00:00:00.000Z",
       "customFieldValueThree": "",
       "customFieldValueFour": "",
       "customFieldValueFive": "",
       "serviceChargeAmountAfterTax": 0.0,
       "subSalesType": "",
       "billingRemark": "",
       "externalDocumentId": null,
       "postStatus": false,
       "integrationModule": null,
       "documentType": null,
       "ExternalRefId": "",
       "ExternalRefId2": "",
       "ExternalRefId3": "",
       "salesItems": [
           {
               "modifiers": [
                   {
                       "subtotal": 9.0000,
                       "salesItemId": 900103,
                       "itemId": 17070,
                       "itemCode": "D001",
                       "itemName": "Coke 325ML",
                       "quantity": 1.0000,
                       "shippedQuantity": 0.0000,
                       "price": 10.0000,
                       "discountPercentage": 10.0000,
                       "discountAmount": 1.0000,
                       "remark": "",
                       "isPrint": false,
                       "salesPerson": "",
                       "subTotal": 9.0000,
                       "mgstTaxAmount": 0.9600,
                       "totalTaxAmount": 0.9600,
                       "isInclusiveMgst": true,
                       "orderSource": "XILNEXLIVESALES",
                       "mgstTaxPercentage": 12.0000,
                       "isServiceItem": false,
                       "deliveryType": "",
                       "discountRemark": "",
                       "brand": "",
                       "itemType": "RETAIL",
                       "customField1": "",
                       "customField2": "",
                       "customField3": "",
                       "customField4": "",
                       "customField5": "",
                       "customField6": "",
                       "customField7": "",
                       "customField8": "",
                       "customField9": "",
                       "customField10": "",
                       "customField11": "",
                       "customField12": "",
                       "customField13": "",
                       "customField14": "",
                       "customField15": "",
                       "customField16": "",
                       "customField17": "",
                       "customField18": "",
                       "AdditionalTaxPercentage1": 0.0,
                       "AdditionalTaxPercentage2": 0.0,
                       "AdditionalTaxAmount1": 0.0,
                       "AdditionalTaxAmount2": 0.0,
                       "itemImageURL": [
                           ""
                       ],
                       "scanCode": null,
                       "isVoucherItem": false,
                       "matrixBarcode": null,
                       "matrixX": "",
                       "matrixY": "",
                       "catalogueID": "",
                       "purchaseCatalogueID": "",
                       "promoCode": null,
                       "isPromoDiscountItem": false,
                       "eLhdnClassificationCode": "",
                       "eLhdnTaxType": "",
                       "eLhdnCountryCode": "",
                       "description": null,
                       "category": null,
                       "taxCode": null,
                       "articleNumber": "",
                       "isExemptTax": false,
                       "orderTerminalId": "",
                       "productRecommendationTag": null,
                       "productRecommendationGroupID": null,
                       "productRecommendationItemID": null,
                       "productTestRecommendationSettingID": null,
                       "productTestRecommendationVariantID": null,
                       "salesType": "Take Away",
                       "ruleName": null,
                       "campaignName": null,
                       "promotionDiscountAmount": 0.0,
                       "promotionDiscountPercentage": 0.0
                   }
               ],
               "salesItemId": 900102,
               "itemId": 101,
               "itemCode": "CF001",
               "itemName": "Coffee",
               "quantity": 1.0000,
               "shippedQuantity": 0.0000,
               "price": 39.9000,
               "discountPercentage": 10.0000,
               "discountAmount": 3.9900,
               "remark": "",
               "isPrint": false,
               "salesPerson": " Wondercafe",
               "subTotal": 35.9100,
               "mgstTaxAmount": 3.8500,
               "totalTaxAmount": 3.8500,
               "isInclusiveMgst": true,
               "orderSource": "XILNEXLIVESALES",
               "mgstTaxPercentage": 12.0000,
               "isServiceItem": false,
               "deliveryType": "",
               "discountRemark": "",
               "brand": "",
               "itemType": "",
               "customField1": "",
               "customField2": "",
               "customField3": "",
               "customField4": "",
               "customField5": "",
               "customField6": "",
               "customField7": "",
               "customField8": "",
               "customField9": "",
               "customField10": "",
               "customField11": "",
               "customField12": "",
               "customField13": "",
               "customField14": "",
               "customField15": "",
               "customField16": "",
               "customField17": "",
               "customField18": "",
               "AdditionalTaxPercentage1": 0.0000,
               "AdditionalTaxPercentage2": 0.0000,
               "AdditionalTaxAmount1": 0.0000,
               "AdditionalTaxAmount2": 0.0000,
               "itemImageURL": [
                   ""
               ],
               "scanCode": null,
               "isVoucherItem": false,
               "matrixBarcode": null,
               "matrixX": "",
               "matrixY": "",
               "catalogueID": "",
               "purchaseCatalogueID": "",
               "promoCode": "",
               "isPromoDiscountItem": true,
               "eLhdnClassificationCode": "",
               "eLhdnTaxType": "",
               "eLhdnCountryCode": "",
               "description": null,
               "category": null,
               "taxCode": null,
               "articleNumber": "",
               "isExemptTax": false,
               "orderTerminalId": "",
               "productRecommendationTag": null,
               "productRecommendationGroupID": null,
               "productRecommendationItemID": null,
               "productTestRecommendationSettingID": null,
               "productTestRecommendationVariantID": null,
               "salesType": "Take Away",
               "ruleName": null,
               "campaignName": null,
               "promotionDiscountAmount": 0.0,
               "promotionDiscountPercentage": 0.0
           }
       ],
       "collections": [
           {
               "id": 90039,
               "clientId": "9007",
               "invoiceId": "90071",
               "amount": 44.9100,
               "method": "Cash",
               "reference": "",
               "outletId": "1",
               "paymentDate": "2026-05-05T14:30:40.000Z",
               "isVoid": false,
               "creditCardRate": 0,
               "siteId": 900,
               "cardAppCode": "",
               "cardType": "",
               "status": "Saved",
               "receivedBy": "",
               "cardExpiry": "",
               "traceNumber": "",
               "remark": "",
               "tenderAmount": 50.0000,
               "change": 0.0,
               "declarationSessionId": 90026,
               "eodLogId": 90026,
               "isDeposit": false,
               "salesOrderId": "",
               "cardType2": "",
               "cardType3": "",
               "businessDate": "2026-05-05T00:00:00.000Z",
               "internalReferenceId": "",
               "availableBalance": 0.0000,
               "usedDate": null,
               "prepaidCardNumber": "",
               "prepaidReferenceNumber": "",
               "exchangeRate": 0.0,
               "currencyCode": "",
               "foreignAmount": 0.0,
               "foreignGain": "",
               "cardLookup": "",
               "receivedByCashierName": "",
               "deviceName": "",
               "externalRefID": "",
               "posRefID": ""
           }
       ],
       "paymentFlowType": "",
       "paymentForPromo": null,
       "shipments": null,
       "integrationCustomField1": "",
       "integrationCustomField2": "",
       "integrationCustomField3": "",
       "integrationCustomField4": "",
       "integrationCustomField5": "",
       "integrationCustomField6": "",
       "integrationCustomField7": "",
       "integrationCustomField8": "",
       "integrationCustomField9": "",
       "integrationCustomField10": "",
       "listPromoCodeStatus": null,
       "pickUpBarcode": "",
       "kdsEstimatedWaitingTime": null,
       "returnSalesID": "",
       "integrationStatusStringExtend1": null,
       "integrationStatusStringExtend2": null,
       "integrationStatusStringExtend3": null,
       "eLhdnTin": "",
       "docGuid": "550a2c1f5a",
       "doesELhdnRequiredPosting": false,
       "customerIdentificationType": "",
       "eLhdnUuid": "",
       "lhdnValidateDate": "",
       "pendingAction": "{\"listVoucherToGenerate\":[]}",
       "listGeneratedVoucher": [],
       "eLhdnBuyerType": "",
       "customerIc": "",
       "customerEmail": "",
       "buyerSSTNumber": "",
       "eOwnerProfileId": 0,
       "xCard": "",
       "customerAltLookUp": "",
       "posRefId": "",
       "submitSalesRefId": "",
       "submitSalesRefId2": "",
       "cancelSalesRefId": "",
       "orderApprovalStatus": [
           {
               "id": 90025,
               "approvalUTCDateTime": null,
               "approvalStatus": "",
               "approvalRemark": "",
               "approvalBy": ""
           }
       ],
       "pickupInfo": null
   }
}

By Credit Card Payment

JSON
[
 {
   "DOUBLE_Amount": 50,
   "Method": "Card",
   "Reference": "*card number*",
   "STRING_EXTEND_1": "*approval code*",
   "STRING_EXTEND_2": "*card type*",
   "Reference_3": "*credit card expiry*",
   "Reference_4": "*trace no*",
   "Received_By": " wondercafe@xilnex.com",
   "Received_By_Cashier_Name": " Wondercafe",
   "Location_ID": "4624401e8fa846579ac81adfc826f4cd",
   "Remark": "remark",
   "Invoice_ID": "900272"
 }
]


By E-Wallet Payment

JSON
[
 {
   "DOUBLE_Amount": 50,
   "Method": "ewallet",
   "STRING_EXTEND_1": " Transaction reference id ",
   "STRING_EXTEND_2": "wallet type ",
   "Received_By": " wondercafe@xilnex.com",
   "Received_By_Cashier_Name": " Wondercafe",
   "Location_ID": "4624401e8fa846579ac81adfc826f4cd",
   "Remark": "remark",
   "Invoice_ID": "900272"
 }
]


By Voucher Payment

JSON
{
 "payment": {
   "collections": [
     {
       "DOUBLE_Amount": 5,
       "Method": "Voucher",
       "Reference": "71092242703430024052017",
       "Location_ID": "1",
       "Invoice_ID": "900843",
       "Remark": ""
     }
 
   ]
 }
}

By Other Payment

JSON
[
 {
   "DOUBLE_Amount": 5.76,
   "Location_ID": "1",
   "Method": "Other",
   "Reference": "UBER EATS",
   "Remark": "Apple Pay",
   "Invoice_ID": "900272",
   "Received_By": "wondercafe@xilnex.com",
   "Received_By_Cashier_name": " Wondercafe"
 }
]

Mix Payment

JSON
Cash + Credit Card
[
 {
   "DOUBLE_Amount": 50.0,
   "INT_EXTEND_1": 0,
   "Location_ID": "1",
   "Method": "cash",
   "Invoice_ID": "900272",
   "Received_By": "wondercafe@xilnex.com",
   "Received_By_Cashier_name": " Wondercafe"
 }
 
 {
   "DOUBLE_Amount": 50,
   "Method": "Card",
   "Reference": "*card number*",
   "STRING_EXTEND_1": "*approval code*",
   "STRING_EXTEND_2": "*card type*",
   "Reference_3": "*credit card expiry*",
   "Reference_4": "*trace no*",
   "Received_By": " wondercafe@xilnex.com",
   "Received_By_Cashier_Name": " Wondercafe",
   "Location_ID": "1",
   "Remark": "remark",
   "Invoice_ID": "900272"
 }
 
]

Mix Payment Response:

JSON
{
   "ok": true,
   "status": "SuccessInsert",
   "warning": null,
   "error": null,
   "data": {
       "salesNo": 90070,
       "salesDate": "05/05/2026",
       "salesTime": "13:58:00",
       "totalAmount": 44.9100,
       "roundingAmount": 0.0000,
       "mgstTaxAmount": 4.8100,
       "billTaxPercentage": 0.0000,
       "serviceChargeAmount": 0.0,
       "serviceChargePercentage": 0.0,
       "customerId": "9007",
       "customerName": "Thomas",
       "recipient": "",
       "salesStatus": "COMPLETED",
       "salesOutlet": "1",
       "salesType": "Take Away",
       "orderNo": "9993",
       "paxNo": 0,
       "salesPerson": " Wondercafe",
       "remark": "Remark Testing 123",
       "isPrint": false,
       "orderSource": "XILNEXLIVESALES",
       "orderTerminalId": "bddc6a802f4eab5f",
       "orderStatus": "",
       "pickupTime": "",
       "salesDateTime": "2026-05-05T13:58:00.000Z",
       "recipientContact": "",
       "promoCode": null,
       "promoCodeCollection": null,
       "totalDiscountAmount": 4.9900,
       "totalAmountBeforeTax": 45.0900,
       "shippingAddress": {
           "street": "",
           "city": "",
           "state": "",
           "zipcode": "",
           "country": ""
       },
       "shippingRemark": "",
       "recipientContactTel": "",
       "shipmentProvider": "",
       "trackingLink": null,
       "trackingNumber": null,
       "deliveryError": null,
       "deliveryType": "",
       "orderId": null,
       "billDiscountAmount": 0.0000,
       "billTaxAmount": 0.0,
       "promoIdentifier": "",
       "shipmentDateTime": null,
       "businessDate": "2026-05-05T00:00:00.000Z",
       "customFieldValueThree": "",
       "customFieldValueFour": "",
       "customFieldValueFive": "",
       "serviceChargeAmountAfterTax": 0.0,
       "subSalesType": "",
       "billingRemark": "",
       "externalDocumentId": null,
       "postStatus": false,
       "integrationModule": null,
       "documentType": null,
       "ExternalRefId": "",
       "ExternalRefId2": "",
       "ExternalRefId3": "",
       "salesItems": [
           {
               "modifiers": [
                   {
                       "subtotal": 9.0000,
                       "salesItemId": 900101,
                       "itemId": 17070,
                       "itemCode": "D001",
                       "itemName": "Coke 325ML",
                       "quantity": 1.0000,
                       "shippedQuantity": 0.0000,
                       "price": 10.0000,
                       "discountPercentage": 10.0000,
                       "discountAmount": 1.0000,
                       "remark": "",
                       "isPrint": false,
                       "salesPerson": "",
                       "subTotal": 9.0000,
                       "mgstTaxAmount": 0.9600,
                       "totalTaxAmount": 0.9600,
                       "isInclusiveMgst": true,
                       "orderSource": "XILNEXLIVESALES",
                       "mgstTaxPercentage": 12.0000,
                       "isServiceItem": false,
                       "deliveryType": "",
                       "discountRemark": "",
                       "brand": "",
                       "itemType": "RETAIL",
                       "customField1": "",
                       "customField2": "",
                       "customField3": "",
                       "customField4": "",
                       "customField5": "",
                       "customField6": "",
                       "customField7": "",
                       "customField8": "",
                       "customField9": "",
                       "customField10": "",
                       "customField11": "",
                       "customField12": "",
                       "customField13": "",
                       "customField14": "",
                       "customField15": "",
                       "customField16": "",
                       "customField17": "",
                       "customField18": "",
                       "AdditionalTaxPercentage1": 0.0,
                       "AdditionalTaxPercentage2": 0.0,
                       "AdditionalTaxAmount1": 0.0,
                       "AdditionalTaxAmount2": 0.0,
                       "itemImageURL": [
                           ""
                       ],
                       "scanCode": null,
                       "isVoucherItem": false,
                       "matrixBarcode": null,
                       "matrixX": "",
                       "matrixY": "",
                       "catalogueID": "",
                       "purchaseCatalogueID": "",
                       "promoCode": null,
                       "isPromoDiscountItem": false,
                       "eLhdnClassificationCode": "",
                       "eLhdnTaxType": "",
                       "eLhdnCountryCode": "",
                       "description": null,
                       "category": null,
                       "taxCode": null,
                       "articleNumber": "",
                       "isExemptTax": false,
                       "orderTerminalId": "",
                       "productRecommendationTag": null,
                       "productRecommendationGroupID": null,
                       "productRecommendationItemID": null,
                       "productTestRecommendationSettingID": null,
                       "productTestRecommendationVariantID": null,
                       "salesType": "Take Away",
                       "ruleName": null,
                       "campaignName": null,
                       "promotionDiscountAmount": 0.0,
                       "promotionDiscountPercentage": 0.0
                   }
               ],
               "salesItemId": 900100,
               "itemId": 101,
               "itemCode": "CF001",
               "itemName": "Coffee",
               "quantity": 1.0000,
               "shippedQuantity": 0.0000,
               "price": 39.9000,
               "discountPercentage": 10.0000,
               "discountAmount": 3.9900,
               "remark": "",
               "isPrint": false,
               "salesPerson": " Wondercafe",
               "subTotal": 35.9100,
               "mgstTaxAmount": 3.8500,
               "totalTaxAmount": 3.8500,
               "isInclusiveMgst": true,
               "orderSource": "XILNEXLIVESALES",
               "mgstTaxPercentage": 12.0000,
               "isServiceItem": false,
               "deliveryType": "",
               "discountRemark": "",
               "brand": "",
               "itemType": "",
               "customField1": "",
               "customField2": "",
               "customField3": "",
               "customField4": "",
               "customField5": "",
               "customField6": "",
               "customField7": "",
               "customField8": "",
               "customField9": "",
               "customField10": "",
               "customField11": "",
               "customField12": "",
               "customField13": "",
               "customField14": "",
               "customField15": "",
               "customField16": "",
               "customField17": "",
               "customField18": "",
               "AdditionalTaxPercentage1": 0.0000,
               "AdditionalTaxPercentage2": 0.0000,
               "AdditionalTaxAmount1": 0.0000,
               "AdditionalTaxAmount2": 0.0000,
               "itemImageURL": [
                   ""
               ],
               "scanCode": null,
               "isVoucherItem": false,
               "matrixBarcode": null,
               "matrixX": "",
               "matrixY": "",
               "catalogueID": "",
               "purchaseCatalogueID": "",
               "promoCode": "",
               "isPromoDiscountItem": true,
               "eLhdnClassificationCode": "",
               "eLhdnTaxType": "",
               "eLhdnCountryCode": "",
               "description": null,
               "category": null,
               "taxCode": null,
               "articleNumber": "",
               "isExemptTax": false,
               "orderTerminalId": "",
               "productRecommendationTag": null,
               "productRecommendationGroupID": null,
               "productRecommendationItemID": null,
               "productTestRecommendationSettingID": null,
               "productTestRecommendationVariantID": null,
               "salesType": "Take Away",
               "ruleName": null,
               "campaignName": null,
               "promotionDiscountAmount": 0.0,
               "promotionDiscountPercentage": 0.0
           }
       ],
       "collections": [
           {
               "id": 90040,
               "clientId": "9007",
               "invoiceId": "90070",
               "amount": 20.0000,
               "method": "Cash",
               "reference": "",
               "outletId": "1",
               "paymentDate": "2026-05-05T14:34:40.000Z",
               "isVoid": false,
               "creditCardRate": 0,
               "siteId": 900,
               "cardAppCode": "",
               "cardType": "",
               "status": "Saved",
               "receivedBy": "",
               "cardExpiry": "",
               "traceNumber": "",
               "remark": "",
               "tenderAmount": 44.9100,
               "change": 0.0,
               "declarationSessionId": 90026,
               "eodLogId": 90026,
               "isDeposit": false,
               "salesOrderId": "",
               "cardType2": "",
               "cardType3": "",
               "businessDate": "2026-05-05T00:00:00.000Z",
               "internalReferenceId": "",
               "availableBalance": 0.0000,
               "usedDate": null,
               "prepaidCardNumber": "",
               "prepaidReferenceNumber": "",
               "exchangeRate": 0.0,
               "currencyCode": "",
               "foreignAmount": 0.0,
               "foreignGain": "",
               "cardLookup": "",
               "receivedByCashierName": "",
               "deviceName": "",
               "externalRefID": "",
               "posRefID": ""
           },
           {
               "id": 90041,
               "clientId": "9007",
               "invoiceId": "90070",
               "amount": 24.9100,
               "method": "Card",
               "reference": "2221",
               "outletId": "1",
               "paymentDate": "2026-05-05T14:34:40.000Z",
               "isVoid": false,
               "creditCardRate": 0,
               "siteId": 900,
               "cardAppCode": "31125",
               "cardType": "VISA",
               "status": "Saved",
               "receivedBy": "",
               "cardExpiry": "",
               "traceNumber": "",
               "remark": "remark",
               "tenderAmount": 0.0,
               "change": 0.0,
               "declarationSessionId": 90026,
               "eodLogId": 90026,
               "isDeposit": false,
               "salesOrderId": "",
               "cardType2": "",
               "cardType3": "",
               "businessDate": "2026-05-05T00:00:00.000Z",
               "internalReferenceId": "",
               "availableBalance": 0.0000,
               "usedDate": null,
               "prepaidCardNumber": "",
               "prepaidReferenceNumber": "",
               "exchangeRate": 0.0,
               "currencyCode": "",
               "foreignAmount": 0.0,
               "foreignGain": "",
               "cardLookup": "",
               "receivedByCashierName": "",
               "deviceName": "",
               "externalRefID": "",
               "posRefID": ""
           }
       ],
       "paymentFlowType": "",
       "paymentForPromo": null,
       "shipments": null,
       "integrationCustomField1": "",
       "integrationCustomField2": "",
       "integrationCustomField3": "",
       "integrationCustomField4": "",
       "integrationCustomField5": "",
       "integrationCustomField6": "",
       "integrationCustomField7": "",
       "integrationCustomField8": "",
       "integrationCustomField9": "",
       "integrationCustomField10": "",
       "listPromoCodeStatus": null,
       "pickUpBarcode": "",
       "kdsEstimatedWaitingTime": null,
       "returnSalesID": "",
       "integrationStatusStringExtend1": null,
       "integrationStatusStringExtend2": null,
       "integrationStatusStringExtend3": null,
       "eLhdnTin": "",
       "docGuid": "71594aacff",
       "doesELhdnRequiredPosting": false,
       "customerIdentificationType": "",
       "eLhdnUuid": "",
       "lhdnValidateDate": "",
       "pendingAction": "{\"listVoucherToGenerate\":[]}",
       "listGeneratedVoucher": [],
       "eLhdnBuyerType": "",
       "customerIc": "",
       "customerEmail": "",
       "buyerSSTNumber": "",
       "eOwnerProfileId": 0,
       "xCard": "",
       "customerAltLookUp": "",
       "posRefId": "",
       "submitSalesRefId": "",
       "submitSalesRefId2": "",
       "cancelSalesRefId": "",
       "orderApprovalStatus": [
           {
               "id": 90024,
               "approvalUTCDateTime": null,
               "approvalStatus": "",
               "approvalRemark": "",
               "approvalBy": ""
           }
       ],
       "pickupInfo": null
   }
}


    • Related Articles

    • Basic - Xilnex Support Help Center

      1.0 Xilnex Support Help Center Welcome to the Xilnex Support Help Center – your one-stop destination for comprehensive resources, including our Knowledge Base, FAQs, and a seamless way to sign up and submit support tickets to our team. 2.0 Sign Up If ...
    • Basic - How to change Xilnex Currency

      Checking current currency Open Control Panel Go to Clock and Region On Region click on additional settings Click on Currency tab The currency will be shown on Currency symbol field Change Xilnex currency On the same Currency symbol field click on the ...
    • Basic - How to enable E-Receipt Portal and QR Code Setup on Printing format in Xilnex

      Enable E-Receipt Portal Enable the E-receipt functionality Once Enabled, you will be getting the E-Receipt portal link Continue under Theme & Styling, enabled for the E-Invoice (LHDN) You can customize the look and feel of the E-Receipt portal ...
    • Basic - How to check Missing Foodpanda and Grabfood Orders via Xilnex Portal

      1. Login to Xilnex portal 2. Navigate to the page: Integration > Integration Log > Integration Log Headers. Alternatively, use the search function for quicker access. (Please grant permission if your account does not have access to this module) 3. ...
    • Basic - How To enabling E-Invoicing Module

      Introducing the Xilnex Portal - Malaysia LHDN E-Invoicing The Xilnex Portal is the central platform where all configurations and settings for your system can be managed. Designed for flexibility and ease of use, the portal allows you to set up, ...
    • Recent Articles

    • Cancel Print of Full Tax Invoice

      Overview In Classic POS, there is a feature called Print Full Tax Invoice, which allows users to generate a full tax invoice for a completed sale. The system must maintain an auditable log whenever a Full Tax Invoice is cancelled. This guideline ...
    • Xilnex API Guide for 3rd party

      1. Objective The objective of this API guide is to provide a clear reference for developers and integration partners on how to utilize the Xilnex APIs to establish communication with the Xilnex system. The guide outlines the available endpoints, ...
    • Enabling On The Move 1.0 Access Permission (OTM1.0)

      Overview This guide explains how to enable access for users who need to use On The Move 1.0 (OTM 1.0). For OTM 1.0, only one permission is required: Allow to access on the move If this permission is not enabled for the user's assigned user group, the ...
    • Available Events: Xilnex Event Hub

      Last Updated: 05 May 2026 Sales # Event Name 1 Create Sales 2 Confirm Sales 3 Confirm Sales v2 4 Complete Sales 5 Complete Sales v2 6 Cancel Sales 7 Update Sales 8 Cancel Sales Order 9 Confirm Sales Order 10 Complete Sales Order 11 Post Quotation to ...
    • Integrating with Xilnex: Event Triggers & Webhook Configuration

      Overview Xilnex Event Hub is an integration framework that enables your system to automatically dispatch real-time notifications to external applications whenever a defined business action occurs — such as completing a sale, creating a client, or ...
    • Popular Articles

    • Basic - How to create a voucher-coupon

      Voucher and coupon definition Voucher can be generated in bulk and can be used once Coupon can only be created one at a time (reusable code) and can be use multiple times Pre-voucher / coupon setup There are 2 things need to be prepared before we can ...
    • Understanding DuitNow QR Payment in ClassicPOS

      Introduction This document introduces the DuitNow QR payment feature available in the Xilnex Retail POS, enabling merchants to accept payments conveniently through Malaysia's national QR payment standard. The integration of DuitNowQR simplifies the ...
    • Basic - How to change custom cost to another branch that don’t have custom cost

      Change custom cost to another branch that don’t have custom cost 1. Get the item list from the location with custom cost (Item Code, Name, Custom Cost) 2. Make sure the Show Location Price are selected 3. Export the item list in Excel 4. The file ...
    • Intermediate - How to Bill & Post to Sales from Transfer Note

      1.0 Purpose A bill is required from transfer note when an inventory transfer involves financial transactions, cost allocation, or compliance with tax and accounting regulations. It is used when stock is moved between outlets that operate as separate ...
    • Basic - How to enable E-Receipt Portal and QR Code Setup on Printing format in Xilnex

      Enable E-Receipt Portal Enable the E-receipt functionality Once Enabled, you will be getting the E-Receipt portal link Continue under Theme & Styling, enabled for the E-Invoice (LHDN) You can customize the look and feel of the E-Receipt portal ...