{"id":2545,"date":"2023-07-10T13:19:48","date_gmt":"2023-07-10T13:19:48","guid":{"rendered":"https:\/\/www.2ba.nl\/?p=2545"},"modified":"2023-07-10T13:20:03","modified_gmt":"2023-07-10T13:20:03","slug":"json","status":"publish","type":"post","link":"https:\/\/2ba.wimwillems.nl\/en\/documentation\/unifeed\/interfaces\/json\/","title":{"rendered":"JSON"},"content":{"rendered":"\n<h1 class=\"wp-block-heading\">Interfaces &#8211; JSON<\/h1>\n\n\n<p>Text only available in english<\/p>\n<p>With interfaceType=JSON the following flows are possible:<\/p>\n<ul>\n<li>without hookUrl<\/li>\n<li>with hookUrl<\/li>\n<\/ul>\n<h3>Without hookUrl<\/h3>\n<p>When importing one or more articles, navigation to \/interface\/JSON takes place, placing the details of the selected item(s) in the body. Navigation to \/interface\/JSON can be monitored \/ read by using a browser embedded in the appliction. After this trigger, the body can be parsed and processed further.<\/p>\n<h3>With hookUrl<\/h3>\n<p>When importing one or more articles, the JSON is POSTed to the specified hookUrl. This is a normal FORM-POST. The JSON message is supplied in a form-field named &#8220;Json&#8221;.<\/p>\n<h3>Details van de interface<\/h3>\n<table class=\"table table-striped table-bordered\">\n<tbody>\n<tr>\n<th style=\"width: 25%;\">Interfaces<\/th>\n<td style=\"width: 75%;\">\n<p>Article, Selection list, Product<\/p>\n<\/td>\n<\/tr>\n<tr>\n<th>Action<\/th>\n<td>REDIRECT to \/interface\/JSON (for article (1) and selection list (2) interface)<br \/>REDIRECT to \/interface\/ProductJSON (for product (4) interface)<\/td>\n<\/tr>\n<tr>\n<th>Content<\/th>\n<td>2BA JSON containing one or more articles<\/td>\n<\/tr>\n<tr>\n<th>Example opening Unifeed<\/th>\n<td><a href=\"https:\/\/unifeed.2ba.nl\/?interfaceType=JSON&amp;interface=3\">https:\/\/unifeed.2ba.nl\/?interfaceType=JSON&amp;interface=3<br \/><\/a><a href=\"https:\/\/unifeed.2ba.nl\/?interfaceType=JSON&amp;interface=3&amp;hookUrl=https:\/\/www.posttestserver.com\/my2batest\">https:\/\/unifeed.2ba.nl\/?interfaceType=JSON&amp;interface=3&amp;hookUrl=https:\/\/www.posttestserver.com\/my2batest<\/a>\u00a0<a href=\"https:\/\/unifeed.2ba.nl\/?interfaceType=JSON&amp;interface=3\"><br \/><\/a><\/td>\n<\/tr>\n<tr>\n<th>Example response<\/th>\n<td><img loading=\"lazy\" decoding=\"async\" class=\" size-full wp-image-1001\" style=\"display: none;\" src=\"http:\/\/2ba.wimwillems.nl\/wp-content\/uploads\/2014\/11\/jsonOutput.png\" alt=\"jsonOutput\" width=\"675\" height=\"694\" \/> For article and selection list:\n<p>\u00a0<\/p>\n<div style=\"width: 675px;\">\n<pre class=\"brush:js\">[{\n\t\"SupplierGLN\":\"8712423008724\",\n\t\"SupplierName\":\"Grundfos Nederland\",\n\t\"SuppliersTradeItemId\":\"97993195\",\n\t\"PricePerOrderUnit\":\"319.00\",\n\t\"Method\":\"OriginalGrossPrice\",\n\t\"Quantity\":\"2\"\n},{\n\t\"SupplierGLN\":\"8711389000001\",\n\t\"SupplierName\":\"Technische Unie\",\n\t\"SuppliersTradeItemId\":\"1649593\",\n\t\"PricePerOrderUnit\":\"1.75\",\n\t\"Method\":\"DiscountArticlePercentage\",\n\t\"Quantity\":\"10\"\n}]\n<\/pre>\n<\/div>\n<p>For product:<\/p>\n<pre class=\"brush:js\">[{\n\t\"ProductId\":\"56354b44-b01b-4f75-8ddf-c1defe1edf0b\",\n\t\"Description\":\"ALPHA2 25-40 130 1x230V 50Hz 6H\"\n}]\n<\/pre>\n<\/td>\n<\/tr>\n<tr>\n<th>Example code<\/th>\n<td>Example &#8220;JSON&#8221; interface, parsing from embedded browser\n<p>\u00a0<\/p>\n<div style=\"width: 675px;\">\n<pre class=\"brush:c#\">using System.Windows.Navigation;\n\nprivate void UnifeedBrowser_Navigated(object sender, NavigationEventArgs e)\n{\n\tif (e.Uri==null || e.Uri.LocalPath != \"\/interface\/JSON\")\n\t{\n\t\treturn;\n\t}\n\n\t\/\/ In standard Forms applications: webBrowser.DocumentText\n\tvar jsondata = ((mshtml.HTMLDocumentClass)this.UnifeedBrowser.Document).body.innerHTML; \n<\/pre>\n<\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>After importing the items, the associated details can be retrieved using the &#8220;<a title=\"Product \/DetailsByGLNAndTradeItemCodeA\" href=\"https:\/\/api.2ba.nl\/1\/docs\/index.html?url=\/1\/docs\/swagger.json#\/Product\/RESTServices.Product.GetDetailsByGLNAndTradeItemIdA\" target=\"_blank\" rel=\"noopener\">Product \/DetailsByGLNAndTradeItemCodeA<\/a>&#8221; web service.<\/p>\n<p>\u00a0<\/p>","protected":false},"excerpt":{"rendered":"<p>Interfaces &#8211; JSON Text only available in english With interfaceType=JSON the following flows are possible: without hookUrl with hookUrl Without hookUrl When importing one or more articles, navigation to \/interface\/JSON takes place, placing the details of the selected item(s) in the body. Navigation to \/interface\/JSON can be monitored \/ read by using a browser embedded [&hellip;]<\/p>\n","protected":false},"author":11,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_uag_custom_page_level_css":"","footnotes":""},"categories":[113],"tags":[],"class_list":["post-2545","post","type-post","status-publish","format-standard","hentry","category-interfaces-en"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.2 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>JSON - 2ba<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/2ba.wimwillems.nl\/en\/documentation\/unifeed\/interfaces\/json\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"JSON - 2ba\" \/>\n<meta property=\"og:description\" content=\"Interfaces &#8211; JSON Text only available in english With interfaceType=JSON the following flows are possible: without hookUrl with hookUrl Without hookUrl When importing one or more articles, navigation to \/interface\/JSON takes place, placing the details of the selected item(s) in the body. Navigation to \/interface\/JSON can be monitored \/ read by using a browser embedded [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/2ba.wimwillems.nl\/en\/documentation\/unifeed\/interfaces\/json\/\" \/>\n<meta property=\"og:site_name\" content=\"2ba\" \/>\n<meta property=\"article:published_time\" content=\"2023-07-10T13:19:48+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-07-10T13:20:03+00:00\" \/>\n<meta property=\"og:image\" content=\"http:\/\/2ba.wimwillems.nl\/wp-content\/uploads\/2014\/11\/jsonOutput.png\" \/>\n<meta name=\"author\" content=\"2ba\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"2ba\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/2ba.wimwillems.nl\/en\/documentation\/unifeed\/interfaces\/json\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/2ba.wimwillems.nl\/en\/documentation\/unifeed\/interfaces\/json\/\"},\"author\":{\"name\":\"2ba\",\"@id\":\"https:\/\/2ba.wimwillems.nl\/#\/schema\/person\/e38a7da4ab5c525bc5ff65c2f9f29412\"},\"headline\":\"JSON\",\"datePublished\":\"2023-07-10T13:19:48+00:00\",\"dateModified\":\"2023-07-10T13:20:03+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/2ba.wimwillems.nl\/en\/documentation\/unifeed\/interfaces\/json\/\"},\"wordCount\":200,\"commentCount\":0,\"image\":{\"@id\":\"https:\/\/2ba.wimwillems.nl\/en\/documentation\/unifeed\/interfaces\/json\/#primaryimage\"},\"thumbnailUrl\":\"http:\/\/2ba.wimwillems.nl\/wp-content\/uploads\/2014\/11\/jsonOutput.png\",\"articleSection\":[\"Interfaces\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/2ba.wimwillems.nl\/en\/documentation\/unifeed\/interfaces\/json\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/2ba.wimwillems.nl\/en\/documentation\/unifeed\/interfaces\/json\/\",\"url\":\"https:\/\/2ba.wimwillems.nl\/en\/documentation\/unifeed\/interfaces\/json\/\",\"name\":\"JSON - 2ba\",\"isPartOf\":{\"@id\":\"https:\/\/2ba.wimwillems.nl\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/2ba.wimwillems.nl\/en\/documentation\/unifeed\/interfaces\/json\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/2ba.wimwillems.nl\/en\/documentation\/unifeed\/interfaces\/json\/#primaryimage\"},\"thumbnailUrl\":\"http:\/\/2ba.wimwillems.nl\/wp-content\/uploads\/2014\/11\/jsonOutput.png\",\"datePublished\":\"2023-07-10T13:19:48+00:00\",\"dateModified\":\"2023-07-10T13:20:03+00:00\",\"author\":{\"@id\":\"https:\/\/2ba.wimwillems.nl\/#\/schema\/person\/e38a7da4ab5c525bc5ff65c2f9f29412\"},\"breadcrumb\":{\"@id\":\"https:\/\/2ba.wimwillems.nl\/en\/documentation\/unifeed\/interfaces\/json\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/2ba.wimwillems.nl\/en\/documentation\/unifeed\/interfaces\/json\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/2ba.wimwillems.nl\/en\/documentation\/unifeed\/interfaces\/json\/#primaryimage\",\"url\":\"http:\/\/2ba.wimwillems.nl\/wp-content\/uploads\/2014\/11\/jsonOutput.png\",\"contentUrl\":\"http:\/\/2ba.wimwillems.nl\/wp-content\/uploads\/2014\/11\/jsonOutput.png\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/2ba.wimwillems.nl\/en\/documentation\/unifeed\/interfaces\/json\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/2ba.wimwillems.nl\/en\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"JSON\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/2ba.wimwillems.nl\/#website\",\"url\":\"https:\/\/2ba.wimwillems.nl\/\",\"name\":\"2ba\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/2ba.wimwillems.nl\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/2ba.wimwillems.nl\/#\/schema\/person\/e38a7da4ab5c525bc5ff65c2f9f29412\",\"name\":\"2ba\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/secure.gravatar.com\/avatar\/98fd787799f599e7136207ddae02d3ff6c5d346317929a6e3bac964389f20320?s=96&d=mm&r=g\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/98fd787799f599e7136207ddae02d3ff6c5d346317929a6e3bac964389f20320?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/98fd787799f599e7136207ddae02d3ff6c5d346317929a6e3bac964389f20320?s=96&d=mm&r=g\",\"caption\":\"2ba\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"JSON - 2ba","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/2ba.wimwillems.nl\/en\/documentation\/unifeed\/interfaces\/json\/","og_locale":"en_US","og_type":"article","og_title":"JSON - 2ba","og_description":"Interfaces &#8211; JSON Text only available in english With interfaceType=JSON the following flows are possible: without hookUrl with hookUrl Without hookUrl When importing one or more articles, navigation to \/interface\/JSON takes place, placing the details of the selected item(s) in the body. Navigation to \/interface\/JSON can be monitored \/ read by using a browser embedded [&hellip;]","og_url":"https:\/\/2ba.wimwillems.nl\/en\/documentation\/unifeed\/interfaces\/json\/","og_site_name":"2ba","article_published_time":"2023-07-10T13:19:48+00:00","article_modified_time":"2023-07-10T13:20:03+00:00","og_image":[{"url":"http:\/\/2ba.wimwillems.nl\/wp-content\/uploads\/2014\/11\/jsonOutput.png","type":"","width":"","height":""}],"author":"2ba","twitter_card":"summary_large_image","twitter_misc":{"Written by":"2ba","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/2ba.wimwillems.nl\/en\/documentation\/unifeed\/interfaces\/json\/#article","isPartOf":{"@id":"https:\/\/2ba.wimwillems.nl\/en\/documentation\/unifeed\/interfaces\/json\/"},"author":{"name":"2ba","@id":"https:\/\/2ba.wimwillems.nl\/#\/schema\/person\/e38a7da4ab5c525bc5ff65c2f9f29412"},"headline":"JSON","datePublished":"2023-07-10T13:19:48+00:00","dateModified":"2023-07-10T13:20:03+00:00","mainEntityOfPage":{"@id":"https:\/\/2ba.wimwillems.nl\/en\/documentation\/unifeed\/interfaces\/json\/"},"wordCount":200,"commentCount":0,"image":{"@id":"https:\/\/2ba.wimwillems.nl\/en\/documentation\/unifeed\/interfaces\/json\/#primaryimage"},"thumbnailUrl":"http:\/\/2ba.wimwillems.nl\/wp-content\/uploads\/2014\/11\/jsonOutput.png","articleSection":["Interfaces"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/2ba.wimwillems.nl\/en\/documentation\/unifeed\/interfaces\/json\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/2ba.wimwillems.nl\/en\/documentation\/unifeed\/interfaces\/json\/","url":"https:\/\/2ba.wimwillems.nl\/en\/documentation\/unifeed\/interfaces\/json\/","name":"JSON - 2ba","isPartOf":{"@id":"https:\/\/2ba.wimwillems.nl\/#website"},"primaryImageOfPage":{"@id":"https:\/\/2ba.wimwillems.nl\/en\/documentation\/unifeed\/interfaces\/json\/#primaryimage"},"image":{"@id":"https:\/\/2ba.wimwillems.nl\/en\/documentation\/unifeed\/interfaces\/json\/#primaryimage"},"thumbnailUrl":"http:\/\/2ba.wimwillems.nl\/wp-content\/uploads\/2014\/11\/jsonOutput.png","datePublished":"2023-07-10T13:19:48+00:00","dateModified":"2023-07-10T13:20:03+00:00","author":{"@id":"https:\/\/2ba.wimwillems.nl\/#\/schema\/person\/e38a7da4ab5c525bc5ff65c2f9f29412"},"breadcrumb":{"@id":"https:\/\/2ba.wimwillems.nl\/en\/documentation\/unifeed\/interfaces\/json\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/2ba.wimwillems.nl\/en\/documentation\/unifeed\/interfaces\/json\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/2ba.wimwillems.nl\/en\/documentation\/unifeed\/interfaces\/json\/#primaryimage","url":"http:\/\/2ba.wimwillems.nl\/wp-content\/uploads\/2014\/11\/jsonOutput.png","contentUrl":"http:\/\/2ba.wimwillems.nl\/wp-content\/uploads\/2014\/11\/jsonOutput.png"},{"@type":"BreadcrumbList","@id":"https:\/\/2ba.wimwillems.nl\/en\/documentation\/unifeed\/interfaces\/json\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/2ba.wimwillems.nl\/en\/"},{"@type":"ListItem","position":2,"name":"JSON"}]},{"@type":"WebSite","@id":"https:\/\/2ba.wimwillems.nl\/#website","url":"https:\/\/2ba.wimwillems.nl\/","name":"2ba","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/2ba.wimwillems.nl\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/2ba.wimwillems.nl\/#\/schema\/person\/e38a7da4ab5c525bc5ff65c2f9f29412","name":"2ba","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/98fd787799f599e7136207ddae02d3ff6c5d346317929a6e3bac964389f20320?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/98fd787799f599e7136207ddae02d3ff6c5d346317929a6e3bac964389f20320?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/98fd787799f599e7136207ddae02d3ff6c5d346317929a6e3bac964389f20320?s=96&d=mm&r=g","caption":"2ba"}}]}},"uagb_featured_image_src":{"full":false,"thumbnail":false,"medium":false,"medium_large":false,"large":false,"1536x1536":false,"2048x2048":false,"gform-image-choice-sm":false,"gform-image-choice-md":false,"gform-image-choice-lg":false},"uagb_author_info":{"display_name":"2ba","author_link":"https:\/\/2ba.wimwillems.nl\/en\/author\/2ba\/"},"uagb_comment_info":0,"uagb_excerpt":"Interfaces &#8211; JSON Text only available in english With interfaceType=JSON the following flows are possible: without hookUrl with hookUrl Without hookUrl When importing one or more articles, navigation to \/interface\/JSON takes place, placing the details of the selected item(s) in the body. Navigation to \/interface\/JSON can be monitored \/ read by using a browser embedded&hellip;","_links":{"self":[{"href":"https:\/\/2ba.wimwillems.nl\/en\/wp-json\/wp\/v2\/posts\/2545","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/2ba.wimwillems.nl\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/2ba.wimwillems.nl\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/2ba.wimwillems.nl\/en\/wp-json\/wp\/v2\/users\/11"}],"replies":[{"embeddable":true,"href":"https:\/\/2ba.wimwillems.nl\/en\/wp-json\/wp\/v2\/comments?post=2545"}],"version-history":[{"count":1,"href":"https:\/\/2ba.wimwillems.nl\/en\/wp-json\/wp\/v2\/posts\/2545\/revisions"}],"predecessor-version":[{"id":2546,"href":"https:\/\/2ba.wimwillems.nl\/en\/wp-json\/wp\/v2\/posts\/2545\/revisions\/2546"}],"wp:attachment":[{"href":"https:\/\/2ba.wimwillems.nl\/en\/wp-json\/wp\/v2\/media?parent=2545"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/2ba.wimwillems.nl\/en\/wp-json\/wp\/v2\/categories?post=2545"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/2ba.wimwillems.nl\/en\/wp-json\/wp\/v2\/tags?post=2545"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}