curl --request GET \
--url https://{companyName}.api.joinluminous.com/external/api/v1/purchase-orders/arrival-date-preview \
--header 'Authorization: Bearer <token>'import requests
url = "https://{companyName}.api.joinluminous.com/external/api/v1/purchase-orders/arrival-date-preview"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://{companyName}.api.joinluminous.com/external/api/v1/purchase-orders/arrival-date-preview', 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://{companyName}.api.joinluminous.com/external/api/v1/purchase-orders/arrival-date-preview",
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://{companyName}.api.joinluminous.com/external/api/v1/purchase-orders/arrival-date-preview"
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://{companyName}.api.joinluminous.com/external/api/v1/purchase-orders/arrival-date-preview")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://{companyName}.api.joinluminous.com/external/api/v1/purchase-orders/arrival-date-preview")
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{
"data": {
"arrival_due_date": "2026-12-18",
"transit_days": 35,
"source": "lane"
}
}{
"message": "<string>"
}{
"message": "<string>",
"errors": {}
}Preview a purchase order's arrival due date
Returns the Arrival Due Date that the Transit Time Matrix (or an override) gives for a warehouse, freight mode and requested ship date, before the purchase order exists. Read-only: nothing is created or changed. Use it to show the date on a new-PO form before the PO is saved.
It runs the same calculation POST /purchase-orders uses when it stamps original_arrival_due_date
and arrival_due_date on a new PO: requested_ship_date (or today when blank) plus the lane’s
calendar days for that warehouse and mode. If the date lands on a Saturday or Sunday it moves to the
Monday, unless the lane has weekend snapping turned off. An override always snaps to a weekday.
All query parameters are optional. When they are not enough to compute a date (no warehouse_id, no
shipment_type and no override, or no lane in the matrix for that warehouse and mode) the response
is 200 with all three fields null.
To have the PO saved with the same date, send the same warehouse_id, shipment_type (or
override_transit_days) and requested_ship_date on POST /purchase-orders and leave out
arrival_due_date; an arrival_due_date sent in the request is kept as sent.
Accounts that wait for a ship date: with the purchase-order setting transit_eta_requires_ship_date
on (off by default), no Arrival Due Date or Original ETA is worked out until the PO has a
requested_ship_date, with or without override_transit_days. The preview then returns all three
fields null when requested_ship_date is blank, matching what POST /purchase-orders would save.
This is not a preview of an edit. On an existing PO that already has an original_arrival_due_date,
PUT /purchase-orders/{id} keeps that date and only fills arrival_due_date when it is empty, so
changing the mode or ship date does not move them.
curl --request GET \
--url https://{companyName}.api.joinluminous.com/external/api/v1/purchase-orders/arrival-date-preview \
--header 'Authorization: Bearer <token>'import requests
url = "https://{companyName}.api.joinluminous.com/external/api/v1/purchase-orders/arrival-date-preview"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://{companyName}.api.joinluminous.com/external/api/v1/purchase-orders/arrival-date-preview', 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://{companyName}.api.joinluminous.com/external/api/v1/purchase-orders/arrival-date-preview",
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://{companyName}.api.joinluminous.com/external/api/v1/purchase-orders/arrival-date-preview"
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://{companyName}.api.joinluminous.com/external/api/v1/purchase-orders/arrival-date-preview")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://{companyName}.api.joinluminous.com/external/api/v1/purchase-orders/arrival-date-preview")
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{
"data": {
"arrival_due_date": "2026-12-18",
"transit_days": 35,
"source": "lane"
}
}{
"message": "<string>"
}{
"message": "<string>",
"errors": {}
}