cURL
curl -X GET "https://apiweb.mile.app/api/v3/import-monitoring/65f8a4c2d9e3b1234567890a" \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN"import requests
url = "https://apiweb.mile.app/api/v3/import-monitoring/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://apiweb.mile.app/api/v3/import-monitoring/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://apiweb.mile.app/api/v3/import-monitoring/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://apiweb.mile.app/api/v3/import-monitoring/{id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://apiweb.mile.app/api/v3/import-monitoring/{id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://apiweb.mile.app/api/v3/import-monitoring/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"status": true,
"message": "Success",
"data": {
"_id": "65f8a4c2d9e3b1234567890a",
"organizationId": "63c61d865347e356d05e3052",
"type": "string",
"hubId": "63c63ab1b6972d3150348172",
"filename": "outlets_import.xlsx",
"totalRows": 150,
"totalValid": 145,
"totalInvalid": 5,
"status": "partially",
"dataTypeId": "63db2fb476bc679c540369c4",
"dataTypeName": "OutletDetail",
"fileTemplate": "https://staticdev.mile.app/dev-mile/templates/template_OutletDetail.xlsx",
"fileFailedImported": "https://staticdev.mile.app/dev-mile/failed/failed_outlets_import_65f8a4c2d9e3b1234567890a.xlsx",
"errorMessage": null,
"processedAt": "2024-03-18 10:32:15",
"processingDuration": 90,
"totalChunks": 3,
"processedChunks": 3,
"createdBy": "john.doe@mile.app",
"updatedBy": "system",
"createdTime": "2024-03-18 10:30:45",
"updatedTime": "2024-03-18 10:32:15"
}
}{
"status": false,
"message": "Unauthorized",
"failedCode": "auth-001"
}{
"status": false,
"message": "Import monitoring record not found",
"failedCode": "import-004"
}{
"status": false,
"message": "Internal server error",
"failedCode": "import-045"
}Data Import
Read import monitoring record by ID
This endpoint retrieves detailed information about a specific import monitoring record by its ID. Use this to check the status and results of a particular import operation.
Use Cases:
- Get detailed status of a specific import
- Download failed records file
- Retrieve import statistics
- Monitor import progress
GET
/
import-monitoring
/
{id}
cURL
curl -X GET "https://apiweb.mile.app/api/v3/import-monitoring/65f8a4c2d9e3b1234567890a" \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN"import requests
url = "https://apiweb.mile.app/api/v3/import-monitoring/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://apiweb.mile.app/api/v3/import-monitoring/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://apiweb.mile.app/api/v3/import-monitoring/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://apiweb.mile.app/api/v3/import-monitoring/{id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://apiweb.mile.app/api/v3/import-monitoring/{id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://apiweb.mile.app/api/v3/import-monitoring/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"status": true,
"message": "Success",
"data": {
"_id": "65f8a4c2d9e3b1234567890a",
"organizationId": "63c61d865347e356d05e3052",
"type": "string",
"hubId": "63c63ab1b6972d3150348172",
"filename": "outlets_import.xlsx",
"totalRows": 150,
"totalValid": 145,
"totalInvalid": 5,
"status": "partially",
"dataTypeId": "63db2fb476bc679c540369c4",
"dataTypeName": "OutletDetail",
"fileTemplate": "https://staticdev.mile.app/dev-mile/templates/template_OutletDetail.xlsx",
"fileFailedImported": "https://staticdev.mile.app/dev-mile/failed/failed_outlets_import_65f8a4c2d9e3b1234567890a.xlsx",
"errorMessage": null,
"processedAt": "2024-03-18 10:32:15",
"processingDuration": 90,
"totalChunks": 3,
"processedChunks": 3,
"createdBy": "john.doe@mile.app",
"updatedBy": "system",
"createdTime": "2024-03-18 10:30:45",
"updatedTime": "2024-03-18 10:32:15"
}
}{
"status": false,
"message": "Unauthorized",
"failedCode": "auth-001"
}{
"status": false,
"message": "Import monitoring record not found",
"failedCode": "import-004"
}{
"status": false,
"message": "Internal server error",
"failedCode": "import-045"
}Authorizations
Use a valid Bearer token to authenticate.
Path Parameters
The import monitoring record ID.
Example: 65f8a4c2d9e3b1234567890a
⌘I