[
	"name": "form/nc/erp-sync/finvoice/xml/finvoice-definition-soap.json",
	{
		"tag": "SOAP-ENV:Envelope",
		"attribute": {
			"xmlns:SOAP-ENV": "http://schemas.xmlsoap.org/soap/envelope/",
			"xmlns:eb": "http://www.oasis-open.org/committees/ebxml-msg/schema/msg-header-2_0.xsd",
			"xmlns:xlink": "http://www.w3.org/1999/xlink"
		},
		"content": [
			{
				"tag": "SOAP-ENV:Header",
				"content": [
					{
						"tag": "eb:MessageHeader",
						"attribute": {
							"SOAP-ENV:mustUnderstand": "1",
							"eb:id": "20030222133003285",
							"xmlns:eb": "http://www.oasis-open.org/committees/ebxml-msg/schema/msg-header-2_0.xsd"
						},
						"content": [
							{
								"tag": "eb:From",
								"content": [
									{
										"tag": "eb:PartyId",
										"from_static": "FI9352900220303935",
										"content-": [
											{
												"tag": "code",
												"content": [
													{
														"type": "Code",
														"from_static": "FI9352900220303935",
														"define": "in_tSellerAccountIDXml:=_prf_ Txt (\n\n\n;\n\nin_Finvoice_Settings\n\n)  // \n<\n>\n \\tin_tFinvoiceSettingsName  xml_tCodeData:=xml ValueGet (in_tSellerAccountIDXml;\n\nInvoiceRecipientAddress\n\n)",
														"fill": "eb:PartyId",
														"force": "M",
														"header": "eb:PartyId",
														"order": "5",
														"segment": "finvoice_INVOICE_Frame_data"
													}
												]
											}
										]
									},
									{
										"tag": "eb:Role",
										"content": [
											{
												"type": "A",
												"from_static": "Sender",
												"define": "Sender",
												"fill": "eb:Role",
												"force": "M",
												"header": "eb:Role",
												"order": "6",
												"segment": "finvoice_INVOICE_Frame_data"
											}
										]
									}
								]
							},
							{
								"tag": "eb:From",
								"content": [
									{
										"tag": "eb:PartyId",
										"from_static": "OKOYFIHH",
										"content-": [
											{
												"tag": "code",
												"content": [
													{
														"type": "Code",
														"from_static": "OKOYFIHH",
														"define": "in_tSellerAccountIDXml:=_prf_ Txt (\n\n\n;\n\nin_Finvoice_Settings\n\n)  // \n<\n>\n \\tin_tFinvoiceSettingsName  xml_tCodeData:=xml ValueGet (in_tSellerAccountIDXml;\n\nSellerBic\n\n)",
														"fill": "eb:PartyId",
														"force": "M",
														"header": "eb:PartyId",
														"order": "9",
														"segment": "finvoice_INVOICE_Frame_data"
													}
												]
											}
										]
									},
									{
										"tag": "eb:Role",
										"content": [
											{
												"type": "A",
												"from_static": "Intermediator",
												"define": "Intermediator",
												"fill": "eb:Role",
												"force": "M",
												"header": "eb:Role",
												"order": "10",
												"segment": "finvoice_INVOICE_Frame_data"
											}
										]
									}
								]
							},
							{
								"tag": "code",
								"content": [
									{
										"type": "Code",
										"define": "_txt:=_fld ValueStr(in_kCompany_id)_qry Fld(0;co_kCompany_ID;\n\n=\n\n;-\n>\n \\t_txt;\n\n\n;kFalse)",
										"force": "M",
										"header": "Find Receivers company",
										"order": "12",
										"segment": "finvoice_INVOICE_Frame_data"
									}
								]
							},
							{
								"tag": "eb:To",
								"content": [
									{
										"tag": "eb:PartyId",
										"content": [
											{
												"field": "co.json_data.electronic_invoice_address",
												"type": "Field",
												"from_static": "003717980076",
												"define": "co_kElectronic_Invoice_Address",
												"fill": "eb:PartyId",
												"force": "M",
												"header": "eb:PartyId",
												"order": "14",
												"segment": "finvoice_INVOICE_Frame_data"
											}
										]
									},
									{
										"tag": "eb:Role",
										"content": [
											{
												"type": "A",
												"from_static": "Receiver",
												"define": "Receiver",
												"fill": "eb:Role",
												"force": "M",
												"header": "eb:Role",
												"order": "15",
												"segment": "finvoice_INVOICE_Frame_data"
											}
										]
									}
								]
							},
							{
								"tag": "eb:To",
								"content": [
									{
										"tag": "eb:PartyId",
										"content": [
											{
												"field": "co.json_data.intermediator",
												"type": "Field",
												"from_static": "POPFFI22",
												"define": "co_kSWIFT_Code",
												"fill": "eb:PartyId",
												"force": "M",
												"header": "eb:PartyId",
												"order": "18",
												"segment": "finvoice_INVOICE_Frame_data"
											}
										]
									},
									{
										"tag": "eb:Role",
										"content": [
											{
												"type": "A",
												"from_static": "Intermediator",
												"define": "Intermediator",
												"fill": "eb:Role",
												"force": "M",
												"header": "eb:Role",
												"order": "19",
												"segment": "finvoice_INVOICE_Frame_data"
											}
										]
									}
								]
							},
							{
								"tag": "eb:CPAId",
								"content": [
									{
										"type": "A",
										"from_static": "yoursandmycpa",
										"define": "yoursandmycpa",
										"fill": "eb:CPAId",
										"force": "M",
										"header": "eb:CPAId",
										"order": "21",
										"segment": "finvoice_INVOICE_Frame_data"
									}
								]
							},
							{
								"tag": "eb:ConversationId",
								"content": [
									{
										"type": "A",
										"from_static": "nnnnn",
										"define": "nnnnn",
										"fill": "eb:ConversationId",
										"force": "M",
										"header": "eb:ConversationId",
										"order": "22",
										"segment": "finvoice_INVOICE_Frame_data"
									}
								]
							},
							{
								"tag": "eb:Service",
								"content": [
									{
										"type": "A",
										"from_static": "Routing",
										"define": "Routing",
										"fill": "eb:Service",
										"force": "M",
										"header": "eb:Service",
										"order": "23",
										"segment": "finvoice_INVOICE_Frame_data"
									}
								]
							},
							{
								"tag": "eb:Action",
								"content": [
									{
										"type": "A",
										"from_static": "ProcessInvoice",
										"define": "ProcessInvoice",
										"fill": "eb:Action",
										"force": "M",
										"header": "eb:Action",
										"order": "24",
										"segment": "finvoice_INVOICE_Frame_data"
									}
								]
							},
							{
								"tag": "eb:MessageData",
								"content": [
									{
										"tag": "eb:MessageId",
										"content": [
											{
												"field": "ord.order_id",
												"type": "Field",
												"from_static": "230035",
												"define": "in_kInvoice_ID",
												"fill": "eb:MessageId",
												"force": "M",
												"header": "eb:MessageId",
												"order": "26",
												"segment": "finvoice_INVOICE_Frame_data"
											}
										]
									},
									{
										"tag": "eb:Timestamp",
										"content": [
											{
												"info": "T",
												"type": "A",
												"from_static": "T",
												"define": "T",
												"force": "M",
												"header": "eb:Timestamp",
												"order": "29",
												"segment": "finvoice_INVOICE_Frame_data"
											},
											{
												"info": "aikavyöhyke",
												"type": "A",
												"from_static": "\n+02",
												"define": "+02",
												"force": "M",
												"header": "eb:Timestamp",
												"order": "31",
												"segment": "finvoice_INVOICE_Frame_data"
											}
										],
										"content-": [
											{
												"tag": "code",
												"content": [
													{
														"info": "päivämäärä eroteltuna viivalla",
														"type": "Code",
														"from_static": "2024-04-27",
														"define": "_txt:=_date ToString (_date Current (kTrue ))_txt:=Replace string(_txt;\n\n.\n\n;\n\n-\n\n)xml_tCodeData:=_txt",
														"force": "M",
														"header": "eb:Timestamp",
														"order": "28",
														"segment": "finvoice_INVOICE_Frame_data"
													}
												]
											},
											{
												"tag": "code",
												"content": [
													{
														"info": "aika",
														"type": "Code",
														"from_static": "17:43:00",
														"define": "_txt2:=_time ToString (_time Current (kTrue ))xml_tCodeData:=_txt2",
														"force": "M",
														"header": "eb:Timestamp",
														"order": "30",
														"segment": "finvoice_INVOICE_Frame_data"
													}
												]
											}
										]
									},
									{
										"tag": "eb:RefToMessageId"
									}
								]
							}
						]
					}
				]
			},
			{
				"tag": "SOAP-ENV:Body",
				"content": [
					{
						"tag": "eb:Manifest",
						"attribute": {
							"eb:id": "Manifest",
							"eb:version": "2.0"
						},
						"content": [
							{
								"tag": "eb:Reference",
								"attribute": {
									"eb:id": "Finvoice",
									"xlink:href": "230035∫finvoice_INVOICE_Frame_data∫40∫eb:Reference∫M∫Field∫0∫in_kInvoice_ID∫∫∫∫0∫∫∫∫ƒ"
								},
								"content": [
									{
										"tag": "eb:schema",
										"attribute": {
											"eb:location": "http://www.pankkiyhdistys.fi/verkkolasku/finvoice/finvoice.xsd",
											"eb:version": "2.0"
										}
									}
								]
							}
						]
					}
				]
			}
		]
	}
]
