1. Home
  2. Docs
  3. API
  4. checkStatus

checkStatus

checkStatus and checkStatus2

The checkStatus method will return the json transaction response to any transaction provided you know the RefId. It’s meant to be used when you don’t receive a response due to a network issue or browser crash.It is HIGHLY recommended to run a checkstatus PRIOR to allowing the next transaction to finalize or update any pending transactions if a response has not been received.

Additionally, we have added a flag to the response, ResultFinal, which indicates if the response you received is the end result. In cases of comm failures with the terminals, this value could be false. We recommend calling checkStatus at regular intervals when the ResultFinal flag is false. On some terminals, we are able to inspect the terminal to find out if the transaction was approved, provided it is back online. Please keep in mind that if the terminal is offline, the response won’t change and you probably don’t want to keep polling forever. If possible, it’s best to check every minute or so in the background so other functions can be done on the POS. Do not constantly invoke the CheckStatus call in a continuous loop without pauses, this will cause alerts and your API credentials will be revoked. The max interval¬† is every 5 seconds for 3 minutes and every 30 seconds thereafter.

The RefID for the original transaction must have been passed to us in the initial request in order to use this feature.

Command=Sale, Refund, Auth etc
refID=refID of the transaction you are looking for the response on
date= date of the transaction in MMddYYYY format, ie. Jan 19, 2016 would be 01192016 – US Central tiimezone

The only reason to use checkStatus2 is if you are using multi-mid applications in the terminal. Nothing else is different for the 2 calls except that checkStatus2 accepts a merchantId value.

HTTP Request – checkStatus

https://econduitapp.com/services/api.asmx/checkStatus?command=sale&key={Key}&password={Pwd}&terminalId={Id}&refID=1234&date=01192016

HTTP Request – checkStatus2

https://econduitapp.com/services/api.asmx/checkStatus2?command=sale&key={Key}&password={Pwd}&terminalId={Id}&refID=1234&date=01192016&merchantID={merchantId}

JSON Response (standard transaction response fields)

{
 "TerminalID": "1234",
 "ResultCode": "Approved",
 "AuthCode": "abc1234",
 "TransType": "checkStatus",
 "Amount": 2.50,
 "AmountString":"2.50",
 "CardType": "Visa",
 "Last4": "0026",
 "Name": "John Doe",
 "CashBack": 0.00,
 "CashBackString": "0.00",
 "Message": "This is a sample message",
 "RefID": "ee0252f6-38bf-4c3f-97d4-a3ecf87cf69b",
 "CardToken":"ASDF2134-AHRCW+FSD123123-NKODS",
 "GiftCardBalance":23.75,
 "GiftCardBalanceString":"23.75",
 "ProcessorExtraData1":"KaNb015170105002706cAAFEd5e00fJlA m000005",
 "ProcessorExtraData2":"|17|210100700000",
 "ProcessorExtraData3":"0058",
 "SignatureData":"iVBORw0KGgoAAAANSUhEUgAAAI4AAA<snipped>QmCC=",
 "Track1": null,
 "Track2": null,
 "EMV_TC": "B9AB420B0937438F",
 "EMV_TVR": "0800008000",
 "EMV_AID": "A0000000031010",
 "EMV_TSI": "F800",
 "EMV_ATC": "0016",
 "EMV_App_Label": "Visa Credit",
 "EMV_App_Name": "Visa Credit",
 "CardBin": "476173",
 "ExpDate":"0117",
 "EntryMethod": "Chip",
 "receiptTerminal":"Blackline Partners

Client ID: 13318900010001
Cashier ID: 
Lane: Store: 
 
05/01/2015 16:56:25
 
 SALE
 Invoice: 78
 
Account: VISA 401200******0026
Cardholder: TEST CARD /VISA
Result: CAPTURED
Authorization Code: 000271

" 
}
Was this article helpful to you? Yes No

How can we help?