Service URL: GET /baskets/{basketReference}/transaction
Tokens:
basketReference – The basket reference of the basket to add the items to, or can be ‘PRIMARY’ to add to the PRIMARY basket.
Response:
TransactionResponse
transaction – ITransaction – returns the transaction of the basket
Remarks
Todo
Example Request
GET /WebRestApi/rest/baskets/PRIMARY/transaction Host: localhost: 8080 subject: 1 |
Example Response
{
"transaction": {
"source": "pos2@0001.enactor",
"sourceApplication": "POS",
"topic": "Transactions",
"sequenceNumber": 0,
"transactionId": "00010002000571907191549452",
"applicationId": "WEB_REST_API",
"transactionNumber": 57,
"originatedBy": {
"regionId": {
"id": "UK",
"groupTypeId": "region",
"groupHierarchyId": "All"
},
"branchNumber": 1,
"terminalNumber": 2,
"transactionNumber": 57,
"userId": {
"id": "CUST_USER"
},
"deviceId": {
"id": "pos2@0001.enactor"
},
"locationId": {
"id": "0001"
}
},
"dateTimeCreated": "2019-07-19T15:49:45.000+01:00",
"basket": {
"items": [
{
"@type": "styleColourSizeItem",
"colourId": {
"id": "RED",
"colourRangeId": "MENS_SHOES"
},
"description": "Vans Canvas Shoes",
"deviceId": "pos2@0001.enactor",
"effectiveNetValue": 59950,
"lineNumber": 1,
"netValue": 59950,
"value": 59950,
"dateTimeCreated": "2019-07-19T15:35:52.000+01:00",
"userId": "CUST_USER",
"modifiersNetValue": 0,
"modifiersEffectiveNetValue": 0,
"modifiersVoidQuantity": 0,
"modifiersQuantity": 0,
"notDiscountable": false,
"maxDiscount": 0,
"handKeyed": true,
"productID": "VV639JS-8",
"quantity": 10,
"netQuantity": 10,
"isReturn": false,
"unitPrice": 5995,
"sourceInventoryType": "AVA",
"orderable": true,
"priceTypeId": "R",
"productTypeId": "skuProduct",
"productImageURL": "image://PRODUCT/VV639JS-1.jpg",
"type": "VALUE",
"mmGroupId": "MENS_SHOES",
"mmGroupHierarchyId": "FASHION",
"mmGroupVariantGroupId": "All",
"mmGroupVariantHierarchyId": "All",
"mmGroupDescription": "Mens Shoes",
"brandGroupId": "VANS",
"brandGroupHierarchyId": "FASHION",
"modifiers": [
{
"@type": "quantityModifier",
"modifierItemLine": 2,
"newQuantity": 6,
"originalQuantity": 1
},
{
"@type": "quantityModifier",
"modifierItemLine": 3,
"newQuantity": 4,
"originalQuantity": 6
},
{
"@type": "quantityModifier",
"modifierItemLine": 4,
"newQuantity": 10,
"originalQuantity": 4
},
{
"@type": "quantityModifier",
"modifierItemLine": 5,
"newQuantity": 10,
"originalQuantity": 10
}
],
"sizeId": {
"id": "8",
"sizeRangeId": "MENS_SHOES"
}
},
{
"@type": "quantityModifierItem",
"description": "Modify Quantity",
"deviceId": "pos2@0001.enactor",
"lineNumber": 2,
"dateTimeCreated": "2019-07-19T16:00:33.000+01:00",
"userId": "CUST_USER",
"type": "QUANTITY",
"newQuantity": 6
},
{
"@type": "quantityModifierItem",
"description": "Modify Quantity",
"deviceId": "pos2@0001.enactor",
"lineNumber": 3,
"dateTimeCreated": "2019-07-19T16:00:58.000+01:00",
"userId": "CUST_USER",
"type": "QUANTITY",
"newQuantity": 4
},
{
"@type": "quantityModifierItem",
"description": "Modify Quantity",
"deviceId": "pos2@0001.enactor",
"lineNumber": 4,
"dateTimeCreated": "2019-07-19T16:03:48.000+01:00",
"userId": "CUST_USER",
"type": "QUANTITY",
"newQuantity": 10
},
{
"@type": "quantityModifierItem",
"description": "Modify Quantity",
"deviceId": "pos2@0001.enactor",
"lineNumber": 5,
"dateTimeCreated": "2019-07-19T16:07:04.000+01:00",
"userId": "CUST_USER",
"type": "QUANTITY",
"newQuantity": 10
}
],
"balance": 59950,
"currencyId": "GBP",
"currencyDescription": "Pounds Sterling",
"taxInclusive": true,
"taxSchemeId": "UK",
"itemCount": 5,
"saleItemQuantity": 10,
"returnItemQuantity": 0,
"saleItemNetValue": 59950,
"returnItemNetValue": 0,
"merchandiseItemQuantity": 10,
"merchandiseItemValue": 59950,
"total": 59950,
"grossTotal": 59950,
"taxTotal": 0,
"totalTaxAdjustment": 0,
"preAuthBalance": 0,
"effectiveSaleValue": 59950
},
"loyaltyPointsDetails": {
"dayNumber": 0,
"loyaltyPointsBalance": 0,
"loyaltyPointsEarned": 0,
"promotionalLoyaltyPointsEarned": 0,
"loyaltyPointsMissed": 0,
"loyaltyPointsRate": 0,
"loyaltyAccountOffline": true,
"loyaltyPointsUsed": 0,
"totalSpend": 0,
"spendToNextTier": 0,
"externalProvider": false,
"noLoyaltyUpdate": false,
"rewardValue": 0,
"rewardValueRedeemed": 0
}
}
}