curl --location '' \
--header 'Content-Type: application/json' \
--data '{
"QueryData": {
"Customer": "Demo Merchant",
"Store": "0000",
"Terminal": "0000",
"Name": "QueryTransactionsByLastState",
"StartDate": "2025-10-10 00:00:00",
"EndDate": "2025-10-14 23:59:59",
"From": "0",
"To": "5",
"LastTranState": "Authorized",
"OrderByDate": "Descending",
"UserName": "Demo_User",
"Password": "Demo_Password"
}
}'{
"Transaction": {
"UniqueID": "2fc54fcc-b28b-4bd1-b4a0-1138b8a9ce4e",
"ResponseCode": "0",
"ResponseDescription": "Request processed successfully",
"ResponseParameters": {
"InvoiceID": "712571",
"InvoiceType": "Once",
"Amount": "50",
"AmountPrintable": "AED 50.00",
"Currency": "AED",
"EffectiveDate": "2025-10-10T05:27:00",
"ExpiryDate": "2025-10-14T19:59:00",
"GeneratedBy": "Demo_User",
"GenerationDate": "2025-10-10T05:40:09",
"MaxInvoices": "0",
"SentViaEmail": "Success - Email sent.",
"SentViaSMS": "Fail - 7351 - Error while sending/receiving SMS",
"Store": "0000",
"Terminal": "0000",
"TotalAmountAuthorized": "50",
"TotalAmountAuthorizedPrintable": "AED 50.00",
"TotalTransactions": "1",
"TransactionsAuthorized": "1",
"Transactions": {
"InvoiceTransaction": {
"ApprovalCode": "638023",
"AuthorizedAmountPrintable": "AED 50.00",
"CardMask": "411111******1111",
"TransactionDate": "2025-10-10T05:43:04",
"TransactionID": "202172264442",
"TransactionStatus": "Authorized",
"TransactionResponseCode": "0",
"TransactionExtraDetails": {
"ExtraDataEntry": [
{
"Name": "Card Brand",
"Value": "Visa"
},
{
"Name": "Card Token",
"Value": "4111115534891111"
},
{
"Name": "Card Expiry",
"Value": "2026-01"
},
{
"Name": "CardHolderName",
"Value": "John Smith"
}
]
}
}
}
},
"Language": "en",
"ResponseClass": "0",
"ResponseClassDescription": "Success"
}
}