{
  "openapi": "3.0.3",
  "info": {
    "title": "MerchantE Reporting API",
    "description": "The MerchantE platform provides a robust variety of reports to assist in reconciliation of card and ACH \ntransactions. In addition to providing reports via the web, an API servlet is available for users that \nprefer to download the data into their own system in CSV format. An additional option to download data \nin XML format is also available.\n\nTo initiate a request, users must provide a valid user name and password with the rights necessary to use \nthe reporting API and access the requested report. Although several reports are available via the API, only \nreports enabled for that user name will be accessible.\n\n## Available Reports\n\n| Report ID | Report Name | Description |\n|-----------|-------------|-------------|\n| 1 | Batch Summary | Pre-settlement card totals by date and batch |\n| 2 | Settlement Summary | Settled transactions to merchant's bank |\n| 3 | Deposit Summary | ACH entries to merchant's account |\n| 5 | Chargeback Adjustments | Individual chargebacks with status |\n| 7 | Retrieval Requests | Retrieval request tracking |\n| 8 | Daily Interchange | Interchange qualification categories |\n| 9 | Custom Queries | Visa/MC/Discover ARDEF tables |\n| 10 | FX Batch Summary | International FX transactions |\n| 12 | International Retrieval Requests | International retrieval tracking |\n| 13 | FX Interchange Summary | FX interchange rates |\n| 14 | International Settlement Summary | Settled international transactions |\n| 15 | Authorization Log | Real-time authorization attempts |\n| 21 | Payment Gateway Unsettled | Pending settlement transactions |\n| 22 | Payment Gateway Settled | Settled gateway transactions |\n| 23 | Payment Gateway Rejected | Declined transactions |\n\n## Custom Queries\n\n| Query ID | Query Name | Description |\n|----------|------------|-------------|\n| 283 | Visa ARDEF Table | Current Visa account range definition table |\n| 284 | MasterCard ARDEF Table | Current MasterCard account range definition table |\n| 286 | Discover ARDEF Data | Current Discover account range definition table |\n\n## Response Formats\n\nReports can be returned in CSV (default) or XML format. Use the `xmlEncoding` parameter to specify XML output.\n\n## Document Revisions\n\n- **March 2024**: Current version\n- **April 2023**: Switched to monthly update, updated API Specification template\n- **November 2022**: Added Digital Wallet to Settlement Detail, Batch Detail, and Authorization Log Detail reports\n- **May 2022**: Removed Payvision reports, added KeyBank to copyright statement\n- **December 2021**: Completed rebranding, updated for consistent formatting\n- **July 2018**: Added Discover ARDEF custom query, updated Visa ARDEF field values\n- **April 2018**: Updated Chargeback and retrieval reason codes with Visa VCR codes\n",
    "version": "4.3",
    "contact": {
      "name": "MerchantE Support",
      "url": "https://www.merchante.com"
    },
    "termsOfService": "https://www.merchante.com/terms",
    "license": {
      "name": "Proprietary",
      "url": "https://www.merchante.com/license"
    },
    "x-logo": {
      "url": "https://www.merchante.com/logo.png",
      "altText": "MerchantE Logo"
    }
  },
  "externalDocs": {
    "description": "MerchantE Payment Gateway Specification",
    "url": "https://www.merchante.com/docs/payment-gateway"
  },
  "servers": [
    {
      "url": "https://test.merchante-solutions.com",
      "description": "Test Server"
    }
  ],
  "tags": [
    {
      "name": "Batch Reports",
      "description": "Batch Summary and related reports for pre-settlement data"
    },
    {
      "name": "Settlement Reports",
      "description": "Settlement Summary and related reports for settled transactions"
    },
    {
      "name": "Deposit Reports",
      "description": "ACH deposit entries and summaries"
    },
    {
      "name": "Chargeback Reports",
      "description": "Chargeback adjustments and tracking"
    },
    {
      "name": "Retrieval Reports",
      "description": "Retrieval request tracking (domestic and international)"
    },
    {
      "name": "Interchange Reports",
      "description": "Daily interchange and FX interchange summaries"
    },
    {
      "name": "Authorization Reports",
      "description": "Real-time authorization log"
    },
    {
      "name": "Payment Gateway Reports",
      "description": "Payment Gateway transaction reports (unsettled, settled, rejected)"
    },
    {
      "name": "Custom Queries",
      "description": "ARDEF table queries for Visa, MasterCard, and Discover"
    },
    {
      "name": "International Reports",
      "description": "FX and international transaction reports"
    }
  ],
  "paths": {
    "/jsp/reports/report_api.jsp": {
      "post": {
        "tags": [
          "Batch Reports",
          "Settlement Reports",
          "Deposit Reports",
          "Chargeback Reports",
          "Retrieval Reports",
          "Interchange Reports",
          "Authorization Reports",
          "Payment Gateway Reports",
          "Custom Queries",
          "International Reports"
        ],
        "summary": "Generate Report",
        "description": "Universal endpoint for generating all MerchantE reports. The `dsReportId` parameter determines \nwhich report type is generated. Each report type has its own required and optional parameters.\n\n## Report Types by dsReportId\n\n- **1**: Batch Summary Report\n- **2**: Settlement Summary Report\n- **3**: Deposit Summary Report\n- **5**: Chargeback Adjustments Report\n- **7**: Retrieval Requests Report\n- **8**: Daily Interchange Summary Report\n- **9**: Custom Queries (requires queryId)\n- **10**: FX Batch Summary Report\n- **11**: International Chargebacks Report\n- **12**: International Retrieval Requests Report\n- **13**: FX Interchange Summary Report\n- **14**: International Settlement Summary Report\n- **15**: Authorization Log Report\n- **21**: Payment Gateway Unsettled Transactions Report\n- **22**: Payment Gateway Settled Transactions Report\n- **23**: Payment Gateway Rejected Transactions Report\n\n## Report Versions\n\nMost reports support two versions:\n- **Summary (reportType=0)**: Aggregated totals by card type\n- **Detail (reportType=1)**: Transaction-level data\n",
        "operationId": "generateReport",
        "requestBody": {
          "required": true,
          "content": {
            "application/x-www-form-urlencoded": {
              "schema": {
                "$ref": "#/components/schemas/ReportRequest"
              },
              "examples": {
                "batchSummaryDetail": {
                  "summary": "Batch Summary Report - Detail Version",
                  "value": {
                    "userId": "aaaaaaa",
                    "userPass": "xxxxxx",
                    "dsReportId": 1,
                    "reportDateBegin": "04/06/2012",
                    "reportDateEnd": "04/09/2012",
                    "nodeId": "941000123456",
                    "reportType": 1,
                    "includeTridentTranId": true,
                    "includePurchaseId": true
                  }
                },
                "settlementSummary": {
                  "summary": "Settlement Summary Report - Summary Version",
                  "value": {
                    "userId": "aaaaaaa",
                    "userPass": "xxxxxx",
                    "dsReportId": 2,
                    "reportDateBegin": "04/04/2012",
                    "reportDateEnd": "04/13/2012",
                    "nodeId": "941000123456",
                    "reportType": 0
                  }
                },
                "chargebackAdjustments": {
                  "summary": "Chargeback Adjustments Report",
                  "value": {
                    "userId": "aaaaaaa",
                    "userPass": "xxxxxx",
                    "dsReportId": 5,
                    "reportDateBegin": "04/09/2012",
                    "reportDateEnd": "04/09/2012",
                    "nodeId": "941000123456",
                    "reportType": 1,
                    "includeTridentTranId": true,
                    "includePurchaseId": true
                  }
                },
                "visaArdef": {
                  "summary": "Visa ARDEF Custom Query",
                  "value": {
                    "userId": "aaaaaaa",
                    "userPass": "xxxxxx",
                    "dsReportId": 9,
                    "queryId": 283,
                    "reportDateBegin": "04/22/2012",
                    "reportDateEnd": "04/23/2012",
                    "reportType": 0
                  }
                },
                "paymentGatewayUnsettled": {
                  "summary": "Payment Gateway Unsettled Report",
                  "value": {
                    "userId": "aaaaaa",
                    "userPass": "xxxxxx",
                    "dsReportId": 21,
                    "profileId": "9410000xxxxx00000001",
                    "searchValue": "1234",
                    "searchCriteria": "CN"
                  }
                },
                "paymentGatewaySettled": {
                  "summary": "Payment Gateway Settled Report",
                  "value": {
                    "userId": "aaaaaa",
                    "userPass": "xxxxxx",
                    "dsReportId": 22,
                    "profileId": "9410000xxxxx00000001",
                    "batchDateFrom": "10/03/2013",
                    "batchDateTo": "10/03/2013"
                  }
                },
                "authorizationLog": {
                  "summary": "Authorization Log Report",
                  "value": {
                    "userId": "aaaaaaa",
                    "userPass": "xxxxxx",
                    "dsReportId": 15,
                    "reportDateBegin": "02/28/2012",
                    "reportDateEnd": "02/28/2012",
                    "nodeId": "941000123456",
                    "reportType": 1,
                    "includeTridentTranId": true,
                    "includePurchaseId": true
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful report generation",
            "content": {
              "text/csv": {
                "schema": {
                  "type": "string",
                  "description": "CSV formatted report data with header row"
                },
                "examples": {
                  "batchSummaryDetail": {
                    "summary": "Batch Summary Detail Response",
                    "value": "\"Merchant Id\",\"DBA Name\",\"Term Num\",\"Batch Num\",\"Batch Date\",\"Tran Date\",\"Card Type\",\"Card Number\",\"Reference\",\"Purchase Id\",\"Client Reference\",\"Auth Code\",\"Entry Mode\",\"Tran Amount\",\"Digital Wallet\"\n941000060005,\"PAUL'S TEST ACCOUNT\",\"1\",765,05/03/2023,04/20/2023,\"AM\",\"341111xxxxxx1000\",\"'3891738407\",\"3891738407\",\"\",\"000000\",\"KEYED\",56.0,\"APPLE\"\n"
                  },
                  "settlementSummary": {
                    "summary": "Settlement Summary Response",
                    "value": "\"Org Id\",\"Org Name\",\"Card Type\",\"Sales Cnt\",\"Sales Amt\",\"Credits Cnt\",\"Credits Amt\",\"Net Amt\"\n941000123456,\"YOURSTORENAME\",Visa,144,35635.94,22,-8004.35,27631.589999999997\n"
                  },
                  "chargebackAdjustments": {
                    "summary": "Chargeback Adjustments Response",
                    "value": "\"Merchant Id\",\"DBA Name\",\"Control Number\",\"VCR Workflow\",\"Incoming Date\",\"Card Number\",\"Reference Number\",\"Tran Date\",\"Tran Amount\",\"Trident Tran ID\",\"Purchase ID\",\"Client Ref Num\",\"Auth Code\",\"Adj Date\",\"Adj Ref Num\",\"Reason\",\"First Time\",\"Reason Code\",\"CB Ref Num\",\"Terminal ID\"\n941000123456,\"YOURSTORENAME\",2811904,\"Collaboration\",04/08/2012,401234xxxxxx7806,'24436542026000728820478,01/25/2012,299.95,qwertyuiop12345da8dcf4180084fe42,72880690,\"72880690:0:01-25-2012--03:48:24\",0000,\"04/10/2012-\",\"00072882047\",\"Fraudulent Transaction - Card Absent Environment\",Y,83,97352,\"94100012345600000001\"\n"
                  }
                }
              },
              "application/xml": {
                "schema": {
                  "type": "string",
                  "description": "XML formatted report data (when xmlEncoding is specified)"
                },
                "examples": {
                  "xmlEncodingStyle0": {
                    "summary": "XML Encoding Style 0",
                    "value": "<ReportRow>\n  <ReportColumn name=\"CardNumber\" value=\"434257xxxxxx9403\"/>\n  <ReportColumn name=\"TranAmount\" value=\"100.00\"/>\n</ReportRow>\n"
                  },
                  "xmlEncodingStyle1": {
                    "summary": "XML Encoding Style 1",
                    "value": "<ReportRow>\n  <CardNumber>434257xxxxxx9403</CardNumber>\n  <TranAmount>100.00</TranAmount>\n</ReportRow>\n"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request - Invalid parameters",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                },
                "example": "Invalid report parameters"
              }
            }
          },
          "401": {
            "description": "Unauthorized - Invalid credentials",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                },
                "example": "Authentication failed"
              }
            }
          },
          "403": {
            "description": "Forbidden - User does not have access to requested report",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                },
                "example": "Access denied to requested report"
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "ReportRequest": {
        "type": "object",
        "required": [
          "userId",
          "userPass",
          "dsReportId"
        ],
        "properties": {
          "userId": {
            "type": "string",
            "maxLength": 75,
            "description": "User Login ID for the ME web reporting system",
            "example": "aaaaaaa"
          },
          "userPass": {
            "type": "string",
            "maxLength": 30,
            "format": "password",
            "description": "User Login Password for the ME web reporting system",
            "example": "xxxxxx"
          },
          "dsReportId": {
            "$ref": "#/components/schemas/ReportIdEnum"
          },
          "beginDate.month": {
            "$ref": "#/components/schemas/MonthEnum"
          },
          "beginDate.day": {
            "type": "integer",
            "minimum": 1,
            "maximum": 31,
            "description": "Begin date day of month for web report",
            "example": 6
          },
          "beginDate.year": {
            "type": "integer",
            "minimum": 2000,
            "maximum": 2099,
            "description": "Begin date year for web report",
            "example": 2012
          },
          "endDate.month": {
            "$ref": "#/components/schemas/MonthEnum"
          },
          "endDate.day": {
            "type": "integer",
            "minimum": 1,
            "maximum": 31,
            "description": "End date day of month for web report",
            "example": 9
          },
          "endDate.year": {
            "type": "integer",
            "minimum": 2000,
            "maximum": 2099,
            "description": "End date year for web report",
            "example": 2012
          },
          "reportDateBegin": {
            "type": "string",
            "pattern": "^\\d{2}/\\d{2}/\\d{4}$",
            "maxLength": 10,
            "description": "Begin date for the web report. Format should be mm/dd/yyyy.",
            "example": "04/06/2012"
          },
          "reportDateEnd": {
            "type": "string",
            "pattern": "^\\d{2}/\\d{2}/\\d{4}$",
            "maxLength": 10,
            "description": "End date for the web report. Format should be mm/dd/yyyy.",
            "example": "04/09/2012"
          },
          "nodeId": {
            "type": "string",
            "maxLength": 16,
            "pattern": "^\\d{12,16}$",
            "description": "Specific hierarchy node (e.g., merchant account number)",
            "example": "941000123456"
          },
          "reportType": {
            "type": "integer",
            "enum": [
              0,
              1
            ],
            "default": 0,
            "description": "Report type version:\n- 0: Summary version (aggregated totals)\n- 1: Detail version (transaction-level data)\n",
            "example": 1
          },
          "encoding": {
            "type": "integer",
            "enum": [
              0,
              1
            ],
            "default": 0,
            "description": "Download encoding format:\n- 0: CSV (default)\n- 1: Fixed width\n",
            "example": 0
          },
          "includeTridentTranId": {
            "type": "boolean",
            "description": "Allows clients using the API to receive the transaction id in the download file. \nIf the Client ID is submitted using the ME Payment Gateway, the client ID will \nalso be provided in the Batch and Settlement Reports.\n",
            "example": true
          },
          "includePurchaseId": {
            "type": "boolean",
            "description": "Allows clients using the API to receive the purchase id in the report.",
            "example": true
          },
          "includeClientRefNum": {
            "type": "boolean",
            "description": "Allows clients to receive the client reference number in the report.",
            "example": true
          },
          "queryId": {
            "$ref": "#/components/schemas/QueryIdEnum",
            "description": "Only used with Report ID 9. Used to select a predefined custom query.\nMax length: 6 characters.\n"
          },
          "xmlEncoding": {
            "type": "integer",
            "enum": [
              0,
              1
            ],
            "description": "Send if report should be delivered in XML format:\n- 0: XML style with name/value attributes\n- 1: XML style with element names\n",
            "example": 0
          },
          "profileId": {
            "type": "string",
            "maxLength": 20,
            "description": "Profile ID / Terminal ID for Payment Gateway reports",
            "example": "9410000xxxxx00000001"
          },
          "batchDateFrom": {
            "type": "string",
            "pattern": "^\\d{2}/\\d{2}/\\d{4}$",
            "maxLength": 10,
            "description": "Batch date range start for Payment Gateway Settled/Rejected reports",
            "example": "10/03/2013"
          },
          "batchDateTo": {
            "type": "string",
            "pattern": "^\\d{2}/\\d{2}/\\d{4}$",
            "maxLength": 10,
            "description": "Batch date range end for Payment Gateway Settled/Rejected reports",
            "example": "10/03/2013"
          },
          "fromDate": {
            "type": "string",
            "pattern": "^\\d{2}/\\d{2}/\\d{4}$",
            "maxLength": 10,
            "description": "Date range start for Payment Gateway Rejected report",
            "example": "10/02/2013"
          },
          "toDate": {
            "type": "string",
            "pattern": "^\\d{2}/\\d{2}/\\d{4}$",
            "maxLength": 10,
            "description": "Date range end for Payment Gateway Rejected report",
            "example": "10/03/2013"
          },
          "searchCriteria": {
            "type": "string",
            "enum": [
              "CN",
              "IN",
              "TA"
            ],
            "description": "Search criteria type for Payment Gateway Unsettled report:\n- CN: Card number\n- IN: Invoice\n- TA: Transaction Amount\n",
            "example": "CN"
          },
          "searchValue": {
            "type": "string",
            "description": "Search value corresponding to searchCriteria",
            "example": "1234"
          }
        },
        "x-parameterGroups": [
          {
            "name": "Required",
            "fields": [
              "userId",
              "userPass",
              "dsReportId",
              "reportDateBegin",
              "reportDateEnd",
              "nodeId"
            ],
            "description": "Date range and node ID required for most reports. Payment Gateway reports (21-23) use profileId instead of nodeId."
          },
          {
            "name": "Recommended",
            "fields": [
              "reportType",
              "profileId",
              "queryId",
              "xmlEncoding"
            ],
            "description": "reportType=1 for transaction-level details; profileId for Payment Gateway reports; queryId for custom queries; xmlEncoding for XML format"
          },
          {
            "name": "Others",
            "fields": [
              "searchCriteria",
              "searchValue",
              "encoding",
              "includeTridentTranId",
              "includePurchaseId",
              "includeClientRefNum",
              "batchDateFrom",
              "batchDateTo",
              "fromDate",
              "toDate"
            ],
            "description": "Optional search and date filter fields for specific report types"
          }
        ]
      },
      "ReportIdEnum": {
        "type": "integer",
        "enum": [
          1,
          2,
          3,
          5,
          7,
          8,
          9,
          10,
          11,
          12,
          13,
          14,
          15,
          21,
          22,
          23
        ],
        "description": "ID of the report the client is requesting:\n- 1: Batch Summary\n- 2: Settlement Summary\n- 3: Deposit Summary\n- 5: Chargeback Adjustments\n- 7: Retrieval Requests\n- 8: Daily Interchange\n- 9: Custom Queries\n- 10: FX Batch Summary\n- 11: International Chargebacks\n- 12: International Retrieval Requests\n- 13: FX Interchange Summary\n- 14: International Settlement Summary\n- 15: Authorization Log\n- 21: Unsettled Payment Gateway\n- 22: Settled Payment Gateway\n- 23: Rejected Payment Gateway\n",
        "example": 1
      },
      "MonthEnum": {
        "type": "integer",
        "enum": [
          0,
          1,
          2,
          3,
          4,
          5,
          6,
          7,
          8,
          9,
          10,
          11
        ],
        "description": "Month value (0-indexed):\n- 0: January\n- 1: February\n- 2: March\n- 3: April\n- 4: May\n- 5: June\n- 6: July\n- 7: August\n- 8: September\n- 9: October\n- 10: November\n- 11: December\n",
        "example": 3
      },
      "QueryIdEnum": {
        "type": "integer",
        "enum": [
          283,
          284,
          286
        ],
        "description": "Custom Query ID (only used with dsReportId=9):\n- 283: Visa ARDEF Table\n- 284: MasterCard ARDEF Table\n- 286: Discover ARDEF Data\n",
        "example": 283
      },
      "BatchSummarySummaryResponse": {
        "type": "object",
        "description": "Batch Summary Report - Summary Version response fields",
        "properties": {
          "orgId": {
            "type": "string",
            "maxLength": 12,
            "description": "Merchant Number",
            "example": "941000123456"
          },
          "orgName": {
            "type": "string",
            "maxLength": 25,
            "description": "Business DBA",
            "example": "YOURSTORENAME"
          },
          "cardType": {
            "type": "string",
            "maxLength": 50,
            "description": "Brand of Card",
            "example": "Visa"
          },
          "salesCnt": {
            "type": "integer",
            "maxLength": 12,
            "description": "Number of Sale Transactions",
            "example": 144
          },
          "salesAmt": {
            "type": "number",
            "format": "double",
            "maxLength": 12,
            "description": "Dollar amount of Sale Transactions",
            "example": 35635.94
          },
          "creditsCnt": {
            "type": "integer",
            "maxLength": 12,
            "description": "Number of Credit Transactions",
            "example": 22
          },
          "creditsAmt": {
            "type": "number",
            "format": "double",
            "maxLength": 12,
            "description": "Dollar amount of Credit Transactions",
            "example": -8004.35
          },
          "netAmt": {
            "type": "number",
            "format": "double",
            "maxLength": 12,
            "description": "Net Amount (Sales Amt - Credits Amt)",
            "example": 27631.59
          }
        }
      },
      "BatchSummaryDetailResponse": {
        "type": "object",
        "description": "Batch Summary Report - Detail Version response fields",
        "properties": {
          "merchantId": {
            "type": "string",
            "maxLength": 12,
            "description": "Merchant Number",
            "example": "941000060005"
          },
          "dbaName": {
            "type": "string",
            "maxLength": 25,
            "description": "Business DBA",
            "example": "PAUL'S TEST ACCOUNT"
          },
          "termNum": {
            "type": "string",
            "maxLength": 8,
            "description": "Constant assigned by ME",
            "example": "1"
          },
          "batchNum": {
            "type": "integer",
            "maxLength": 3,
            "description": "Batch Number",
            "example": 765
          },
          "batchDate": {
            "type": "string",
            "format": "date",
            "description": "Batch Settlement Date (MM/DD/YYYY)",
            "example": "05/03/2023"
          },
          "tranDate": {
            "type": "string",
            "format": "date",
            "description": "Transaction Date (MM/DD/YYYY)",
            "example": "04/20/2023"
          },
          "cardType": {
            "type": "string",
            "maxLength": 2,
            "description": "Brand of Card code",
            "example": "AM"
          },
          "cardNumber": {
            "type": "string",
            "maxLength": 16,
            "description": "Truncated Card Number",
            "example": "341111xxxxxx1000"
          },
          "reference": {
            "type": "string",
            "maxLength": 23,
            "description": "ARN (Acquirer Reference Number)",
            "example": "'3891738407"
          },
          "purchaseId": {
            "type": "string",
            "maxLength": 17,
            "description": "Invoice Number",
            "example": "3891738407"
          },
          "clientReference": {
            "type": "string",
            "maxLength": 96,
            "description": "Client Reference Number",
            "example": ""
          },
          "authCode": {
            "type": "string",
            "maxLength": 6,
            "description": "Authorization Number",
            "example": "000000"
          },
          "entryMode": {
            "type": "string",
            "maxLength": 50,
            "description": "Method of Card Number Entry",
            "example": "KEYED"
          },
          "tranAmount": {
            "type": "number",
            "format": "double",
            "maxLength": 12,
            "description": "Transaction Amount",
            "example": 56
          },
          "digitalWallet": {
            "type": "string",
            "description": "Type of Digital Wallet (added November 2022)",
            "enum": [
              "APPLE",
              "GOOGLE",
              ""
            ],
            "example": "APPLE"
          }
        }
      },
      "SettlementSummarySummaryResponse": {
        "type": "object",
        "description": "Settlement Summary Report - Summary Version response fields",
        "properties": {
          "orgId": {
            "type": "string",
            "maxLength": 12,
            "description": "Merchant Number",
            "example": "941000123456"
          },
          "orgName": {
            "type": "string",
            "maxLength": 25,
            "description": "Business DBA",
            "example": "YOURSTORENAME"
          },
          "cardType": {
            "type": "string",
            "maxLength": 50,
            "description": "Brand of Card",
            "example": "Visa"
          },
          "salesCnt": {
            "type": "integer",
            "maxLength": 12,
            "description": "Number of Sale Transactions",
            "example": 144
          },
          "salesAmt": {
            "type": "number",
            "format": "double",
            "maxLength": 12,
            "description": "Dollar Amount of Sale Transactions",
            "example": 35635.94
          },
          "creditsCnt": {
            "type": "integer",
            "maxLength": 12,
            "description": "Number of Credit Transactions",
            "example": 22
          },
          "creditsAmt": {
            "type": "number",
            "format": "double",
            "maxLength": 12,
            "description": "Dollar Amount of Credit Transactions",
            "example": -8004.35
          },
          "netAmt": {
            "type": "number",
            "format": "double",
            "maxLength": 12,
            "description": "Net Amount (Sales Amt - Credit Amt)",
            "example": 27631.59
          }
        }
      },
      "SettlementSummaryDetailResponse": {
        "type": "object",
        "description": "Settlement Summary Report - Detail Version response fields",
        "properties": {
          "merchantId": {
            "type": "string",
            "maxLength": 12,
            "description": "Merchant Number",
            "example": "941000123456"
          },
          "dbaName": {
            "type": "string",
            "maxLength": 25,
            "description": "Business DBA",
            "example": "YOURSTORENAME"
          },
          "termNum": {
            "type": "string",
            "maxLength": 8,
            "description": "Constant assigned by ME",
            "example": "1"
          },
          "batchNum": {
            "type": "integer",
            "maxLength": 3,
            "description": "Batch Number",
            "example": 216
          },
          "batchDate": {
            "type": "string",
            "format": "date",
            "description": "Batch Settlement Date (MM/DD/YYYY)",
            "example": "04/04/2012"
          },
          "tranDate": {
            "type": "string",
            "format": "date",
            "description": "Transaction Date (MM/DD/YYYY)",
            "example": "04/04/2012"
          },
          "cardType": {
            "type": "string",
            "maxLength": 2,
            "description": "Brand of Card code",
            "example": "DS"
          },
          "cardNumber": {
            "type": "string",
            "maxLength": 16,
            "description": "Truncated Card Number",
            "example": "352853xxxxxx1234"
          },
          "reference": {
            "type": "string",
            "maxLength": 23,
            "description": "ARN (Acquirer Reference Number)",
            "example": "'2347168185"
          },
          "purchaseId": {
            "type": "string",
            "maxLength": 17,
            "description": "Invoice Number",
            "example": "ABCDEF9737619"
          },
          "authCode": {
            "type": "string",
            "maxLength": 6,
            "description": "Authorization Number",
            "example": "000844"
          },
          "entryMode": {
            "type": "string",
            "maxLength": 50,
            "description": "Method of Card Number Entry",
            "example": "KEYED"
          },
          "tranAmount": {
            "type": "number",
            "format": "double",
            "maxLength": 12,
            "description": "Transaction Amount",
            "example": 0.99
          },
          "currencyCode": {
            "type": "string",
            "maxLength": 3,
            "description": "Funded Currency (Only present when Multi-Currency is enabled).\n3-digit numeric ISO currency code.\n",
            "example": "840"
          },
          "originalAmount": {
            "type": "number",
            "format": "double",
            "description": "Original amount of authorization (Only present when Multi-Currency is enabled)",
            "example": 0.5
          },
          "originalCurrencyCode": {
            "type": "string",
            "maxLength": 3,
            "description": "Currency code that was authorized and cleared to cardholder \n(Only present when Multi-Currency is enabled). 3-digit numeric ISO currency code.\n",
            "example": "840"
          },
          "tridentTranId": {
            "type": "string",
            "maxLength": 32,
            "description": "Trident Transaction ID",
            "example": "e090c187970dxxxxxxxxx4902e41800"
          },
          "clientRefNum": {
            "type": "string",
            "maxLength": 96,
            "description": "Client Reference Number",
            "example": "2346317925"
          },
          "digitalWallet": {
            "type": "string",
            "description": "Type of Digital Wallet (added November 2022)",
            "enum": [
              "APPLE",
              "GOOGLE",
              ""
            ],
            "example": ""
          }
        }
      },
      "DepositSummaryDetailResponse": {
        "type": "object",
        "description": "Deposit Summary Report - Detail Version response fields",
        "properties": {
          "orgId": {
            "type": "string",
            "maxLength": 12,
            "description": "Merchant Number",
            "example": "941000123456"
          },
          "orgName": {
            "type": "string",
            "maxLength": 25,
            "description": "Business DBA",
            "example": "YourStoreName"
          },
          "date": {
            "type": "string",
            "format": "date",
            "description": "Date of ACH Transaction (MM/DD/YYYY)",
            "example": "04/04/2012"
          },
          "type": {
            "type": "string",
            "maxLength": 10,
            "enum": [
              "CREDIT",
              "DEBIT"
            ],
            "description": "Type of ACH Transaction",
            "example": "CREDIT"
          },
          "amount": {
            "type": "number",
            "format": "double",
            "maxLength": 12,
            "description": "Amount of ACH Transaction",
            "example": 4239.21
          },
          "reference": {
            "type": "string",
            "maxLength": 15,
            "description": "ACH Reference Number",
            "example": "'121123456789012"
          }
        }
      },
      "ChargebackAdjustmentsDetailResponse": {
        "type": "object",
        "description": "Chargeback Adjustments Report - Detail Version response fields",
        "properties": {
          "merchantId": {
            "type": "string",
            "maxLength": 12,
            "description": "Merchant Number",
            "example": "941000123456"
          },
          "dbaName": {
            "type": "string",
            "maxLength": 25,
            "description": "Business DBA",
            "example": "YOURSTORENAME"
          },
          "controlNumber": {
            "type": "string",
            "maxLength": 7,
            "description": "ME Internal Tracking Number",
            "example": "2811904"
          },
          "vcrWorkflow": {
            "type": "string",
            "maxLength": 13,
            "description": "Visa Chargeback Workflow (Collaboration/Allocation)",
            "enum": [
              "Collaboration",
              "Allocation",
              ""
            ],
            "example": "Collaboration"
          },
          "incomingDate": {
            "type": "string",
            "format": "date",
            "description": "Date of the Chargeback (MM/DD/YYYY)",
            "example": "04/08/2012"
          },
          "cardNumber": {
            "type": "string",
            "maxLength": 16,
            "description": "Truncated Card Number",
            "example": "401234xxxxxx7806"
          },
          "referenceNumber": {
            "type": "string",
            "maxLength": 23,
            "description": "ARN - 23-digit reference number used when transaction is processed to issuing bank",
            "example": "'24436542026000728820478"
          },
          "tranDate": {
            "type": "string",
            "format": "date",
            "description": "Date of the Transaction (MM/DD/YYYY)",
            "example": "01/25/2012"
          },
          "tranAmount": {
            "type": "number",
            "format": "double",
            "maxLength": 12,
            "description": "Transaction Amount",
            "example": 299.95
          },
          "tridentTranId": {
            "type": "string",
            "maxLength": 32,
            "description": "Trident Transaction ID",
            "example": "qwertyuiop12345da8dcf4180084fe42"
          },
          "purchaseId": {
            "type": "string",
            "maxLength": 17,
            "description": "Invoice Number",
            "example": "72880690"
          },
          "clientRefNum": {
            "type": "string",
            "maxLength": 96,
            "description": "Client Reference Number",
            "example": "72880690:0:01-25-2012--03:48:24"
          },
          "authCode": {
            "type": "string",
            "maxLength": 6,
            "description": "Authorization Number",
            "example": "0000"
          },
          "adjDate": {
            "type": "string",
            "format": "date",
            "description": "Date of the Adjustment (MM/DD/YYYY)",
            "example": "04/10/2012"
          },
          "adjRefNum": {
            "type": "string",
            "maxLength": 11,
            "description": "Internal Tracking Number",
            "example": "00072882047"
          },
          "reason": {
            "type": "string",
            "maxLength": 60,
            "description": "Text explaining reason for chargeback",
            "example": "Fraudulent Transaction - Card Absent Environment"
          },
          "firstTime": {
            "type": "string",
            "maxLength": 1,
            "enum": [
              "Y",
              "N"
            ],
            "description": "Is this a first time Chargeback",
            "example": "Y"
          },
          "reasonCode": {
            "type": "string",
            "maxLength": 4,
            "description": "Numeric code for chargeback type",
            "example": "83"
          },
          "cbRefNum": {
            "type": "string",
            "maxLength": 10,
            "description": "Internal Tracking Number",
            "example": "97352"
          },
          "terminalId": {
            "type": "string",
            "maxLength": 20,
            "description": "The Profile ID",
            "example": "94100012345600000001"
          }
        }
      },
      "RetrievalRequestDetailResponse": {
        "type": "object",
        "description": "Retrieval Request Report - Detail Version response fields",
        "properties": {
          "merchantId": {
            "type": "string",
            "maxLength": 12,
            "description": "Merchant Number",
            "example": "941000123456"
          },
          "dbaName": {
            "type": "string",
            "maxLength": 25,
            "description": "Business DBA",
            "example": "YourStoreName"
          },
          "controlNumber": {
            "type": "string",
            "maxLength": 7,
            "description": "Internal Tracking Number",
            "example": "2815962"
          },
          "incomingDate": {
            "type": "string",
            "format": "date",
            "description": "Date of the Retrieval (MM/DD/YYYY)",
            "example": "04/13/2012"
          },
          "cardNumber": {
            "type": "string",
            "maxLength": 16,
            "description": "Truncated Card Number",
            "example": "601100xxxxxx5317"
          },
          "referenceNumber": {
            "type": "string",
            "maxLength": 8,
            "description": "Internal Tracking Number",
            "example": "'72835320"
          },
          "tranDate": {
            "type": "string",
            "format": "date",
            "description": "Transaction Date (MM/DD/YYYY)",
            "example": "01/17/2012"
          },
          "tranAmount": {
            "type": "number",
            "format": "double",
            "maxLength": 12,
            "description": "Transaction Amount",
            "example": 129.95
          },
          "dueDate": {
            "type": "string",
            "format": "date",
            "description": "Last Day to Respond to ME (MM/DD/YYYY)",
            "example": "04/27/2012"
          },
          "reasonCode": {
            "type": "string",
            "maxLength": 4,
            "description": "Reason for the Retrieval Request",
            "example": "RN2"
          },
          "retrievalRefNum": {
            "type": "string",
            "maxLength": 10,
            "description": "Retrieval Reference Number",
            "example": "3833638576"
          }
        }
      },
      "DailyInterchangeDetailResponse": {
        "type": "object",
        "description": "Daily Interchange Summary Report - Detail Version response fields",
        "properties": {
          "orgId": {
            "type": "string",
            "maxLength": 12,
            "description": "Merchant Number",
            "example": "941000123456"
          },
          "orgName": {
            "type": "string",
            "maxLength": 25,
            "description": "Business DBA",
            "example": "YourStoreName"
          },
          "batchDate": {
            "type": "string",
            "format": "date",
            "description": "Batch Settlement Date (MM/DD/YYYY)",
            "example": "04/09/2012"
          },
          "tranDate": {
            "type": "string",
            "format": "date",
            "description": "Transaction Date (MM/DD/YYYY)",
            "example": "04/08/2012"
          },
          "ct": {
            "type": "string",
            "maxLength": 2,
            "description": "Type of Card (card type code)",
            "example": "DS"
          },
          "cat": {
            "type": "string",
            "maxLength": 4,
            "description": "Interchange level at which the transaction was processed - Numeric version",
            "example": "9125"
          },
          "catDesc": {
            "type": "string",
            "maxLength": 60,
            "description": "Text Description of the Interchange level at which the transaction was processed",
            "example": "Commercial - MSL / Electronic"
          },
          "rate": {
            "type": "number",
            "format": "double",
            "maxLength": 20,
            "description": "Discount Rate for that Interchange level",
            "example": 2.3
          },
          "perItem": {
            "type": "number",
            "format": "double",
            "maxLength": 20,
            "description": "Per Item fee for that Interchange level",
            "example": 0.1
          },
          "cardNumber": {
            "type": "string",
            "maxLength": 16,
            "description": "Truncated Card Number",
            "example": "601149xxxxxx1234"
          },
          "tranAmount": {
            "type": "number",
            "format": "double",
            "maxLength": 12,
            "description": "Transaction Amount",
            "example": 399.95
          },
          "authCode": {
            "type": "string",
            "maxLength": 6,
            "description": "Authorization Number",
            "example": "00825B"
          },
          "entryMode": {
            "type": "string",
            "maxLength": 20,
            "description": "Method of Card Number Entry",
            "example": "KEYED"
          },
          "purchaseId": {
            "type": "string",
            "maxLength": 17,
            "description": "Invoice Number",
            "example": "73374264"
          },
          "reference": {
            "type": "string",
            "maxLength": 8,
            "description": "Internal tracking Number",
            "example": "'73375647"
          },
          "icDue": {
            "type": "number",
            "format": "double",
            "maxLength": 12,
            "description": "Total Interchange Amount",
            "example": 9.29885
          }
        }
      },
      "FxBatchSummaryDetailResponse": {
        "type": "object",
        "description": "FX Batch Summary Report - Detail Version response fields",
        "properties": {
          "merchantId": {
            "type": "string",
            "maxLength": 12,
            "description": "Merchant Number",
            "example": "941000123456"
          },
          "dbaName": {
            "type": "string",
            "maxLength": 25,
            "description": "Business DBA",
            "example": "YourStoreName"
          },
          "termNum": {
            "type": "string",
            "maxLength": 8,
            "description": "Constant assigned by ME",
            "example": "1"
          },
          "batchNumber": {
            "type": "integer",
            "maxLength": 8,
            "description": "Batch Number",
            "example": 20120101
          },
          "batchDate": {
            "type": "string",
            "format": "date",
            "description": "Batch Settlement Date (MM/DD/YYYY)",
            "example": "01/01/2012"
          },
          "tranDate": {
            "type": "string",
            "format": "date",
            "description": "Transaction Date (MM/DD/YYYY)",
            "example": "01/01/2012"
          },
          "cardType": {
            "type": "string",
            "maxLength": 4,
            "description": "Brand of Card",
            "example": "VS"
          },
          "cardNumber": {
            "type": "string",
            "maxLength": 16,
            "description": "Truncated Card Number",
            "example": "401234xxxxxx1234"
          },
          "referenceNumber": {
            "type": "string",
            "maxLength": 10,
            "description": "Internal Tracking Number",
            "example": "'4602428770"
          },
          "purchaseId": {
            "type": "string",
            "maxLength": 17,
            "description": "Invoice Number",
            "example": "4602428791"
          },
          "tridentTranId": {
            "type": "string",
            "maxLength": 32,
            "description": "Trident Transaction ID",
            "example": "1234567890asdfghjklpe5c373131e71"
          },
          "clientReference": {
            "type": "string",
            "maxLength": 96,
            "description": "Client Reference Number",
            "example": "393500"
          },
          "authCode": {
            "type": "string",
            "maxLength": 6,
            "description": "Authorization Number",
            "example": ""
          },
          "entryMode": {
            "type": "string",
            "maxLength": 50,
            "description": "Method of Card Number Entry",
            "example": "KEYED"
          },
          "debitCreditInd": {
            "type": "string",
            "maxLength": 1,
            "enum": [
              "D",
              "C"
            ],
            "description": "Debit or Credit Indicator",
            "example": "D"
          },
          "currencyCode": {
            "type": "string",
            "maxLength": 3,
            "description": "Native Currency Code (ISO 4217 alpha code)",
            "example": "ARS"
          },
          "amount": {
            "type": "number",
            "format": "double",
            "maxLength": 12,
            "description": "Native Currency Amount",
            "example": 347.89
          },
          "amountUsd": {
            "type": "number",
            "format": "double",
            "maxLength": 12,
            "description": "USD Amount",
            "example": 77.42
          }
        }
      },
      "InternationalRetrievalRequestDetailResponse": {
        "type": "object",
        "description": "International Retrieval Request Report - Detail Version response fields",
        "properties": {
          "merchantId": {
            "type": "string",
            "maxLength": 12,
            "description": "Merchant Number",
            "example": "941000123456"
          },
          "dbaName": {
            "type": "string",
            "maxLength": 25,
            "description": "Business DBA",
            "example": "YourStoreName"
          },
          "caseNumber": {
            "type": "string",
            "maxLength": 12,
            "description": "Internal Tracking Number",
            "example": "040212713547"
          },
          "incomingDate": {
            "type": "string",
            "format": "date",
            "description": "Date of the Retrieval (MM/DD/YYYY)",
            "example": "02/05/2012"
          },
          "cardNumber": {
            "type": "string",
            "maxLength": 16,
            "description": "Truncated Card Number",
            "example": "401234xxxxxx1234"
          },
          "referenceNumber": {
            "type": "string",
            "maxLength": 10,
            "description": "ARN - 23-digit reference number used when transaction is processed to issuing bank",
            "example": "4593872049"
          },
          "tridentTranId": {
            "type": "string",
            "maxLength": 32,
            "description": "Trident Transaction ID",
            "example": "24d961234567890asdfghjklpe954508"
          },
          "tranDate": {
            "type": "string",
            "format": "date",
            "description": "Transaction Date (MM/DD/YYYY)",
            "example": "12/19/2011"
          },
          "currencyCode": {
            "type": "string",
            "maxLength": 3,
            "description": "Native Currency Code (ISO 4217 alpha code)",
            "example": "ARS"
          },
          "tranAmount": {
            "type": "string",
            "maxLength": 25,
            "description": "Original Currency Amount, USD Amount (comma-separated)",
            "example": "1329.53,298.08"
          },
          "reasonCode": {
            "type": "string",
            "maxLength": 4,
            "description": "Numeric code for retrieval type",
            "example": "83"
          },
          "reason": {
            "type": "string",
            "maxLength": 60,
            "description": "Text explaining reason for retrieval",
            "example": ""
          },
          "type": {
            "type": "string",
            "maxLength": 50,
            "description": "Type of Retrieval",
            "example": "Request for Photocopy"
          },
          "adjustmentDate": {
            "type": "string",
            "format": "date",
            "description": "Date the Adjustment was made to the Merchant's Account (MM/DD/YYYY)",
            "example": ""
          }
        }
      },
      "FxInterchangeSummaryDetailResponse": {
        "type": "object",
        "description": "FX Interchange Summary Report - Detail Version response fields",
        "properties": {
          "merchantId": {
            "type": "string",
            "maxLength": 12,
            "description": "Merchant Number",
            "example": "941000086319"
          },
          "dbaName": {
            "type": "string",
            "maxLength": 25,
            "description": "Business DBA",
            "example": "2CHECKOUT.COM, INC.2"
          },
          "batchDate": {
            "type": "string",
            "format": "date",
            "description": "Batch Settlement Date (MM/DD/YYYY)",
            "example": "02/28/2012"
          },
          "tranDate": {
            "type": "string",
            "format": "date",
            "description": "Transaction Date (MM/DD/YYYY)",
            "example": "02/24/2012"
          },
          "cardType": {
            "type": "string",
            "maxLength": 4,
            "description": "Brand of Card",
            "example": "Visa"
          },
          "cardNumber": {
            "type": "string",
            "maxLength": 16,
            "description": "Truncated Card Number",
            "example": "401234xxxxxx1234"
          },
          "referenceNumber": {
            "type": "string",
            "maxLength": 10,
            "description": "Internal Tracking Number",
            "example": "'4641783816"
          },
          "purchaseId": {
            "type": "string",
            "maxLength": 17,
            "description": "Invoice Number",
            "example": "4641784008"
          },
          "tridentTranId": {
            "type": "string",
            "maxLength": 32,
            "description": "Trident Transaction ID",
            "example": "f8c5d6ba0d0c3555898593d618cee6d8"
          },
          "clientReference": {
            "type": "string",
            "maxLength": 96,
            "description": "Client Reference Number",
            "example": "1641210"
          },
          "authCode": {
            "type": "string",
            "maxLength": 6,
            "description": "Authorization Number",
            "example": ""
          },
          "entryMode": {
            "type": "string",
            "maxLength": 50,
            "description": "Method of Card Number Entry",
            "example": "KEYED"
          },
          "debitCreditInd": {
            "type": "string",
            "maxLength": 1,
            "enum": [
              "D",
              "C"
            ],
            "description": "Debit or Credit Indicator",
            "example": "D"
          },
          "currencyCode": {
            "type": "string",
            "maxLength": 4,
            "description": "Native Currency Code (ISO 4217 alpha code)",
            "example": "ARS"
          },
          "tranAmount": {
            "type": "number",
            "format": "double",
            "maxLength": 12,
            "description": "Native Currency Amount",
            "example": 57.61
          },
          "tranAmountUsd": {
            "type": "number",
            "format": "double",
            "maxLength": 12,
            "description": "USD Amount",
            "example": 12.69
          },
          "icDue": {
            "type": "number",
            "format": "double",
            "maxLength": 12,
            "description": "Total Interchange amount",
            "example": 0.17
          }
        }
      },
      "InternationalSettlementSummaryDetailResponse": {
        "type": "object",
        "description": "International Settlement Summary Report - Detail Version response fields",
        "properties": {
          "merchantId": {
            "type": "string",
            "maxLength": 12,
            "description": "Merchant Number",
            "example": "941000123456"
          },
          "dbaName": {
            "type": "string",
            "maxLength": 25,
            "description": "Merchant DBA",
            "example": "YourStoreName"
          },
          "batchDate": {
            "type": "string",
            "format": "date",
            "description": "Batch Settlement Date (MM/DD/YYYY)",
            "example": "02/28/2012"
          },
          "tranDate": {
            "type": "string",
            "format": "date",
            "description": "Transaction Date (MM/DD/YYYY)",
            "example": "02/24/2012"
          },
          "cardType": {
            "type": "string",
            "maxLength": 50,
            "description": "Brand of Card",
            "example": "Visa"
          },
          "cardNumber": {
            "type": "string",
            "maxLength": 16,
            "description": "Truncated Card Number",
            "example": "404567xxxxxx1234"
          },
          "referenceNumber": {
            "type": "string",
            "maxLength": 10,
            "description": "ARN - 23-digit reference number used when transaction is processed to issuing bank",
            "example": "'4641783816"
          },
          "purchaseId": {
            "type": "string",
            "maxLength": 17,
            "description": "Invoice Number",
            "example": "4641784008"
          },
          "tridentTranId": {
            "type": "string",
            "maxLength": 32,
            "description": "Trident Transaction ID",
            "example": "1234567890asdfghjklp93d618cee6d8"
          },
          "clientReference": {
            "type": "string",
            "maxLength": 96,
            "description": "Client Reference Number",
            "example": "1641210"
          },
          "authCode": {
            "type": "string",
            "maxLength": 6,
            "description": "Authorization Number",
            "example": ""
          },
          "entryMode": {
            "type": "string",
            "maxLength": 50,
            "description": "Method of Card Number Entry",
            "example": "KEYED"
          },
          "debitCreditInd": {
            "type": "string",
            "maxLength": 1,
            "enum": [
              "D",
              "C"
            ],
            "description": "Debit or Credit Indicator",
            "example": "D"
          },
          "currencyCode": {
            "type": "string",
            "maxLength": 4,
            "description": "Native Currency Code (ISO 4217 alpha code)",
            "example": "ARS"
          },
          "tranAmount": {
            "type": "number",
            "format": "double",
            "maxLength": 12,
            "description": "Transaction Amount in Native Currency",
            "example": 57.61
          }
        }
      },
      "AuthorizationLogDetailResponse": {
        "type": "object",
        "description": "Authorization Log Report - Detail Version response fields",
        "properties": {
          "terminalId": {
            "type": "string",
            "maxLength": 20,
            "description": "Profile ID",
            "example": "'94100006000500000001"
          },
          "tranDate": {
            "type": "string",
            "format": "date",
            "description": "Transaction Date (MM/DD/YYYY)",
            "example": "05/01/2023"
          },
          "tranTime": {
            "type": "string",
            "pattern": "^\\d{2}:\\d{2}:\\d{2}$",
            "description": "Time of Authorization (HH:MM:SS)",
            "example": "19:50:21"
          },
          "posCond": {
            "type": "string",
            "maxLength": 4,
            "description": "POS Condition Code",
            "example": "8"
          },
          "termFmt": {
            "type": "string",
            "maxLength": 10,
            "description": "Historical Data - N/A",
            "example": "3"
          },
          "cardNumber": {
            "type": "string",
            "maxLength": 16,
            "description": "Truncated Card Number",
            "example": "520424xxxxxx0049"
          },
          "mcc": {
            "type": "string",
            "maxLength": 4,
            "description": "Merchant Category Code",
            "example": "5999"
          },
          "cardType": {
            "type": "string",
            "maxLength": 2,
            "description": "Brand of Card",
            "example": "MC"
          },
          "tranAmount": {
            "type": "number",
            "format": "double",
            "maxLength": 12,
            "description": "Amount of Authorization",
            "example": 500
          },
          "expDate": {
            "type": "string",
            "maxLength": 4,
            "pattern": "^\\d{4}$",
            "description": "Card Expiration Date (YYMM)",
            "example": "2412"
          },
          "responseCode": {
            "type": "string",
            "maxLength": 2,
            "description": "Authorization Response Code",
            "example": "00"
          },
          "authCode": {
            "type": "string",
            "maxLength": 6,
            "description": "Authorization Number",
            "example": "T40759"
          },
          "host": {
            "type": "string",
            "maxLength": 10,
            "description": "Authorization Host",
            "example": "Trident"
          },
          "lineType": {
            "type": "string",
            "maxLength": 10,
            "description": "Historical Data - N/A",
            "example": ""
          },
          "src": {
            "type": "string",
            "maxLength": 2,
            "description": "Authorization Source",
            "example": "7"
          },
          "stationId": {
            "type": "string",
            "maxLength": 10,
            "description": "Historical Data - N/A",
            "example": ""
          },
          "avs": {
            "type": "string",
            "maxLength": 2,
            "description": "Address Verification Service result",
            "example": "A"
          },
          "cvvCvv2": {
            "type": "string",
            "maxLength": 2,
            "description": "Card Verification Value result",
            "example": "/"
          },
          "ps2000": {
            "type": "string",
            "maxLength": 2,
            "description": "Returned ACI",
            "example": "N"
          },
          "tranId": {
            "type": "string",
            "maxLength": 15,
            "description": "Transaction ID",
            "example": "0501MCC000001"
          },
          "valCode": {
            "type": "string",
            "maxLength": 4,
            "description": "Validation Code",
            "example": ""
          },
          "productCode": {
            "type": "string",
            "maxLength": 2,
            "description": "Product Level Result Code",
            "example": "MCC"
          },
          "currencyCode": {
            "type": "string",
            "maxLength": 3,
            "description": "Authorized Currency (ISO 3-Digit Alpha Currency code)",
            "example": "USD"
          },
          "digitalWallet": {
            "type": "string",
            "description": "Type of Digital Wallet (added November 2022)",
            "enum": [
              "APPLE",
              "GOOGLE",
              ""
            ],
            "example": ""
          }
        }
      },
      "PaymentGatewayUnsettledResponse": {
        "type": "object",
        "description": "Unsettled Payment Gateway Report response fields",
        "properties": {
          "tranId": {
            "type": "string",
            "maxLength": 32,
            "description": "Trident Transaction ID",
            "example": "7679fc5af3253c5fbeaa798458e5c545"
          },
          "tranDate": {
            "type": "string",
            "format": "date",
            "description": "Transaction Date (MM/DD/YYYY)",
            "example": "11/12/2013"
          },
          "cardType": {
            "type": "string",
            "maxLength": 2,
            "description": "Brand of Card",
            "example": "VS"
          },
          "cardNumber": {
            "type": "string",
            "maxLength": 16,
            "description": "Truncated Card Number",
            "example": "401288xxxxxx8882"
          },
          "referenceNumber": {
            "type": "string",
            "maxLength": 10,
            "description": "ARN - 23-digit reference number used when transaction is processed to issuing bank",
            "example": "528630419"
          },
          "invoiceNumber": {
            "type": "string",
            "maxLength": 17,
            "description": "Invoice Number",
            "example": "123456"
          },
          "authCode": {
            "type": "string",
            "maxLength": 6,
            "description": "Authorization Number",
            "example": "T5566H"
          },
          "status": {
            "type": "string",
            "maxLength": 1,
            "description": "Gateway Transaction Type",
            "example": "D"
          },
          "currencyCode": {
            "type": "string",
            "maxLength": 3,
            "description": "Currency Type (ISO alpha code)",
            "example": "USD"
          },
          "amount": {
            "type": "number",
            "format": "double",
            "maxLength": 12,
            "description": "Dollar Amount of the Transaction",
            "example": 9.95
          }
        }
      },
      "PaymentGatewaySettledResponse": {
        "type": "object",
        "description": "Settled Payment Gateway Report response fields",
        "properties": {
          "tranId": {
            "type": "string",
            "maxLength": 32,
            "description": "Trident Transaction ID",
            "example": "7679fc5af3253c5fbeaa798458e5c545"
          },
          "tranDate": {
            "type": "string",
            "format": "date",
            "description": "Transaction Processed Date (MM/DD/YYYY)",
            "example": "11/12/2013"
          },
          "settleDate": {
            "type": "string",
            "format": "date",
            "description": "Transaction Settlement Date (MM/DD/YYYY)",
            "example": "11/13/2013"
          },
          "cardType": {
            "type": "string",
            "maxLength": 2,
            "description": "Brand of Card",
            "example": "VS"
          },
          "cardNumber": {
            "type": "string",
            "maxLength": 16,
            "description": "Truncated Card Number",
            "example": "401288xxxxxx8882"
          },
          "referenceNumber": {
            "type": "string",
            "maxLength": 10,
            "description": "ARN - 23-digit reference number used when transaction is processed to issuing bank",
            "example": "528630419"
          },
          "invoiceNumber": {
            "type": "string",
            "maxLength": 17,
            "description": "Invoice Number",
            "example": "123456"
          },
          "authCode": {
            "type": "string",
            "maxLength": 6,
            "description": "Authorization Number",
            "example": "T5566H"
          },
          "currencyCode": {
            "type": "string",
            "maxLength": 3,
            "description": "Currency Type (ISO alpha code)",
            "example": "USD"
          },
          "amount": {
            "type": "number",
            "format": "double",
            "maxLength": 12,
            "description": "Transaction Amount",
            "example": 9.95
          }
        }
      },
      "PaymentGatewayRejectedResponse": {
        "type": "object",
        "description": "Rejected Payment Gateway Report response fields",
        "properties": {
          "date": {
            "type": "string",
            "maxLength": 18,
            "description": "Date and Time Stamp of Transaction (MM/DD/YYYY HH:MM:SS)",
            "example": "11/12/2013 3:55:15"
          },
          "tranType": {
            "type": "string",
            "maxLength": 12,
            "description": "Type of Transaction Attempted",
            "example": "Sale"
          },
          "dbaName": {
            "type": "string",
            "maxLength": 25,
            "description": "Merchant DBA Name",
            "example": "YourStoreName"
          },
          "accountNumber": {
            "type": "string",
            "maxLength": 16,
            "description": "Truncated Card Number",
            "example": "401288xxxxxx8882"
          },
          "tranAmount": {
            "type": "number",
            "format": "double",
            "maxLength": 12,
            "description": "Transaction Amount",
            "example": 19.95
          },
          "errorCodeDescription": {
            "type": "string",
            "maxLength": 20,
            "description": "3-Digit Error Code and Detail Description",
            "example": "005 - Decline"
          },
          "avsResult": {
            "type": "string",
            "maxLength": 1,
            "description": "Address Verification Result Code",
            "example": "N"
          },
          "cvv2Result": {
            "type": "string",
            "maxLength": 1,
            "description": "CVV Card Code Result",
            "example": "M"
          },
          "transactionId": {
            "type": "string",
            "maxLength": 32,
            "description": "Trident Transaction ID",
            "example": "7679fc5af3253c5fbeaa798458e5c545"
          },
          "invoiceNumber": {
            "type": "string",
            "maxLength": 17,
            "description": "Invoice Number",
            "example": "123456"
          }
        }
      },
      "VisaArdefResponse": {
        "type": "object",
        "description": "Visa ARDEF Custom Query response fields",
        "properties": {
          "rangeLow": {
            "type": "string",
            "description": "The low range ARDEF value",
            "example": "101100000"
          },
          "rangeHigh": {
            "type": "string",
            "description": "The high range ARDEF value",
            "example": "152080999"
          },
          "usage": {
            "type": "string",
            "description": "Null - this field is no longer used",
            "example": "D"
          },
          "cardType": {
            "type": "string",
            "description": "Null - this field is no longer used",
            "example": "A"
          },
          "commCardServiceInd": {
            "type": "string",
            "description": "Null - this field is no longer used",
            "example": "null"
          },
          "productId": {
            "$ref": "#/components/schemas/VisaProductIdEnum"
          },
          "productTypeExt": {
            "type": "string",
            "description": "Null - this field is no longer used",
            "example": "null"
          },
          "issuerCountry": {
            "type": "string",
            "maxLength": 2,
            "description": "Country of Issuer BIN (Visa 2-character code)",
            "example": "US"
          },
          "fundingSource": {
            "$ref": "#/components/schemas/FundingSourceEnum"
          }
        }
      },
      "VisaProductIdEnum": {
        "type": "string",
        "description": "Visa Product ID codes:\n- A^: Visa Classic/Traditional\n- AX: American Express\n- B^: Visa Gold/Plat/Trad Rewards\n- C^: Visa Signature\n- D^: Visa Infinite/Signature Pref\n- DI: Discover\n- DN: Diners\n- E^: Proprietary ATM\n- F^: Visa Classic\n- G^: Visa Business\n- G1: Visa Signature Business\n- G3: Visa Business Enhanced (U.S. Only)\n- I^: Visa Infinite\n- I1: Visa Infinite Privilege\n- I2: Ultra High Net Worth\n- JC: JCB\n- J3: Visa Healthcare\n- K^: Visa Corporate T&E\n- K1: Visa GSA Corporate T&E\n- L^: Electron\n- M^: MasterCard/Euro Card and Diners\n- N^: Visa Platinum\n- N1: Visa Rewards\n- N2: Visa Select\n- O^: Reserved\n- P^: Visa Gold\n- Q^: Private Label\n- Q2: Private Level Basic\n- Q3: Private Level Standard\n- Q4: Private Level Enhanced\n- Q5: Private Label Specialized\n- Q6: Private Level Premium\n- R^: Proprietary\n- S^: Visa Purchasing\n- S1: Visa Purchasing with Fleet\n- S2: Visa GSA Purchasing\n- S3: Visa GSA Purchasing with Fleet\n- S4: Commercial Agriculture\n- S5: Commercial Transport EBT\n- S6: Commercial Marketplace\n- U^: Visa Travel Money\n- V^: V Pay\n- Spaces: Unspecified\n",
        "example": "A^"
      },
      "FundingSourceEnum": {
        "type": "string",
        "enum": [
          "C",
          "D",
          "P",
          "H",
          "R"
        ],
        "description": "Funding Source:\n- C: Credit\n- D: Debit\n- P: Prepaid\n- H: Charge\n- R: Deferred Debit\n",
        "example": "C"
      },
      "MastercardArdefResponse": {
        "type": "object",
        "description": "MasterCard ARDEF Custom Query response fields",
        "properties": {
          "effectiveDate": {
            "type": "string",
            "format": "date",
            "description": "Date and time that the information in this record becomes effective or was last updated",
            "example": "04/11/2012"
          },
          "rangeLow": {
            "type": "string",
            "description": "The low range ARDEF value",
            "example": "3600000000000000000"
          },
          "rangeHigh": {
            "type": "string",
            "description": "The high range ARDEF value",
            "example": "3612339999999999999"
          },
          "issuerCountry": {
            "type": "string",
            "maxLength": 3,
            "description": "Country of Issuer BIN (MasterCard 3-character code)",
            "example": "CHL"
          },
          "cardProgramId": {
            "$ref": "#/components/schemas/CardProgramIdEnum"
          },
          "gcmsProductId": {
            "type": "string",
            "maxLength": 3,
            "description": "Identifies the product recognized by the GCMS for the combination of issuer \naccount range and Card Program Identifier. This is a top-level hierarchy; \nLicensed_Product_Id should be used when identifying primary card characteristics.\n",
            "example": "MCC"
          },
          "licensedProductId": {
            "type": "string",
            "maxLength": 3,
            "description": "Identifies the actual product code assigned by MasterCard when licensing the \ncombination of issuer account range and Card Program Identifier. This field \nshould be used as primary means to identify card characteristics.\n",
            "example": "MCC"
          },
          "productTypeId": {
            "type": "string",
            "enum": [
              "1",
              "2",
              "3"
            ],
            "description": "The product type of the associated account range and card program identifier:\n- 1: Consumer\n- 2: Commercial\n- 3: Both\n",
            "example": "1"
          },
          "accountLevelInd": {
            "type": "string",
            "enum": [
              "N",
              "Y"
            ],
            "description": "Account Level Processing indicator:\n- N: No cardholder accounts within range are participants in Account Level Processing or Co-Brand Proprietary Card Program\n- Y: Some cardholder accounts within range are participants in Account Level Processing or Co-Brand Proprietary Card Program\n",
            "example": "N"
          },
          "accountLevelDate": {
            "type": "string",
            "format": "date",
            "description": "The account level activation date (yymmdd)",
            "example": "11/30/1999"
          }
        }
      },
      "CardProgramIdEnum": {
        "type": "string",
        "enum": [
          "CIR",
          "DMC",
          "MCC",
          "MSI",
          "PRO",
          "PVL",
          "SOL",
          "SWI",
          ""
        ],
        "description": "Three-character code that identifies the card program or financial network:\n- CIR: Cirrus®\n- DMC: Debit MasterCard®\n- MCC: MasterCard® Credit\n- MSI: Maestro®\n- PRO: Sweden domestic brand\n- PVL: Private label\n- SOL: U.K. domestic Solo brand (Pre-edit system only)\n- SWI: U.K. domestic Switch brand (Pre-edit system only)\n- Spaces: Members must submit all spaces unless specifically directed otherwise\n",
        "example": "MCC"
      },
      "DiscoverArdefResponse": {
        "type": "object",
        "description": "Discover ARDEF Custom Query response fields",
        "properties": {
          "effectiveDate": {
            "type": "string",
            "format": "date",
            "description": "Date and time that the information in this record becomes effective or was last updated",
            "example": "04/11/2012"
          },
          "prefix": {
            "type": "string",
            "description": "IIN (Prefix) Number",
            "example": "601100"
          },
          "prefixLength": {
            "type": "string",
            "description": "IIN Prefix Length (00 through 19)",
            "example": "06"
          },
          "lengthMin": {
            "type": "string",
            "description": "Minimum PAN Length (00 through 19)",
            "example": "16"
          },
          "lengthMax": {
            "type": "string",
            "description": "Maximum PAN Length (00 through 19)",
            "example": "16"
          },
          "issuerCountry": {
            "type": "string",
            "description": "ISO country code value",
            "example": "US"
          },
          "cardProductId": {
            "$ref": "#/components/schemas/DiscoverCardProductIdEnum"
          },
          "foreignCardInd": {
            "type": "string",
            "enum": [
              "0",
              "1"
            ],
            "description": "Indicates country of issuance:\n- 0: U.S.\n- 1: Outside of the U.S.\n",
            "example": "0"
          },
          "accountLevelInd": {
            "type": "string",
            "enum": [
              "0",
              "1"
            ],
            "description": "Indicates if this IIN range has account level processing enabled:\n- 0: No\n- 1: Yes\n",
            "example": "0"
          }
        }
      },
      "DiscoverCardProductIdEnum": {
        "type": "string",
        "enum": [
          "001",
          "002",
          "003",
          "004",
          "005",
          "006",
          "007",
          "008",
          "009",
          "010",
          "011",
          "012",
          "013",
          "014"
        ],
        "description": "Discover Card Product ID:\n- 001: Consumer Credit-Rewards\n- 002: Commercial Credit\n- 003: Consumer Debit\n- 004: Commercial Debit\n- 005: Prepaid Gift\n- 006: Prepaid ID Known\n- 007: Consumer Credit - Premium\n- 008: Consumer Credit - Core\n- 009: Private Label Credit Card\n- 010: Commercial Credit - Executive Business\n- 011: Consumer Credit - Premium Plus\n- 012: Commercial Prepaid - Non-Reloadable\n- 013: PayPal Payment Card\n- 014: PayPal Mobile In-Store Payment: Payment Code\n",
        "example": "001"
      },
      "CardTypeCodeEnum": {
        "type": "string",
        "enum": [
          "VS",
          "MC",
          "DS",
          "AM",
          "DN",
          "JC",
          "DB"
        ],
        "description": "Card Type brand codes:\n- VS: Visa\n- MC: MasterCard\n- DS: Discover\n- AM: American Express\n- DN: Diners Club\n- JC: JCB\n- DB: Debit/EBT\n",
        "example": "VS"
      },
      "EntryModeEnum": {
        "type": "string",
        "enum": [
          "KEYED",
          "SWIPED",
          "CHIP",
          "CONTACTLESS",
          "ECOMMERCE"
        ],
        "description": "Method of Card Number Entry:\n- KEYED: Manually entered\n- SWIPED: Magnetic stripe\n- CHIP: EMV chip\n- CONTACTLESS: NFC/contactless\n- ECOMMERCE: Online/e-commerce\n",
        "example": "KEYED"
      },
      "ChargebackReasonCode": {
        "type": "object",
        "description": "Chargeback reason code mapping across card networks",
        "properties": {
          "description": {
            "type": "string",
            "description": "Description of the chargeback reason"
          },
          "visaCode": {
            "type": "string",
            "description": "Visa reason code"
          },
          "mastercardCode": {
            "type": "string",
            "description": "MasterCard reason code"
          },
          "discoverCode": {
            "type": "string",
            "description": "Discover reason code"
          },
          "amexCode": {
            "type": "string",
            "description": "American Express reason code"
          }
        }
      },
      "VcrChargebackCode": {
        "type": "object",
        "description": "Visa Claims Resolution (VCR) chargeback codes",
        "properties": {
          "code": {
            "type": "string",
            "description": "VCR dispute condition code",
            "example": "10.1"
          },
          "description": {
            "type": "string",
            "description": "Description of the dispute condition",
            "example": "EMV Liability Shift Counterfeit Fraud"
          }
        }
      },
      "RetrievalReasonCode": {
        "type": "object",
        "description": "Retrieval request reason code mapping across card networks",
        "properties": {
          "description": {
            "type": "string",
            "description": "Description of the retrieval reason"
          },
          "visaCode": {
            "type": "string",
            "description": "Visa reason code"
          },
          "mastercardCode": {
            "type": "string",
            "description": "MasterCard reason code"
          },
          "discoverCode": {
            "type": "string",
            "description": "Discover reason code"
          },
          "amexCode": {
            "type": "string",
            "description": "American Express reason code"
          }
        }
      },
      "ErrorResponse": {
        "type": "object",
        "properties": {
          "errorCode": {
            "type": "string",
            "description": "Error code"
          },
          "errorMessage": {
            "type": "string",
            "description": "Human-readable error message"
          },
          "timestamp": {
            "type": "string",
            "format": "date-time",
            "description": "Timestamp of the error"
          }
        }
      }
    },
    "securitySchemes": {
      "formAuth": {
        "type": "apiKey",
        "in": "query",
        "name": "userId",
        "description": "Authentication is performed via form parameters:\n- `userId`: User Login ID for the ME web reporting system\n- `userPass`: User Login Password for the ME web reporting system\n\nBoth parameters must be included in every request body.\n"
      }
    }
  }
}