{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/paytronix/json-schema/paytronix-post-and-accrue-request-schema.json",
  "title": "PostAndAccrueRequest",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/paytronix-check-api-openapi.yml#/components/schemas/PostAndAccrueRequest",
  "type": "object",
  "required": [
    "merchantId",
    "storeCode",
    "check",
    "cardInfo"
  ],
  "properties": {
    "merchantId": {
      "type": "integer"
    },
    "storeCode": {
      "type": "string"
    },
    "check": {
      "$ref": "#/$defs/Check"
    },
    "cardInfo": {
      "$ref": "#/$defs/CardInfo"
    },
    "autoActivateCard": {
      "type": "boolean"
    },
    "terminal": {
      "type": "string"
    },
    "operator": {
      "type": "string"
    },
    "receiptSettings": {
      "type": "object",
      "additionalProperties": true
    }
  },
  "$defs": {
    "CardInfo": {
      "type": "object",
      "description": "Identifies a card for transaction operations.",
      "properties": {
        "printedCardNumber": {
          "type": "string"
        },
        "magstripe": {
          "type": "string"
        },
        "cardTemplateCode": {
          "type": "string"
        }
      }
    },
    "Check": {
      "type": "object",
      "description": "A POS check with line items used in reward computation and posting.",
      "properties": {
        "number": {
          "type": "string"
        },
        "openTime": {
          "type": "string",
          "format": "date-time"
        },
        "subtotal": {
          "type": "number"
        },
        "items": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "itemCode": {
                "type": "string"
              },
              "name": {
                "type": "string"
              },
              "quantity": {
                "type": "number"
              },
              "price": {
                "type": "number"
              }
            }
          }
        }
      }
    }
  }
}