Skip to content

Transaction Response Codes

This page provides details on transaction response codes, including approval codes, decline codes, gateway declines, and AVS response codes.


TIP

Response Codes are grouped as follows: 100 thru 199 are Approvals and Partial Approvals. 200 thru 299 are Declined via the processor. 300 thru 399 are Gateway Declines. 400 thru 499 are processor rejection errors.


Response CodeProcessor DefinitionDescription
0UnknownUnknown, please contact support for more information
99Pending paymentUsed in redirect processors prior to payment being received
100ApprovedTransaction was successfully approved
110Partial approvalTransaction was successfully approved, but for a lesser amount
200 - 299DeclineTransaction has been declined by the issuer for various reasons
300 - 399Gateway DeclinePlatform decline for configuration or fraud reasons
400 - 499Transaction error returned by processorErrors returned from the processor

AVS Response Codes

Address verification response codes (AVS)


AVS Response CodeDefinitionCode Applies toCard Brands
0AVS Not AvailableDomestic + InternationalV, MC, AX, D, PP, JCB
AAddress match onlyDomestic + InternationalV, AX, D,PP, JCB
BAddress matches, ZIP not verifiedDomestic + InternationalV
CIncompatible formatDomestic + InternationalV
DExact matchInternationalV
FExact match, UK-issued cardsDomestic + InternationalV
GNon-U.S. Issuer does not participateInternationalV
INot verifiedInternationalV, D, PP, JCB
MExact matchInternationalV
NNo address or ZIP matchDomestic + InternationalV, MC, AX, D, PP, JCB
PPostal Code matchDomestic + InternationalV
RIssuer system unavailableDomesticV, MC, AX, D, PP, JCB
SService not supportedDomesticMC, AX, D, PP, JCB
UAddress unavailableDomesticV, MC, AX, D, PP, JCB
W9-character numeric ZIP match onlyDomestic + International (MC)MC, D, PP, JCB
XExact match, 9-character numeric ZIPDomestic + International (MC)MC, D, PP, JCB
YExact match, 5-character numeric ZIPDomesticV, MC, AX, D, PP, JCB
Z5-character ZIP match onlyDomestic + International (V)V, MC, AX, D, PP, JCB
LPartial match, Name and billing postal code matchFor AMEX cards onlyAX
1Cardholder name and ZIP matchDomesticAX
2Cardholder name, address and ZIP matchDomesticAX
3Cardholder name and address matchDomesticAX
4Cardholder name matchesDomesticAX
5Cardholder name incorrect, ZIP matchesDomesticAX
6Cardholder name incorrect, address and zip matchDomesticAX
7Cardholder name incorrect, address matchesDomesticAX
8Cardholder name, address, and ZIP do not matchDomesticAX

Sample Response Bodies

Example transaction response bodies for different payment methods.

json
{
  "status": "success",
  "msg": "success",
  "data": {
    "id": "b7kgflt1tlv51er0fts0",
    "type": "sale",
    "amount": 1112,
    "tax_amount": 100,
    "tax_exempt": false,
    "shipping_amount": 100,
    "discount_amount": 0,
    "payment_adjustment_type": "",
    "payment_adjustment_value": 0,
    "currency": "usd",
    "description": "test transaction",
    "order_id": "someOrderID",
    "po_number": "somePONumber",
    "ip_address": "4.2.2.2",
    "email_receipt": false,
    "email_address": "user@home.com",
    "payment_method": "card",
    "response_body": {
      "card": {
        "id": "b7kgflt1tlv51er0ftsg",
        "card_type": "visa",
        "first_six": "401200",
        "last_four": "5439",
        "masked_card": "401200******5439",
        "expiration_date": "12/20",
        "response": "approved",
        "response_code": 100,
        "auth_code": "TAS731",
        "processor_response_code": "00",
        "processor_response_text": "APPROVAL TAS731 ",
        "processor_type": "tsys_sierra",
        "processor_id": "b7kgflt1tlv51er0f1sg",
        "bin_type": "STANDARD",
        "type": "debit",
        "avs_response_code": "0",
        "cvv_response_code": "M",
        "processor_specific": {},
        "created_at": "2017-10-19T20:15:19.80368Z",
        "updated_at": "2017-10-19T20:15:20.777011Z"
      }
    },
    "status": "pending_settlement",
    "response": "approved",
    "response_code": 100,
    "customer_id": "aaaaaaaaaaaaaaaaaaaa",
    "billing_address": {
      "first_name": "John",
      "last_name": "Smith",
      "company": "Test Company",
      "address_line_1": "123 Some St",
      "address_line_2": "",
      "city": "Wheaton",
      "state": "IL",
      "postal_code": "60187",
      "country": "US",
      "phone": "5555555555",
      "fax": "5555555555",
      "email": "help@website.com"
    },
    "shipping_address": {
      "first_name": "John",
      "last_name": "Smith",
      "company": "Test Company",
      "address_line_1": "123 Some St",
      "address_line_2": "",
      "city": "Wheaton",
      "state": "IL",
      "postal_code": "60187",
      "country": "US",
      "phone": "5555555555",
      "fax": "5555555555",
      "email": "help@website.com"
    },
    "created_at": "2017-10-19T20:15:19.560708Z",
    "updated_at": "2017-10-19T20:15:20.832049Z"
  }
}