PayFacto API v1.3.9 (STP Installer) - STPI/STP - STPI Error Codes

PayFacto API v1.3.9 (STP Installer) - STPI/STP - STPI Error Codes

STPI Error Codes

Reference list of error codes returned by the STPI (SecureTable POS Interface) gateway, including the terminal message, technical details, and suggested action for each code.

📊

  Error Code Reference

Many codes in the 802–954 range are generic POS-side errors (labelled “May occur with some POS systems” in the source document) and are not specific to STPI. For these, contact the POS provider for support.

Code Terminal Message Technical Details Suggested Action
101Fatal errorUnexpected errorContact PayFacto Support.
201License errorThis can happen when we are using the older CA license files during the communication with the license server. (Not license tokens)

This shouldn’t happen now because we are using license tokens rather than the old CA license files.
Contact PayFacto Support.
401Invalid server socketThis will only happen when STPI cannot establish a connection to the POS.Check the gateway_sm.properties in the STPI install location for the pos.listen.port property. By default, this is set to port 4999. Make sure that port is not already in use.
402Socket init failedCould not open the connection to the POS.Check that the POS is listening on the correct IP address and port specified by the properties pos.server.ip and pos.server.port in the gateway_sm.properties file in the STPI install location.

Or, due to conflicting ports. STPI will try to open a socket for printing purposes on port 600xx where xx is the first two digits of the check number. If this happens, check the POS.
403IP send failedCould not send message to the POS. (The socket was already successfully opened)This means that even though the socket was opened to the POS, that there was a problem in sending messages to the POS. Check any network issues (if POS is on another machine), or POS side, or try another transaction.
404IP receive failedCould not receive response message from POS. (The socket was already successfully opened, and a request message was already successfully sent to POS)This means that even though we sent a message to the POS already, that there was a problem in receiving a response from the POS. Check any network issues (if POS is on another machine), or POS side, or try another transaction.
601Invalid tag valuesThis issue typically happens when STPI receives a request message from the terminal which is expected to be a number but was not.If this happens, report the issue to the PayFacto Support.

Try to downgrade the version of the SecureTablePay app. It could be that the latest version could cause this. If that doesn’t work, also try a downgrade of the STPI client.
602Invalid value for formatThis issue will happen when certain configuration in the gateway_sm.properties file are expected to be numbers, but aren’t.Check the values in the gateway_sm.properties file. Possible properties to check may be (but not limited to) the following:
1. pos.server.ip
2. pos.server.ip2
3. pos.server.port
4. pos.read.timeout
5. pos.termid
6. pos.servicetype
7. pos.response.limit
8. pos.close.check
9. pos.pass.tk2.apply.pay
801Invalid server IDThis happens when the server id does not exist in the POS database.Check that you are using the correct server ID in the POS.
802Invalid SQL serverThis happens when we cannot connect to the POS database.Check that the following properties in the gateway_sm.properties file match the setup in the POS.
1. pos.server.ip
2. pos.server.database.port
3. pos.server.database.instance.name
4. pos.server.database.connection.type
   • the value for this is 1 or 2.
   • value 1 means that we connect to the database using IP address (1) and database port (2).
   • value 2 means that we connect to the database using IP address (1) and the instance name (3).

Check that the sq.conf file also exists in the STPI install location.
803Invalid POS server  
804Invalid responseA. This can happen when STPI does not receive enough bytes from the POS.
Or,
B. When the POS database does not have the specific check or any checks.
Or,
C. Cannot get a response from the hello1.dll.
A.
1. If the POS is running on a different machine, this could be potentially packet loss. Try it again.
2. If the issue persists, it could be that the POS has an issue when sending a response back to STPI. Contact POS support.

