{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/august-health/json-schema/august-health-com-august-api-integrations-models-billing-transactions-v1-external-billing-transaction-schema.json",
  "title": "com.august.api.integrations.models.billing_transactions.v1.ExternalBillingTransaction",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/august-health-billing-v1-api-openapi.yml#/components/schemas/com.august.api.integrations.models.billing_transactions.v1.ExternalBillingTransaction",
  "properties": {
    "accountCode": {
      "type": "string"
    },
    "amountCents": {
      "format": "int32",
      "type": "integer"
    },
    "chargeSource": {
      "description": "The integration partner the charge is attributed to, when one is recorded.",
      "type": "string"
    },
    "createdAt": {
      "format": "date-time",
      "type": "string"
    },
    "deleted": {
      "type": "boolean"
    },
    "effectiveTime": {
      "format": "date-time",
      "type": "string"
    },
    "externalTransactionId": {
      "type": "string"
    },
    "feeName": {
      "type": "string"
    },
    "id": {
      "type": "string"
    },
    "idType": {
      "$ref": "#/$defs/com.august.api.integrations.models.billing_transactions.v1.TransactionIdType"
    },
    "invoiceId": {
      "type": "string"
    },
    "medicaidProgramShortName": {
      "type": "string"
    },
    "merchantFeeCents": {
      "format": "int32",
      "type": "integer"
    },
    "note": {
      "type": "string"
    },
    "paymentMethod": {
      "$ref": "#/$defs/com.august.api.integrations.models.billing_transactions.v1.TransactionPaymentMethod"
    },
    "paymentSource": {
      "description": "How the payment was made.",
      "type": "string"
    },
    "pending": {
      "type": "boolean"
    },
    "postMonth": {
      "format": "date",
      "type": "string"
    },
    "quantity": {
      "format": "int32",
      "type": "integer"
    },
    "rateCents": {
      "format": "int32",
      "type": "integer"
    },
    "serviceEndDate": {
      "format": "date",
      "type": "string"
    },
    "serviceStartDate": {
      "format": "date",
      "type": "string"
    },
    "surchargeCents": {
      "format": "int32",
      "type": "integer"
    },
    "taxCents": {
      "format": "int32",
      "type": "integer"
    },
    "transactionType": {
      "$ref": "#/$defs/com.august.api.integrations.models.billing_transactions.v1.TransactionType"
    },
    "updatedAt": {
      "format": "date-time",
      "type": "string"
    }
  },
  "required": [
    "id",
    "idType",
    "pending",
    "deleted",
    "effectiveTime",
    "serviceStartDate",
    "postMonth",
    "createdAt",
    "updatedAt",
    "amountCents",
    "transactionType"
  ],
  "$defs": {
    "com.august.api.integrations.models.billing_transactions.v1.TransactionIdType": {
      "enum": [
        "PAYMENT",
        "BILLING_CHARGE"
      ],
      "type": "string"
    },
    "com.august.api.integrations.models.billing_transactions.v1.TransactionPaymentMethod": {
      "enum": [
        "CASH",
        "CHECK",
        "ACH",
        "CREDIT_CARD",
        "WIRE",
        "DEBIT_CARD",
        "PREPAID_CARD"
      ],
      "type": "string"
    },
    "com.august.api.integrations.models.billing_transactions.v1.TransactionType": {
      "enum": [
        "PAYMENT",
        "PAYMENT_RETURN",
        "PAYMENT_CANCELED",
        "PAYMENT_FAILED",
        "REFUND",
        "REFUND_RETURN",
        "REFUND_CANCELED",
        "REFUND_FAILED",
        "PAYMENT_ENTERED_IN_ERROR",
        "CHARGEBACK_DISPUTE_STARTED",
        "CHARGEBACK_WON",
        "CHARGEBACK_INQUIRY_STARTED",
        "CHARGEBACK_LOST",
        "MEDICAID_TAKEBACK",
        "CREDIT",
        "RECURRING",
        "ONE_TIME"
      ],
      "type": "string"
    }
  }
}