{"id":413609,"date":"2026-11-26T07:57:21","date_gmt":"2026-11-26T07:57:21","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/apifirme-for-woocommerce\/"},"modified":"2026-11-26T07:57:11","modified_gmt":"2026-11-26T07:57:11","slug":"apifirme-for-woocommerce","status":"publish","type":"plugin","link":"https:\/\/wordpress.org\/plugins\/apifirme-for-woocommerce\/","author":23613215,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"0.1.0","stable_tag":"0.1.0","tested":"7.1.5","requires":"6.2","requires_php":"7.4","requires_plugins":null,"header_name":"apifirme for WooCommerce","header_author":"Cubus Arts S.R.L.","header_description":"Cump\u0103r\u0103turi pe firm\u0103: clientul scrie CUI-ul, iar denumirea, num\u0103rul din registrul comer\u021bului \u0219i adresa firmei se completeaz\u0103 singure, din datele oficiale (ANAF, ONRC) prin apifirme.dev.","last_updated":"2026-11-26 07:57:11","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"","header_author_uri":"https:\/\/apifirme.dev","rating":0,"author_block_rating":0,"active_installs":0,"downloads":17,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":{"0.1.0":{"tag":"0.1.0","author":"apifirme","date":"2026-11-26 07:57:11","revision":3825823}},"upgrade_notice":[],"ratings":[],"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":3825823,"resolution":"128x128","location":"assets","locale":"","width":128,"height":128},"icon-256x256.png":{"filename":"icon-256x256.png","revision":3825823,"resolution":"256x256","location":"assets","locale":"","width":256,"height":256},"icon.svg":{"filename":"icon.svg","revision":3825823,"resolution":false,"location":"assets","locale":false}},"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":["0.1.0"],"block_files":[],"assets_screenshots":[],"screenshots":[]},"plugin_section":[],"plugin_tags":[161951,63265,288444,197,286],"plugin_category":[45],"plugin_contributors":[295590],"plugin_business_model":[],"class_list":["post-413609","plugin","type-plugin","status-publish","hentry","plugin_tags-anaf","plugin_tags-cif","plugin_tags-cui","plugin_tags-romania","plugin_tags-woocommerce","plugin_category-ecommerce","plugin_contributors-apifirme","plugin_committers-apifirme"],"banners":[],"icons":{"svg":"https:\/\/ps.w.org\/apifirme-for-woocommerce\/assets\/icon.svg?rev=3825823","icon":"https:\/\/ps.w.org\/apifirme-for-woocommerce\/assets\/icon.svg?rev=3825823","icon_2x":false,"generated":false},"screenshots":[],"raw_content":"<!--section=description-->\n<p>For shops in Romania that sell to companies. At the checkout the buyer ticks \"Cump\u0103r pe firm\u0103\" and types the company's fiscal code (CUI \/ CIF). The plugin asks <a href=\"https:\/\/apifirme.dev\">apifirme.dev<\/a> and fills in:<\/p>\n\n<ul>\n<li>the company's name, as registered;<\/li>\n<li>its trade register number (J40\/372\/2002);<\/li>\n<li>the address: street, locality, county, postal code;<\/li>\n<li>the CUI as it is written on an invoice, with RO where the company is registered for VAT.<\/li>\n<\/ul>\n\n<p>It also tells the buyer whether the company is a VAT payer, and warns when it is fiscally inactive or struck off. The CUI and the register number are kept with the order, shown on the order's page and printed with the billing address in the order's e-mails.<\/p>\n\n<p><strong>Pe scurt, \u00een rom\u00e2n\u0103:<\/strong> clientul bifeaz\u0103 \u201eCump\u0103r pe firm\u0103\u201d, scrie CUI-ul, iar denumirea, num\u0103rul din registrul comer\u021bului \u0219i adresa se completeaz\u0103 din datele oficiale (ANAF, ONRC). F\u0103r\u0103 gre\u0219eli de tastare pe factur\u0103.<\/p>\n\n<h4>What it does not do<\/h4>\n\n<ul>\n<li>It does not issue invoices; it gives your invoicing plugin correct data.<\/li>\n<li>On the block-based checkout it does not fill the fields yet: use the classic checkout (the <code>[woocommerce_checkout]<\/code> shortcode) for now.<\/li>\n<\/ul>\n\n<h4>Care for the data<\/h4>\n\n<ul>\n<li>The API key stays on your server. The browser talks to your shop, and your shop to apifirme.dev.<\/li>\n<li>The CUI's check digit is verified in the shop before anything is asked, so a mistyped code costs nothing.<\/li>\n<li>A 13-digit number is a personal identity number (CNP), not a CUI: it is refused in the shop and never sent anywhere.<\/li>\n<li>An answer about a company is kept for a day, so the same company costs one request a day however often it buys.<\/li>\n<li>A visitor can look up at most 12 companies in ten minutes.<\/li>\n<\/ul>\n\n<h3>External services<\/h3>\n\n<p>This plugin connects to the apifirme.dev API (operated by Cubus Arts S.R.L., Romania) to obtain a company's public registration data. It sends <strong>only the CUI typed at the checkout<\/strong>, together with your API key, when a buyer who ticked \"Cump\u0103r pe firm\u0103\" leaves the CUI field. Nothing about the buyer, the cart or the shop is sent.<\/p>\n\n<ul>\n<li>Service: <a href=\"https:\/\/apifirme.dev\">https:\/\/apifirme.dev<\/a><\/li>\n<li>Terms: <a href=\"https:\/\/apifirme.dev\/termeni\">https:\/\/apifirme.dev\/termeni<\/a><\/li>\n<li>Privacy policy: <a href=\"https:\/\/apifirme.dev\/confidentialitate\">https:\/\/apifirme.dev\/confidentialitate<\/a><\/li>\n<\/ul>\n\n<p>You need an API key from apifirme.dev. The free plan answers 100 requests a month.<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Install and activate the plugin. WooCommerce must be active.<\/li>\n<li>Open an account at <a href=\"https:\/\/apifirme.dev\/cont\">apifirme.dev<\/a> and create an API key.<\/li>\n<li>Go to WooCommerce &gt; Settings &gt; Advanced &gt; apifirme and paste the key. (Or define <code>APIFIRME_API_KEY<\/code> in <code>wp-config.php<\/code>, which keeps it out of the database.)<\/li>\n<li>Place a test order as a company.<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt id=\"what%20happens%20when%20the%20month%27s%20requests%20are%20used%20up%2C%20or%20apifirme.dev%20cannot%20be%20reached%3F\"><h3>What happens when the month's requests are used up, or apifirme.dev cannot be reached?<\/h3><\/dt>\n<dd><p>The buyer is told to fill in the company's details by hand, and the order goes through as before. The settings page shows how many requests are left.<\/p><\/dd>\n<dt id=\"where%20are%20the%20cui%20and%20the%20register%20number%20stored%3F\"><h3>Where are the CUI and the register number stored?<\/h3><\/dt>\n<dd><p>As order meta <code>_billing_apifirme_cui<\/code> and <code>_billing_apifirme_reg<\/code>. They are part of the order's formatted billing address (placeholders <code>{apifirme_cui}<\/code> and <code>{apifirme_reg}<\/code> of Romania's address format), so invoice plugins that print that address have them.<\/p><\/dd>\n<dt id=\"can%20i%20use%20another%20address%20for%20the%20api%3F\"><h3>Can I use another address for the API?<\/h3><\/dt>\n<dd><p>Yes: the filter <code>apifirme_wc_api_base<\/code>.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>0.1.0<\/h4>\n\n<ul>\n<li>First version: classic checkout, lookup by CUI, order meta, settings.<\/li>\n<\/ul>","raw_excerpt":"Romanian B2B checkout: the buyer types the company's CUI and the name, trade register number and address fill themselves in from official data.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/413609","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=413609"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/apifirme"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=413609"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=413609"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=413609"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=413609"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=413609"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=413609"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}