GRN Records Local Test
Back to Dashboard
n8n HTTP Node — Point these to your local server
OCR Endpoint : http://localhost:8080/process-invoice | Header : x-api-key: 971dcea6c47445f6f7405fa2d14e116b1d81dae6c10330571e8d4220c013b523
GRN Endpoint : http://localhost:8080/dmhApiRef/grn/createGRN.php | Header : x-api-key: nirajAi26@DMH
JSON API : GET http://localhost:8080/api/grn/records
{% set total = records | length %} {% set success_count = records | selectattr('status', 'equalto', 'created') | list | length %}
Total GRNs
{{ total }}
Created
{{ success_count }}
Total Items
{{ records | sum(attribute='items_inserted') }}
Unique Sellers
{{ records | map(attribute='seller_name') | unique | list | length }}

GRN Records (last 200)

{% if records %}
{% for r in records %} {% endfor %}
GRN No Invoice Number Invoice ID Seller Name PO Number Amount (₹) Items Source Received At Status
{{ r.grn_no }} {{ r.invoice_number or '—' }} {{ r.invoice_id or '—' }} {{ r.seller_name or '—' }} {{ r.po_number or '—' }} {{ "%.2f"|format(r.invoice_amount|float) if r.invoice_amount else '0.00' }} {{ r.items_inserted }} {{ r.source or 'n8n' }} {{ r.received_at }} {{ r.status }}
{% else %}

No GRN records yet.

Run your n8n workflow with the local endpoint to see records appear here.
{% endif %}