{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/woolworths-group/main/json-schema/woolworths-group-account-status-inquiry-response-schema.json",
  "title": "AccountStatusInquiryResponse",
  "x-generated": "2026-10-22",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/woolworths-group-wpay-cards-connect-openapi.yml#/components/schemas/AccountStatusInquiryResponse",
  "required": [
    "browserViewLink",
    "id"
  ],
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": "Transaction identifier that was passed in the request path."
    },
    "schemeTraceId": {
      "type": [
        "string",
        "null"
      ],
      "description": "Identifier generated by the scheme. E.g. Visa Transaction Identifier, or MasterCard Trace ID."
    },
    "createdAt": {
      "type": "string",
      "description": "Date and time when this transaction was created in our system.",
      "format": "date-time"
    },
    "authResponseId": {
      "type": [
        "string",
        "null"
      ],
      "description": "Authorization response id received from the issuer. Also known as an \"Auth No\"."
    },
    "outcome": {
      "$ref": "#/$defs/TransactionOutcome"
    },
    "responseCode": {
      "type": [
        "string",
        "null"
      ],
      "description": "Response code for the authorization as per AS2805 specifications."
    },
    "responseDescription": {
      "type": [
        "string",
        "null"
      ],
      "description": "Response description for the authorization as per AS2805 specifications."
    },
    "cvvResponseCode": {
      "$ref": "#/$defs/CvvResponseCode"
    },
    "avsResponseCode": {
      "type": [
        "string",
        "null"
      ],
      "description": "Address verification service response code, available if a validation was done."
    },
    "merchantAdviceCode": {
      "$ref": "#/$defs/MerchantAdviceCode"
    },
    "paymentAccountReference": {
      "type": [
        "string",
        "null"
      ],
      "description": "A non-financial reference value assigned to a unique PAN that links the payment account represented by that PAN to all of its related tokens."
    },
    "browserViewLink": {
      "type": [
        "string",
        "null"
      ],
      "description": "A direct link for viewing the transaction in the Cards Connect Portal for end-users."
    },
    "schemeExtendedResponseData": {
      "$ref": "#/$defs/SchemeExtendedResponseData"
    }
  },
  "additionalProperties": false,
  "$defs": {
    "CvvResponseCode": {
      "enum": [
        "Match",
        "NoMatch",
        "NotProvided",
        "Unavailable",
        "Unknown"
      ],
      "type": "string"
    },
    "MerchantAdviceCode": {
      "enum": [
        "NewAccountInformationAvailable",
        "CannotApproveAtThisTime",
        "DoNotTryAgain",
        "TokenNotSupportedOrTokenRequirementsAreNotMet",
        "StopRecurringPayment",
        "RetryAfter1Hour",
        "RetryAfter24Hours",
        "RetryAfter2Days",
        "RetryAfter4Days",
        "RetryAfter6Days",
        "RetryAfter8Days",
        "RetryAfter10Days",
        "ConsumerNonReloadablePrepaidCard",
        "ConsumerSingleUseVirtualCardNumber",
        "ConsumerMultiUseVirtualCardNumber"
      ],
      "type": "string"
    },
    "SchemeExtendedResponseData": {
      "type": "object",
      "properties": {
        "mastercardTransactionLinkId": {
          "type": [
            "string",
            "null"
          ],
          "description": "Mastercard Transaction Link Identifier (TLID) used by Mastercard to link different events in the lifecycle of a transaction."
        }
      },
      "additionalProperties": false
    },
    "TransactionOutcome": {
      "enum": [
        "Accepted",
        "InProgress",
        "InProgressDelayed",
        "Succeeded",
        "Declined",
        "BusyFailing",
        "BusyFailingDelayed",
        "Failed",
        "Ruined"
      ],
      "type": "string"
    }
  }
}