{"id":7193,"date":"2025-01-07T00:00:00","date_gmt":"2025-01-06T16:00:00","guid":{"rendered":"https:\/\/www.fraudlabspro.com\/resources2\/tutorials\/how-to-use-fraudlabs-pro-api-in-medusa-js\/"},"modified":"2026-04-02T18:33:38","modified_gmt":"2026-04-02T10:33:38","password":"","slug":"how-to-use-fraudlabs-pro-api-in-medusa-js","status":"publish","type":"docs","link":"https:\/\/www.fraudlabspro.com\/resources\/tutorials\/how-to-use-fraudlabs-pro-api-in-medusa-js\/","title":{"rendered":"How to use FraudLabs Pro API in Medusa.js?"},"content":{"rendered":"\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1200\" height=\"600\" src=\"https:\/\/www.fraudlabspro.com\/resources\/wp-content\/uploads\/2025\/01\/flp-medusa-validate-order.png\" alt=\"Validate orders in Medusa.js by using FraudLabs Pro API\" class=\"wp-image-4737\" srcset=\"https:\/\/www.fraudlabspro.com\/resources\/wp-content\/uploads\/2025\/01\/flp-medusa-validate-order.png 1200w, https:\/\/www.fraudlabspro.com\/resources\/wp-content\/uploads\/2025\/01\/flp-medusa-validate-order-300x150.png 300w, https:\/\/www.fraudlabspro.com\/resources\/wp-content\/uploads\/2025\/01\/flp-medusa-validate-order-1024x512.png 1024w, https:\/\/www.fraudlabspro.com\/resources\/wp-content\/uploads\/2025\/01\/flp-medusa-validate-order-768x384.png 768w, https:\/\/www.fraudlabspro.com\/resources\/wp-content\/uploads\/2025\/01\/flp-medusa-validate-order-50x25.png 50w, https:\/\/www.fraudlabspro.com\/resources\/wp-content\/uploads\/2025\/01\/flp-medusa-validate-order-920x460.png 920w, https:\/\/www.fraudlabspro.com\/resources\/wp-content\/uploads\/2025\/01\/flp-medusa-validate-order-600x300.png 600w, https:\/\/www.fraudlabspro.com\/resources\/wp-content\/uploads\/2025\/01\/flp-medusa-validate-order-320x160.png 320w\" sizes=\"auto, (max-width: 1200px) 100vw, 1200px\" \/><\/figure>\n\n\n\n<p>Medusa.js is an open-source headless commerce platform that aims to ease the e-commerce solution for merchants. Built with JavaScript, it provides a robust and extensible back-end for functionality customization. Medusa.js offers integration with some famous front-end frameworks like Next.js, React and Vue.js. Whether you are a developer or a business owner, Medusa.js helps to create a unique shopping experience that fits your needs.<\/p>\n\n\n\n<p>In addition to the core functionality, Medusa.js also allows you to add in more custom functionality. This can be in the type of event subscriber, workflow and more. This is useful when you want to add new features. For example, you may want to send an order confirmation email to your customer once they have placed an order. As a merchant, you can do more to secure your online business store from any kind of fraud. This can be achieved with a fraud validation service to verify every purchase order precisely.<\/p>\n\n\n\n<p>In this tutorial, we are going to demonstrate how to use the FraudLabs Pro Screen Order API to validate the order, and cancel the order if we determined that it is fraudulent. If you are interested to get more information about the API, you can always refer to its <a href=\"https:\/\/www.fraudlabspro.com\/developer\/api\/screen-order\">documentation<\/a>.<\/p>\n\n\n\n<p>Before we get started, make sure that you have a FraudLabs Pro API key with you. If you don\u00e2\u20ac\u2122t, you can always <a href=\"https:\/\/www.fraudlabspro.com\/checkout-micro\">register<\/a> for a free API key to get started. This tutorial will also assume that you have already installed and set up the v2 of the Medusa.js in your machine. If you haven\u00e2\u20ac\u2122t, the simplest way to get it is to follow their installation instructions in their <a href=\"https:\/\/docs.medusajs.com\/learn\/installation\">documentation<\/a> to get started.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Steps to use FraudLabs Pro API in&nbsp;Medusa.js<\/h2>\n\n\n\n<ol class=\"wp-block-list\">\n<li>In your Medusa.js back-end project directory, go to the <em>src\/<\/em> and create a new folder called <em>subscribers<\/em> if the folder does not exist. Then, create a new file called <em>validate-order.ts<\/em>, and inside the file, paste the following code into it:<br><\/li>\n<\/ol>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"typescript\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">import { SubscriberArgs, type SubscriberConfig } from \"@medusajs\/framework\";\nimport { sdk } from \"..\/admin\/lib\/config\";\n\nexport default async function orderPlacedHandler({\n  event: { data, name, metadata },\n  container,\n}: SubscriberArgs&lt;{ id: string }>) {\n  const logger = container.resolve(\"logger\");\n\n  logger.info(\"Sending confirmation email...\");\n  logger.info(\"Detected ID \" + data.id);\n\n  sdk.store.order.retrieve(data.id).then(({ order }) => {\n    async function postPayload() {\n      const payload = {\n        key: process.env.FRAUDLABSPRO_API_KEY,\n        first_name: order.shipping_address.first_name,\n        last_name: order.shipping_address.last_name,\n        bill_addr: order.billing_address.address_1,\n        bill_city: order.billing_address.city,\n        bill_state: order.billing_address.province,\n        bill_country: order.billing_address.country_code,\n        bill_zip_code: order.billing_address.postal_code,\n        ship_last_name: order.shipping_address.last_name,\n        ship_first_name: order.shipping_address.first_name,\n        ship_addr: order.shipping_address.address_1,\n        ship_city: order.shipping_address.city,\n        ship_state: order.shipping_address.province,\n        ship_country: order.shipping_address.country_code,\n        ship_zip_code: order.shipping_address.postal_code,\n        user_phone: order.shipping_address.phone,\n        email: order.email,\n        user_order_id: data.id,\n        amount: order.subtotal,\n        currency: order.currency_code,\n      };\n      console.log(payload);\n\n      try {\n        const response = await fetch(\n          \"https:\/\/api.fraudlabspro.com\/v2\/order\/screen\",\n          {\n            method: \"POST\",\n            headers: {\n              \"Content-Type\": \"application\/json\",\n            },\n            body: JSON.stringify(payload),\n          }\n        );\n\n        if (!response.ok) {\n          console.log(response);\n          throw new Error(`HTTP error! status: ${response.status}`);\n        }\n\n        const jsondata = await response.json();\n        console.log(\"Response:\", jsondata);\n        console.log(jsondata.fraudlabspro_status);\n        if (jsondata.fraudlabspro_status == \"REJECT\") {\n          logger.info(\"Detected fraud order, cancelling now...\");\n          sdk.admin.order.cancel(data.id).then(({ order }) => {\n            console.log(order);\n          });\n        }\n      } catch (error) {\n        console.error(\"Error posting payload:\", error);\n      }\n    }\n\n    postPayload();\n  });\n}\n\nexport const config: SubscriberConfig = {\n  event: `order.placed`,\n};\n<\/pre>\n\n\n\n<ol start=\"2\" class=\"wp-block-list\">\n<li>After that, go to the <em>src\/admin\/<\/em> directory, and create a new folder called lib if the folder does not exist. Then, create a new file called <em>config.ts<\/em>, and paste the following contents into the file:<\/li>\n<\/ol>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"typescript\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">import Medusa from \"@medusajs\/js-sdk\"\n\nexport const sdk = new Medusa({\n  baseUrl: &lt;your_medusa_host>,\n  publishableKey: &lt;your_medusa_publishablekey>,\n  debug: process.env.NODE_ENV === \"development\",\n  apiKey: &lt;your_medusa_apikey>,\n  auth: {\n    type: \"session\",\n  },\n})<\/pre>\n\n\n\n<ol start=\"3\" class=\"wp-block-list\">\n<li>The value of the <em>publishableKey<\/em> and <em>apiKey<\/em> can be created and found in your Medusa.js admin dashboard once login.<\/li>\n\n\n\n<li>Finally, add your FraudLabs Pro API key in your .env file like this:  <code data-enlighter-language=\"generic\" class=\"EnlighterJSRAW\">FRAUDLABSPRO_API_KEY=YOUR_API_KEY<\/code><\/li>\n\n\n\n<li>Now the API shall be set up in your e-commerce site. Once the API detected any fraud order, you shall see the order had been cancelled in your admin dashboard, for example, here is how it may look like:<\/li>\n<\/ol>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"242\" src=\"https:\/\/www.fraudlabspro.com\/resources\/wp-content\/uploads\/2025\/01\/screenshot-localhost_9000-2025_01_03-16_17_46_crop-1024x242.png\" alt=\"\" class=\"wp-image-4730\" srcset=\"https:\/\/www.fraudlabspro.com\/resources\/wp-content\/uploads\/2025\/01\/screenshot-localhost_9000-2025_01_03-16_17_46_crop-1024x242.png 1024w, https:\/\/www.fraudlabspro.com\/resources\/wp-content\/uploads\/2025\/01\/screenshot-localhost_9000-2025_01_03-16_17_46_crop-300x71.png 300w, https:\/\/www.fraudlabspro.com\/resources\/wp-content\/uploads\/2025\/01\/screenshot-localhost_9000-2025_01_03-16_17_46_crop-768x182.png 768w, https:\/\/www.fraudlabspro.com\/resources\/wp-content\/uploads\/2025\/01\/screenshot-localhost_9000-2025_01_03-16_17_46_crop-50x12.png 50w, https:\/\/www.fraudlabspro.com\/resources\/wp-content\/uploads\/2025\/01\/screenshot-localhost_9000-2025_01_03-16_17_46_crop-1536x364.png 1536w, https:\/\/www.fraudlabspro.com\/resources\/wp-content\/uploads\/2025\/01\/screenshot-localhost_9000-2025_01_03-16_17_46_crop-920x218.png 920w, https:\/\/www.fraudlabspro.com\/resources\/wp-content\/uploads\/2025\/01\/screenshot-localhost_9000-2025_01_03-16_17_46_crop-600x142.png 600w, https:\/\/www.fraudlabspro.com\/resources\/wp-content\/uploads\/2025\/01\/screenshot-localhost_9000-2025_01_03-16_17_46_crop-320x76.png 320w, https:\/\/www.fraudlabspro.com\/resources\/wp-content\/uploads\/2025\/01\/screenshot-localhost_9000-2025_01_03-16_17_46_crop.png 1631w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<div style=\"height:40px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<div style=\"height:40px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h2 class=\"wp-block-heading has-text-align-center\">Fortify Your Business Against Fraud<\/h2>\n\n\n\n<p class=\"has-text-align-center\">Streamline your works with our fraud detection API now!<\/p>\n\n\n\n<div class=\"wp-block-buttons is-content-justification-center is-layout-flex wp-container-1 wp-block-buttons-is-layout-flex\"><div class=\"wp-block-button has-text-align-center\" style=\"width:100%;\"><a id=\"btn-click\" class=\"wp-block-button__link has-white-color has-text-color has-background wp-element-button\" href=\"https:\/\/www.fraudlabspro.com\/checkout-micro?utm_source=blog&#038;utm_medium=link&#038;utm_campaign=cta&#038;utm_term=footer-free\" style=\"background-color:#ed4747;margin:0px 10px 10px 10px;width:auto;\" target=\"_blank\" rel=\"noreferrer noopener\">Integrate API For Free Now<\/a><a id=\"btn-click\" class=\"wp-block-button__link has-text-color has-background wp-element-button\" href=\"https:\/\/www.fraudlabspro.com\/developer\/api\/screen-order?utm_source=blog&#038;utm_medium=link&#038;utm_campaign=cta&#038;utm_term=footer-devguide\" style=\"margin:0px 10px 10px 10px;color:#ed4747;border:1px solid #ed4747;background-color:#ffffff;width:auto;\" target=\"_blank\" rel=\"noreferrer noopener\">Explore Documentation<\/a><\/div><\/div>\n\n\n\n<div style=\"height:54px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Medusa.js is an open-source headless commerce platform that aims to ease the e-commerce solution for merchants. Built with JavaScript, it [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_lmt_disableupdate":"","_lmt_disable":"","site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"doc_category":[185],"doc_tag":[],"class_list":["post-7193","docs","type-docs","status-publish","hentry","doc_category-technical-topics"],"year_month":"2026-05","word_count":758,"total_views":0,"reactions":{"happy":0,"normal":0,"sad":0},"author_info":{"name":"FraudLabs Pro","author_nicename":"hexasoft","author_url":"https:\/\/www.fraudlabspro.com\/resources\/author\/hexasoft\/"},"doc_category_info":[{"term_name":"Technical Topics","term_url":"https:\/\/www.fraudlabspro.com\/resources\/categories\/technical-topics\/"}],"doc_tag_info":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.6 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to use FraudLabs Pro API in Medusa.js? -<\/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.fraudlabspro.com\/resources\/tutorials\/how-to-use-fraudlabs-pro-api-in-medusa-js\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to use FraudLabs Pro API in Medusa.js? -\" \/>\n<meta property=\"og:description\" content=\"Medusa.js is an open-source headless commerce platform that aims to ease the e-commerce solution for merchants. Built with JavaScript, it [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.fraudlabspro.com\/resources\/tutorials\/how-to-use-fraudlabs-pro-api-in-medusa-js\/\" \/>\n<meta property=\"article:modified_time\" content=\"2026-04-02T10:33:38+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.fraudlabspro.com\/resources\/wp-content\/uploads\/2025\/01\/flp-medusa-validate-order.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"600\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.fraudlabspro.com\\\/resources\\\/tutorials\\\/how-to-use-fraudlabs-pro-api-in-medusa-js\\\/\",\"url\":\"https:\\\/\\\/www.fraudlabspro.com\\\/resources\\\/tutorials\\\/how-to-use-fraudlabs-pro-api-in-medusa-js\\\/\",\"name\":\"How to use FraudLabs Pro API in Medusa.js? -\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.fraudlabspro.com\\\/resources\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.fraudlabspro.com\\\/resources\\\/tutorials\\\/how-to-use-fraudlabs-pro-api-in-medusa-js\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.fraudlabspro.com\\\/resources\\\/tutorials\\\/how-to-use-fraudlabs-pro-api-in-medusa-js\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.fraudlabspro.com\\\/resources\\\/wp-content\\\/uploads\\\/2025\\\/01\\\/flp-medusa-validate-order.png\",\"datePublished\":\"2025-01-06T16:00:00+00:00\",\"dateModified\":\"2026-04-02T10:33:38+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.fraudlabspro.com\\\/resources\\\/tutorials\\\/how-to-use-fraudlabs-pro-api-in-medusa-js\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.fraudlabspro.com\\\/resources\\\/tutorials\\\/how-to-use-fraudlabs-pro-api-in-medusa-js\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.fraudlabspro.com\\\/resources\\\/tutorials\\\/how-to-use-fraudlabs-pro-api-in-medusa-js\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.fraudlabspro.com\\\/resources\\\/wp-content\\\/uploads\\\/2025\\\/01\\\/flp-medusa-validate-order.png\",\"contentUrl\":\"https:\\\/\\\/www.fraudlabspro.com\\\/resources\\\/wp-content\\\/uploads\\\/2025\\\/01\\\/flp-medusa-validate-order.png\",\"width\":1200,\"height\":600},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.fraudlabspro.com\\\/resources\\\/tutorials\\\/how-to-use-fraudlabs-pro-api-in-medusa-js\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.fraudlabspro.com\\\/resources\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Resources\",\"item\":\"https:\\\/\\\/www.fraudlabspro.com\\\/resources\\\/tutorials\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"How to use FraudLabs Pro API in Medusa.js?\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.fraudlabspro.com\\\/resources\\\/#website\",\"url\":\"https:\\\/\\\/www.fraudlabspro.com\\\/resources\\\/\",\"name\":\"\",\"description\":\"Resources About FraudLabs Pro Services\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.fraudlabspro.com\\\/resources\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to use FraudLabs Pro API in Medusa.js? -","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.fraudlabspro.com\/resources\/tutorials\/how-to-use-fraudlabs-pro-api-in-medusa-js\/","og_locale":"en_US","og_type":"article","og_title":"How to use FraudLabs Pro API in Medusa.js? -","og_description":"Medusa.js is an open-source headless commerce platform that aims to ease the e-commerce solution for merchants. Built with JavaScript, it [&hellip;]","og_url":"https:\/\/www.fraudlabspro.com\/resources\/tutorials\/how-to-use-fraudlabs-pro-api-in-medusa-js\/","article_modified_time":"2026-04-02T10:33:38+00:00","og_image":[{"width":1200,"height":600,"url":"https:\/\/www.fraudlabspro.com\/resources\/wp-content\/uploads\/2025\/01\/flp-medusa-validate-order.png","type":"image\/png"}],"twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.fraudlabspro.com\/resources\/tutorials\/how-to-use-fraudlabs-pro-api-in-medusa-js\/","url":"https:\/\/www.fraudlabspro.com\/resources\/tutorials\/how-to-use-fraudlabs-pro-api-in-medusa-js\/","name":"How to use FraudLabs Pro API in Medusa.js? -","isPartOf":{"@id":"https:\/\/www.fraudlabspro.com\/resources\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.fraudlabspro.com\/resources\/tutorials\/how-to-use-fraudlabs-pro-api-in-medusa-js\/#primaryimage"},"image":{"@id":"https:\/\/www.fraudlabspro.com\/resources\/tutorials\/how-to-use-fraudlabs-pro-api-in-medusa-js\/#primaryimage"},"thumbnailUrl":"https:\/\/www.fraudlabspro.com\/resources\/wp-content\/uploads\/2025\/01\/flp-medusa-validate-order.png","datePublished":"2025-01-06T16:00:00+00:00","dateModified":"2026-04-02T10:33:38+00:00","breadcrumb":{"@id":"https:\/\/www.fraudlabspro.com\/resources\/tutorials\/how-to-use-fraudlabs-pro-api-in-medusa-js\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.fraudlabspro.com\/resources\/tutorials\/how-to-use-fraudlabs-pro-api-in-medusa-js\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.fraudlabspro.com\/resources\/tutorials\/how-to-use-fraudlabs-pro-api-in-medusa-js\/#primaryimage","url":"https:\/\/www.fraudlabspro.com\/resources\/wp-content\/uploads\/2025\/01\/flp-medusa-validate-order.png","contentUrl":"https:\/\/www.fraudlabspro.com\/resources\/wp-content\/uploads\/2025\/01\/flp-medusa-validate-order.png","width":1200,"height":600},{"@type":"BreadcrumbList","@id":"https:\/\/www.fraudlabspro.com\/resources\/tutorials\/how-to-use-fraudlabs-pro-api-in-medusa-js\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.fraudlabspro.com\/resources\/"},{"@type":"ListItem","position":2,"name":"Resources","item":"https:\/\/www.fraudlabspro.com\/resources\/tutorials\/"},{"@type":"ListItem","position":3,"name":"How to use FraudLabs Pro API in Medusa.js?"}]},{"@type":"WebSite","@id":"https:\/\/www.fraudlabspro.com\/resources\/#website","url":"https:\/\/www.fraudlabspro.com\/resources\/","name":"","description":"Resources About FraudLabs Pro Services","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.fraudlabspro.com\/resources\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"}]}},"_links":{"self":[{"href":"https:\/\/www.fraudlabspro.com\/resources\/wp-json\/wp\/v2\/docs\/7193","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.fraudlabspro.com\/resources\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/www.fraudlabspro.com\/resources\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/www.fraudlabspro.com\/resources\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.fraudlabspro.com\/resources\/wp-json\/wp\/v2\/comments?post=7193"}],"version-history":[{"count":0,"href":"https:\/\/www.fraudlabspro.com\/resources\/wp-json\/wp\/v2\/docs\/7193\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.fraudlabspro.com\/resources\/wp-json\/wp\/v2\/media?parent=7193"}],"wp:term":[{"taxonomy":"doc_category","embeddable":true,"href":"https:\/\/www.fraudlabspro.com\/resources\/wp-json\/wp\/v2\/doc_category?post=7193"},{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/www.fraudlabspro.com\/resources\/wp-json\/wp\/v2\/doc_tag?post=7193"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}