API v1 is being deprecated. Greip will continue to support existing v1 integrations for now, but new endpoints, fields, and documentation updates ship on API v2 only. Switch the docs version to API v2 (recommended) or follow the Migrate from API v1 to v2 guide to upgrade your integration.
{ "data": { "score": 82, "rules": [ { "id": "PF10003", "description": "Customer IP Address is probably VPN/Proxy/Bot/Hosting/Cloud." }, { "id": "PF10004", "description": "Customer Email Address is probably invalid or spam." }, { "id": "PF10001", "description": "High purchase rate, according to `customer_ip`." }, { "id": "PF10002", "description": "High purchase rate, according to `customer_id`." }, { "id": "PF10013", "description": "Customer device might not be a real device (according to `customer_useragent`)." }, { "id": "PF10014", "description": "Customer device is registered as a high-risk device (according to `customer_useragent`)." } ], "rulesChecked": 21, "rulesDetected": 6, "custom_rules_applied": { "total": 0, "rules": [] } }, "status": "success", "executionTime": 5}
{ "status": "error", "code": 101, "type": "invalid_key", "description": "The API Key is missing or invalid."}
{ "data": { "score": 82, "rules": [ { "id": "PF10003", "description": "Customer IP Address is probably VPN/Proxy/Bot/Hosting/Cloud." }, { "id": "PF10004", "description": "Customer Email Address is probably invalid or spam." }, { "id": "PF10001", "description": "High purchase rate, according to `customer_ip`." }, { "id": "PF10002", "description": "High purchase rate, according to `customer_id`." }, { "id": "PF10013", "description": "Customer device might not be a real device (according to `customer_useragent`)." }, { "id": "PF10014", "description": "Customer device is registered as a high-risk device (according to `customer_useragent`)." } ], "rulesChecked": 21, "rulesDetected": 6, "custom_rules_applied": { "total": 0, "rules": [] } }, "status": "success", "executionTime": 5}
{ "status": "error", "code": 101, "type": "invalid_key", "description": "The API Key is missing or invalid."}
Risk Scoring
Payment Fraud Detection
Prevent financial losses and protect your business by deploying AI-powered modules that analyze transaction patterns in real-time.
This method helps identify and block suspicious activities, mitigating the risk of fraudulent payments and ensuring a secure experience for both you and your customers.
API v1 is being deprecated. Greip will continue to support existing v1 integrations for now, but new endpoints, fields, and documentation updates ship on API v2 only. Switch the docs version to API v2 (recommended) or follow the Migrate from API v1 to v2 guide to upgrade your integration.
{ "data": { "score": 82, "rules": [ { "id": "PF10003", "description": "Customer IP Address is probably VPN/Proxy/Bot/Hosting/Cloud." }, { "id": "PF10004", "description": "Customer Email Address is probably invalid or spam." }, { "id": "PF10001", "description": "High purchase rate, according to `customer_ip`." }, { "id": "PF10002", "description": "High purchase rate, according to `customer_id`." }, { "id": "PF10013", "description": "Customer device might not be a real device (according to `customer_useragent`)." }, { "id": "PF10014", "description": "Customer device is registered as a high-risk device (according to `customer_useragent`)." } ], "rulesChecked": 21, "rulesDetected": 6, "custom_rules_applied": { "total": 0, "rules": [] } }, "status": "success", "executionTime": 5}
{ "status": "error", "code": 101, "type": "invalid_key", "description": "The API Key is missing or invalid."}
Detecting and preventing fraudulent payments is a critical task for any business that accepts online payments. This AI-based module is designed to help you do that by analysing a range of data points related to each transaction.Using sophisticated machine learning algorithms, this method can detect and flag potentially fraudulent transactions by analysing user data, user behaviour, user device, and other factors. For example, if a transaction appears to be coming from an unusual location or device, or if the user’s behaviour is inconsistent with their past transactions, this method can flag the transaction for further review or rejection.One of the key advantages of this AI-based module is its ability to adapt and learn over time. As it analyses more data and detects more fraud, it can improve its accuracy and efficiency, making it a highly effective tool for preventing financial losses due to fraud.By implementing this method in your payment processing system, you can help protect your business and your customers from fraudulent activity, while providing a seamless and secure payment experience.
“ECOMMERCE LOSSES TO ONLINE PAYMENT FRAUD TO EXCEED $48 BILLION GLOBALLY
IN 2023, AS FRAUD INCURSIONS EVOLVE”, according to a recent report by Juniper
Research.
If your a service provider with “sub-websites” (like Shopify), then provide a unique identification code indicating the website the customer trying to purchase from.Sample values: 12330098, 01as-aowq-029jd, or abcdefg.
The format command is used to get a response in a specific format.Expected values: JSON, XML, CSV, or NewlineFor more information please refer to Response Format.
The mode command is used to in the development stage to simulate the integration process before releasing it to the production environment.Expected values: live, or test.For more information please refer to Development Environment.
The userID command can be used to identify requests sent by specific users to monitor in the Events Page.Expected values: email address, phone number, user id, name, etc.For more information please refer to User Identifier.
Customer IP Address is probably VPN/Proxy/Bot/Hosting/Cloud.
PF1004
Customer Email Address is probably invalid, disposable or spam.
PF1005
Customer Phone Number is probably invalid or spam.
PF1006
Customer Latitude/Longitude is invalid.
PF1007
Customer card number (BIN/IIN) is invalid.
PF1008
Customer debit/credit card issued by a brand different from the one exist in payment_type parameter.
PF1009
Customer country is a high-fraud country.
PF1010
Customer debit/credit card issued in a high-risk country.
PF1011
Customer is purchasing multiple times from multiple locations within the past 30 days.
PF1012
Customer debit/credit card is being used multiple times from multiple customer accounts (according to customer_id and card_number).
PF1013
Customer device might not be a real device (according to customer_useragent).
PF1014
Customer device is registered as a high-risk device (according to customer_useragent).
PF1015
AI flagged the transaction as potentially fraudulent.
PF1016
AI flagged the transaction as potentially fraudulent due to high transaction amount.
PF1017
Mismatch between billing address and IP geolocation.
PF1018
Customer has multiple fraudulent transactions in the past 30 days.
PF1019
Unusual purchase amount compared to customer’s history.
PF1020
Transaction initiated from a newly created account.
PF10021
Multiple payment cards used by a single account within a short timeframe.
PF10022
Customer IP address were found in one of your blacklists.
PF10023
Customer email address were found in one of your blacklists.
PF10024
Customer phone number were found in one of your blacklists.
PF10025
Customer card number were found in one of your blacklists.
PF10026
Customer Id were found in one of your blacklists.
Was this page helpful?
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Greip API Documentation","colors":{"primary":"#008CFF","light":"#008CFF","dark":"#008CFF"},"logo":{"light":"https://mintcdn.com/greip/c6lrSS26RYZXvB76/logo/light.svg?fit=max\u0026auto=format\u0026n=c6lrSS26RYZXvB76\u0026q=85\u0026s=f19b2aac5c5fcac6cccf3ef89dc6cc9a","dark":"https://mintcdn.com/greip/c6lrSS26RYZXvB76/logo/dark.svg?fit=max\u0026auto=format\u0026n=c6lrSS26RYZXvB76\u0026q=85\u0026s=3662ee2aaf8fb03ca8ba5dd0cfeb4c59"},"favicon":"https://mintcdn.com/greip/c6lrSS26RYZXvB76/favicon-1.svg?fit=max\u0026auto=format\u0026n=c6lrSS26RYZXvB76\u0026q=85\u0026s=2b357f173640f57b886f5271c144c66d","api":{"openapi":"https://greip.io/OpenAPI.json","playground":{"display":"interactive"},"mdx":{"auth":{"method":"bearer"},"server":"https://greipapi.com"}},"appearance":{"default":"dark"},"background":{"image":"https://mintcdn.com/greip/c6lrSS26RYZXvB76/images/background-light.png?fit=max\u0026auto=format\u0026n=c6lrSS26RYZXvB76\u0026q=85\u0026s=d5d027aef4f4e3d302c5530a198c7431"},"navbar":{"links":[{"href":"https://join.slack.com/t/greip-community/shared_invite/zt-2sxdyaaj8-418mMcVlekO6sNhKOAGWpg","label":"Community"}],"primary":{"type":"button","label":"Dashboard","href":"https://dashboard.greip.io/home"}},"footer":{"socials":{"linkedin":"https://www.linkedin.com/company/greip","github":"https://github.com/Greipio","website":"https://greip.io","x":"https://x.com/Greipio","slack":"https://join.slack.com/t/greip-community/shared_invite/zt-2sxdyaaj8-418mMcVlekO6sNhKOAGWpg"}},"banner":{"content":"🚀 Greip's API achieved **99.98%** uptime for the last 90 days, [learn more](https://status.greip.io/).","dismissible":true},"contextual":{"options":["chatgpt","claude","copy","view"],"display":"header"},"styling":{"latex":false},"navigation":{"global":{"anchors":[{"anchor":"Integrations","icon":"gears","href":"https://greip.io/integrations/all"},{"anchor":"Changelog","icon":"clock-rotate-left","href":"https://changelog.greip.io"},{"anchor":"Server Status","icon":"signal-bars","href":"https://status.greip.io"},{"anchor":"Articles","icon":"rss","href":"https://greip.io/blog"},{"anchor":"Dictionary","icon":"book-open","href":"https://greip.io/blog/section/Dictionary"},{"anchor":"FAQ","icon":"circle-question","href":"https://greip.io/faq"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"greip","hasAudioNarration":false,"actualSubdomain":"greip","customDomains":["docs.greip.io"],"gitSource":{"type":"github","owner":"greipio","repo":"greip-docs","deployBranch":"main","contentDirectory":"","isPrivate":false,"mountPath":"","label":""},"chroma":{"liveDeploymentHistoryId":"6ad8b1e6ace1a45c00d9d9c5","collectionId":"2e1541b2-5b7d-431c-abf8-c7f9d6ee3b9c","schemaVersion":"v3","latestBuiltDeploymentHistoryId":"6ad8b1e6ace1a45c00d9d9c5"},"feedback":{"thumbs":true},"entitlements":{},"buildId":"6ad8b1e6ace1a45c00d9d9c5","clientVersion":"0.0.3966","searchFilterCounts":[{"language":"default","tag":"API Reference","count":30},{"language":"default","tag":"Knowledge Base","count":28},{"language":"default","tag":"Data Lookup","count":18},{"language":"default","tag":"Documentation","count":15},{"language":"default","tag":"Account Management","count":11},{"language":"default","tag":"Risk Scoring","count":10},{"language":"default","tag":"Integration Guide","count":10},{"language":"default","tag":"Get Started","count":8},{"language":"default","tag":"Use cases","count":8},{"language":"default","tag":"Integrations","count":7}]},"assistantConfig":{},"hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-v7-file-tree","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"pause-universal-search-reconcile","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"per-site-search-delta","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-private-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-nav-generations","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"byok-sep-25","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-agent-model-picker","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-updated-9-15","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"isAtlas":false,"googleFontsInlined":false},"customCss":[{"filePath":"style.css","content":".panel{overflow:visible}.custom-link,.prose :where(.custom-link:hover):not(:where([class~=\"not-prose\"], [class~=\"not-prose\"] *)){display:inline-block;flex:unset;width:auto;border:unset!important;text-decoration:underline}.no-wrap-words{white-space:nowrap}"}],"page":{"pagePath":"api-reference/v1/endpoint/scoring/payment","slug":"/api-reference/v1/endpoint/scoring/payment","pageMetadata":{"title":"Payment Fraud Detection","description":"Prevent financial losses and protect your business by deploying AI-powered modules that analyze transaction patterns in real-time.\n\nThis method helps identify and block suspicious activities, mitigating the risk of fraudulent payments and ensuring a secure experience for both you and your customers.","api":"POST /scoring/payment","href":"/api-reference/v1/endpoint/scoring/payment"},"description":{"compiledSource":"\"use strict\";\nconst {Fragment: _Fragment, jsx: _jsx, jsxs: _jsxs} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsxs(_Fragment, {\n children: [_jsx(_components.p, {\n children: \"Prevent financial losses and protect your business by deploying AI-powered modules that analyze transaction patterns in real-time.\"\n }), \"\\n\", _jsx(_components.p, {\n children: \"This method helps identify and block suspicious activities, mitigating the risk of fraudulent payments and ensuring a secure experience for both you and your customers.\"\n })]\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];const MCPCallout=()=>{const _components={a:`a`,..._provideComponents()};return _jsxs(`div`,{class:`callout mint-my-4 mint-px-5 mint-py-4 mint-overflow-hidden mint-rounded-2xl mint-flex mint-gap-3 mint-border border-[rgba(192, 132, 252, 0.2)] bg-[rgba(192, 132, 252, 0.1)] dark:mint-border-[#c084fc4d] dark:mint-bg-[#c084fc1a] mint-text-[#6005BB] dark:mint-text-[#FFFFFF]`,\"data-callout-type\":`callout`,children:[_jsx(`div`,{class:`mint-mt-0.5 mint-w-4`,\"data-component-part\":`callout-icon`,children:_jsx(`svg`,{class:`mint-h-4 mint-w-4 !mint-m-0 mint-shrink-0 mint-bg-[#c084fc] mint-[mask-image:url('https://d3gk2c5xim1je2.cloudfront.net/v7.1.0/duotone/fire.svg')] mint-[-webkit-mask-image:url('https://d3gk2c5xim1je2.cloudfront.net/v7.1.0/duotone/fire.svg')] mint-[mask-repeat:no-repeat] mint-[-webkit-mask-repeat:no-repeat] mint-[mask-position:center] mint-[-webkit-mask-position:center]`})}),_jsx(`div`,{class:`mint-text-sm prose dark:prose-invert mint-min-w-0 mint-w-full [\u0026_kbd]:bg-background-light dark:[\u0026_kbd]:bg-background-dark mint-text-[#6005BB] dark:mint-text-[#FFFFFF]`,\"data-component-part\":`callout-content`,children:_jsxs(`span`,{\"data-as\":`p`,children:[`Want to skip the docs? Use the`,` `,_jsx(_components.a,{class:`link mint-text-xs mint-border-[#C792FC]`,href:`/docs-mcp-server`,children:_jsx(`b`,{children:`MCP Server`})})]})})]})};const Availability=({plan,color})=>{const colorMap={green:`text-green-700 dark:text-green-400`,blue:`text-blue-700 dark:text-blue-400`,purple:`text-purple-700 dark:text-purple-400`};return _jsxs(`div`,{dir:`ltr`,\"data-orientation\":`horizontal`,class:`mint-p-4 mint-px-5 mint-mt-0 md:mint-mt-4 mint-flex mint-flex-col sm:mint-flex-row mint-flex-wrap mint-gap-2 mint-relative mint-overflow-hidden mint-rounded-2xl mint-border mint-border-gray-950/10 dark:mint-border-white/10 mint-my-0 mint-bg-gray-50 dark:mint-bg-white/5 dark:codeblock-dark mint-text-gray-950 dark:mint-text-gray-50 codeblock-light mint-text-sm prose prose-gray dark:prose-invert mint-font-semibold no-wrap-words`,children:[`Endpoint availability:`,` `,_jsx(`span`,{class:` ${{green:`mint-text-green-700 dark:mint-text-green-400`,blue:`mint-text-blue-700 dark:mint-text-blue-400`,purple:`mint-text-purple-700 dark:mint-text-purple-400`}[color]} mint-flex-1`,children:plan}),_jsx(`a`,{class:`custom-link mint-text-xs`,href:`https://greip.io/detailed-pricing`,children:`Learn more`})]})};function _createMdxContent(props){const _components={a:`a`,code:`code`,p:`p`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,..._provideComponents(),...props.components},{Expandable,Frame,Heading,OptimizedImage,ParamField,ResponseField,Table,Warning}=_components;if(!Expandable)_missingMdxReference(`Expandable`,true);if(!Frame)_missingMdxReference(`Frame`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!OptimizedImage)_missingMdxReference(`OptimizedImage`,true);if(!ParamField)_missingMdxReference(`ParamField`,true);if(!ResponseField)_missingMdxReference(`ResponseField`,true);if(!Table)_missingMdxReference(`Table`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsx(Heading,{level:`2`,id:`overview`,children:`Overview`}),`\n`,_jsx(_components.p,{children:`Detecting and preventing fraudulent payments is a critical task for any business that accepts online payments. This AI-based module is designed to help you do that by analysing a range of data points related to each transaction.`}),`\n`,_jsx(_components.p,{children:`Using sophisticated machine learning algorithms, this method can detect and flag potentially fraudulent transactions by analysing user data, user behaviour, user device, and other factors. For example, if a transaction appears to be coming from an unusual location or device, or if the user’s behaviour is inconsistent with their past transactions, this method can flag the transaction for further review or rejection.`}),`\n`,_jsx(_components.p,{children:`One of the key advantages of this AI-based module is its ability to adapt and learn over time. As it analyses more data and detects more fraud, it can improve its accuracy and efficiency, making it a highly effective tool for preventing financial losses due to fraud.`}),`\n`,_jsx(_components.p,{children:`By implementing this method in your payment processing system, you can help protect your business and your customers from fraudulent activity, while providing a seamless and secure payment experience.`}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[`“ECOMMERCE LOSSES TO ONLINE PAYMENT FRAUD TO `,_jsx(_components.strong,{children:`EXCEED $48 BILLION`}),` GLOBALLY\nIN 2023, AS FRAUD INCURSIONS EVOLVE”, according to a recent report by Juniper\nResearch.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`integration-workflow`,children:`Integration Workflow`}),`\n`,_jsx(Frame,{caption:`Greip Payment Fraud Module - Workflow`,children:_jsx(OptimizedImage,{src:`https://mintcdn.com/greip/c6lrSS26RYZXvB76/images/payment-fraud-flow.png?fit=max\u0026auto=format\u0026n=c6lrSS26RYZXvB76\u0026q=85\u0026s=01e8f272989d21475b97ec9913e3db30`,alt:`Greip Payment Fraud Module - Workflow`,\"data-og-width\":`1690`,width:`1690`,\"data-og-height\":`858`,height:`858`,\"data-path\":`images/payment-fraud-flow.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/greip/c6lrSS26RYZXvB76/images/payment-fraud-flow.png?w=280\u0026fit=max\u0026auto=format\u0026n=c6lrSS26RYZXvB76\u0026q=85\u0026s=31761a0ae4002e3cde94b34c7438ab16 280w, https://mintcdn.com/greip/c6lrSS26RYZXvB76/images/payment-fraud-flow.png?w=560\u0026fit=max\u0026auto=format\u0026n=c6lrSS26RYZXvB76\u0026q=85\u0026s=d1b48900df53d318b5ebd9725868380e 560w, https://mintcdn.com/greip/c6lrSS26RYZXvB76/images/payment-fraud-flow.png?w=840\u0026fit=max\u0026auto=format\u0026n=c6lrSS26RYZXvB76\u0026q=85\u0026s=80ac828da8df7ead31b8641135511e0b 840w, https://mintcdn.com/greip/c6lrSS26RYZXvB76/images/payment-fraud-flow.png?w=1100\u0026fit=max\u0026auto=format\u0026n=c6lrSS26RYZXvB76\u0026q=85\u0026s=d99d28d29f733aff94e94a68b1ba67f2 1100w, https://mintcdn.com/greip/c6lrSS26RYZXvB76/images/payment-fraud-flow.png?w=1650\u0026fit=max\u0026auto=format\u0026n=c6lrSS26RYZXvB76\u0026q=85\u0026s=5c8739f1d1663c2de9200a06d7f34653 1650w, https://mintcdn.com/greip/c6lrSS26RYZXvB76/images/payment-fraud-flow.png?w=2500\u0026fit=max\u0026auto=format\u0026n=c6lrSS26RYZXvB76\u0026q=85\u0026s=4f5d87f7e09226ed87413766085cee3f 2500w`})}),`\n`,_jsx(Heading,{level:`3`,id:`body-parameters`,children:`Body Parameters`}),`\n`,_jsx(ParamField,{body:`data`,type:`object`,placeholder:`Data of the transaction`,initialValue:`key`,required:true,id:`param-data`,children:_jsxs(Expandable,{title:`properties`,defaultOpen:true,children:[_jsxs(ResponseField,{name:`action`,type:`string`,id:`param-action`,children:[_jsx(_components.p,{children:`The action your customer try to implement.`}),_jsxs(_components.p,{children:[`Accepts: `,_jsx(_components.code,{children:`purchase`}),`, `,_jsx(_components.code,{children:`deposit`}),`, or `,_jsx(_components.code,{children:`withdrawal`}),`.`]})]}),_jsxs(ResponseField,{name:`website_domain`,type:`string`,id:`param-website-domain`,children:[_jsx(_components.p,{children:`The domain name of the website the customer trying to purchase from.`}),_jsxs(_components.p,{children:[`Sample value: `,_jsx(_components.code,{children:`domain.com`})]})]}),_jsxs(ResponseField,{name:`website_name`,type:`string`,id:`param-website-name`,children:[_jsx(_components.p,{children:`The name of the website the customer trying to purchase from.`}),_jsxs(_components.p,{children:[`Sample value: `,_jsx(_components.code,{children:`Nike Store, California`})]})]}),_jsxs(ResponseField,{name:`merchant_id`,type:`string|integer`,id:`param-merchant-id`,children:[_jsx(_components.p,{children:`If your a service provider with “sub-websites” (like Shopify), then provide a unique identification code indicating the website the customer trying to purchase from.`}),_jsxs(_components.p,{children:[`Sample values: `,_jsx(_components.code,{children:`12330098`}),`, `,_jsx(_components.code,{children:`01as-aowq-029jd`}),`, or `,_jsx(_components.code,{children:`abcdefg`}),`.`]})]}),_jsx(ResponseField,{name:`shipment_id`,type:`string|integer|number`,id:`param-shipment-id`,children:_jsx(_components.p,{children:`The identification code of the shipment.`})}),_jsx(ResponseField,{name:`transaction_id`,type:`string|integer|number`,id:`param-transaction-id`,children:_jsx(_components.p,{children:`The identification code of the transaction in your system.`})}),_jsx(ResponseField,{name:`transaction_amount`,type:`string|number|float`,id:`param-transaction-amount`,children:_jsx(_components.p,{children:`The total amount of the transaction.`})}),_jsxs(ResponseField,{name:`transaction_currency`,type:`string`,id:`param-transaction-currency`,children:[_jsx(_components.p,{children:`The currency in which the customer pay with.`}),_jsxs(_components.p,{children:[`Sample value: `,_jsx(_components.code,{children:`GBP`})]})]}),_jsx(ResponseField,{name:`cart_items`,type:`string|integer|number`,id:`param-cart-items`,children:_jsxs(Expandable,{title:`properties`,children:[_jsx(ResponseField,{name:`item_id`,type:`string|number|integer`,id:`param-item-id`}),_jsx(ResponseField,{name:`item_name`,type:`string`,id:`param-item-name`}),_jsx(ResponseField,{name:`item_quantity`,type:`string|integer`,id:`param-item-quantity`}),_jsx(ResponseField,{name:`item_quantity`,type:`integer`,id:`param-item-quantity-1`}),_jsx(ResponseField,{name:`item_price`,type:`string|float|integer`,id:`param-item-price`}),_jsx(ResponseField,{name:`item_category_id`,type:`string|number|integer`,id:`param-item-category-id`})]})}),_jsx(ResponseField,{name:`isDigitalProducts`,type:`boolean`,id:`param-is-digital-products`,children:_jsx(_components.p,{children:`Set this to true if the customer is purchasing a digital product.`})}),_jsx(ResponseField,{name:`coupon`,type:`string`,id:`param-coupon`,children:_jsx(_components.p,{children:`The promo code used by the customer to complete the checkout.`})}),_jsx(ResponseField,{name:`customer_id`,type:`string|integer`,id:`param-customer-id`,children:_jsx(_components.p,{children:`The identification number of the customer in your system.`})}),_jsx(ResponseField,{name:`customer_firstname`,type:`string`,id:`param-customer-firstname`,children:_jsx(_components.p,{children:`The first name of the customer.`})}),_jsx(ResponseField,{name:`customer_lastname`,type:`string`,id:`param-customer-lastname`,children:_jsx(_components.p,{children:`The last name of the customer (Family Name).`})}),_jsx(ResponseField,{name:`customer_pob`,type:`string`,id:`param-customer-pob`,children:_jsx(_components.p,{children:`The Place of Birth of the customer.`})}),_jsx(ResponseField,{name:`customer_ip`,type:`string`,id:`param-customer-ip`,children:_jsx(_components.p,{children:`The IP address of the customer.`})}),_jsx(ResponseField,{name:`customer_country`,type:`string`,id:`param-customer-country`,children:_jsxs(_components.p,{children:[`The `,_jsx(_components.code,{children:`ISO 3166-1 alpha-2`}),` code format of the country where the customer live. `,_jsx(_components.a,{href:`https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2`,children:`Learn more`})]})}),_jsx(ResponseField,{name:`customer_region`,type:`string`,id:`param-customer-region`,children:_jsx(_components.p,{children:`The name of the region where the customer live.`})}),_jsx(ResponseField,{name:`customer_city`,type:`string`,id:`param-customer-city`,children:_jsx(_components.p,{children:`The name of the city where the customer live.`})}),_jsx(ResponseField,{name:`customer_zip`,type:`string|integer|number`,id:`param-customer-zip`,children:_jsx(_components.p,{children:`The name of the zip code of customer location.`})}),_jsx(ResponseField,{name:`customer_street`,type:`string`,id:`param-customer-street`,children:_jsx(_components.p,{children:`The “address line 1” of the customer.`})}),_jsx(ResponseField,{name:`customer_street2`,type:`string`,id:`param-customer-street2`,children:_jsx(_components.p,{children:`The “address line 2” of the customer.`})}),_jsx(ResponseField,{name:`customer_latitude`,type:`integer|float`,id:`param-customer-latitude`,children:_jsx(_components.p,{children:`The customer latitude on the map (GPS Coordinates).`})}),_jsx(ResponseField,{name:`customer_longitude`,type:`integer|float`,id:`param-customer-longitude`,children:_jsx(_components.p,{children:`The customer longitude on the map (GPS Coordinates).`})}),_jsx(ResponseField,{name:`customer_device_id`,type:`string|integer|number`,id:`param-customer-device-id`,children:_jsx(_components.p,{children:`The device identification code of the customer.`})}),_jsx(ResponseField,{name:`customer_phone`,type:`string|integer|number`,id:`param-customer-phone`,children:_jsx(_components.p,{children:`The phone number of the customer (international format).`})}),_jsx(ResponseField,{name:`customer_registration_date`,type:`integer`,id:`param-customer-registration-date`,children:_jsx(_components.p,{children:`The registration date of the customer (UNIX Timestamp).`})}),_jsx(ResponseField,{name:`customer_balance`,type:`string|integer|float`,id:`param-customer-balance`,children:_jsx(_components.p,{children:`If you offer a Wallet feature in your website, then pass the user balance to this pararmeter.`})}),_jsxs(ResponseField,{name:`customer_dob`,type:`string`,id:`param-customer-dob`,children:[_jsx(_components.p,{children:`The customer’s date of birth.`}),_jsx(_components.p,{children:\"Sample value: ‘1985-12-27`\"})]}),_jsx(ResponseField,{name:`customer_email`,type:`string`,id:`param-customer-email`,children:_jsx(_components.p,{children:`The email address of the customer.`})}),_jsx(ResponseField,{name:`customer_2fa`,type:`boolean`,id:`param-customer-2fa`,children:_jsx(_components.p,{children:`Set this to true if the customer has 2FA enabled in his/her account.`})}),_jsx(ResponseField,{name:`customer_useragent`,type:`string`,id:`param-customer-useragent`,children:_jsxs(_components.p,{children:[`Pass the `,_jsx(_components.a,{href:`https://en.wikipedia.org/wiki/User_agent`,children:`User Agent`}),` of the customer to this parameter.`]})}),_jsx(ResponseField,{name:`shipping_country`,type:`string`,id:`param-shipping-country`,children:_jsxs(_components.p,{children:[`The shipping country code of the customer (in `,_jsx(_components.code,{children:`ISO 3166-1 alpha-2`}),` format).`]})}),_jsx(ResponseField,{name:`shipping_region`,type:`string`,id:`param-shipping-region`,children:_jsx(_components.p,{children:`The shipping region name of the customer.`})}),_jsx(ResponseField,{name:`shipping_city`,type:`string`,id:`param-shipping-city`,children:_jsx(_components.p,{children:`The shipping city name of the customer.`})}),_jsx(ResponseField,{name:`shipping_zip`,type:`string|number|integer`,id:`param-shipping-zip`,children:_jsx(_components.p,{children:`The zip code of the customer’s shipping address.`})}),_jsx(ResponseField,{name:`shipping_street`,type:`string`,id:`param-shipping-street`,children:_jsx(_components.p,{children:`The shipping “address 1” of the customer.`})}),_jsx(ResponseField,{name:`shipping_street2`,type:`string`,id:`param-shipping-street2`,children:_jsx(_components.p,{children:`The shipping “address 2” of the customer.`})}),_jsx(ResponseField,{name:`shipping_latitude`,type:`integer|number|float`,id:`param-shipping-latitude`,children:_jsx(_components.p,{children:`The latitude of the customer’s shipping address (GPS Coordinates).`})}),_jsx(ResponseField,{name:`shipping_longitude`,type:`integer|number|float`,id:`param-shipping-longitude`,children:_jsx(_components.p,{children:`The longitude of the customer’s shipping address (GPS Coordinates).`})}),_jsx(ResponseField,{name:`billing_country`,type:`string`,id:`param-billing-country`,children:_jsxs(_components.p,{children:[`The billing country code of the customer (in `,_jsx(_components.code,{children:`ISO 3166-1 alpha-2`}),` format).`]})}),_jsx(ResponseField,{name:`billing_region`,type:`string`,id:`param-billing-region`,children:_jsx(_components.p,{children:`The billing region name of the customer.`})}),_jsx(ResponseField,{name:`billing_city`,type:`string`,id:`param-billing-city`,children:_jsx(_components.p,{children:`The billing city name of the customer.`})}),_jsx(ResponseField,{name:`billing_zip`,type:`string|number|integer`,id:`param-billing-zip`,children:_jsx(_components.p,{children:`The zip code of the customer’s billing address.`})}),_jsx(ResponseField,{name:`billing_street`,type:`string`,id:`param-billing-street`,children:_jsx(_components.p,{children:`The billing “address 1” of the customer.`})}),_jsx(ResponseField,{name:`billing_street2`,type:`string`,id:`param-billing-street2`,children:_jsx(_components.p,{children:`The billing “address 2” of the customer.`})}),_jsx(ResponseField,{name:`billing_latitude`,type:`integer|float`,id:`param-billing-latitude`,children:_jsx(_components.p,{children:`The latitude of the customer’s billing address (GPS Coordinates).`})}),_jsx(ResponseField,{name:`billing_longitude`,type:`integer|float`,id:`param-billing-longitude`,children:_jsx(_components.p,{children:`The longitude of the customer’s billing address (GPS Coordinates).`})}),_jsxs(ResponseField,{name:`payment_type`,type:`string`,id:`param-payment-type`,children:[_jsx(_components.p,{children:`The payment method used to complete this transaction.`}),_jsxs(_components.p,{children:[`Accepted values: `,_jsx(_components.code,{children:`cards`}),`, `,_jsx(_components.code,{children:`cards_mada`}),`, `,_jsx(_components.code,{children:`applepay`}),`, `,_jsx(_components.code,{children:`stcpay`}),`, `,_jsx(_components.code,{children:`bank`}),`, `,_jsx(_components.code,{children:`crypto`}),`, `,_jsx(_components.code,{children:`wallet`}),`, or `,_jsx(_components.code,{children:`cod`}),`.`]})]}),_jsx(ResponseField,{name:`card_name`,type:`string`,id:`param-card-name`,children:_jsx(_components.p,{children:`The name on the card (Cardholder Name).`})}),_jsx(ResponseField,{name:`card_number`,type:`string|number|integer`,id:`param-card-number`,children:_jsx(_components.p,{children:`The card number (min: 6 digits).`})}),_jsxs(ResponseField,{name:`card_expiry`,type:`string`,id:`param-card-expiry`,children:[_jsx(_components.p,{children:`The expiry date of the customer debit/credit card.`}),_jsx(_components.p,{children:`Sample value: 29/05`})]}),_jsx(ResponseField,{name:`cvv_result`,type:`boolean`,id:`param-cvv-result`,children:_jsx(_components.p,{children:`Set this to true if the customer passed the CVV/CSV verification process.`})})]})}),`\n`,_jsxs(ParamField,{body:`format`,type:`string`,default:`JSON`,placeholder:`Response format`,id:`param-format`,children:[_jsx(_components.p,{children:`The format command is used to get a response in a specific format.`}),_jsxs(_components.p,{children:[`Expected values: `,_jsx(_components.code,{children:`JSON`}),`, `,_jsx(_components.code,{children:`XML`}),`, `,_jsx(_components.code,{children:`CSV`}),`, or `,_jsx(_components.code,{children:`Newline`})]}),_jsxs(_components.p,{children:[`For more information please refer to `,_jsx(_components.a,{href:`/options/response-format`,children:`Response Format`}),`.`]})]}),`\n`,_jsxs(ParamField,{body:`mode`,type:`string`,default:`live`,placeholder:`Environment`,id:`param-mode`,children:[_jsx(_components.p,{children:`The mode command is used to in the development stage to simulate the integration process before releasing it to the production environment.`}),_jsxs(_components.p,{children:[`Expected values: `,_jsx(_components.code,{children:`live`}),`, or `,_jsx(_components.code,{children:`test`}),`.`]}),_jsxs(_components.p,{children:[`For more information please refer to `,_jsx(_components.a,{href:`/options/development-environment`,children:`Development Environment`}),`.`]})]}),`\n`,_jsxs(ParamField,{body:`userID`,type:`string`,placeholder:`User Identifier`,id:`param-user-id`,children:[_jsxs(_components.p,{children:[`The userID command can be used to identify requests sent by specific users to monitor in the `,_jsx(_components.a,{href:`/dashboard-guides/monitoring-capabilities/real-time-threat-monitoring`,children:`Events Page`}),`.`]}),_jsx(_components.p,{children:`Expected values: email address, phone number, user id, name, etc.`}),_jsxs(_components.p,{children:[`For more information please refer to `,_jsx(_components.a,{href:`/options/user-identifier`,children:`User Identifier`}),`.`]})]}),`\n`,_jsx(Heading,{level:`3`,id:`response-properties`,children:`Response properties`}),`\n`,_jsxs(ResponseField,{name:`data`,type:`object`,required:true,id:`param-data-1`,children:[_jsxs(Expandable,{title:`properties`,defaultOpen:true,children:[_jsx(ResponseField,{name:`score`,type:`float`,id:`param-score`,children:_jsxs(_components.p,{children:[`A risk-score from 0 to 100 indicating how risky this transaction is\n(`,_jsx(_components.code,{children:`10.5`}),` means it’s `,_jsx(_components.code,{children:`10.5% risky`}),` to pass this transaction).`]})}),_jsx(ResponseField,{name:`rules`,type:`array`,required:true,id:`param-rules`,children:_jsxs(Expandable,{title:`properties`,defaultOpen:true,children:[_jsxs(ResponseField,{name:`id`,type:`string`,id:`param-id`,children:[_jsxs(_components.p,{children:[`The Id of the detected rule. (`,_jsx(_components.code,{children:`10.5`}),` means it’s `,_jsx(_components.code,{children:`10.5% risky`}),` to pass\nthis transaction).`]}),_jsxs(_components.p,{children:[`Sample value: `,_jsx(_components.code,{children:`PF10003`})]})]}),_jsxs(ResponseField,{name:`description`,type:`string`,id:`param-description`,children:[_jsx(_components.p,{children:`The full description of the detected rule.`}),_jsxs(_components.p,{children:[`Sample value: `,_jsx(_components.code,{children:`High purchase rate, according to \"customer_id\".`})]})]})]})}),_jsx(ResponseField,{name:`rulesChecked`,type:`integer`,required:true,id:`param-rules-checked`,children:_jsx(_components.p,{children:`Total rules checked against the transaction.`})}),_jsx(ResponseField,{name:`rulesDetected`,type:`integer`,required:true,id:`param-rules-detected`,children:_jsx(_components.p,{children:`Total rules detected in the transaction.`})}),_jsxs(ResponseField,{name:`custom_rules_applied`,type:`object`,id:`param-custom-rules-applied`,children:[_jsxs(_components.p,{children:[`The custom rules applied to this request, `,_jsx(_components.a,{href:`/knowledge-base/custom-rules/overview`,children:`learn\nmore`}),`.`]}),_jsxs(Expandable,{title:`properties`,defaultOpen:true,children:[_jsx(ResponseField,{name:`total`,type:`integer`,required:true,id:`param-total`,children:_jsx(_components.p,{children:`The total number of custom rules applied to this request.`})}),_jsxs(ResponseField,{name:`rules`,type:`object`,required:true,id:`param-rules-1`,children:[_jsxs(_components.p,{children:[`The custom rules applied to this request, `,_jsx(_components.a,{href:`/knowledge-base/custom-rules/overview`,children:`learn\nmore`}),`.`]}),_jsxs(Expandable,{title:`properties`,defaultOpen:true,children:[_jsx(ResponseField,{name:`id`,type:`string`,required:true,id:`param-id-1`,children:_jsxs(_components.p,{children:[`The rule ID as shown in the dashboard (e.g: `,_jsx(_components.code,{children:`CR104`}),`).`]})}),_jsx(ResponseField,{name:`title`,type:`string`,required:true,id:`param-title`,children:_jsx(_components.p,{children:`The rule title you set when creating the rule.`})})]})]})]})]})]}),_jsxs(ResponseField,{name:`status`,type:`string`,required:true,id:`param-status`,children:[_jsx(_components.p,{children:`The response status.`}),_jsxs(_components.p,{children:[`Expected values: `,_jsx(_components.code,{children:`success`}),`, or `,_jsx(_components.code,{children:`error`}),`.`]})]}),_jsx(ResponseField,{name:`executionTime`,type:`integer`,required:true,id:`param-execution-time`,children:_jsx(_components.p,{children:`Time spent in milliseconds to process the data.`})})]}),`\n`,_jsx(Heading,{level:`2`,id:`possible-rules`,children:`Possible Rules`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Id`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`PF1001`}),_jsxs(_components.td,{children:[`High purchase rate, according to `,_jsx(_components.code,{children:`customer_ip`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`PF1002`}),_jsxs(_components.td,{children:[`High purchase rate, according to `,_jsx(_components.code,{children:`customer_id`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`PF1003`}),_jsx(_components.td,{children:`Customer IP Address is probably VPN/Proxy/Bot/Hosting/Cloud.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`PF1004`}),_jsx(_components.td,{children:`Customer Email Address is probably invalid, disposable or spam.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`PF1005`}),_jsx(_components.td,{children:`Customer Phone Number is probably invalid or spam.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`PF1006`}),_jsx(_components.td,{children:`Customer Latitude/Longitude is invalid.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`PF1007`}),_jsx(_components.td,{children:`Customer card number (BIN/IIN) is invalid.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`PF1008`}),_jsxs(_components.td,{children:[`Customer debit/credit card issued by a brand different from the one exist in `,_jsx(_components.code,{children:`payment_type`}),` parameter.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`PF1009`}),_jsx(_components.td,{children:`Customer country is a high-fraud country.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`PF1010`}),_jsx(_components.td,{children:`Customer debit/credit card issued in a high-risk country.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`PF1011`}),_jsx(_components.td,{children:`Customer is purchasing multiple times from multiple locations within the past 30 days.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`PF1012`}),_jsxs(_components.td,{children:[`Customer debit/credit card is being used multiple times from multiple customer accounts (according to `,_jsx(_components.code,{children:`customer_id`}),` and `,_jsx(_components.code,{children:`card_number`}),`).`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`PF1013`}),_jsxs(_components.td,{children:[`Customer device might not be a real device (according to `,_jsx(_components.code,{children:`customer_useragent`}),`).`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`PF1014`}),_jsxs(_components.td,{children:[`Customer device is registered as a high-risk device (according to `,_jsx(_components.code,{children:`customer_useragent`}),`).`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`PF1015`}),_jsx(_components.td,{children:`AI flagged the transaction as potentially fraudulent.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`PF1016`}),_jsx(_components.td,{children:`AI flagged the transaction as potentially fraudulent due to high transaction amount.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`PF1017`}),_jsx(_components.td,{children:`Mismatch between billing address and IP geolocation.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`PF1018`}),_jsx(_components.td,{children:`Customer has multiple fraudulent transactions in the past 30 days.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`PF1019`}),_jsx(_components.td,{children:`Unusual purchase amount compared to customer’s history.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`PF1020`}),_jsx(_components.td,{children:`Transaction initiated from a newly created account.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`PF10021`}),_jsx(_components.td,{children:`Multiple payment cards used by a single account within a short timeframe.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`PF10022`}),_jsx(_components.td,{children:`Customer IP address were found in one of your blacklists.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`PF10023`}),_jsx(_components.td,{children:`Customer email address were found in one of your blacklists.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`PF10024`}),_jsx(_components.td,{children:`Customer phone number were found in one of your blacklists.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`PF10025`}),_jsx(_components.td,{children:`Customer card number were found in one of your blacklists.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`PF10026`}),_jsx(_components.td,{children:`Customer Id were found in one of your blacklists.`})]})]})]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{MCPCallout,Availability,default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Payment Fraud Detection","description":"Prevent financial losses and protect your business by deploying AI-powered modules that analyze transaction patterns in real-time.\n\nThis method helps identify and block suspicious activities, mitigating the risk of fraudulent payments and ensuring a secure experience for both you and your customers.","api":"POST /scoring/payment","href":"/api-reference/v1/endpoint/scoring/payment"}}},"mdxSourceWithNoJs":null,"noJsSplices":[[149,2540,"null;const Availability=()=>null;functio"]]},"panelMdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];const MCPCallout=()=>{const _components={a:`a`,..._provideComponents()};return _jsxs(`div`,{class:`callout mint-my-4 mint-px-5 mint-py-4 mint-overflow-hidden mint-rounded-2xl mint-flex mint-gap-3 mint-border border-[rgba(192, 132, 252, 0.2)] bg-[rgba(192, 132, 252, 0.1)] dark:mint-border-[#c084fc4d] dark:mint-bg-[#c084fc1a] mint-text-[#6005BB] dark:mint-text-[#FFFFFF]`,\"data-callout-type\":`callout`,children:[_jsx(`div`,{class:`mint-mt-0.5 mint-w-4`,\"data-component-part\":`callout-icon`,children:_jsx(`svg`,{class:`mint-h-4 mint-w-4 !mint-m-0 mint-shrink-0 mint-bg-[#c084fc] mint-[mask-image:url('https://d3gk2c5xim1je2.cloudfront.net/v7.1.0/duotone/fire.svg')] mint-[-webkit-mask-image:url('https://d3gk2c5xim1je2.cloudfront.net/v7.1.0/duotone/fire.svg')] mint-[mask-repeat:no-repeat] mint-[-webkit-mask-repeat:no-repeat] mint-[mask-position:center] mint-[-webkit-mask-position:center]`})}),_jsx(`div`,{class:`mint-text-sm prose dark:prose-invert mint-min-w-0 mint-w-full [\u0026_kbd]:bg-background-light dark:[\u0026_kbd]:bg-background-dark mint-text-[#6005BB] dark:mint-text-[#FFFFFF]`,\"data-component-part\":`callout-content`,children:_jsxs(`span`,{\"data-as\":`p`,children:[`Want to skip the docs? Use the`,` `,_jsx(_components.a,{class:`link mint-text-xs mint-border-[#C792FC]`,href:`/docs-mcp-server`,children:_jsx(`b`,{children:`MCP Server`})})]})})]})};const Availability=({plan,color})=>{const colorMap={green:`text-green-700 dark:text-green-400`,blue:`text-blue-700 dark:text-blue-400`,purple:`text-purple-700 dark:text-purple-400`};return _jsxs(`div`,{dir:`ltr`,\"data-orientation\":`horizontal`,class:`mint-p-4 mint-px-5 mint-mt-0 md:mint-mt-4 mint-flex mint-flex-col sm:mint-flex-row mint-flex-wrap mint-gap-2 mint-relative mint-overflow-hidden mint-rounded-2xl mint-border mint-border-gray-950/10 dark:mint-border-white/10 mint-my-0 mint-bg-gray-50 dark:mint-bg-white/5 dark:codeblock-dark mint-text-gray-950 dark:mint-text-gray-50 codeblock-light mint-text-sm prose prose-gray dark:prose-invert mint-font-semibold no-wrap-words`,children:[`Endpoint availability:`,` `,_jsx(`span`,{class:` ${{green:`mint-text-green-700 dark:mint-text-green-400`,blue:`mint-text-blue-700 dark:mint-text-blue-400`,purple:`mint-text-purple-700 dark:mint-text-purple-400`}[color]} mint-flex-1`,children:plan}),_jsx(`a`,{class:`custom-link mint-text-xs`,href:`https://greip.io/detailed-pricing`,children:`Learn more`})]})};function _createMdxContent(props){const _components={a:`a`,p:`p`,strong:`strong`,..._provideComponents(),...props.components},{Warning,_MdxComponentBoundary}=_components;if(!Warning)_missingMdxReference(`Warning`,true);if(!_MdxComponentBoundary)_missingMdxReference(`_MdxComponentBoundary`,true);return _jsxs(_Fragment,{children:[_jsx(Warning,{children:_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`API v1 is being deprecated.`}),` Greip will continue to support existing v1 integrations for now, but new endpoints, fields, and documentation updates ship on `,_jsx(_components.strong,{children:`API v2`}),` only. Switch the docs version to `,_jsx(_components.strong,{children:`API v2`}),` (recommended) or follow the `,_jsx(_components.a,{href:`/migration`,children:`Migrate from API v1 to v2`}),` guide to upgrade your integration.`]})}),`\n`,_jsx(_MdxComponentBoundary,{name:`MCPCallout`,children:_jsx(MCPCallout,{})}),`\n`,_jsx(_MdxComponentBoundary,{name:`Availability`,children:_jsx(Availability,{plan:`Premium and above`,color:`purple`})})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{MCPCallout,Availability,default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Payment Fraud Detection","description":"Prevent financial losses and protect your business by deploying AI-powered modules that analyze transaction patterns in real-time.\n\nThis method helps identify and block suspicious activities, mitigating the risk of fraudulent payments and ensuring a secure experience for both you and your customers.","api":"POST /scoring/payment","href":"/api-reference/v1/endpoint/scoring/payment"}}},"mdxSourceWithNoJs":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];const MCPCallout=()=>null;const Availability=()=>null;function _createMdxContent(props){const _components={a:`a`,code:`code`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,..._provideComponents(),...props.components},{CodeBlock,ResponseExample,Warning,_MdxComponentBoundary}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!ResponseExample)_missingMdxReference(`ResponseExample`,true);if(!Warning)_missingMdxReference(`Warning`,true);if(!_MdxComponentBoundary)_missingMdxReference(`_MdxComponentBoundary`,true);return _jsxs(_Fragment,{children:[_jsx(Warning,{children:_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`API v1 is being deprecated.`}),` Greip will continue to support existing v1 integrations for now, but new endpoints, fields, and documentation updates ship on `,_jsx(_components.strong,{children:`API v2`}),` only. Switch the docs version to `,_jsx(_components.strong,{children:`API v2`}),` (recommended) or follow the `,_jsx(_components.a,{href:`/migration`,children:`Migrate from API v1 to v2`}),` guide to upgrade your integration.`]})}),`\n`,_jsx(_MdxComponentBoundary,{name:`MCPCallout`,children:_jsx(MCPCallout,{})}),`\n`,_jsx(_MdxComponentBoundary,{name:`Availability`,children:_jsx(Availability,{plan:`Premium and above`,color:`purple`})}),`\n`,_jsxs(ResponseExample,{children:[_jsx(CodeBlock,{filename:`Success`,numberOfLines:`39`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`39`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"data\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"score\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`82`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"rules\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"PF10003\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"description\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Customer IP Address is probably VPN/Proxy/Bot/Hosting/Cloud.\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"PF10004\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"description\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Customer Email Address is probably invalid or spam.\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"PF10001\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"description\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:'\"High purchase rate, according to `customer_ip`.\"'})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"PF10002\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"description\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:'\"High purchase rate, according to `customer_id`.\"'})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"PF10013\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"description\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:'\"Customer device might not be a real device (according to `customer_useragent`).\"'})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"PF10014\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"description\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:'\"Customer device is registered as a high-risk device (according to `customer_useragent`).\"'})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ],`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"rulesChecked\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`21`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"rulesDetected\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`6`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"custom_rules_applied\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"total\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`0`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"rules\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: []`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"status\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"success\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"executionTime\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`5`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),_jsx(CodeBlock,{filename:`Error`,numberOfLines:`6`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`6`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"status\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"error\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"code\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`101`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"invalid_key\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"description\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"The API Key is missing or invalid.\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})})]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{MCPCallout,Availability,default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Payment Fraud Detection","description":"Prevent financial losses and protect your business by deploying AI-powered modules that analyze transaction patterns in real-time.\n\nThis method helps identify and block suspicious activities, mitigating the risk of fraudulent payments and ensuring a secure experience for both you and your customers.","api":"POST /scoring/payment","href":"/api-reference/v1/endpoint/scoring/payment"}}}},"mdxExtracts":{"tableOfContents":[{"title":"Overview","slug":"overview","depth":2,"children":[]},{"title":"Integration Workflow","slug":"integration-workflow","depth":2,"children":[{"title":"Body Parameters","slug":"body-parameters","depth":3,"children":[]},{"title":"Response properties","slug":"response-properties","depth":3,"children":[]}]},{"title":"Possible Rules","slug":"possible-rules","depth":2,"children":[]}],"panel":{"content":"export const MCPCallout = () => {\n return \u003cdiv class=\"callout my-4 px-5 py-4 overflow-hidden rounded-2xl flex gap-3 border border-[rgba(192, 132, 252, 0.2)] bg-[rgba(192, 132, 252, 0.1)] dark:border-[#c084fc4d] dark:bg-[#c084fc1a] text-[#6005BB] dark:text-[#FFFFFF]\" data-callout-type=\"callout\">\n \u003cdiv class=\"mt-0.5 w-4\" data-component-part=\"callout-icon\">\n \u003csvg class=\"h-4 w-4 !m-0 shrink-0 bg-[#c084fc] [mask-image:url('https://d3gk2c5xim1je2.cloudfront.net/v7.1.0/duotone/fire.svg')] [-webkit-mask-image:url('https://d3gk2c5xim1je2.cloudfront.net/v7.1.0/duotone/fire.svg')] [mask-repeat:no-repeat] [-webkit-mask-repeat:no-repeat] [mask-position:center] [-webkit-mask-position:center]\">\u003c/svg>\n \u003c/div>\n \u003cdiv class=\"text-sm prose dark:prose-invert min-w-0 w-full [\u0026_kbd]:bg-background-light dark:[\u0026_kbd]:bg-background-dark text-[#6005BB] dark:text-[#FFFFFF]\" data-component-part=\"callout-content\">\n \u003cspan data-as=\"p\">\n Want to skip the docs? Use the{\" \"}\n \u003ca class=\"link mint-text-xs border-[#C792FC]\" href=\"/docs-mcp-server\">\n \u003cb>MCP Server\u003c/b>\n \u003c/a>\n \u003c/span>\n \u003c/div>\n \u003c/div>;\n};\nexport const Availability = ({plan, color}) => {\n const colorMap = {\n green: \"text-green-700 dark:text-green-400\",\n blue: \"text-blue-700 dark:text-blue-400\",\n purple: \"text-purple-700 dark:text-purple-400\"\n };\n return \u003cdiv dir=\"ltr\" data-orientation=\"horizontal\" class=\"p-4 px-5 mt-0 md:mt-4 flex flex-col sm:flex-row flex-wrap gap-2 relative overflow-hidden rounded-2xl border border-gray-950/10 dark:border-white/10 my-0 bg-gray-50 dark:bg-white/5 dark:codeblock-dark text-gray-950 dark:text-gray-50 codeblock-light text-sm prose prose-gray dark:prose-invert font-semibold no-wrap-words\">\n Endpoint availability:{\" \"}\n \u003cspan class={` ${colorMap[color]} flex-1`}>{plan}\u003c/span>\n \u003ca class=\"custom-link text-xs\" href=\"https://greip.io/detailed-pricing\">\n Learn more\n \u003c/a>\n \u003c/div>;\n};\n\n\u003cWarning>\n **API v1 is being deprecated.** Greip will continue to support existing v1 integrations for now, but new endpoints, fields, and documentation updates ship on **API v2** only. Switch the docs version to **API v2** (recommended) or follow the [Migrate from API v1 to v2](/migration) guide to upgrade your integration.\n\u003c/Warning>\n\n\u003cMCPCallout />\n\n\u003cAvailability plan=\"Premium and above\" color=\"purple\" />\n\n\u003cResponseExample>\n ```json Success theme={null}\n {\n \"data\": {\n \"score\": 82,\n \"rules\": [\n {\n \"id\": \"PF10003\",\n \"description\": \"Customer IP Address is probably VPN/Proxy/Bot/Hosting/Cloud.\"\n },\n {\n \"id\": \"PF10004\",\n \"description\": \"Customer Email Address is probably invalid or spam.\"\n },\n {\n \"id\": \"PF10001\",\n \"description\": \"High purchase rate, according to `customer_ip`.\"\n },\n {\n \"id\": \"PF10002\",\n \"description\": \"High purchase rate, according to `customer_id`.\"\n },\n {\n \"id\": \"PF10013\",\n \"description\": \"Customer device might not be a real device (according to `customer_useragent`).\"\n },\n {\n \"id\": \"PF10014\",\n \"description\": \"Customer device is registered as a high-risk device (according to `customer_useragent`).\"\n }\n ],\n \"rulesChecked\": 21,\n \"rulesDetected\": 6,\n \"custom_rules_applied\": {\n \"total\": 0,\n \"rules\": []\n }\n },\n \"status\": \"success\",\n \"executionTime\": 5\n }\n ```\n\n ```json Error theme={null}\n {\n \"status\": \"error\",\n \"code\": 101,\n \"type\": \"invalid_key\",\n \"description\": \"The API Key is missing or invalid.\"\n }\n ```\n\u003c/ResponseExample>\n"},"codeExamples":{"response":{"type":"ResponseExample","children":[{"filename":"Success","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"json\">\u003ccode language=\"json\" numberOfLines=\"39\">\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">{\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"data\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"score\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">82\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"rules\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: [\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"id\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"PF10003\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"description\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"Customer IP Address is probably VPN/Proxy/Bot/Hosting/Cloud.\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> },\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"id\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"PF10004\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"description\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"Customer Email Address is probably invalid or spam.\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> },\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"id\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"PF10001\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"description\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"High purchase rate, according to `customer_ip`.\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> },\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"id\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"PF10002\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"description\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"High purchase rate, according to `customer_id`.\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> },\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"id\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"PF10013\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"description\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"Customer device might not be a real device (according to `customer_useragent`).\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> },\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"id\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"PF10014\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"description\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"Customer device is registered as a high-risk device (according to `customer_useragent`).\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> }\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> ],\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"rulesChecked\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">21\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"rulesDetected\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">6\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"custom_rules_applied\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"total\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">0\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"rules\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: []\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> }\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> },\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"status\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"success\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"executionTime\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">5\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">}\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"},{"filename":"Error","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"json\">\u003ccode language=\"json\" numberOfLines=\"6\">\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">{\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"status\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"error\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"code\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">101\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"type\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"invalid_key\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"description\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"The API Key is missing or invalid.\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">}\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"}],"attributes":[]}},"endpoint":{"title":"Payment Fraud Detection","path":"/scoring/payment","servers":[{"url":"https://greipapi.com"}],"method":"post","request":{"security":[{"title":"Bearer Auth","parameters":{"header":{"Authorization":{"type":"http","scheme":"bearer","description":"Bearer authentication header of the form `Bearer \u003ctoken>`, where `\u003ctoken>` is your auth token."}},"query":{},"cookie":{}}}],"parameters":{"query":{},"header":{},"cookie":{},"path":{}},"body":{"application/json":{"schemaArray":[{"type":"object","properties":{"data":[{"type":"object","properties":{},"required":true,"placeholder":"Data of the transaction"}],"format":[{"type":"string","description":"The format command is used to get a response in a specific format. Expected values: `JSON` , `XML` , `CSV` , or `Newline` For more information please refer to Response Format .","placeholder":"Response format"}],"mode":[{"type":"string","description":"The mode command is used to in the development stage to simulate the integration process before releasing it to the production environment. Expected values: `live` , or `test` . For more information please refer to Development Environment .","placeholder":"Environment"}],"userID":[{"type":"string","description":"The userID command can be used to identify requests sent by specific users to monitor in the Events Page . Expected values: email address, phone number, user id, name, etc. For more information please refer to User Identifier .","placeholder":"User Identifier"}]}}],"examples":{"example":{"value":{"data":{},"format":"\u003cstring>","mode":"\u003cstring>","userID":"\u003cstring>"}}}}}},"response":{"200":{"application/json":{"schemaArray":[{"type":"object","properties":{"data":[{"type":"object","properties":{"score":[{"type":"number","description":"A risk-score from 0 to 100 indicating how risky this transaction is ( `10.5` means it’s `10.5% risky` to pass this transaction)."}],"rules":[{"type":"array","items":[{"type":"object","properties":{"id":[{"type":"string","description":"The Id of the detected rule. ( `10.5` means it’s `10.5% risky` to pass this transaction). Sample value: `PF10003`"}],"description":[{"type":"string","description":"The full description of the detected rule. Sample value: `High purchase rate, according to \"customer_id\".`"}]}}],"required":true}],"rulesChecked":[{"type":"integer","description":"Total rules checked against the transaction.","required":true}],"rulesDetected":[{"type":"integer","description":"Total rules detected in the transaction.","required":true}],"custom_rules_applied":[{"type":"object","properties":{"total":[{"type":"integer","description":"The total number of custom rules applied to this request.","required":true}],"rules":[{"type":"object","properties":{"id":[{"type":"string","description":"The rule ID as shown in the dashboard (e.g: `CR104` ).","required":true}],"title":[{"type":"string","description":"The rule title you set when creating the rule.","required":true}]},"description":"The custom rules applied to this request, learn more .","required":true}]},"description":"The custom rules applied to this request, learn more ."}],"status":[{"type":"string","description":"The response status. Expected values: `success` , or `error` .","required":true}],"executionTime":[{"type":"integer","description":"Time spent in milliseconds to process the data.","required":true}]},"required":true}]}}],"examples":{"example":{"value":{"data":{"score":123,"rules":[{"id":"\u003cstring>","description":"\u003cstring>"}],"rulesChecked":123,"rulesDetected":123,"custom_rules_applied":{"total":123,"rules":{"id":"\u003cstring>","title":"\u003cstring>"}},"status":"\u003cstring>","executionTime":123}}}}}}},"deprecated":false}},"jsLinks":[],"dynamicCss":".mint-relative {\n position: relative\n}\n.\\!mint-m-0 {\n margin: 0px !important\n}\n.mint-my-0 {\n margin-top: 0px;\n margin-bottom: 0px\n}\n.mint-my-4 {\n margin-top: 1rem;\n margin-bottom: 1rem\n}\n.mint-mt-0 {\n margin-top: 0px\n}\n.mint-mt-0\\.5 {\n margin-top: 0.125rem\n}\n.mint-flex {\n display: flex\n}\n.mint-h-4 {\n height: 1rem\n}\n.mint-w-4 {\n width: 1rem\n}\n.mint-w-full {\n width: 100%\n}\n.mint-min-w-0 {\n min-width: 0px\n}\n.mint-flex-1 {\n flex: 1 1 0%\n}\n.mint-shrink-0 {\n flex-shrink: 0\n}\n.mint-flex-col {\n flex-direction: column\n}\n.mint-flex-wrap {\n flex-wrap: wrap\n}\n.mint-gap-2 {\n gap: 0.5rem\n}\n.mint-gap-3 {\n gap: 0.75rem\n}\n.mint-overflow-hidden {\n overflow: hidden\n}\n.mint-rounded-2xl {\n border-radius: 1rem\n}\n.mint-border {\n border-width: 1px\n}\n.mint-border-\\[\\#C792FC\\] {\n --tw-border-opacity: 1;\n border-color: rgb(199 146 252 / var(--tw-border-opacity, 1))\n}\n.mint-border-gray-950\\/10 {\n border-color: rgb(3 7 18 / 0.1)\n}\n.mint-bg-\\[\\#c084fc\\] {\n --tw-bg-opacity: 1;\n background-color: rgb(192 132 252 / var(--tw-bg-opacity, 1))\n}\n.mint-bg-gray-50 {\n --tw-bg-opacity: 1;\n background-color: rgb(249 250 251 / var(--tw-bg-opacity, 1))\n}\n.mint-p-4 {\n padding: 1rem\n}\n.mint-px-5 {\n padding-left: 1.25rem;\n padding-right: 1.25rem\n}\n.mint-py-4 {\n padding-top: 1rem;\n padding-bottom: 1rem\n}\n.mint-text-sm {\n font-size: 0.875rem;\n line-height: 1.25rem\n}\n.mint-text-xs {\n font-size: 0.75rem;\n line-height: 1rem\n}\n.mint-font-semibold {\n font-weight: 600\n}\n.mint-text-\\[\\#6005BB\\] {\n --tw-text-opacity: 1;\n color: rgb(96 5 187 / var(--tw-text-opacity, 1))\n}\n.mint-text-blue-700 {\n --tw-text-opacity: 1;\n color: rgb(29 78 216 / var(--tw-text-opacity, 1))\n}\n.mint-text-gray-950 {\n --tw-text-opacity: 1;\n color: rgb(3 7 18 / var(--tw-text-opacity, 1))\n}\n.mint-text-green-700 {\n --tw-text-opacity: 1;\n color: rgb(21 128 61 / var(--tw-text-opacity, 1))\n}\n.mint-text-purple-700 {\n --tw-text-opacity: 1;\n color: rgb(126 34 206 / var(--tw-text-opacity, 1))\n}\n.dark\\:mint-border-\\[\\#c084fc4d\\]:is(.dark *) {\n border-color: #c084fc4d\n}\n.dark\\:mint-border-white\\/10:is(.dark *) {\n border-color: rgb(255 255 255 / 0.1)\n}\n.dark\\:mint-bg-\\[\\#c084fc1a\\]:is(.dark *) {\n background-color: #c084fc1a\n}\n.dark\\:mint-bg-white\\/5:is(.dark *) {\n background-color: rgb(255 255 255 / 0.05)\n}\n.dark\\:mint-text-\\[\\#FFFFFF\\]:is(.dark *) {\n --tw-text-opacity: 1;\n color: rgb(255 255 255 / var(--tw-text-opacity, 1))\n}\n.dark\\:mint-text-blue-400:is(.dark *) {\n --tw-text-opacity: 1;\n color: rgb(96 165 250 / var(--tw-text-opacity, 1))\n}\n.dark\\:mint-text-gray-50:is(.dark *) {\n --tw-text-opacity: 1;\n color: rgb(249 250 251 / var(--tw-text-opacity, 1))\n}\n.dark\\:mint-text-green-400:is(.dark *) {\n --tw-text-opacity: 1;\n color: rgb(74 222 128 / var(--tw-text-opacity, 1))\n}\n.dark\\:mint-text-purple-400:is(.dark *) {\n --tw-text-opacity: 1;\n color: rgb(192 132 252 / var(--tw-text-opacity, 1))\n}\n@media (min-width: 640px) {\n .sm\\:mint-flex-row {\n flex-direction: row\n }\n}\n@media (min-width: 768px) {\n .md\\:mint-mt-4 {\n margin-top: 1rem\n }\n}","subdomain":"greip","siteName":"Greip API Documentation","title":"Payment Fraud Detection - Greip API Documentation","navMaps":{"firstHrefInVersion":{"API v2":{"href":"/api-reference/v2/endpoint/scoring/payment","matchLevel":1},"API v1":{"href":"/api-reference/v1/endpoint/scoring/payment","matchLevel":0}},"firstHrefInLanguage":{}},"lastModified":"2026-10-21T09:49:56.773Z","originalFileLocation":"api-reference/v1/endpoint/scoring/payment.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"dark\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Prevent financial losses and protect your business by deploying AI-powered modules that analyze transaction patterns in real-time. This method helps identify and block suspicious activities, mitigating the risk of fraudulent payments and ensuring a secure experience for both you and your customers.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Greip API Documentation\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/greip/dtlfq1ulgjuPqDEw/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/greip/dtlfq1ulgjuPqDEw/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/greip/dtlfq1ulgjuPqDEw/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/greip/dtlfq1ulgjuPqDEw/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/greip/dtlfq1ulgjuPqDEw/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/greip/dtlfq1ulgjuPqDEw/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/greip/dtlfq1ulgjuPqDEw/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/greip/dtlfq1ulgjuPqDEw/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/greip/dtlfq1ulgjuPqDEw/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Payment Fraud Detection - Greip API Documentation\">\u003cmeta data-mint-head property=\"og:description\" content=\"Prevent financial losses and protect your business by deploying AI-powered modules that analyze transaction patterns in real-time. This method helps identify and block suspicious activities, mitigating the risk of fraudulent payments and ensuring a secure experience for both you and your customers.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Greip API Documentation\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.greip.io/api-reference/v1/endpoint/scoring/payment\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://greip.mintlify.app/_mintlify/api/og/v2?division=Risk+Scoring\u0026amp;title=Payment+Fraud+Detection\u0026amp;description=Prevent+financial+losses+and+protect+your+business+by+deploying+AI-powered+modules+that+analyze+transaction+patterns+in+real-time.%0A%0AThis+method+helps+identify+a\u0026amp;theme=7cf64e10dd7828d12f27732f\u0026amp;signature=dd89995f49be7fd46454c91b1bc616cdcb19564bfa624ad416057d34ceaffb45\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Payment Fraud Detection - Greip API Documentation\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Prevent financial losses and protect your business by deploying AI-powered modules that analyze transaction patterns in real-time. This method helps identify and block suspicious activities, mitigating the risk of fraudulent payments and ensuring a secure experience for both you and your customers.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://greip.mintlify.app/_mintlify/api/og/v2?division=Risk+Scoring\u0026amp;title=Payment+Fraud+Detection\u0026amp;description=Prevent+financial+losses+and+protect+your+business+by+deploying+AI-powered+modules+that+analyze+transaction+patterns+in+real-time.%0A%0AThis+method+helps+identify+a\u0026amp;theme=7cf64e10dd7828d12f27732f\u0026amp;signature=dd89995f49be7fd46454c91b1bc616cdcb19564bfa624ad416057d34ceaffb45\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/greip/dtlfq1ulgjuPqDEw/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Greip API Documentation\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#008CFF\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.greip.io/api-reference/v1/endpoint/scoring/payment\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/v1/endpoint/scoring/payment.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.greip.io/#organization\",\"name\":\"Greip API Documentation\",\"url\":\"https://docs.greip.io\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/greip/c6lrSS26RYZXvB76/logo/light.svg?fit=max\u0026auto=format\u0026n=c6lrSS26RYZXvB76\u0026q=85\u0026s=f19b2aac5c5fcac6cccf3ef89dc6cc9a\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.greip.io#website\",\"name\":\"Greip API Documentation\",\"url\":\"https://docs.greip.io\",\"publisher\":{\"@id\":\"https://docs.greip.io/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.greip.io/api-reference/v1/endpoint/scoring/payment#webpage\",\"url\":\"https://docs.greip.io/api-reference/v1/endpoint/scoring/payment\",\"name\":\"Payment Fraud Detection\",\"description\":\"Prevent financial losses and protect your business by deploying AI-powered modules that analyze transaction patterns in real-time. This method helps identify and block suspicious activities, mitigating the risk of fraudulent payments and ensuring a secure experience for both you and your customers.\",\"dateModified\":\"2026-10-21T09:49:56.773Z\",\"isPartOf\":{\"@id\":\"https://docs.greip.io#website\"},\"breadcrumb\":{\"@id\":\"https://docs.greip.io/api-reference/v1/endpoint/scoring/payment#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.greip.io/api-reference/v1/endpoint/scoring/payment#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Risk Scoring\",\"item\":\"https://docs.greip.io/api-reference/v1/endpoint/scoring/ip-reputation\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Payment Fraud Detection\",\"item\":\"https://docs.greip.io/api-reference/v1/endpoint/scoring/payment\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.greip.io/api-reference/v1/endpoint/scoring/payment#apireference\",\"headline\":\"Payment Fraud Detection\",\"name\":\"Payment Fraud Detection\",\"description\":\"Prevent financial losses and protect your business by deploying AI-powered modules that analyze transaction patterns in real-time. This method helps identify and block suspicious activities, mitigating the risk of fraudulent payments and ensuring a secure experience for both you and your customers.\",\"url\":\"https://docs.greip.io/api-reference/v1/endpoint/scoring/payment\",\"mainEntityOfPage\":{\"@id\":\"https://docs.greip.io/api-reference/v1/endpoint/scoring/payment#webpage\"},\"dateModified\":\"2026-10-21T09:49:56.773Z\",\"publisher\":{\"@id\":\"https://docs.greip.io/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.greip.io#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Greip API Documentation\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"Greip API Documentation","nav":{"global":{"anchors":[{"anchor":"Integrations","icon":"gears","href":"https://greip.io/integrations/all"},{"anchor":"Changelog","icon":"clock-rotate-left","href":"https://changelog.greip.io"},{"anchor":"Server Status","icon":"signal-bars","href":"https://status.greip.io"},{"anchor":"Articles","icon":"rss","href":"https://greip.io/blog"},{"anchor":"Dictionary","icon":"book-open","href":"https://greip.io/blog/section/Dictionary"},{"anchor":"FAQ","icon":"circle-question","href":"https://greip.io/faq"}]},"versions":[{"version":"API v2","default":true,"tag":"Recommended","pages":[{"title":"API v2","href":"/api-reference/v2/endpoint/scoring/payment"}]},{"version":"API v1","tag":"Legacy","tabs":[{"tab":"Documentation","pages":[{"title":"Documentation","href":"/introduction"}]},{"tab":"API Reference","groups":[{"group":"Data Lookup","pages":[{"title":"IP Geolocation","api":"GET /geoip","href":"/api-reference/v1/endpoint/data-lookup/geoip"},{"title":"IP Lookup","api":"GET /lookup/ip","href":"/api-reference/v1/endpoint/data-lookup/ip"},{"title":"Bulk IP Lookup","api":"GET /lookup/ip/bulk","href":"/api-reference/v1/endpoint/data-lookup/bulk-ip"},{"title":"ASN Lookup","api":"GET /lookup/asn","href":"/api-reference/v1/endpoint/data-lookup/asn"},{"title":"IBAN Lookup","api":"GET /lookup/iban","href":"/api-reference/v1/endpoint/data-lookup/iban"},{"title":"BIN/IIN Lookup","api":"GET /lookup/bin","href":"/api-reference/v1/endpoint/data-lookup/bin"},{"title":"Country Lookup","api":"GET /lookup/country","href":"/api-reference/v1/endpoint/data-lookup/country"},{"title":"Domain Lookup","api":"GET /lookup/domain","href":"/api-reference/v1/endpoint/data-lookup/domain"},{"title":"Free Get-IP","icon":"heart","iconType":"duotone","href":"/api-reference/v1/endpoint/data-lookup/free-get-ip-method"}]},{"group":"Risk Scoring","pages":[{"title":"IP Reputation","api":"GET /lookup/ip/threats","href":"/api-reference/v1/endpoint/scoring/ip-reputation"},{"title":"Email Scoring","api":"GET /scoring/email","href":"/api-reference/v1/endpoint/scoring/email"},{"title":"Phone Number Scoring","api":"GET /scoring/phone","href":"/api-reference/v1/endpoint/scoring/phone"},{"title":"Profanity Detection","description":"This method helps safeguard your website or app by detecting offensive or inappropriate language in user inputs. By screening for profanity and other harmful content before it’s made public, you can maintain a positive user environment, protect your brand, and prevent abusive behavior on your platform.\n\nThis method uses Machine Learning (ML) to analyze text and determine whether it contains profanity. It returns a score for the text you pass, classifying it as safe or risky.","api":"GET /scoring/profanity","href":"/api-reference/v1/endpoint/scoring/profanity"},{"title":"Payment Fraud Detection","api":"POST /scoring/payment","href":"/api-reference/v1/endpoint/scoring/payment"}]},{"group":"Account Management","pages":[{"title":"User Data Deletion","description":"In some cases, such as data protection regulations, businesses that process personal data are required to delete it upon request.\n\nUsing this method, you'll be able to delete all data related to your user in a single request.","api":"DELETE /account/users/delete","href":"/api-reference/v1/endpoint/account/users/delete"}]}]},{"tab":"Knowledge Base","pages":[{"title":"Knowledge Base","href":"/knowledge-base/getting-started/introduction"}]},{"tab":"Integration Guide","pages":[{"title":"Integration Guide","href":"/integration-guide/timeline"}]},{"tab":"Packages \u0026 Libraries","pages":[{"title":"Packages \u0026 Libraries","href":"/packages-and-libraries/list-of-packages-and-libraries"}]}]}]},"title":"Payment Fraud Detection - Greip API Documentation","buildId":"dpl_cadrRc5H9XQiJQbDFN5mcYRs2PAj","deploymentId":"dpl_cadrRc5H9XQiJQbDFN5mcYRs2PAj","dynamics":["10e4515597","c2aa737661","2b790eda92","b0f84f53ff","07c022d89b","a74be98ba7"],"chunks":["BannerMarkdown-Og7hgu7u.js","dist-BaREnp3o.js","lib--scc4DXi.js","lib-B8HbPgcC.js","clsx-CefdjKz2.js","html-void-elements-mCSPHezU.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","OpenApiReferenceProvider-DKJwRUt2.js","utils-CWD_VS3u.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-oFjciODD.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-C76WsxC3.js","snippetPresets-DvPMxpX_.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","ApiExamples-CuNQfndH.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-BVFpVUoF.js","shallow-t59Jg5Kr.js","getApiPlaygroundDisplay-C_JZ4amX.js","CodeSnippet-CLRDnx_h.js","CodeSnippets-C2myU4kc.js","Page-7TwLLapg.js","getPastedJson-B-JaVXw7.js","icon-BA-iDhH3.js","MethodPill-D4qZABFp.js","DuplicateIcon-THIDKO1O.js","createIcon-CYYJwgFd.js","DynamicMarkdown-UGQuxDKp.js","SectionHeading-jYELb23h.js","axios-vUo_bRtp.js","Frame-B0bJ23PC.js","zoom-image-lightbox-B0E5HDf_.js","lightbox-handle-r17bVUz3.js"]}