{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/paytronix/json-schema/paytronix-transaction-request-schema.json",
  "title": "TransactionRequest",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/paytronix-transaction-api-openapi.yml#/components/schemas/TransactionRequest",
  "type": "object",
  "required": [
    "headerInfo",
    "cardInfo"
  ],
  "properties": {
    "headerInfo": {
      "$ref": "#/$defs/HeaderInfo"
    },
    "cardInfo": {
      "$ref": "#/$defs/CardInfo"
    },
    "autoActivateCard": {
      "type": "boolean"
    }
  },
  "$defs": {
    "CardInfo": {
      "type": "object",
      "description": "Identifies a card for transaction operations.",
      "properties": {
        "printedCardNumber": {
          "type": "string"
        },
        "magstripe": {
          "type": "string"
        },
        "cardTemplateCode": {
          "type": "string"
        }
      }
    },
    "HeaderInfo": {
      "type": "object",
      "description": "Common transaction header. programId is PX, SV, or LP.",
      "properties": {
        "merchantId": {
          "type": "integer"
        },
        "storeCode": {
          "type": "string"
        },
        "programId": {
          "type": "string"
        },
        "terminal": {
          "type": "string"
        },
        "operator": {
          "type": "string"
        },
        "posTransactionId": {
          "type": "string"
        }
      }
    }
  }
}