B. Contact POS support.
C. Check with PayFacto Support about this or contact the POS provider for support.
805Invalid XML responseInvalid XML response.
Or,
Cannot get print data from POS.
1. If the POS was recently updated, try downgrading the version.
2. If STPI was recently updated, try downgrading the version.
3. If 1 & 2 fails, contact PayFacto Support to examine the XML response from POS. May need to contact the POS provider for support.
807Invalid amountThis can happen if the check number, purchase amount or tax amount from the POS is not a number.1. If the POS was recently updated, try downgrading the version.
2. If STPI was recently updated, try downgrading the version.
3. If 1 & 2 fails, contact PayFacto Support to examine this issue. May need to contact the POS provider for support.
808No tablesThis can happen when there are no tables available.1. Open some tables on the POS and try again.
2. If that fails, check if STPI has been updated lately and downgrade it and try again.
810Check does not existThis can happen if the check does not exist.1. Check that the check number is correct.
2. If the POS was recently updated, try downgrading the version.
3. If STPI was recently updated, try downgrading the version
4. Contact PayFacto Support to examine this issue. May need to contact the POS provider for support.
816Invalid payment slipThis can happen when applying the payment.1. If the POS was recently updated, try downgrading the version.
2. If STPI was recently updated, try downgrading the version.
3. If 1 & 2 fail, contact PayFacto Support to examine this issue. May need to contact the POS provider for support.
817Invalid payment responseThis can happen when there is an issue packing the apply payment response to return to the POS1. If STPI was recently updated, try downgrading the version.
2. If 1 & 2 fails, contact PayFacto Support to examine this issue.
819Invalid type of serviceConfig issue on POSMake sure that the pos.servicetype property in the gateway_sm.properties file is correct. Expected value is TS
820Invalid terminal IDConfig issue on POSMake sure that the pos.termid property in the gateway_sm.properties file is correct.
821Invalid DLL responseMay occur with some POS systemsContact PayFacto Support
822DLL load failedConfig issue on POS1. Make sure the hello1.dll exists
2. Contact PayFacto Support
823Too many tablesMay occur with some POS systemsContact PayFacto Support
824Invalid server nameMay occur with some POS systemsContact the POS provider for support.
825Invalid table countMay occur with some POS systemsContact PayFacto Support
826Invalid server IDMay occur with some POS systemsContact the POS provider for support.
829Unauthorized COM termMay occur with some POS systemsContact the POS provider for support.
830Someone already logged inMay occur with some POS systemsContact the POS provider for support.
831Could not find employee from IDMay occur with some POS systemsContact the POS provider for support.
832Invalid employee passwordMay occur with some POS systemsContact the POS provider for support.
833Invalid manager cardMay occur with some POS systemsContact the POS provider for support.
834Employee logged in on another terminalMay occur with some POS systemsContact the POS provider for support.
835No one logged inMay occur with some POS systemsContact the POS provider for support.
836Already clocked inMay occur with some POS systemsContact the POS provider for support.
837Too many shifts todayMay occur with some POS systemsContact the POS provider for support.
838Invalid jobcode for employeeMay occur with some POS systemsContact the POS provider for support.
839Unknown employee clock in errorMay occur with some POS systemsContact the POS provider for support.
840Not clocked inMay occur with some POS systemsContact the POS provider for support.
841Need to checkout firstMay occur with some POS systemsContact the POS provider for support.
842Unknown employee clock out errorMay occur with some POS systemsContact the POS provider for support.
843No checkoutMay occur with some POS systemsContact the POS provider for support.
844Already checked outMay occur with some POS systemsContact the POS provider for support.
845Invalid queueMay occur with some POS systemsContact the POS provider for support.
846Invalid tableMay occur with some POS systemsContact the POS provider for support.
847Open checks on tableMay occur with some POS systemsContact the POS provider for support.
848Table is closedMay occur with some POS systemsContact the POS provider for support.
849Only one check per table allowedMay occur with some POS systemsContact the POS provider for support.
850Invalid checkMay occur with some POS systemsContact the POS provider for support.
851Check has unordered itemsMay occur with some POS systemsContact the POS provider for support.
852Check not fully tenderedMay occur with some POS systemsContact the POS provider for support.
853Invalid paymentMay occur with some POS systemsContact the POS provider for support.
854No local printerMay occur with some POS systemsContact the POS provider for support.
855Invalid tenderMay occur with some POS systemsContact the POS provider for support.
856Check is closedMay occur with some POS systemsContact the POS provider for support.
857Check is emptyMay occur with some POS systemsContact the POS provider for support.
858Employee not assigned to drawerMay occur with some POS systemsContact the POS provider for support.
859Employee drawer not localMay occur with some POS systemsContact the POS provider for support.
860Table active on another terminalMay occur with some POS systemsContact the POS provider for support.
861Invalid itemMay occur with some POS systemsContact the POS provider for support.
862No entryMay occur with some POS systemsContact the POS provider for support.
863Invalid order modeMay occur with some POS systemsContact the POS provider for support.
864Invalid void reasonMay occur with some POS systemsContact the POS provider for support.
865Invalid entryMay occur with some POS systemsContact the POS provider for support.
866Unavailable itemMay occur with some POS systemsContact the POS provider for support.
867Invalid mod codeMay occur with some POS systemsContact the POS provider for support.
868Mod not authorized for parent itemMay occur with some POS systemsContact the POS provider for support.
869Mod requirements not metMay occur with some POS systemsContact the POS provider for support.
870Item is not open itemMay occur with some POS systemsContact the POS provider for support.
871Need more CC infoMay occur with some POS systemsContact the POS provider for support.
872Employee drawer not confirmedMay occur with some POS systemsContact the POS provider for support.
873Jobcode cannot close checksMay occur with some POS systemsContact the POS provider for support.
874Bad CC track infoMay occur with some POS systemsContact the POS provider for support.
875Illegal declared tips amountMay occur with some POS systemsContact the POS provider for support.
876Illegal declared cash amountMay occur with some POS systemsContact the POS provider for support.
877Table not foundMay occur with some POS systemsContact the POS provider for support.
878Table in useMay occur with some POS systemsContact the POS provider for support.
879No local cashierMay occur with some POS systemsContact the POS provider for support.
880Employee cannot tender cashMay occur with some POS systemsContact the POS provider for support.
881Check is missing items from reqdcatMay occur with some POS systemsContact the POS provider for support.
882Check has pending paymentsMay occur with some POS systemsContact the POS provider for support.
883Check is fullMay occur with some POS systemsContact the POS provider for support.
884Could not print back off gift certMay occur with some POS systemsContact the POS provider for support.
885Too many checks on tableMay occur with some POS systemsContact the POS provider for support.
886Entry already selectedMay occur with some POS systemsContact the POS provider for support.
887Invalid special messageMay occur with some POS systemsContact the POS provider for support.
888Invalid menuMay occur with some POS systemsContact the POS provider for support.
890No pivot seatingMay occur with some POS systemsContact the POS provider for support.
891Too many seatsMay occur with some POS systemsContact the POS provider for support.
892Not supported in quick serviceMay occur with some POS systemsContact the POS provider for support.
893Not supported in table serviceMay occur with some POS systemsContact the POS provider for support.
894Cannot adjust finalized gift cardMay occur with some POS systemsContact the POS provider for support.
895Finalizing gift cardMay occur with some POS systemsContact the POS provider for support.
896Check is from previous shiftMay occur with some POS systemsContact the POS provider for support.
897Employee is checked outMay occur with some POS systemsContact the POS provider for support.
898Invalid exception modifier groupMay occur with some POS systemsContact the POS provider for support.
899Not in exception modifier groupMay occur with some POS systemsContact the POS provider for support.
900No entries selectedMay occur with some POS systemsContact the POS provider for support.
901No entries movedMay occur with some POS systemsContact the POS provider for support.
902Invalid comp typeMay occur with some POS systemsContact the POS provider for support.
903Invalid promotionMay occur with some POS systemsContact the POS provider for support.
904Invalid compMay occur with some POS systemsContact the POS provider for support.
905Invalid promoMay occur with some POS systemsContact the POS provider for support.
906FOHCOM currently busyMay occur with some POS systemsContact the POS provider for support.
907FOHCOM server exceptionMay occur with some POS systemsContact the POS provider for support.
908Check has payments pending signature verificationMay occur with some POS systemsContact the POS provider for support.
909Invalid parameterMay occur with some POS systemsContact the POS provider for support.
910eFrequency invalid requestMay occur with some POS systemsContact the POS provider for support.
911eFrequency invalid card numberMay occur with some POS systemsContact the POS provider for support.
912eFrequency invalid prefixMay occur with some POS systemsContact the POS provider for support.
913eFrequency requires manager overrideMay occur with some POS systemsContact the POS provider for support.
914eFrequency unknown errorMay occur with some POS systemsContact the POS provider for support.
915Manager not clocked inMay occur with some POS systemsContact the POS provider for support.
916Illegal break type for shiftMay occur with some POS systemsContact the POS provider for support.
917Illegal combo of break and paid for shiftMay occur with some POS systemsContact the POS provider for support.
918Employee cannot break with open tablesMay occur with some POS systemsContact the POS provider for support.
919Employee on breakMay occur with some POS systemsContact the POS provider for support.
920Invalid break type for employeeMay occur with some POS systemsContact the POS provider for support.
921Employee is not on a breakMay occur with some POS systemsContact the POS provider for support.
922Enforced break times not metMay occur with some POS systemsContact the POS provider for support.
923Password has non-numeric charsMay occur with some POS systemsContact the POS provider for support.
924System not setup to use passwordsMay occur with some POS systemsContact the POS provider for support.
925Password is less than min lengthMay occur with some POS systemsContact the POS provider for support.
926Password is greater than max lengthMay occur with some POS systemsContact the POS provider for support.
927Employee is magcard onlyMay occur with some POS systemsContact the POS provider for support.
928Manager must clockoutMay occur with some POS systemsContact the POS provider for support.
929Magcard already in useMay occur with some POS systemsContact the POS provider for support.
930No clear password rightsMay occur with some POS systemsContact the POS provider for support.
931Employee is terminatedMay occur with some POS systemsContact the POS provider for support.
932Employee is locked on another terminalMay occur with some POS systemsContact the POS provider for support.
933Employee currently clocked inMay occur with some POS systemsContact the POS provider for support.
934Employee cannot delete clockout employee has no shiftMay occur with some POS systemsContact the POS provider for support.
935Employee not scheduled for workMay occur with some POS systemsContact the POS provider for support.
936Employee cannot work another shiftMay occur with some POS systemsContact the POS provider for support.
937Employee cannot clock out yetMay occur with some POS systemsContact the POS provider for support.
938Cannot find drawer for employeeMay occur with some POS systemsContact the POS provider for support.
939Drawer currently assigned to another employeeMay occur with some POS systemsContact the POS provider for support.
940Employees password was cleared but password providedMay occur with some POS systemsContact the POS provider for support.
941Employee is checked inMay occur with some POS systemsContact the POS provider for support.
942Need manager to checkout employeeMay occur with some POS systemsContact the POS provider for support.
943No delete clockout rightsMay occur with some POS systemsContact the POS provider for support.
944No delete checkout rightsMay occur with some POS systemsContact the POS provider for support.
945Invalid reset password stateMay occur with some POS systemsContact the POS provider for support.
946Set expired password requiredMay occur with some POS systemsContact the POS provider for support.
947Set cleared password requiredMay occur with some POS systemsContact the POS provider for support.
948Set uninit password requiredMay occur with some POS systemsContact the POS provider for support.
949COM errorMay occur with some POS systemsContact the POS provider for support.
950POS INIT failedMay occur with some POS systemsContact the POS provider for support.
951Table does not existMay occur with some POS systemsContact the POS provider for support.
952Too many print requestsMay occur with some POS systemsContact the POS provider for support.
953Read password errorMay occur with some POS systemsContact the POS provider for support.
954Write password errorMay occur with some POS systemsContact the POS provider for support.
1001Insufficient terminal infoThis can happen if any of the following tag request values were not submitted by the Terminal request, or have a 0 value:
1. TSN
2. SEQ
1. Report this to PayFacto Support
2. Try to downgrade SecureTablePay version to see if the issue is resolved.
1002Invalid transaction typeThis can happen if the TTYPE in the terminal request was incorrect.1. Report this to PayFacto Support
2. Try to downgrade SecureTablePay version to see if the issue is resolved.
1003Invalid server informationThis can happen if the CLERK in the terminal request was invalid. The CLERK must be all numeric characters. This should not be possible because the SecureTablePay app should not allow the user to punch in non-numeric characters for the CLERK.1. Report this to PayFacto Support
2. Try to downgrade SecureTablePay version to see if the issue is resolved.
1004Insufficient pos informationThis can happen if the terminal request is missing required information.1. Report this to PayFacto Support
2. Try to downgrade SecureTablePay version to see if the issue is resolved.
1005Insufficient payment informationThis can happen if the terminal request is missing required payment information.1. Report this to PayFacto Support
2. Try to downgrade SecureTablePay version to see if the issue is resolved.
1006Invalid amount informationThis can happen if the terminal request is missing valid amounts in the payment information.1. Report this to PayFacto Support
2. Try to downgrade SecureTablePay version to see if the issue is resolved.
1007Invalid purchase amountThis can happen if the purchase amount in the terminal request is 01. Report this to PayFacto Support
2. Try to downgrade SecureTablePay version to see if the issue is resolved.
1008Invalid STPI propertyInvalid value for property pos.server.mode The expected value for this is 2 when working with real POS. The expected value for this is 1 when working with the POS4 server (POS simulator).Ensure the property value is correct in the gateway_sm.properties file.
1009Invalid tender valueThis can happen when the terminal request contains an invalid card type for the payment request.1. Report this to PayFacto Support
2. Try to downgrade SecureTablePay version to see if the issue is resolved.
1011STPI property file in use or lostThis can happen if the gateway_sm.properties file is missing1. Check that the file exists
2. Reinstall STPI
1013Insufficient batch informationThis can happen for non-cash payments where the terminal request is missing parameters required for batching.

These parameters can be:
1. MID
2. TID
3. DATE
4. TIME
5. BATCH
6. PTYPE
7. TRESP
1. Report this to PayFacto Support
2. Try to downgrade SecureTablePay version to see if the issue is resolved.
1014Incorrect batch informationThe BATCH parameter in the terminal request must be a number1. Report this to PayFacto Support
2. Try to downgrade SecureTablePay version to see if the issue is resolved.
1019Invalid dateThe DATE parameter in the terminal request must be of the yyMMdd format1. Report this to PayFacto Support
2. Try to downgrade SecureTablePay version to see if the issue is resolved.
1021Invalid terminal requestThe DEST parameter in the terminal request must be one of the following:
1. STPI
2. STPICLIENT
3. STP

This logic was added to restrict TGI devices from using STPI.
1. If you absolutely need to use this for testing purposes, you can get around this by setting the property stpi.allow.tgi=1 in the gateway_sm.properties file.
2. Otherwise, contact PayFacto Support for support.