Get a Customer’s Transaction History

Service URL: GET /customers/transactions/{transactionId}

Request Parameters:

  • transactionTypeId – String – can filter the type of transactions to be returned eg. Sale

Response Body: ICustomerTransactionEnquiryResponse

  • customerTransactionDetailsList: ICustomerTransactionDetailsList
  • criteria: ICustomerTransactionEnquiryListCriteria
  • transactionDate: Date

Remarks:

Retrieve a customer’s transaction given a transaction id. The search can be filtered by the transactions type Id

Example Request:

http://localhost:8080/WebRestApi/rest/customers/transactions/00010001000042008271257173

Example Response:

{
    "customerTransactionDetailsList": [
        {
            "lineNumber": "2",
            "quantity": 1.0,
            "effectiveNetValue": 4260,
            "salesPerson": "1",
            "productId": "MB709SN-2",
            "description": "Rose Print Tea Dress",
            "loyaltyPoints": 0
        },
        {
            "lineNumber": "1",
            "quantity": 1.0,
            "effectiveNetValue": 4260,
            "salesPerson": "1",
            "productId": "MB709SN-2",
            "description": "Rose Print Tea Dress",
            "loyaltyPoints": 0
        },
        {
            "lineNumber": "3",
            "quantity": 0.0,
            "effectiveNetValue": -8520,
            "salesPerson": "1",
            "description": "Cash UK",
            "loyaltyPoints": 0
        }
    ],
    "criteria": {
        "maxRows": 0,
        "suppressDefaultOrderBy": false,
        "distinct": false
    }
}
Go to Top