{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/qualpay/json-schema/qualpay-aus-list-detail-response-schema.json",
  "title": "AusListDetailResponse",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/qualpay-account-updater-api-openapi.yml#/components/schemas/AusListDetailResponse",
  "type": "object",
  "properties": {
    "code": {
      "type": "integer",
      "description": "<strong>Format: </strong>Fixed length, 1 N<br><strong>Description: </strong>Response code from the API. `0` indicates success. Refer to <a href=\"/docs/api-conventions#platform-api-response-codes\" target=\"_blank\">Platform API Response Codes</a> for the entire list of return codes.",
      "format": "int32",
      "readOnly": true
    },
    "message": {
      "type": "string",
      "description": "<strong>Format: </strong>Variable length AN<br><strong>Description: </strong>A short description of the API response code.",
      "readOnly": true
    },
    "totalPages": {
      "type": "integer",
      "description": "<strong>Format: </strong>Variable length N<br><strong>Description: </strong>Total number of pages. ",
      "format": "int32",
      "readOnly": true
    },
    "totalRecords": {
      "type": "integer",
      "description": "<strong>Format: </strong>Variable length, up to 3 N<br><strong>Description: </strong>Total number of records up to a maximum of 100.",
      "format": "int32",
      "readOnly": true
    },
    "data": {
      "type": "array",
      "description": "An array of the resource object.",
      "readOnly": true,
      "items": {
        "$ref": "#/$defs/AccountUpdaterDetail"
      }
    }
  },
  "$defs": {
    "AccountUpdaterDetail": {
      "type": "object",
      "properties": {
        "merchant_id": {
          "type": "integer",
          "description": "<strong>Format: </strong>Variable length, up to 16 N<br><strong>Description: </strong>The unique ID assigned to a merchant.",
          "format": "int64",
          "readOnly": true
        },
        "request_id": {
          "type": "integer",
          "description": "<strong>Format: </strong>Variable length, up to 10 N<br><strong>Description: </strong>The unique ID assigned to the Account Updater request.",
          "format": "int64",
          "readOnly": true
        },
        "request_date": {
          "type": "string",
          "description": "<strong>Format: </strong>Variable length, up to 10 AN, in YYYY-MM-DD format<br><strong>Description: </strong>The Account Updater request date, the date when a harvest request was sent to the Account Updater service.",
          "readOnly": true
        },
        "response_date": {
          "type": "string",
          "description": "<strong>Format: </strong>Variable length, up to 10 AN, in YYYY-MM-DD format<br><strong>Description: </strong>The Account Updater response date, the date when the Account Updater service responded. This field is empty if the response is not yet received.",
          "readOnly": true
        },
        "card_id": {
          "type": "string",
          "description": "<strong>Format: </strong>Variable length, up to 32 AN<br><strong>Description: </strong>The card ID received from a tokenization request for a card. The `card_id` value may be used in place of a card number in messages requiring cardholder account data.",
          "readOnly": true
        },
        "card_number": {
          "type": "string",
          "description": "<strong>Format: </strong>Variable length, up to 16 AN<br><strong>Description: </strong>The cardholder's masked card number.",
          "readOnly": true
        },
        "exp_date": {
          "type": "string",
          "description": "<strong>Format: </strong>Variable length, up to 4 N, in MMYY format<br><strong>Description: </strong>The card expiration date.",
          "readOnly": true
        },
        "card_number_new": {
          "type": "string",
          "description": "<strong>Format: </strong>Variable length, up to 16 AN<br><strong>Description: </strong>The updated card number (masked). This field will be empty if there are no updates to the card number.",
          "readOnly": true
        },
        "exp_date_new": {
          "type": "string",
          "description": "<strong>Format: </strong>Variable length, up to 4 N, in MMYY format<br><strong>Description: </strong>The updated card expiration date. This field will be empty if there are no updates to the expiration date.",
          "readOnly": true
        },
        "reason_code": {
          "type": "string",
          "description": "<strong>Format: </strong>Variable length, up to 3 N<br><strong>Description: </strong>The Account Updater reason code: <ul> <li>`000` - New card/No response</li> <li>`200` - Valid account, no update</li> <li>`201` - Account expiration date updated</li> <li>`202` - Account number updated</li> <li>`203` - Account is closed</li> <li>`204` - Contact cardholder</li> <li>`206` - No match</li> <li>`315` - Invalid expiration date</li> <li>`320` - Invalid account number</li> <li>`329` - Invalid card type</li> </ul>",
          "readOnly": true,
          "enum": [
            "000",
            "200",
            "201",
            "202",
            "203",
            "204",
            "206",
            "315",
            "320",
            "329"
          ]
        },
        "billable": {
          "type": "boolean",
          "description": "<strong>Description: </strong>Merchants will only be billed for matches. Reason codes `201`, `202`, `203`, and `204` are billable.",
          "readOnly": true
        }
      }
    }
  }
}