{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/curlec/json-schema/curlec-settlement-recon-record-schema.json",
  "title": "SettlementReconRecord",
  "description": "A single transaction line item in the settlement reconciliation report.",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/curlec-settlements-api-openapi.yml#/components/schemas/SettlementReconRecord",
  "type": "object",
  "properties": {
    "entity_id": {
      "type": "string",
      "description": "ID of the transaction entity (payment, refund, etc.)."
    },
    "settlement_id": {
      "type": "string"
    },
    "order_id": {
      "type": "string"
    },
    "payment_id": {
      "type": "string"
    },
    "dispute_id": {
      "type": "string"
    },
    "type": {
      "type": "string",
      "enum": [
        "payment",
        "refund",
        "transfer",
        "adjustment"
      ]
    },
    "amount": {
      "type": "integer"
    },
    "debit": {
      "type": "integer"
    },
    "credit": {
      "type": "integer"
    },
    "fee": {
      "type": "integer"
    },
    "tax": {
      "type": "integer"
    },
    "currency": {
      "type": "string"
    },
    "method": {
      "type": "string"
    },
    "description": {
      "type": "string"
    },
    "notes": {
      "type": "string"
    },
    "settled": {
      "type": "boolean"
    },
    "on_hold": {
      "type": "boolean"
    },
    "created_at": {
      "type": "integer"
    },
    "settled_at": {
      "type": "integer"
    },
    "posted_at": {
      "type": "integer"
    },
    "card_network": {
      "type": "string"
    },
    "card_issuer": {
      "type": "string"
    },
    "card_type": {
      "type": "string"
    },
    "settlement_utr": {
      "type": "string"
    },
    "order_receipt": {
      "type": "string"
    },
    "credit_type": {
      "type": "string"
    }
  }
}