{"activeVersionTag":"latest","latestAvailableVersionTag":"latest","collection":{"info":{"_postman_id":"b5cbd444-afcc-4e10-80f3-38f8848eea7c","name":"DOC DMSLOG.Ai API - PUBLIC /container-inquiry","description":"### 📦 Container Inquiry Public API v2.0\n\nThis public API allows transporters to request terminal VBS \"Container inquiry\" with enhanced features.\n\n#### 🎯 Parameters\n\nYou can query using multiple methods:\n\n**Traditional Parameters:**\n\n- `container_number`: Container ID for imports (e.g., GLDU3221243)\n    \n- `booking_number`: Booking reference for exports (e.g., 57001536)\n    \n\n**Smart Search:**\n\n- `q`: Intelligent parameter that auto-detects container vs booking\n    - Pattern /^\\[A-Z\\]{4}\\[0-9\\]{7}$/ → Container search\n        \n    - Other patterns → Booking search\n        \n\n**Storage Integration:**\n\n- `planned_pickup_date`: YYYY-MM-DD format\n    - Triggers storage API when date > Last Free Day\n        \n    - Returns storage charges, location, and guarantee info\n        \n\n**v2.0 Optional Parameters:**\n\n- `include_customs`: Include customs hold tracking (default: true)\n    \n- `include_export`: Include export tracking details (default: true)\n    \n- `include_history`: Include gate event history (default: true)\n    \n\n#### 🌐 URLs\n\n**Staging (for testing):**\n\n- Base: `https://termont-staging.rdv-terminal.com/api/v1/`\n    \n- Purpose: Development, QA, integration testing\n    \n- Data: Test/demo data\n    \n\n**Production (live operations):**\n\n- Base: `https://termont.rdv-terminal.com/api/v1/`\n    \n- Purpose: Production workflows\n    \n- Data: Real operational data\n    \n\n**Note:** API keys are environment-specific and NOT interchangeable.\n\n**Terminal-specific endpoints:**\n\n- Termont: `https://termont.rdv-terminal.com/api/v1/`\n    \n- Penn: `https://penn.booking-terminal.com/api/v1/`\n    \n\n#### 📊 Response Structure (v2.0)\n\n``` json\n{\n  \"success\": true,\n  \"data\": {\n    \"container_info\": {...},\n    \"vessel_info\": {...},\n    \"customs_hold\": {\n      \"hold_status\": \"released|hold|unknown\",\n      \"hold_type\": null,\n      \"hold_reason\": null,\n      \"released_at\": \"2025-09-04 12:39:17\",\n      \"available\": true\n    },\n    \"export_tracking\": {\n      \"vessel_name\": \"MAERSK ESSEX\",\n      \"voyage_number\": \"123N\",\n      \"erd\": \"2025-09-27\",\n      \"cutoff_dates\": {\n        \"documentation\": \"2025-09-26 12:00:00\",\n        \"vgm\": \"2025-09-26 18:00:00\",\n        \"gate\": \"2025-09-27 06:00:00\"\n      }\n    },\n    \"storage_info\": {...}\n  },\n  \"meta\": {\n    \"quota\": {\n      \"limit\": 1000000,\n      \"used\": 153,\n      \"remaining\": 999847,\n      \"reset_at\": \"2025-11-01 00:00:00\",\n      \"period\": \"monthly\"\n    },\n    \"api_version\": \"2.1\",\n    \"timestamp\": \"2025-12-08T06:00:00Z\",\n    \"processing_time_ms\": 245.67\n  }\n}\n\n ```\n\n#### 🔒 Security & Limits\n\n**🔐 RFC 7230 Compliance: Case-Insensitive Headers**\n\nPer RFC 7230 Section 3.2, our API accepts X-API-KEY header in ANY case variation:\n\n- ✅ `X-API-KEY` (all caps)\n    \n- ✅ `x-api-key` (all lowercase)\n    \n- ✅ `X-Api-Key` (mixed case)\n    \n- ✅ `x-ApI-keY` (random mixed)\n    \n\n**Example:**  \n\\`\\`\\`bash\n\n# All these work identically\n\ncurl -H \"X-API-KEY: YOUR_KEY\" ...  \ncurl -H \"x-api-key: YOUR_KEY\" ...  \ncurl -H \"X-Api-Key: YOUR_KEY\" ...  \n\\`\\`\\`\n\n**Why This Matters:**\n\n- Maximum client compatibility\n    \n- Follows HTTP/1.1 standards\n    \n- Works with all HTTP libraries\n    \n- Tested: 10/10 case variations ✅\n    \n\n**Security Features:**\n\n- API Key required (X-API-KEY header)\n    \n- Environment-specific keys (staging vs production)\n    \n- Rate limits: Contact [api.support@dmslog.io](https://mailto:api.support@dmslog.io) if limits reached\n    \n- Quota tracking: Monthly limits with metadata in response\n    \n- Location data: Only exposed after pregate pass (security measure)\n    \n\n#### 📅 Last Updated\n\n- **2025-12-08** - v2.1: RFC 7230 header compliance, enhanced environment documentation\n    \n- **2025-10-06** - v2.0: Added customs tracking, export details, quota metadata","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","isPublicCollection":false,"owner":"15107629","team":1689300,"collectionId":"b5cbd444-afcc-4e10-80f3-38f8848eea7c","publishedId":"2sB3HkpKrG","public":true,"publicUrl":"https://documenter-api.postman.tech/view/15107629/2sB3HkpKrG","privateUrl":"https://go.postman.co/documentation/15107629-b5cbd444-afcc-4e10-80f3-38f8848eea7c","customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"documentationLayout":"classic-double-column","customisation":{"metaTags":[{"name":"description","value":""},{"name":"title","value":""}],"appearance":{"default":"light","themes":[{"name":"dark","logo":null,"colors":{"top-bar":"212121","right-sidebar":"303030","highlight":"FF6C37"}},{"name":"light","logo":null,"colors":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"}}]}},"version":"8.12.2","publishDate":"2025-09-04T17:25:13.000Z","activeVersionTag":"latest","documentationTheme":"light","metaTags":{"title":"","description":""},"logos":{"logoLight":null,"logoDark":null}},"statusCode":200},"environments":[],"user":{"authenticated":false,"permissions":{"publish":false}},"run":{"button":{"js":"https://run.pstmn.io/button.js","css":"https://run.pstmn.io/button.css"}},"web":"https://www.getpostman.com/","team":{"logo":"https://res.cloudinary.com/postman/image/upload/t_team_logo_pubdoc/v1/team/9ed7ae42e77f03b7194ac91235c4c0b074b64f1008c9b097bcedbe0c5616feaf","favicon":""},"isEnvFetchError":false,"languages":"[{\"key\":\"csharp\",\"label\":\"C#\",\"variant\":\"HttpClient\"},{\"key\":\"csharp\",\"label\":\"C#\",\"variant\":\"RestSharp\"},{\"key\":\"curl\",\"label\":\"cURL\",\"variant\":\"cURL\"},{\"key\":\"dart\",\"label\":\"Dart\",\"variant\":\"http\"},{\"key\":\"go\",\"label\":\"Go\",\"variant\":\"Native\"},{\"key\":\"http\",\"label\":\"HTTP\",\"variant\":\"HTTP\"},{\"key\":\"java\",\"label\":\"Java\",\"variant\":\"OkHttp\"},{\"key\":\"java\",\"label\":\"Java\",\"variant\":\"Unirest\"},{\"key\":\"javascript\",\"label\":\"JavaScript\",\"variant\":\"Fetch\"},{\"key\":\"javascript\",\"label\":\"JavaScript\",\"variant\":\"jQuery\"},{\"key\":\"javascript\",\"label\":\"JavaScript\",\"variant\":\"XHR\"},{\"key\":\"c\",\"label\":\"C\",\"variant\":\"libcurl\"},{\"key\":\"nodejs\",\"label\":\"NodeJs\",\"variant\":\"Axios\"},{\"key\":\"nodejs\",\"label\":\"NodeJs\",\"variant\":\"Native\"},{\"key\":\"nodejs\",\"label\":\"NodeJs\",\"variant\":\"Request\"},{\"key\":\"nodejs\",\"label\":\"NodeJs\",\"variant\":\"Unirest\"},{\"key\":\"objective-c\",\"label\":\"Objective-C\",\"variant\":\"NSURLSession\"},{\"key\":\"ocaml\",\"label\":\"OCaml\",\"variant\":\"Cohttp\"},{\"key\":\"php\",\"label\":\"PHP\",\"variant\":\"cURL\"},{\"key\":\"php\",\"label\":\"PHP\",\"variant\":\"Guzzle\"},{\"key\":\"php\",\"label\":\"PHP\",\"variant\":\"HTTP_Request2\"},{\"key\":\"php\",\"label\":\"PHP\",\"variant\":\"pecl_http\"},{\"key\":\"powershell\",\"label\":\"PowerShell\",\"variant\":\"RestMethod\"},{\"key\":\"python\",\"label\":\"Python\",\"variant\":\"http.client\"},{\"key\":\"python\",\"label\":\"Python\",\"variant\":\"Requests\"},{\"key\":\"r\",\"label\":\"R\",\"variant\":\"httr\"},{\"key\":\"r\",\"label\":\"R\",\"variant\":\"RCurl\"},{\"key\":\"ruby\",\"label\":\"Ruby\",\"variant\":\"Net::HTTP\"},{\"key\":\"shell\",\"label\":\"Shell\",\"variant\":\"Httpie\"},{\"key\":\"shell\",\"label\":\"Shell\",\"variant\":\"wget\"},{\"key\":\"swift\",\"label\":\"Swift\",\"variant\":\"URLSession\"}]","languageSettings":[{"key":"csharp","label":"C#","variant":"HttpClient"},{"key":"csharp","label":"C#","variant":"RestSharp"},{"key":"curl","label":"cURL","variant":"cURL"},{"key":"dart","label":"Dart","variant":"http"},{"key":"go","label":"Go","variant":"Native"},{"key":"http","label":"HTTP","variant":"HTTP"},{"key":"java","label":"Java","variant":"OkHttp"},{"key":"java","label":"Java","variant":"Unirest"},{"key":"javascript","label":"JavaScript","variant":"Fetch"},{"key":"javascript","label":"JavaScript","variant":"jQuery"},{"key":"javascript","label":"JavaScript","variant":"XHR"},{"key":"c","label":"C","variant":"libcurl"},{"key":"nodejs","label":"NodeJs","variant":"Axios"},{"key":"nodejs","label":"NodeJs","variant":"Native"},{"key":"nodejs","label":"NodeJs","variant":"Request"},{"key":"nodejs","label":"NodeJs","variant":"Unirest"},{"key":"objective-c","label":"Objective-C","variant":"NSURLSession"},{"key":"ocaml","label":"OCaml","variant":"Cohttp"},{"key":"php","label":"PHP","variant":"cURL"},{"key":"php","label":"PHP","variant":"Guzzle"},{"key":"php","label":"PHP","variant":"HTTP_Request2"},{"key":"php","label":"PHP","variant":"pecl_http"},{"key":"powershell","label":"PowerShell","variant":"RestMethod"},{"key":"python","label":"Python","variant":"http.client"},{"key":"python","label":"Python","variant":"Requests"},{"key":"r","label":"R","variant":"httr"},{"key":"r","label":"R","variant":"RCurl"},{"key":"ruby","label":"Ruby","variant":"Net::HTTP"},{"key":"shell","label":"Shell","variant":"Httpie"},{"key":"shell","label":"Shell","variant":"wget"},{"key":"swift","label":"Swift","variant":"URLSession"}],"languageOptions":[{"label":"C# - HttpClient","value":"csharp - HttpClient - C#"},{"label":"C# - RestSharp","value":"csharp - RestSharp - C#"},{"label":"cURL - cURL","value":"curl - cURL - cURL"},{"label":"Dart - http","value":"dart - http - Dart"},{"label":"Go - Native","value":"go - Native - Go"},{"label":"HTTP - HTTP","value":"http - HTTP - HTTP"},{"label":"Java - OkHttp","value":"java - OkHttp - Java"},{"label":"Java - Unirest","value":"java - Unirest - Java"},{"label":"JavaScript - Fetch","value":"javascript - Fetch - JavaScript"},{"label":"JavaScript - jQuery","value":"javascript - jQuery - JavaScript"},{"label":"JavaScript - XHR","value":"javascript - XHR - JavaScript"},{"label":"C - libcurl","value":"c - libcurl - C"},{"label":"NodeJs - Axios","value":"nodejs - Axios - NodeJs"},{"label":"NodeJs - Native","value":"nodejs - Native - NodeJs"},{"label":"NodeJs - Request","value":"nodejs - Request - NodeJs"},{"label":"NodeJs - Unirest","value":"nodejs - Unirest - NodeJs"},{"label":"Objective-C - NSURLSession","value":"objective-c - NSURLSession - Objective-C"},{"label":"OCaml - Cohttp","value":"ocaml - Cohttp - OCaml"},{"label":"PHP - cURL","value":"php - cURL - PHP"},{"label":"PHP - Guzzle","value":"php - Guzzle - PHP"},{"label":"PHP - HTTP_Request2","value":"php - HTTP_Request2 - PHP"},{"label":"PHP - pecl_http","value":"php - pecl_http - PHP"},{"label":"PowerShell - RestMethod","value":"powershell - RestMethod - PowerShell"},{"label":"Python - http.client","value":"python - http.client - Python"},{"label":"Python - Requests","value":"python - Requests - Python"},{"label":"R - httr","value":"r - httr - R"},{"label":"R - RCurl","value":"r - RCurl - R"},{"label":"Ruby - Net::HTTP","value":"ruby - Net::HTTP - Ruby"},{"label":"Shell - Httpie","value":"shell - Httpie - Shell"},{"label":"Shell - wget","value":"shell - wget - Shell"},{"label":"Swift - URLSession","value":"swift - URLSession - Swift"}],"layoutOptions":[{"value":"classic-single-column","label":"Single Column"},{"value":"classic-double-column","label":"Double Column"}],"versionOptions":[],"environmentOptions":[{"value":"0","label":"No Environment"}],"canonicalUrl":"https://documenter.gw.postman.com/view/metadata/2sB3HkpKrG"}