Errors

Overview

EML uses conventional HTTP response codes to indicate the success or failure of an API request. In general: Codes in the 2xx range indicate success. Codes in the 4xx range indicate an error that failed given the information provided (e.g. 20 Invalid response, 12 Invalid transaction etc.). Codes in the 5xx range indicate an error with EML's servers.

Some 4xx errors that could be handled programmatically include an error code that briefly explains the error reported.

HTTP Status Codes

CodeMeaning
200 - OKEverything worked as expected.
400 - Bad RequestThe request was unacceptable, often due to missing a required parameter.
401 - UnauthorizedNo valid API key provided.
402 - Request FailedThe parameters were valid but the request failed.
404 - Not FoundThe requested resource doesn't exist.
409 - ConflictThe request conflicts with another request (perhaps due to using the same idempotent key).
429 - Too Many RequestsToo many requests hit the API too quickly. We recommend an exponential backoff of your requests.
500, 502, 503, 504 - Server ErrorsSomething went wrong on EML's API.

ISO 8583

ISO 8583 is an international standard for financial transaction card originated interchange messaging. It is the International Organization for Standardization standard for systems that exchange electronic transactions initiated by cardholders using payment cards.

ISO 8583 defines a message format and a communication flow so that different systems can exchange these transaction requests and responses. The vast majority of transactions made when a customer uses a card to make a payment in a store (EFTPOS) use ISO 8583 at some point in the communication chain, as do transactions made at ATMs. In particular, both the MasterCard and Visa networks base their authorization communications on the ISO 8583 standard, as do many other institutions and networks.

Although ISO 8583 defines a common standard, it is not typically used directly by systems or networks. It defines many standard fields (data elements) which remain the same in all systems or networks, and leaves a few additional fields for passing network-specific details. These fields are used by each network to adapt the standard for its own use with custom fields and custom usages.

ISO8583-1987 - Response Codes

The following table shows response codes and their meanings for ISO8583-1987.

CodeMeaning
00Successful approval/completion or that VIP PIN verification is valid
01Refer to card issuer
02Refer to card issuer, special condition
03Invalid merchant or service provider
04Pickup
05Do not honor
06General error
`07Pickup card, special condition (other than lost/stolen card)
08Honor with identification
`09Request in progress
10Partial approval
11VIP approval
12Invalid transaction
13Invalid amount (currency conversion field overflow) or amount exceeds maximum for card program
14Invalid account number (no such number)
15No such issuer
16Insufficient funds
17Customer cancellation
19Re-enter transaction
20Invalid response
21No action taken (unable to back out prior transaction)
22Suspected Malfunction
25Unable to locate record in file, or account number is missing from the inquiry
28File is temporarily unavailable
30Format error
41Merchant should retain card (card reported lost)
43Merchant should retain card (card reported stolen)
51Insufficient funds
52No checking account
53No savings account
54Expired card
55Incorrect PIN
57Transaction not permitted to cardholder
58Transaction not allowed at terminal
59Suspected fraud
61Activity amount limit exceeded
62Restricted card (for example, in country exclusion table)
63Security violation
65Activity count limit exceeded
68Response received too late
75Allowable number of PIN-entry tries exceeded
76Unable to locate previous message (no match on retrieval reference number)
77Previous message located for a repeat or reversal, but repeat or reversal data are inconsistent with original message
78’Blocked, first used’—The transaction is from a new cardholder, and the card has not been properly unblocked.
80Visa transactions: credit issuer unavailable. Private label and check acceptance: Invalid date
81PIN cryptographic error found (error found by VIC security module during PIN decryption)
82Negative CAM, dCVV, iCVV, or CVV results
83Unable to verify PIN
85No reason to decline a request for account number verification, address verification, CVV2 verification; or a credit voucher or merchandise return
91Issuer unavailable or switch inoperative (STIP not applicable or available for this transaction)
92Destination cannot be found for routing
93Transaction cannot be completed, violation of law
94Duplicate transmission
95Reconcile error
96System malfunction, System malfunction or certain field error conditions
B1Surcharge amount not permitted on Visa cards (U.S. acquirers only)
N0Force STIP
N3Cash service not available
N4Cashback request exceeds issuer limit
N7Decline for CVV2 failure
P2Invalid biller information
P5PIN change/unblock request declined
P6Unsafe PIN
Q1Card authentication failed
R0Stop payment order
R1Revocation of authorization order
R3Revocation of all authorizations order
XAForward to issuer
XDForward to issuer
Z3Unable to go online