{"info":{"_postman_id":"e24ac6d8-5fcf-4f16-8867-b2c020651a21","name":"Onboarding Test Environment","description":"<html><head></head><body><ul>\n<li>The PreciseAI MCC Classification API enables efficient, automated classification of Merchant Category Codes (MCC) for batch submissions. This documentation provides a quick guide for using the test/sandbox environment. Full API documentation is available <a href=\"https://docs.api.preciseai.ai\">here</a>.</li>\n</ul>\n<h1 id=\"test-environment-details\">Test Environment Details</h1>\n<ul>\n<li><p><strong>Base URL</strong>: <code>https://api.preciseai.ai/test</code></p>\n</li>\n<li><p><strong>Authentication</strong>: Use the <code>X-API-KEY</code> header in each request with the provided API key. A client ID will also be included in the API URL path.</p>\n</li>\n<li><p><strong>Batch IDs for Testing</strong>:</p>\n<ul>\n<li><p><strong>Completed Batch</strong>: <code>8cda5023-fef6-4164-990b-cf4981732666</code></p>\n</li>\n<li><p><strong>Processing Batch</strong>: <code>ed08b37d-36e7-4512-8fd2-4e6eaf023471</code></p>\n</li>\n</ul>\n</li>\n</ul>\n<p><strong>Note</strong>: The test environment provides mock responses, simulating the behavior of the production API without actual processing. A unique client ID, API key, and OAuth 2.0 credentials will be provided before transitioning to production.</p>\n<hr>\n<h1 id=\"example-api-requests\">Example API Requests</h1>\n<h2 id=\"1-submit-a-new-batch\">1. Submit a New Batch</h2>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-bash\">curl -X POST https://api.preciseai.ai/test/submitBatch \\\n  -H \"Content-Type: application/json\" \\\n  -H \"X-API-KEY: {api_key}\" \\\n  -d '{\n    \"clientBatchMetadata\": {\n      \"batchName\": \"Batch for November 1\",\n      \"description\": \"Monthly batch submission\"\n    },\n    \"webhookUrl\": \"http://www.example.com/webhook-endpoint\",\n    \"merchants\": [\n      {\n        \"merchantId\": \"m001\",\n        \"url\": \"http://www.cafeunique.com\",\n        \"dba\": \"Cafe Unique\",\n        \"legalName\": \"Cafe Unique Ltd\",\n        \"mcc\": \"5812\",\n        \"address\": \"5 Sunset Blvd\",\n        \"city\": \"Cape Town\",\n        \"region\": \"Western Cape\",\n        \"country\": \"ZA\",\n        \"postalCode\": \"8001\",\n        \"phoneNumber\": \"+27 21 123 4567\",\n        \"emailAddress\": \"info@cafeunique.com\",\n        \"eCommercePlatform\": \"WooCommerce\"\n      }\n    ]\n  }'\n\n</code></pre>\n<h2 id=\"2-check-batch-status\">2. Check Batch Status</h2>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-bash\">curl -X GET 'https://api.preciseai.ai/test/batches/8cda5023-fef6-4164-990b-cf4981732666/status' \\\n-H \"X-API-KEY: {api_key}\"\n\n</code></pre>\n<h2 id=\"3-retrieve-batch-results-json\">3. Retrieve Batch Results (JSON)</h2>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-bash\">curl -X GET 'https://api.preciseai.ai/test/batches/8cda5023-fef6-4164-990b-cf4981732666/result/json' \\\n-H \"X-API-KEY: {api_key}\"\n\n</code></pre>\n<h2 id=\"4-retrieve-batch-results-csv-on-s3\">4. Retrieve Batch Results (CSV on S3)</h2>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-bash\">curl -X GET 'https://api.preciseai.ai/test/batches/8cda5023-fef6-4164-990b-cf4981732666/result/storage' \\\n-H \"X-API-KEY: {api_key}\"\n\n</code></pre>\n<hr>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[{"content":"Test Environment Details","slug":"test-environment-details"},{"content":"Example API Requests","slug":"example-api-requests"}],"owner":"39791068","collectionId":"e24ac6d8-5fcf-4f16-8867-b2c020651a21","publishedId":"2sAYBPmZz7","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"142cb5"},"publishDate":"2024-11-18T05:46:27.000Z"},"item":[]}