{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/genome/main/json-schema/genome-host-to-host-request-schema.json",
  "title": "HostToHostRequest",
  "x-generated": "2026-10-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/genome-host-to-host-api-openapi.yml#/components/schemas/HostToHostRequest",
  "type": "object",
  "required": [
    "api_version",
    "merchant_account",
    "merchant_password",
    "transaction_type",
    "transaction_unique_id"
  ],
  "properties": {
    "api_version": {
      "type": "string"
    },
    "merchant_account": {
      "type": "string"
    },
    "merchant_password": {
      "type": "string"
    },
    "transaction_type": {
      "type": "string",
      "enum": [
        "AUTH",
        "AUTH3D",
        "SALE",
        "SALE3D",
        "SETTLE",
        "REFUND",
        "VOID",
        "CHECK"
      ]
    },
    "transaction_unique_id": {
      "type": "string"
    },
    "amount": {
      "type": "string"
    },
    "currency": {
      "type": "string"
    },
    "callback_url": {
      "type": "string",
      "format": "uri"
    },
    "user_id": {
      "type": "string"
    },
    "user_email": {
      "type": "string",
      "format": "email"
    },
    "user_ip": {
      "type": "string"
    },
    "card": {
      "type": "object",
      "properties": {
        "card_number": {
          "type": "string"
        },
        "card_exp_month": {
          "type": "string"
        },
        "card_exp_year": {
          "type": "string"
        },
        "card_cvv": {
          "type": "string"
        },
        "card_holder": {
          "type": "string"
        },
        "card_token": {
          "type": "string"
        }
      }
    }
  }
}