{"id":16965,"date":"2025-04-22T07:29:09","date_gmt":"2025-04-22T07:29:09","guid":{"rendered":"https:\/\/www.2ba.nl\/?p=16965"},"modified":"2026-10-29T12:02:03","modified_gmt":"2026-10-29T12:02:03","slug":"stock-webservice","status":"publish","type":"post","link":"https:\/\/www.2ba.nl\/en\/documentation\/webservices-en\/stock-webservice\/","title":{"rendered":"Stock webservice"},"content":{"rendered":"\n<h1 class=\"wp-block-heading\">Stock directly from supplier<\/h1>\n\n\n<p>The Online Condition Server supports web services that return a <strong>stock.<br><\/strong><br>2BA has a number of parameters available that can serve as input on your web service.<br>In addition, 2BA asks a minimum piece of output.<\/p>\n<h3><strong><span style=\"font-size: 0.83em;\">Input<\/span><\/strong><\/h3>\n<p>2BA can supply the following fields as input for your service. In your mapping document, indicate how and which fields on your service should be mapped.<\/p>\n<table class=\"table table-striped table-bordered\">\n<thead>\n<tr>\n<th>Feature<\/th>\n<th>Type&nbsp;<\/th>\n<th>Description<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>\n<p><strong>Username<\/strong><\/p>\n<\/td>\n<td>string(255)<\/td>\n<td>\n<p>User name<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p><strong>Password<\/strong><\/p>\n<\/td>\n<td>string(255)<\/td>\n<td>\n<p>Password<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p><strong>Debtor<\/strong><\/p>\n<\/td>\n<td>string(255)<\/td>\n<td>\n<p>Debtor number\/identification<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>&nbsp;<strong>GLN<\/strong><\/p>\n<p>&nbsp;<\/p>\n<\/td>\n<td>&nbsp;string(13)<\/td>\n<td>\n<p>Global Location Number of the supplier<\/p>\n<ul>\n<li>exactly 13 characters<\/li>\n<li>numerical<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p><strong>TradeItemId<\/strong><\/p>\n<p>&nbsp;<\/p>\n<\/td>\n<td>&nbsp;string(35)<\/td>\n<td>\n<p>Item number<\/p>\n<ul>\n<li>maximum of 35 characters<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p><strong>Quantity<\/strong><\/p>\n<\/td>\n<td>decimal?(12,3)<\/td>\n<td>\n<p>Number of items requested (expressed in order unit)<\/p>\n<ul>\n<li>Number requested by the customer<\/li>\n<li>Default = null<\/li>\n<li>Numerical 12 digits before the decimal point, 3 digits after..<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h5>&nbsp;<\/h5>\n<h3>Output<\/h3>\n<p>2BA can process the following fields. Indicate in the mapping document how 2BA can access these fields from the output of your web service<\/p>\n<table class=\"table table-striped table-bordered\">\n<thead>\n<tr><\/tr>\n<\/thead>\n<\/table>\n<table class=\"table table-striped table-bordered\">\n<thead>\n<tr>\n<th>Feature<\/th>\n<th>Type&nbsp;<\/th>\n<th>Description<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td><strong>Available<\/strong><\/td>\n<td>boolean<\/td>\n<td>\n<p>If Quantity input was empty, it will indicate available if there is stock.<strong>outputQuantity &gt;= 1<\/strong><\/p>\n<p>If Quantity input was not empty, it will indicate available if the amount requested is in stock.<strong>outputQuantity &gt;= inputQuantity<\/strong><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p><strong>Quantity<\/strong><\/p>\n<\/td>\n<td>decimal?(12,3)<\/td>\n<td>\n<p>Number of items in stock (expressed in order unit)<\/p>\n<p>\u2022 not required.<br>\u2022 numerical 12 digits before the decimal point, 3 digits after<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>","protected":false},"excerpt":{"rendered":"<p>Stock directly from supplier The Online Condition Server supports web services that return a stock.2BA has a number of parameters available that can serve as input on your web service.In addition, 2BA asks a minimum piece of output. Input 2BA can supply the following fields as input for your service. In your mapping document, indicate [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"inline_featured_image":false,"_uag_custom_page_level_css":"","footnotes":""},"categories":[158],"tags":[],"class_list":["post-16965","post","type-post","status-publish","format-standard","hentry","category-webservices-en"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.8 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Stock webservice - 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:\/\/www.2ba.nl\/documentatie\/webservices\/stock-webservice\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Stock webservice - 2ba\" \/>\n<meta property=\"og:description\" content=\"Stock directly from supplier The Online Condition Server supports web services that return a stock.2BA has a number of parameters available that can serve as input on your web service.In addition, 2BA asks a minimum piece of output. Input 2BA can supply the following fields as input for your service. In your mapping document, indicate [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.2ba.nl\/documentatie\/webservices\/stock-webservice\/\" \/>\n<meta property=\"og:site_name\" content=\"2ba\" \/>\n<meta property=\"article:published_time\" content=\"2025-04-22T07:29:09+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-10-29T12:02:03+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.2ba.nl\/wp-content\/uploads\/2023\/06\/2BA_logo_RGB.png\" \/>\n\t<meta property=\"og:image:width\" content=\"211\" \/>\n\t<meta property=\"og:image:height\" content=\"95\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Marcel van der Zee\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Marcel van der Zee\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.2ba.nl\\\/documentatie\\\/webservices\\\/stock-webservice\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.2ba.nl\\\/documentatie\\\/webservices\\\/stock-webservice\\\/\"},\"author\":{\"name\":\"Marcel van der Zee\",\"@id\":\"https:\\\/\\\/www.2ba.nl\\\/#\\\/schema\\\/person\\\/81c14f02e0ec1e8e4b2272dbe054d720\"},\"headline\":\"Stock webservice\",\"datePublished\":\"2025-04-22T07:29:09+00:00\",\"dateModified\":\"2026-10-29T12:02:03+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.2ba.nl\\\/documentatie\\\/webservices\\\/stock-webservice\\\/\"},\"wordCount\":221,\"articleSection\":[\"Webservices\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.2ba.nl\\\/documentatie\\\/webservices\\\/stock-webservice\\\/\",\"url\":\"https:\\\/\\\/www.2ba.nl\\\/documentatie\\\/webservices\\\/stock-webservice\\\/\",\"name\":\"Stock webservice - 2ba\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.2ba.nl\\\/#website\"},\"datePublished\":\"2025-04-22T07:29:09+00:00\",\"dateModified\":\"2026-10-29T12:02:03+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/www.2ba.nl\\\/#\\\/schema\\\/person\\\/81c14f02e0ec1e8e4b2272dbe054d720\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.2ba.nl\\\/documentatie\\\/webservices\\\/stock-webservice\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.2ba.nl\\\/documentatie\\\/webservices\\\/stock-webservice\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.2ba.nl\\\/documentatie\\\/webservices\\\/stock-webservice\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.2ba.nl\\\/en\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Stock webservice\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.2ba.nl\\\/#website\",\"url\":\"https:\\\/\\\/www.2ba.nl\\\/\",\"name\":\"2ba\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.2ba.nl\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.2ba.nl\\\/#\\\/schema\\\/person\\\/81c14f02e0ec1e8e4b2272dbe054d720\",\"name\":\"Marcel van der Zee\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/1b7e48e3b50e4e9aed4e63c19fc037752e22b927025e1bb0f1a403c11efc5475?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/1b7e48e3b50e4e9aed4e63c19fc037752e22b927025e1bb0f1a403c11efc5475?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/1b7e48e3b50e4e9aed4e63c19fc037752e22b927025e1bb0f1a403c11efc5475?s=96&d=mm&r=g\",\"caption\":\"Marcel van der Zee\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Stock webservice - 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:\/\/www.2ba.nl\/documentatie\/webservices\/stock-webservice\/","og_locale":"en_US","og_type":"article","og_title":"Stock webservice - 2ba","og_description":"Stock directly from supplier The Online Condition Server supports web services that return a stock.2BA has a number of parameters available that can serve as input on your web service.In addition, 2BA asks a minimum piece of output. Input 2BA can supply the following fields as input for your service. In your mapping document, indicate [&hellip;]","og_url":"https:\/\/www.2ba.nl\/documentatie\/webservices\/stock-webservice\/","og_site_name":"2ba","article_published_time":"2025-04-22T07:29:09+00:00","article_modified_time":"2026-10-29T12:02:03+00:00","og_image":[{"width":211,"height":95,"url":"https:\/\/www.2ba.nl\/wp-content\/uploads\/2023\/06\/2BA_logo_RGB.png","type":"image\/png"}],"author":"Marcel van der Zee","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Marcel van der Zee","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.2ba.nl\/documentatie\/webservices\/stock-webservice\/#article","isPartOf":{"@id":"https:\/\/www.2ba.nl\/documentatie\/webservices\/stock-webservice\/"},"author":{"name":"Marcel van der Zee","@id":"https:\/\/www.2ba.nl\/#\/schema\/person\/81c14f02e0ec1e8e4b2272dbe054d720"},"headline":"Stock webservice","datePublished":"2025-04-22T07:29:09+00:00","dateModified":"2026-10-29T12:02:03+00:00","mainEntityOfPage":{"@id":"https:\/\/www.2ba.nl\/documentatie\/webservices\/stock-webservice\/"},"wordCount":221,"articleSection":["Webservices"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www.2ba.nl\/documentatie\/webservices\/stock-webservice\/","url":"https:\/\/www.2ba.nl\/documentatie\/webservices\/stock-webservice\/","name":"Stock webservice - 2ba","isPartOf":{"@id":"https:\/\/www.2ba.nl\/#website"},"datePublished":"2025-04-22T07:29:09+00:00","dateModified":"2026-10-29T12:02:03+00:00","author":{"@id":"https:\/\/www.2ba.nl\/#\/schema\/person\/81c14f02e0ec1e8e4b2272dbe054d720"},"breadcrumb":{"@id":"https:\/\/www.2ba.nl\/documentatie\/webservices\/stock-webservice\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.2ba.nl\/documentatie\/webservices\/stock-webservice\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.2ba.nl\/documentatie\/webservices\/stock-webservice\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.2ba.nl\/en\/"},{"@type":"ListItem","position":2,"name":"Stock webservice"}]},{"@type":"WebSite","@id":"https:\/\/www.2ba.nl\/#website","url":"https:\/\/www.2ba.nl\/","name":"2ba","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.2ba.nl\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.2ba.nl\/#\/schema\/person\/81c14f02e0ec1e8e4b2272dbe054d720","name":"Marcel van der Zee","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/1b7e48e3b50e4e9aed4e63c19fc037752e22b927025e1bb0f1a403c11efc5475?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/1b7e48e3b50e4e9aed4e63c19fc037752e22b927025e1bb0f1a403c11efc5475?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/1b7e48e3b50e4e9aed4e63c19fc037752e22b927025e1bb0f1a403c11efc5475?s=96&d=mm&r=g","caption":"Marcel van der Zee"}}]}},"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":"Marcel van der Zee","author_link":"https:\/\/www.2ba.nl\/en\/author\/mvdz2ba-nl\/"},"uagb_comment_info":0,"uagb_excerpt":"Stock directly from supplier The Online Condition Server supports web services that return a stock.2BA has a number of parameters available that can serve as input on your web service.In addition, 2BA asks a minimum piece of output. Input 2BA can supply the following fields as input for your service. In your mapping document, indicate&hellip;","_links":{"self":[{"href":"https:\/\/www.2ba.nl\/en\/wp-json\/wp\/v2\/posts\/16965","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.2ba.nl\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.2ba.nl\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.2ba.nl\/en\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.2ba.nl\/en\/wp-json\/wp\/v2\/comments?post=16965"}],"version-history":[{"count":1,"href":"https:\/\/www.2ba.nl\/en\/wp-json\/wp\/v2\/posts\/16965\/revisions"}],"predecessor-version":[{"id":16966,"href":"https:\/\/www.2ba.nl\/en\/wp-json\/wp\/v2\/posts\/16965\/revisions\/16966"}],"wp:attachment":[{"href":"https:\/\/www.2ba.nl\/en\/wp-json\/wp\/v2\/media?parent=16965"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.2ba.nl\/en\/wp-json\/wp\/v2\/categories?post=16965"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.2ba.nl\/en\/wp-json\/wp\/v2\/tags?post=16965"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}