Resources

AVS Enforcement & Response Codes

How to enforce Address Verification (AVS) and handle issuer response codes in your Cloud9 integration.

AVS Enforcement

If you need to enforce AVS (Address Verification), set the IgnoreAVSresult API option to N (NO). If you do so, your software must use post-processing to determine the reason for decline and proceed accordingly — not all decline reasons are critical in all conditions.

Cloud9 provides an extensive list of AVS options for fine-grained control.

Important — Only check the first 5 digits of zip codes when validating AVS responses.

The Flow

  1. Step 1: Submit transaction with IgnoreAVSresult: "N"
  2. Step 2: AVS check runs automatically
  3. If AVS passes → Transaction proceeds normally
  4. If AVS does NOT pass → Check the AVS Response Code to decide whether to proceed
  5. Step 3: Use the Issuer Response Code table below to determine the appropriate action
Example: Enforcing AVS in your request
{
  "GMID": "1110222484",
  "GTID": "GT1120095178",
  "TransType": "Sale",
  "MainAmt": "500",
  "IgnoreAVSresult": "N",
  "Street": "123 Main St",
  "Zip": "33441"
}

Issuer Response Codes

When a transaction is declined or flagged, the issuer returns one of the following response codes. Use these to determine whether to retry, prompt the customer, or halt the transaction.

CodeDescription
00Approved
01Refer to card issuer
02Refer to card issuer's special conditions
03Invalid merchant
04Capture / Pick Up Card
05Do not honour
06Error
07Pick up card special condition
09Request in Progress
10Partial Amount Approved
12Invalid transaction
13Invalid amount / bad message edit
14Invalid card number / no such number
15No such issuer
17Customer cancellation
18Customer dispute
19Re-enter transaction
22Suspected malfunction
30Format error
31Bank not supported by switch
33Expired card
34Suspected fraud
35Card Acceptor call acquirer security
36Restricted card — pick up
37Contact Acquirer Security Department
40Requested function not supported
41Lost card
42No universal account
43Stolen card
49The Card Was Declined
51Insufficient funds
54Expired card
56No card record
57Transaction not permitted by cardholder
58Transaction not permitted by terminal
59Suspected fraud
61Exceeds withdrawal amount limit
62Restricted card
63Security violation
65Authentication required
67Hard capture
69–74Error: Contact Card Issuer
75Allowable number of PIN tries exceeded
78Error
80Credit issuer unavailable
85No reason to decline the authorisation attempt
91Authorization platform or issuer system inoperative
92Network problem
93Transaction cannot be completed
96System malfunction
97–99Error
1AAdditional customer authentication required
R1Revocation of Authorization