{
	"name": "form/nc/erp-sync/ksef/query/invoice-ksef-out.json",
	"info": "Query invoice metadata with subject type and date range filters per KSeF API v2 spec.",
	"table": [
		{
			"table": "order",
			"record_type": ["invoice"]
		}
	],
	"call_url": "invoices/query/metadata?sortOrder=Asc&pageOffset={{page_offset}}&pageSize={{page_size}}",
	"call_method": "POST",
	"parameter": {
		"organization_id": "ksef-rest",
		"all_data_tag": "json_data",
		"data_tag": "invoices",
		"start_date": "2026-04-01",
		"end_date": "2026-05-31",
		"date_type": "Invoicing",
		"page_offset": 0,
		"page_size": 100,
		"show_sql": true,
		"subject_type": "Subject1"
	},
	"query": [],
	"call_body": {
		"subjectType": { "field": "subject_type" },
		"dateRange": {
			"dateType": { "field": "date_type" },
			"from": { "field": "start_date" },
			"to": { "field": "end_date" }
		}
	}
}
