{
  "number": 1,
  "type_document_id": 1,
  "date": "2026-07-20",
  "time": "10:00:00",
  "resolution_number": "18760000001",
  "prefix": "SETP",
  "notes": "Ejemplo factura sector salud — adaptar NIT, resolución y montos",
  "health_fields": {
    "invoice_period_start_date": "2026-06-01",
    "invoice_period_end_date": "2026-06-30",
    "health_type_operation_id": 1,
    "print_users_info_to_pdf": true,
    "users_info": [
      {
        "provider_code": "AF-0000500-85-XX-001",
        "health_type_document_identification_id": 1,
        "identification_number": "A89008003",
        "surname": "OBANDO",
        "second_surname": "LONDONO",
        "first_name": "ALEXANDER",
        "middle_name": "ANDRES",
        "health_type_user_id": 1,
        "health_contracting_payment_method_id": 2,
        "health_coverage_id": 5,
        "autorization_numbers": "A12345;604567",
        "mipres": "RNA3D345;664FF04567",
        "mipres_delivery": "RN6645G-345;6-064XX54FF04567",
        "contract_number": "1000-2021-0005698",
        "policy_number": "1045-2FG01-0567228",
        "co_payment": "3300.00",
        "moderating_fee": "5800.00",
        "recovery_fee": "105000.00",
        "shared_payment": "225000.00"
      }
    ]
  },
  "customer": {
    "identification_number": 900166483,
    "dv": 1,
    "name": "EPS O IPS DEMO",
    "phone": "3100000000",
    "address": "CLL 1 NRO 2-3",
    "email": "facturacion@demo.co",
    "merchant_registration": "0000000-00",
    "type_document_identification_id": 6,
    "type_organization_id": 1,
    "type_liability_id": 7,
    "municipality_id": 149,
    "type_regime_id": 1
  },
  "payment_form": {
    "payment_form_id": 1,
    "payment_method_id": 10,
    "payment_due_date": "2026-08-20",
    "duration_measure": "30"
  },
  "legal_monetary_totals": {
    "line_extension_amount": "100000.00",
    "tax_exclusive_amount": "100000.00",
    "tax_inclusive_amount": "119000.00",
    "payable_amount": "119000.00"
  },
  "tax_totals": [
    {
      "tax_id": 1,
      "tax_amount": "19000.00",
      "percent": "19.00",
      "taxable_amount": "100000.00"
    }
  ],
  "invoice_lines": [
    {
      "unit_measure_id": 70,
      "invoiced_quantity": "1",
      "line_extension_amount": "100000.00",
      "free_of_charge_indicator": false,
      "description": "Consulta / servicio de salud (ejemplo)",
      "code": "890201",
      "price_amount": "100000.00",
      "base_quantity": "1",
      "tax_totals": [
        {
          "tax_id": 1,
          "tax_amount": "19000.00",
          "taxable_amount": "100000.00",
          "percent": "19.00"
        }
      ]
    }
  ]
}
