{"id":282044,"date":"2026-03-15T21:20:17","date_gmt":"2026-03-15T21:20:17","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/ico-priradenie\/"},"modified":"2026-07-02T21:40:52","modified_gmt":"2026-07-02T21:40:52","slug":"ico-priradenie","status":"publish","type":"plugin","link":"https:\/\/sa.wordpress.org\/plugins\/ico-priradenie\/","author":12157907,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"1.4","stable_tag":"trunk","tested":"6.9.4","requires":"6.0","requires_php":"7.4","requires_plugins":null,"header_name":"I\u010cO priradenie","header_author":"Michael \u0160ub\u00e1k","header_description":"Dopln\u00ed faktura\u010dn\u00e9 \u00fadaje firmy v administr\u00e1cii objedn\u00e1vky z R\u00daZ (Register \u00fa\u010dtovn\u00fdch z\u00e1vierok) pod\u013ea I\u010cO alebo DI\u010c.","assets_banners_color":"","last_updated":"2026-07-02 21:40:52","external_support_url":"","external_repository_url":"","donate_link":"https:\/\/michael.subak.sk\/kontakt\/","header_plugin_uri":"","header_author_uri":"https:\/\/michael.subak.sk","rating":0,"author_block_rating":0,"active_installs":0,"downloads":443,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":{"1.0.0":{"tag":"1.0.0","author":"BestRanger","date":"2026-03-15 21:26:49"},"1.1":{"tag":"1.1","author":"BestRanger","date":"2026-03-15 21:31:37"},"1.2":{"tag":"1.2","author":"BestRanger","date":"2026-05-12 16:16:08"},"1.3":{"tag":"1.3","author":"BestRanger","date":"2026-06-29 17:25:54"}},"upgrade_notice":[],"ratings":[],"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0.0","1.1","1.2","1.3"],"block_files":[],"assets_screenshots":[],"screenshots":[]},"plugin_section":[],"plugin_tags":[15149,15311,19730,257816,19126],"plugin_category":[45],"plugin_contributors":[257817],"plugin_business_model":[],"class_list":["post-282044","plugin","type-plugin","status-publish","hentry","plugin_tags-billing","plugin_tags-company-data","plugin_tags-ico","plugin_tags-ruz","plugin_tags-vat","plugin_category-ecommerce","plugin_contributors-bestranger","plugin_committers-bestranger"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/ico-priradenie.svg","icon_2x":false,"generated":true},"screenshots":[],"raw_content":"<!--section=description-->\n<p>This plugin adds an admin order metabox where you can enter I\u010cO or DI\u010c and fetch company details from the R\u00daZ (Register \u00fa\u010dtovn\u00fdch z\u00e1vierok) public API.<\/p>\n\n<p>It fills billing company name, street, city, postcode, and country, and it can also fill custom order meta fields for I\u010cO, DI\u010c, and I\u010c DPH based on your setup (for example WPify Woo or Superfaktura). You can configure the meta field keys in the plugin settings.<\/p>\n\n<h4>For customers<\/h4>\n\n<p>An optional \"Load from I\u010cO\" widget can be enabled on the WooCommerce checkout page. Customers enter their I\u010cO (8-digit company ID) and click the load button \u2014 the billing company name, address, city, postcode, and country are filled in automatically. Works with both the classic WooCommerce checkout and the Gutenberg blocks-based checkout. Enable this feature in WooCommerce \u2192 I\u010cO priradenie settings.<\/p>\n\n<h3>License<\/h3>\n\n<p>GPLv2 or later<\/p>\n\n<h3>External Services<\/h3>\n\n<p>This plugin connects to the public API of the Register of Financial Statements (R\u00daZ) at registeruz.sk to retrieve company details.\nWhen an administrator enters an I\u010cO (Company ID) or DI\u010c (Tax ID) in the order edit screen and clicks \u201cLoad from R\u00daZ\u201d, the plugin sends that identifier to the API and receives company data (company name and address details).\nData sent: I\u010cO or DI\u010c entered by the administrator.\nWhen: only on manual request (button click) \u2014 in wp-admin by an administrator, or on the checkout page by a customer if the checkout widget is enabled.\nPurpose: auto-fill billing company fields in the WooCommerce order edit screen or on the checkout page.\nService privacy policy: https:\/\/www.registeruz.sk\/cruz-public\/content\/Privacy_policy.pdf<\/p>\n\n<p>This plugin also connects to the EU VIES (VAT Information Exchange System) service operated by the European Commission to verify whether a company is a registered VAT payer.\nAfter company data is loaded, the plugin sends the VAT identifier (I\u010c DPH \/ DI\u010c with a country prefix, e.g. SK1234567890) to VIES and receives back whether the VAT number is valid, plus the registered name and address.\nData sent: the VAT identifier derived from the loaded company (I\u010c DPH or DI\u010c).\nWhen: automatically as part of a manual \"Load\" request (button click), only after company data is fetched. Results are cached to limit the number of calls.\nEndpoints: https:\/\/ec.europa.eu\/taxation_customs\/vies\/checkVatService.wsdl (SOAP) or https:\/\/ec.europa.eu\/taxation_customs\/vies\/rest-api\/ (REST fallback).\nService terms: https:\/\/ec.europa.eu\/taxation_customs\/vies\/<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Upload the plugin folder to \/wp-content\/plugins\/<\/li>\n<li>Activate the plugin in Plugins<\/li>\n<li>Go to WooCommerce -&gt; I\u010cO priradenie and configure your meta field keys<\/li>\n<li>Open an order in admin and use the metabox to fetch company data by I\u010cO or DI\u010c<\/li>\n<li>Save the order<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt id=\"where%20does%20the%20plugin%20get%20the%20data%20from%3F\"><h3>Where does the plugin get the data from?<\/h3><\/dt>\n<dd><p>From the public R\u00daZ API (registeruz.sk).<\/p><\/dd>\n<dt id=\"does%20it%20work%20for%20a%20newly%20created%20order%20that%20is%20not%20saved%20yet%3F\"><h3>Does it work for a newly created order that is not saved yet?<\/h3><\/dt>\n<dd><p>It fills the fields in the admin screen, then you need to save the order.<\/p><\/dd>\n<dt id=\"why%20are%20di%C4%8C%20or%20i%C4%8C%20dph%20sometimes%20not%20filled%3F\"><h3>Why are DI\u010c or I\u010c DPH sometimes not filled?<\/h3><\/dt>\n<dd><p>Most commonly the configured meta field key is incorrect. Make sure you use the correct key and include the leading underscore if your field uses it, for example _billing_company_wi_tax.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.4<\/h4>\n\n<ul>\n<li>Fixed: R\u00daZ lookups that returned \"Nena\u0161la sa \u017eiadna zhoda\" even though the company exists. The R\u00daZ API intermittently throttles requests and returns an empty result; the plugin now retries the lookup a few times with a short backoff before giving up.<\/li>\n<li>When an I\u010cO lookup finds nothing, the error now suggests entering the DI\u010c instead (R\u00daZ occasionally does not return a match by I\u010cO).<\/li>\n<li>R\u00daZ results are only cached when a real company match is returned, so a failed\/empty lookup is never cached.<\/li>\n<\/ul>\n\n<h4>1.3<\/h4>\n\n<ul>\n<li>New: VAT-payer verification via the EU VIES register. After loading a company by I\u010cO\/DI\u010c, the plugin checks whether the entity is a registered VAT payer. If it is, the I\u010c DPH field is filled; if it is confirmed not to be a payer, the field is left empty and a \"not a VAT payer\" notice is shown.<\/li>\n<li>New: uses SOAP (checkVat) when the PHP SOAP extension is available, otherwise falls back to the VIES REST\/JSON endpoint \u2014 no extra extension required.<\/li>\n<li>New: VIES results are cached (valid\/invalid 7 days, errors 1 day) to respect the VIES rate limit. On VIES error\/timeout the existing I\u010c DPH from R\u00daZ is kept (the payer flag is never overwritten on an unreliable answer).<\/li>\n<li>The VIES check runs as a separate, non-blocking step AFTER the R\u00daZ autofill, so a slow or unavailable VIES never delays or breaks the company lookup.<\/li>\n<li>New: R\u00daZ lookups are cached for 6 hours. Repeating the same I\u010cO\/DI\u010c no longer hits the R\u00daZ API again, which avoids R\u00daZ throttling that previously showed \"Nena\u0161la sa \u017eiadna zhoda\" on rapid repeated lookups.<\/li>\n<\/ul>\n\n<h4>1.2<\/h4>\n\n<ul>\n<li>Fixed: settings no longer force a leading underscore on field keys \u2014 names like billing_icocislo are saved as-is.<\/li>\n<li>Fixed: order meta is now saved to both key variants (billing_x and _billing_x) for compatibility with other plugins.<\/li>\n<li>New: optional \"Load from I\u010cO\" button on the checkout page for customers (classic and Gutenberg blocks checkout).<\/li>\n<\/ul>\n\n<h4>1.1<\/h4>\n\n<p>Update readme, compatibility, fixes<\/p>\n\n<h4>1.0<\/h4>\n\n<p>First release<\/p>","raw_excerpt":"Autofill Slovak company billing details in WooCommerce admin orders using the R\u00daZ public API by I\u010cO or DI\u010c.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/sa.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/282044","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sa.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/sa.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/sa.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=282044"}],"author":[{"embeddable":true,"href":"https:\/\/sa.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/bestranger"}],"wp:attachment":[{"href":"https:\/\/sa.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=282044"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/sa.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=282044"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/sa.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=282044"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/sa.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=282044"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/sa.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=282044"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/sa.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=282044"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}