Update transfer order custom fields
curl --request PUT \
--url https://{companyName}.api.joinluminous.com/external/api/v1/transfer-orders/{recordId}/custom-fields \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"Carrier": "FedEx Freight"
}
'import requests
url = "https://{companyName}.api.joinluminous.com/external/api/v1/transfer-orders/{recordId}/custom-fields"
payload = { "Carrier": "FedEx Freight" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({Carrier: 'FedEx Freight'})
};
fetch('https://{companyName}.api.joinluminous.com/external/api/v1/transfer-orders/{recordId}/custom-fields', 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/transfer-orders/{recordId}/custom-fields",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'Carrier' => 'FedEx Freight'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://{companyName}.api.joinluminous.com/external/api/v1/transfer-orders/{recordId}/custom-fields"
payload := strings.NewReader("{\n \"Carrier\": \"FedEx Freight\"\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.put("https://{companyName}.api.joinluminous.com/external/api/v1/transfer-orders/{recordId}/custom-fields")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"Carrier\": \"FedEx Freight\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://{companyName}.api.joinluminous.com/external/api/v1/transfer-orders/{recordId}/custom-fields")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"Carrier\": \"FedEx Freight\"\n}"
response = http.request(request)
puts response.read_body{
"message": "Custom fields updated successfully"
}{
"message": "<string>"
}{
"message": "<string>"
}{
"message": "<string>"
}Transfer Orders
Update transfer order custom fields
Set custom field values on one transfer order, whatever its status. Send a
{label: value} object; the update is partial and validated against the custom
fields defined for transfer orders:
- Only the labels sent are changed; other fields keep their values.
- Labels are matched case-insensitively. A label that is not defined for transfer
orders is rejected with a
422; it is never created automatically. Define fields in Manage > Custom Fields first. - Sending
null,""or[]for a field clears it. Clearing a required field is rejected with a422. - Each value is checked against its field’s type. If any entry is invalid, nothing
is saved and the
422lists every rejected entry undercustom_fields.{label}. - An empty body is rejected with a
422.
PUT
/
transfer-orders
/
{recordId}
/
custom-fields
Update transfer order custom fields
curl --request PUT \
--url https://{companyName}.api.joinluminous.com/external/api/v1/transfer-orders/{recordId}/custom-fields \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"Carrier": "FedEx Freight"
}
'import requests
url = "https://{companyName}.api.joinluminous.com/external/api/v1/transfer-orders/{recordId}/custom-fields"
payload = { "Carrier": "FedEx Freight" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({Carrier: 'FedEx Freight'})
};
fetch('https://{companyName}.api.joinluminous.com/external/api/v1/transfer-orders/{recordId}/custom-fields', 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/transfer-orders/{recordId}/custom-fields",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'Carrier' => 'FedEx Freight'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://{companyName}.api.joinluminous.com/external/api/v1/transfer-orders/{recordId}/custom-fields"
payload := strings.NewReader("{\n \"Carrier\": \"FedEx Freight\"\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.put("https://{companyName}.api.joinluminous.com/external/api/v1/transfer-orders/{recordId}/custom-fields")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"Carrier\": \"FedEx Freight\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://{companyName}.api.joinluminous.com/external/api/v1/transfer-orders/{recordId}/custom-fields")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"Carrier\": \"FedEx Freight\"\n}"
response = http.request(request)
puts response.read_body{
"message": "Custom fields updated successfully"
}{
"message": "<string>"
}{
"message": "<string>"
}{
"message": "<string>"
}