{"info":{"_postman_id":"9fd93eef-3d28-4024-b330-e287ac830b8a","name":"BuyerCheck API","description":"<html><head></head><body><h3 id=\"welcome-to-the-buyercheck-api-documentation\">Welcome to the BuyerCheck API documentation!</h3>\n<p>BuyerCheck (buyercheck.bg) is a cash on delivery fraud prevention software that helps online stores reduce their losses on cash on delivery orders by providing a score (0-100) of the likelyhood a given customer will pay for his order upon delivery.</p>\n<p><strong>The full process of integrating our API is the following:</strong></p>\n<ul>\n<li><p><a href=\"https://buyercheck.bg/pricing\">Get an API key</a></p>\n</li>\n<li><p>Create a webhook (<a href=\"https://buyercheck.bg/integrations/api\">example</a>) on your store to receive order data asynchronously from us</p>\n</li>\n<li><p>Setup your store using the Onboard Store (/onboard-store routes)</p>\n</li>\n<li><p>Perform a one time sync of all your store historical orders, by processing and submitting your past orders to us (/submit-order-data route)</p>\n</li>\n<li><p>(Optional) Before accepting an order, check the risk of the customer and conditionally disable COD payment method (/check-risk routes)</p>\n</li>\n<li><p>Upon order creation, send us the order data to get a full risk report (/submit-order-data routes. We will send the risk report on your webhook so your checkout is not slowed down)</p>\n</li>\n<li><p>At some point if you decide to stop using BuyerCheck, send us a POST requet on the /onboard-store/uninstall route</p>\n</li>\n</ul>\n<p><strong>If you use Shopify, WooCommerce or OpenCart you can simply use our apps or plugins:</strong></p>\n<p><a href=\"https://apps.shopify.com/buyercheck\">BuyerCheck Shopify App</a></p>\n<p><a href=\"https://buyercheck.bg/integrations/woocommerce\">BuyerCheck WooCommerce Plugin</a></p>\n<p><a href=\"https://buyercheck.bg/integrations/opencart\">BuyerCheck OpenCart Plugin</a></p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"49373886","collectionId":"9fd93eef-3d28-4024-b330-e287ac830b8a","publishedId":"2sB3QQJo4M","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2025-10-19T11:51:37.000Z"},"item":[{"name":"Get Store Categories","event":[{"listen":"test","script":{"id":"3023e9c7-78dc-4366-97cd-461270790c44","exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});"],"type":"text/javascript","packages":{},"requests":{}}}],"id":"daf91b7a-533b-45ac-8e31-026dab220941","request":{"method":"GET","header":[],"url":"https://api.buyercheck.bg/onboard-store","description":"<p>This is a GET request and it is used to \"get\" the available store categories that you can choose from in the next step - to setup your store.</p>\n<p>A successful GET response will have a <code>200 OK</code> status, and should include a response body of JSON data with the available categories (keys) and their human-friendly names.</p>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-buyercheck-key"},{"key":"value","value":"<value>"}]},"isInherited":true,"source":{"_postman_id":"9fd93eef-3d28-4024-b330-e287ac830b8a","id":"9fd93eef-3d28-4024-b330-e287ac830b8a","name":"BuyerCheck API","type":"collection"}},"urlObject":{"protocol":"https","path":["onboard-store"],"host":["api","buyercheck","bg"],"query":[],"variable":[]}},"response":[{"id":"c3d8b6de-bcfe-45c3-95d4-0e3479ae488a","name":"Get store Categories","originalRequest":{"method":"GET","header":[],"url":"https://api.buyercheck.bg/onboard-store"},"status":"OK","code":200,"_postman_previewlanguage":null,"header":[{"key":"Date","value":"Sat, 18 Oct 2025 19:23:32 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"433"},{"key":"Connection","value":"keep-alive"},{"key":"x-amzn-RequestId","value":"5609e2b2-6afb-4ba9-8ed3-33877c77fb73"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Headers","value":"Content-Type, Authorization, X-Buyercheck-Key"},{"key":"x-amz-apigw-id","value":"SqFgPHe9liAEZHQ="},{"key":"Access-Control-Allow-Methods","value":"GET, POST, OPTIONS"},{"key":"X-Amzn-Trace-Id","value":"Root=1-68f3e934-6628cbbf3bc06e7a1c0f9613;Parent=2e08120e5ad3a2e9;Sampled=0;Lineage=1:5a344461:0"}],"cookie":[],"responseTime":null,"body":"{\n    \"categories\": {\n        \"electronics\": \"Electronics and Gadgets\",\n        \"fashion\": \"Fashion and Apparel\",\n        \"home\": \"Home and Garden\",\n        \"beauty\": \"Beauty and Cosmetics\",\n        \"sports\": \"Sports and Outdoors\",\n        \"toys\": \"Toys and Games\",\n        \"food\": \"Food and Beverages\",\n        \"health\": \"Health and Wellness\",\n        \"pharmacy\": \"Pharmacy\",\n        \"automotive\": \"Automotive\",\n        \"furniture\": \"Furniture\",\n        \"books\": \"Books and Literature\",\n        \"pets\": \"Pets and Supplies\",\n        \"other\": \"Other\"\n    }\n}"}],"_postman_id":"daf91b7a-533b-45ac-8e31-026dab220941"},{"name":"Onboard Store","event":[{"listen":"test","script":{"id":"6e478d0a-e59b-4b68-8ade-dd01dab4865a","exec":["pm.test(\"Successful POST request\", function () {","    pm.expect(pm.response.code).to.be.oneOf([200, 201]);","});",""],"type":"text/javascript","packages":{},"requests":{}}}],"id":"ee408d9f-f4bb-433a-b727-5fdb681b8700","request":{"method":"POST","header":[{"key":"x-buyercheck-key","value":"your-buyercheck-api-key","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"domain\": \"your-shop-domain.com\",\n    \"category\": \"pharmacy\",\n    \"api_user\": \"your-email@example.com\",\n    \"raw_data_consent\": true,\n    \"excluded_test_emails\": [\"tester@test.com\"],\n    \"excluded_test_phones\": [\"+359888888888\"],\n    \"webhook_url\": \"https://your-shop-domain.com/api/v1/example-sync-orders-webhook\",\n    \"webhook_secret\": \"majkdsdjSAJDda41232dka\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.buyercheck.bg/onboard-store","description":"<p>This is a POST request, submitting the store configuration data to our API.</p>\n<p>The required fields are:</p>\n<ul>\n<li><p>domain (the domain of your store)</p>\n</li>\n<li><p>api_user (the email of your account)</p>\n</li>\n<li><p>category (one of the category keys, from the GET /onboard-store request)</p>\n</li>\n<li><p>raw_data_consent (bool, if you consent to share us raw data for enhanced risk checks)</p>\n</li>\n<li><p>excluded_test_emails (an array of emails that you or staff have used or plan to use in the future for test orders)</p>\n</li>\n<li><p>excluded_test_phones (an array of phones that you or staff have used or plan to use in the future for test orders)</p>\n</li>\n<li><p>webhook_url (the endpoint that we should send the processed orders)</p>\n</li>\n<li><p>webhook_secret (the secret to access the webhook endpoint)</p>\n</li>\n</ul>\n<p>A successful POST request typically returns a <code>200 OK</code> response code.</p>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-buyercheck-key"},{"key":"value","value":"<value>"}]},"isInherited":true,"source":{"_postman_id":"9fd93eef-3d28-4024-b330-e287ac830b8a","id":"9fd93eef-3d28-4024-b330-e287ac830b8a","name":"BuyerCheck API","type":"collection"}},"urlObject":{"protocol":"https","path":["onboard-store"],"host":["api","buyercheck","bg"],"query":[],"variable":[]}},"response":[{"id":"ddf314a8-90d5-46aa-9f06-2d4df533cbb2","name":"Onboard Store - Success","originalRequest":{"method":"POST","header":[{"key":"x-buyercheck-key","value":"your-buyercheck-api-key","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"domain\": \"your-shop-domain.com\",\n    \"category\": \"pharmacy\",\n    \"api_user\": \"your-email@example.com\",\n    \"raw_data_consent\": true,\n    \"excluded_test_emails\": [\"tester@test.com\"],\n    \"excluded_test_phones\": [\"+359888888888\"],\n    \"webhook_url\": \"https://your-shop-domain.com/api/v1/example-sync-orders-webhook\",\n    \"webhook_secret\": \"majkdsdjSAJDda41232dka\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.buyercheck.bg/onboard-store"},"status":"OK","code":200,"_postman_previewlanguage":null,"header":[{"key":"Date","value":"Sat, 18 Oct 2025 19:23:03 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"28"},{"key":"Connection","value":"keep-alive"},{"key":"x-amzn-RequestId","value":"becc65ea-89d2-4f4d-b5ca-f566b426e57c"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Headers","value":"Content-Type, Authorization, X-Buyercheck-Key"},{"key":"x-amz-apigw-id","value":"SqFbpGnIliAEFCw="},{"key":"Access-Control-Allow-Methods","value":"GET, POST, OPTIONS"},{"key":"X-Amzn-Trace-Id","value":"Root=1-68f3e916-4ee73e246ae779f80730d3d7;Parent=03dd55022b926f33;Sampled=0;Lineage=1:5a344461:0"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Store updated successfully\",\n    \"store_id\": \"your-shop-domain.com\",\n    \"category\": \"pharmacy\",\n    \"excluded_test_emails\": [\"tester@test.com\"],\n    \"excluded_test_phones\": [\"+359888888888\"],\n    \"subscription_status\": \"inactive\"\n}"},{"id":"f77f5e36-5646-46fd-b5f2-aa1833ac5824","name":"Onboard Store- Error","originalRequest":{"method":"POST","header":[{"key":"x-buyercheck-key","value":"your-buyercheck-api-key","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"domain\": \"your-shop-domain.com\",\n    \"category\": \"pharmacy\",\n    \"api_user\": \"your-email@example.com\",\n    \"raw_data_consent\": true,\n    \"excluded_test_emails\": [\"tester@test.com\"],\n    \"excluded_test_phones\": [\"+359888888888\"],\n    \"webhook_url\": \"https://your-shop-domain.com/api/v1/example-sync-orders-webhook\",\n    \"webhook_secret\": \"majkdsdjSAJDda41232dka\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.buyercheck.bg/onboard-store"},"status":"Not Found","code":404,"_postman_previewlanguage":null,"header":[{"key":"Date","value":"Sat, 18 Oct 2025 19:23:03 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"28"},{"key":"Connection","value":"keep-alive"},{"key":"x-amzn-RequestId","value":"becc65ea-89d2-4f4d-b5ca-f566b426e57c"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Headers","value":"Content-Type, Authorization, X-Buyercheck-Key"},{"key":"x-amz-apigw-id","value":"SqFbpGnIliAEFCw="},{"key":"Access-Control-Allow-Methods","value":"GET, POST, OPTIONS"},{"key":"X-Amzn-Trace-Id","value":"Root=1-68f3e916-4ee73e246ae779f80730d3d7;Parent=03dd55022b926f33;Sampled=0;Lineage=1:5a344461:0"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": \"Store not found\"\n}"}],"_postman_id":"ee408d9f-f4bb-433a-b727-5fdb681b8700"},{"name":"Uninstall Store","event":[{"listen":"test","script":{"id":"6e478d0a-e59b-4b68-8ade-dd01dab4865a","exec":["pm.test(\"Successful POST request\", function () {","    pm.expect(pm.response.code).to.be.oneOf([200, 201]);","});",""],"type":"text/javascript","packages":{},"requests":{}}}],"id":"6837fbdb-4c53-4708-bc22-96a377832ad0","request":{"method":"POST","header":[{"key":"x-buyercheck-key","value":"your-buyercheck-api-key","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"domain\": \"your-shop-domain.com\",\n    \"api_user\": \"your-email@example.com\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.buyercheck.bg/onboard-store/uninstall","description":"<p>This is a POST request that you should trigger when you uninstall BuyerCheck. This is important so we can be compliant with GDPR and other laws.</p>\n<p>The required fields are:</p>\n<ul>\n<li><p>domain (your store domain)</p>\n</li>\n<li><p>api_user (the email of your account)</p>\n</li>\n</ul>\n<p>A successful POST request typically returns a <code>200 OK</code> response code.</p>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-buyercheck-key"},{"key":"value","value":"<value>"}]},"isInherited":true,"source":{"_postman_id":"9fd93eef-3d28-4024-b330-e287ac830b8a","id":"9fd93eef-3d28-4024-b330-e287ac830b8a","name":"BuyerCheck API","type":"collection"}},"urlObject":{"protocol":"https","path":["onboard-store","uninstall"],"host":["api","buyercheck","bg"],"query":[],"variable":[]}},"response":[{"id":"41948055-dc73-4c5a-a350-3609d17f1c7c","name":"Onboard Store - Success","originalRequest":{"method":"POST","header":[{"key":"x-buyercheck-key","value":"your-buyercheck-api-key","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"domain\": \"your-shop-domain.com\",\n    \"api_user\": \"your-email@example.com\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.buyercheck.bg/onboard-store/uninstall"},"status":"OK","code":200,"_postman_previewlanguage":null,"header":[{"key":"Date","value":"Sat, 18 Oct 2025 19:23:03 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"28"},{"key":"Connection","value":"keep-alive"},{"key":"x-amzn-RequestId","value":"becc65ea-89d2-4f4d-b5ca-f566b426e57c"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Headers","value":"Content-Type, Authorization, X-Buyercheck-Key"},{"key":"x-amz-apigw-id","value":"SqFbpGnIliAEFCw="},{"key":"Access-Control-Allow-Methods","value":"GET, POST, OPTIONS"},{"key":"X-Amzn-Trace-Id","value":"Root=1-68f3e916-4ee73e246ae779f80730d3d7;Parent=03dd55022b926f33;Sampled=0;Lineage=1:5a344461:0"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Store uninstalled successfully\"\n}"},{"id":"bf9238d0-79ad-45da-9e1b-918540de28f2","name":"Uninstall Store - Error","originalRequest":{"method":"POST","header":[{"key":"x-buyercheck-key","value":"your-buyercheck-api-key","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"domain\": \"your-shop-domain.com\",\n    \"api_user\": \"your-email@example.com\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.buyercheck.bg/onboard-store/uninstall"},"status":"Not Found","code":404,"_postman_previewlanguage":null,"header":[{"key":"Date","value":"Sat, 18 Oct 2025 19:23:03 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"28"},{"key":"Connection","value":"keep-alive"},{"key":"x-amzn-RequestId","value":"becc65ea-89d2-4f4d-b5ca-f566b426e57c"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Headers","value":"Content-Type, Authorization, X-Buyercheck-Key"},{"key":"x-amz-apigw-id","value":"SqFbpGnIliAEFCw="},{"key":"Access-Control-Allow-Methods","value":"GET, POST, OPTIONS"},{"key":"X-Amzn-Trace-Id","value":"Root=1-68f3e916-4ee73e246ae779f80730d3d7;Parent=03dd55022b926f33;Sampled=0;Lineage=1:5a344461:0"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": \"Store not found\"\n}"}],"_postman_id":"6837fbdb-4c53-4708-bc22-96a377832ad0"},{"name":"Submit Order","event":[{"listen":"test","script":{"id":"6e478d0a-e59b-4b68-8ade-dd01dab4865a","exec":["pm.test(\"Successful POST request\", function () {","    pm.expect(pm.response.code).to.be.oneOf([200, 201]);","});",""],"type":"text/javascript","packages":{},"requests":{}}}],"id":"eb21767d-3e10-41bd-8fba-a010acea13cc","request":{"method":"POST","header":[{"key":"x-buyercheck-key","value":"your-buyercheck-api-key","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"store_id\": \"your-shop-domain.com\",\n    \"api_user\": \"your-email@example.com\",\n    \"orders\": [\n        {\n            \"email\": \"customer-email@email.com\",\n            \"phone\": \"+359888888888\",\n            \"order_status\": \"pending\",\n            \"order_id\": \"1235\",\n            \"amount\": 83.44,\n            \"pending_amount\": 83.44,\n            \"ip_hash\": \"62d69bba2087ec8247dbc400b82a19b066a68d84ab6788e608f4bbc15e83d6f1\",\n            \"created_at\": \"2025-10-19T08:44:02Z\"\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://api.buyercheck.bg/submit-order-data","description":"<p>This is a POST request that submits an order to us on creation. You should also perform an initial sync of your store past orders, by passing the old orders with either successful or canceled status for an enhanced order risk detection.</p>\n<p>The required fields are:</p>\n<ul>\n<li><p>store_id (domain of your store)</p>\n</li>\n<li><p>api_user (the email of your account)</p>\n</li>\n<li><p>orders (an array of objects; max 25 orders)</p>\n</li>\n</ul>\n<p>Each order contains the following fields:</p>\n<ul>\n<li><p>email</p>\n</li>\n<li><p>phone (starting with 088 or +359; no spaces)</p>\n</li>\n<li><p>order_status (pending/successful/cancelled - look the order status map below)</p>\n</li>\n<li><p>amount (float or int)</p>\n</li>\n<li><p>pending_amount (the amount that is pending; if the order is successful/cancelled put 0)</p>\n</li>\n<li><p>order_id (the ID of the order in your system)</p>\n</li>\n<li><p>ip_hash (sha256 hash of the IP address of the customer)</p>\n</li>\n<li><p>device_hash (optional; sha256 of the user-agent of the customer)</p>\n</li>\n<li><p>created_at (ISO 8601 date of when the order was created, example: \"2025-10-19T08:44:02Z\")</p>\n</li>\n</ul>\n<p>Order Status Map</p>\n<p>We accept only 3 order statuses, so you should use them in a way similar to this</p>\n<p><strong>pending</strong> - use when the order is about to be processed by your store up until the moment it has been received or returned by the customer.</p>\n<p><strong>successful</strong> - use only if the customer has received the order and you have received payment for it.</p>\n<p><strong>canceled</strong> - use when the order failed because of the customer - they didn't pick up the order from the courier or they returned it or they asked for a refund</p>\n<p>A successful POST request typically returns a <code>200 OK</code> response code.</p>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-buyercheck-key"},{"key":"value","value":"<value>"}]},"isInherited":true,"source":{"_postman_id":"9fd93eef-3d28-4024-b330-e287ac830b8a","id":"9fd93eef-3d28-4024-b330-e287ac830b8a","name":"BuyerCheck API","type":"collection"}},"urlObject":{"protocol":"https","path":["submit-order-data"],"host":["api","buyercheck","bg"],"query":[],"variable":[]}},"response":[{"id":"aac36f7b-8141-432b-a69b-a621db387be0","name":"Submit Order - Success","originalRequest":{"method":"POST","header":[{"key":"x-buyercheck-key","value":"your-buyercheck-api-key","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"store_id\": \"your-shop-domain.com\",\n    \"api_user\": \"your-email@example.com\",\n    \"orders\": [\n        {\n            \"email\": \"customer-email@email.com\",\n            \"phone\": \"+359888888888\",\n            \"order_status\": \"pending\",\n            \"order_id\": \"1235\",\n            \"amount\": 83.44,\n            \"pending_amount\": 83.44,\n            \"ip_hash\": \"62d69bba2087ec8247dbc400b82a19b066a68d84ab6788e608f4bbc15e83d6f1\",\n            \"created_at\": \"2025-10-19T08:44:02Z\"\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://api.buyercheck.bg/submit-order-data"},"status":"OK","code":200,"_postman_previewlanguage":null,"header":[{"key":"Date","value":"Sat, 18 Oct 2025 19:23:03 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"28"},{"key":"Connection","value":"keep-alive"},{"key":"x-amzn-RequestId","value":"becc65ea-89d2-4f4d-b5ca-f566b426e57c"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Headers","value":"Content-Type, Authorization, X-Buyercheck-Key"},{"key":"x-amz-apigw-id","value":"SqFbpGnIliAEFCw="},{"key":"Access-Control-Allow-Methods","value":"GET, POST, OPTIONS"},{"key":"X-Amzn-Trace-Id","value":"Root=1-68f3e916-4ee73e246ae779f80730d3d7;Parent=03dd55022b926f33;Sampled=0;Lineage=1:5a344461:0"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Order data submitted successfully\"\n}"},{"id":"bb8c5e42-bcb7-4b55-b05e-9803511da362","name":"Submit Order - Error","originalRequest":{"method":"POST","header":[{"key":"x-buyercheck-key","value":"your-buyercheck-api-key","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"store_id\": \"your-shop-domain.com\",\n    \"api_user\": \"your-email@example.com\",\n    \"orders\": [\n        {\n            \"email\": \"customer-email@email.com\",\n            \"phone\": \"+359888888888\",\n            \"order_status\": \"pending\",\n            \"order_id\": \"1235\",\n            \"amount\": 83.44,\n            \"pending_amount\": 83.44,\n            \"ip_hash\": \"62d69bba2087ec8247dbc400b82a19b066a68d84ab6788e608f4bbc15e83d6f1\",\n            \"created_at\": \"2025-10-19T08:44:02Z\"\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://api.buyercheck.bg/submit-order-data"},"status":"Bad Request","code":400,"_postman_previewlanguage":null,"header":[{"key":"Date","value":"Sat, 18 Oct 2025 19:23:03 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"28"},{"key":"Connection","value":"keep-alive"},{"key":"x-amzn-RequestId","value":"becc65ea-89d2-4f4d-b5ca-f566b426e57c"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Headers","value":"Content-Type, Authorization, X-Buyercheck-Key"},{"key":"x-amz-apigw-id","value":"SqFbpGnIliAEFCw="},{"key":"Access-Control-Allow-Methods","value":"GET, POST, OPTIONS"},{"key":"X-Amzn-Trace-Id","value":"Root=1-68f3e916-4ee73e246ae779f80730d3d7;Parent=03dd55022b926f33;Sampled=0;Lineage=1:5a344461:0"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": \"Invalid order format\"\n}"}],"_postman_id":"eb21767d-3e10-41bd-8fba-a010acea13cc"},{"name":"Check Risk","event":[{"listen":"test","script":{"id":"6e478d0a-e59b-4b68-8ade-dd01dab4865a","exec":["pm.test(\"Successful POST request\", function () {","    pm.expect(pm.response.code).to.be.oneOf([200, 201]);","});",""],"type":"text/javascript","packages":{},"requests":{}}}],"id":"4a0050f4-db8e-4a14-9a6f-8b70491cdc6a","request":{"method":"POST","header":[{"key":"x-buyercheck-key","value":"your-buyercheck-api-key","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"store_id\": \"your-shop-domain.com\",\n    \"api_user\": \"your-email@example.com\",\n    \"email\": \"customer-email@email.com\",\n    \"phone\": \"+359888888888\",\n    \"amount\": 102.55,\n    \"ip_hash\": \"62d69bba2087ec8247dbc400b82a19b066a68d84ab6788e608f4bbc15e83d6f1\",\n    \"device_hash\": \"62d69bba2087ec8247dbc400b82a19b066a68d84ab6788e608f4bbc15e8351s\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.buyercheck.bg/check-risk","description":"<p>This is a POST request that you can trigger during the checkout of the customer - when they have filled at least their email and their phone so you can get them checked and based on our response Show or Hide the Cash on Delivery payment option.</p>\n<p>The required fields are:</p>\n<ul>\n<li><p>store_id (domain of your store)</p>\n</li>\n<li><p>api_user (the email of your account)</p>\n</li>\n<li><p>email (of the customer)</p>\n</li>\n<li><p>phone (of the customer; starting with 08 or +359)</p>\n</li>\n<li><p>amount (the order amount; float or int)</p>\n</li>\n<li><p>ip_hash (sha256 hash of the customer IP address)</p>\n</li>\n<li><p>device_hash (sha256 hash of the customer user agent)</p>\n</li>\n</ul>\n<p>A successful POST request typically returns a <code>200 OK</code> response code with the body of the request containing:</p>\n<ul>\n<li><p><strong>risk_score</strong> (0-100 chance of success of the order)</p>\n</li>\n<li><p><strong>recommended_action</strong> (one of \"Process\", \"Verify\", \"Cancel\")</p>\n</li>\n<li><p><strong>risk_details</strong> (explanation of our risk score)</p>\n</li>\n</ul>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-buyercheck-key"},{"key":"value","value":"<value>"}]},"isInherited":true,"source":{"_postman_id":"9fd93eef-3d28-4024-b330-e287ac830b8a","id":"9fd93eef-3d28-4024-b330-e287ac830b8a","name":"BuyerCheck API","type":"collection"}},"urlObject":{"protocol":"https","path":["check-risk"],"host":["api","buyercheck","bg"],"query":[],"variable":[]}},"response":[{"id":"94e0a52e-9c1d-4706-a128-bd96e209255a","name":"Check Risk - Success","originalRequest":{"method":"POST","header":[{"key":"x-buyercheck-key","value":"your-buyercheck-api-key","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"store_id\": \"your-shop-domain.com\",\n    \"api_user\": \"your-email@example.com\",\n    \"email\": \"customer-email@email.com\",\n    \"phone\": \"+359888888888\",\n    \"amount\": 102.55,\n    \"ip_hash\": \"62d69bba2087ec8247dbc400b82a19b066a68d84ab6788e608f4bbc15e83d6f1\",\n    \"device_hash\": \"62d69bba2087ec8247dbc400b82a19b066a68d84ab6788e608f4bbc15e8351s\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.buyercheck.bg/check-risk"},"status":"OK","code":200,"_postman_previewlanguage":null,"header":[{"key":"Date","value":"Sat, 18 Oct 2025 19:23:03 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"28"},{"key":"Connection","value":"keep-alive"},{"key":"x-amzn-RequestId","value":"becc65ea-89d2-4f4d-b5ca-f566b426e57c"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Headers","value":"Content-Type, Authorization, X-Buyercheck-Key"},{"key":"x-amz-apigw-id","value":"SqFbpGnIliAEFCw="},{"key":"Access-Control-Allow-Methods","value":"GET, POST, OPTIONS"},{"key":"X-Amzn-Trace-Id","value":"Root=1-68f3e916-4ee73e246ae779f80730d3d7;Parent=03dd55022b926f33;Sampled=0;Lineage=1:5a344461:0"}],"cookie":[],"responseTime":null,"body":"{\n    \"risk_score\": 80,\n    \"recommended_action\": \"Process\",\n    \"risk_details\": \"Good customer behaviour over time\"\n}"},{"id":"7ad22918-2550-4aa7-990f-c1ab643dcae2","name":"Check Risk - Error","originalRequest":{"method":"POST","header":[{"key":"x-buyercheck-key","value":"your-buyercheck-api-key","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"store_id\": \"your-shop-domain.com\",\n    \"api_user\": \"your-email@example.com\",\n    \"email\": \"customer-email@email.com\",\n    \"phone\": \"+359888888888\",\n    \"amount\": 102.55,\n    \"ip_hash\": \"62d69bba2087ec8247dbc400b82a19b066a68d84ab6788e608f4bbc15e83d6f1\",\n    \"device_hash\": \"62d69bba2087ec8247dbc400b82a19b066a68d84ab6788e608f4bbc15e8351s\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.buyercheck.bg/check-risk"},"status":"Bad Request","code":400,"_postman_previewlanguage":null,"header":[{"key":"Date","value":"Sat, 18 Oct 2025 19:23:03 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"28"},{"key":"Connection","value":"keep-alive"},{"key":"x-amzn-RequestId","value":"becc65ea-89d2-4f4d-b5ca-f566b426e57c"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Headers","value":"Content-Type, Authorization, X-Buyercheck-Key"},{"key":"x-amz-apigw-id","value":"SqFbpGnIliAEFCw="},{"key":"Access-Control-Allow-Methods","value":"GET, POST, OPTIONS"},{"key":"X-Amzn-Trace-Id","value":"Root=1-68f3e916-4ee73e246ae779f80730d3d7;Parent=03dd55022b926f33;Sampled=0;Lineage=1:5a344461:0"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": \"Invalid format\"\n}"}],"_postman_id":"4a0050f4-db8e-4a14-9a6f-8b70491cdc6a"}],"auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-buyercheck-key"},{"key":"value","value":"<value>"}]}},"event":[{"listen":"prerequest","script":{"id":"7fe442ee-6f03-4a52-8f2b-2a084ea3f363","type":"text/javascript","packages":{},"requests":{},"exec":[""]}},{"listen":"test","script":{"id":"9413f433-d221-4d68-87a4-892ba7b91fcf","type":"text/javascript","packages":{},"requests":{},"exec":[""]}}]}