{
  "$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-callback-v1-record-deposit-response-schema.json",
  "title": "com.august.api.integrations.models.billing_callback.v1.RecordDepositResponse",
  "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_callback.v1.RecordDepositResponse",
  "properties": {
    "depositId": {
      "description": "August's internal deposit ID",
      "type": "string"
    },
    "externalDepositId": {
      "description": "Echo of partner's deposit reference",
      "type": "string"
    },
    "payments": {
      "description": "Mapping of created payments",
      "items": {
        "$ref": "#/$defs/com.august.api.integrations.models.billing_callback.v1.RecordPaymentResult",
        "description": "Mapping of created payments"
      },
      "type": "array"
    }
  },
  "required": [
    "depositId",
    "externalDepositId",
    "payments"
  ],
  "$defs": {
    "com.august.api.integrations.models.billing_callback.v1.RecordPaymentResult": {
      "properties": {
        "externalTransactionId": {
          "description": "Echo of partner's payment reference",
          "type": "string"
        },
        "paymentId": {
          "description": "August's internal payment ID",
          "type": "string"
        }
      },
      "required": [
        "paymentId",
        "externalTransactionId"
      ]
    }
  }
}