Read order type versions
curl --request GET \
--url https://apiweb.mile.app/api/v4/order-type-logs \
--header 'Authorization: Bearer <token>'import requests
url = "https://apiweb.mile.app/api/v4/order-type-logs"
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/v4/order-type-logs', 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/v4/order-type-logs",
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/v4/order-type-logs"
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/v4/order-type-logs")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://apiweb.mile.app/api/v4/order-type-logs")
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": [
{
"version": 2,
"publishedAt": "2026-10-07T03:15:22.000+00:00",
"publishedBy": "[email protected]",
"note": "Add weight field",
"runningOrders": 12,
"restoredFrom": null
},
{
"version": 1,
"publishedAt": "2026-10-02T08:00:00.000+00:00",
"publishedBy": "[email protected]",
"note": null,
"runningOrders": 0,
"restoredFrom": null
}
],
"pagination": {
"page": 1,
"limit": 25,
"total": 2,
"totalPages": 1
}
}{
"status": false,
"message": "Bad request - invalid parameters provided."
}{
"status": false,
"message": "Data not found"
}{
"status": false,
"message": "Internal server error, please contact [email protected]."
}Order Type
Read order type versions
Returns the published versions of an order type, newest first, with runningOrders (orders not yet final) on each version. Requires permission view/orderType.
Pass version to get that one version with its full snapshot (name, code, schemaVersion, fields, statuses, configuration, orderSteps) instead of the list.
GET
/
order-type-logs
Read order type versions
curl --request GET \
--url https://apiweb.mile.app/api/v4/order-type-logs \
--header 'Authorization: Bearer <token>'import requests
url = "https://apiweb.mile.app/api/v4/order-type-logs"
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/v4/order-type-logs', 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/v4/order-type-logs",
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/v4/order-type-logs"
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/v4/order-type-logs")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://apiweb.mile.app/api/v4/order-type-logs")
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": [
{
"version": 2,
"publishedAt": "2026-10-07T03:15:22.000+00:00",
"publishedBy": "[email protected]",
"note": "Add weight field",
"runningOrders": 12,
"restoredFrom": null
},
{
"version": 1,
"publishedAt": "2026-10-02T08:00:00.000+00:00",
"publishedBy": "[email protected]",
"note": null,
"runningOrders": 0,
"restoredFrom": null
}
],
"pagination": {
"page": 1,
"limit": 25,
"total": 2,
"totalPages": 1
}
}{
"status": false,
"message": "Bad request - invalid parameters provided."
}{
"status": false,
"message": "Data not found"
}{
"status": false,
"message": "Internal server error, please contact [email protected]."
}Authorizations
Use a valid Bearer token to authenticate.
Query Parameters
Unique identifier for the order type.
Example: 6710a2f4c1d2e3f4a5b6c7d8
Return only this version, with its snapshot. Minimum 1.
The page number of results to retrieve. Example: 2
Number of rows per page, 1-100. Default 25.