curl --request PATCH \
--url https://{companyName}.api.joinluminous.com/external/api/v1/purchase-orders/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"order_date": "2024-01-15",
"supplier_id": 123,
"items": [
{
"quantity": 10.5,
"id": 456,
"product_id": 123,
"sku": "WIDGET-001",
"unit_price": 49.99,
"presentment_unit_price": 46,
"ordered_qty": 10.5,
"received_qty": 5,
"expected_ship_date": "2026-08-15",
"expected_arrival_date": "2026-08-20",
"lot_id": 789,
"lot_number": "LOT-12345",
"lot_name": "<string>",
"uom_id": 1,
"source_sku": "SUPPLIER-SKU-123",
"tags": [
"priority",
"fragile"
],
"custom_fields": {
"Lot Number": "LOT-12345",
"Expiry Date": "2024-12-31"
}
}
],
"warehouse_id": 1,
"location_id": 1,
"order_status": "active",
"order_numbers": [
"PO-2024-001",
"SUPPLIER-PO-123"
],
"invoice_date": "2024-01-16",
"incoterm": "exw",
"payment_terms": "Net 30",
"currency_code": "EUR",
"exchange_rate": 1.085,
"total_shipping_cost": 50,
"total_tax": 80,
"volume_target_cbm": 67,
"public_note": "Please ship via express delivery",
"private_note": "Rush order - expedite processing",
"requested_ship_date": "2024-01-20",
"arrival_due_date": "2024-01-25",
"shipment_type": "Sea",
"original_arrival_due_date": "2024-01-25",
"override_transit_days": 35,
"ship_to": {
"address_1": "123 Main Street",
"address_2": "Suite 100",
"city": "Anytown",
"state": "CA",
"zip": "90210",
"country": "United States",
"default_ship_to_address": "warehouse"
},
"payments": [
{
"payment_date": "2024-01-15",
"payment_type": "check",
"paid_amount": 500,
"remarks": "Check #1234",
"external_id": "PAY-EXT-12345"
}
],
"custom_fields": {
"Customer PO": "PO-98765",
"Priority Level": "High"
},
"tags": [
"urgent",
"priority",
"rush-order"
]
}
'import requests
url = "https://{companyName}.api.joinluminous.com/external/api/v1/purchase-orders/{id}"
payload = {
"order_date": "2024-01-15",
"supplier_id": 123,
"items": [
{
"quantity": 10.5,
"id": 456,
"product_id": 123,
"sku": "WIDGET-001",
"unit_price": 49.99,
"presentment_unit_price": 46,
"ordered_qty": 10.5,
"received_qty": 5,
"expected_ship_date": "2026-08-15",
"expected_arrival_date": "2026-08-20",
"lot_id": 789,
"lot_number": "LOT-12345",
"lot_name": "<string>",
"uom_id": 1,
"source_sku": "SUPPLIER-SKU-123",
"tags": ["priority", "fragile"],
"custom_fields": {
"Lot Number": "LOT-12345",
"Expiry Date": "2024-12-31"
}
}
],
"warehouse_id": 1,
"location_id": 1,
"order_status": "active",
"order_numbers": ["PO-2024-001", "SUPPLIER-PO-123"],
"invoice_date": "2024-01-16",
"incoterm": "exw",
"payment_terms": "Net 30",
"currency_code": "EUR",
"exchange_rate": 1.085,
"total_shipping_cost": 50,
"total_tax": 80,
"volume_target_cbm": 67,
"public_note": "Please ship via express delivery",
"private_note": "Rush order - expedite processing",
"requested_ship_date": "2024-01-20",
"arrival_due_date": "2024-01-25",
"shipment_type": "Sea",
"original_arrival_due_date": "2024-01-25",
"override_transit_days": 35,
"ship_to": {
"address_1": "123 Main Street",
"address_2": "Suite 100",
"city": "Anytown",
"state": "CA",
"zip": "90210",
"country": "United States",
"default_ship_to_address": "warehouse"
},
"payments": [
{
"payment_date": "2024-01-15",
"payment_type": "check",
"paid_amount": 500,
"remarks": "Check #1234",
"external_id": "PAY-EXT-12345"
}
],
"custom_fields": {
"Customer PO": "PO-98765",
"Priority Level": "High"
},
"tags": ["urgent", "priority", "rush-order"]
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
order_date: '2024-01-15',
supplier_id: 123,
items: [
{
quantity: 10.5,
id: 456,
product_id: 123,
sku: 'WIDGET-001',
unit_price: 49.99,
presentment_unit_price: 46,
ordered_qty: 10.5,
received_qty: 5,
expected_ship_date: '2026-08-15',
expected_arrival_date: '2026-08-20',
lot_id: 789,
lot_number: 'LOT-12345',
lot_name: '<string>',
uom_id: 1,
source_sku: 'SUPPLIER-SKU-123',
tags: ['priority', 'fragile'],
custom_fields: {'Lot Number': 'LOT-12345', 'Expiry Date': '2024-12-31'}
}
],
warehouse_id: 1,
location_id: 1,
order_status: 'active',
order_numbers: ['PO-2024-001', 'SUPPLIER-PO-123'],
invoice_date: '2024-01-16',
incoterm: 'exw',
payment_terms: 'Net 30',
currency_code: 'EUR',
exchange_rate: 1.085,
total_shipping_cost: 50,
total_tax: 80,
volume_target_cbm: 67,
public_note: 'Please ship via express delivery',
private_note: 'Rush order - expedite processing',
requested_ship_date: '2024-01-20',
arrival_due_date: '2024-01-25',
shipment_type: 'Sea',
original_arrival_due_date: '2024-01-25',
override_transit_days: 35,
ship_to: {
address_1: '123 Main Street',
address_2: 'Suite 100',
city: 'Anytown',
state: 'CA',
zip: '90210',
country: 'United States',
default_ship_to_address: 'warehouse'
},
payments: [
{
payment_date: '2024-01-15',
payment_type: 'check',
paid_amount: 500,
remarks: 'Check #1234',
external_id: 'PAY-EXT-12345'
}
],
custom_fields: {'Customer PO': 'PO-98765', 'Priority Level': 'High'},
tags: ['urgent', 'priority', 'rush-order']
})
};
fetch('https://{companyName}.api.joinluminous.com/external/api/v1/purchase-orders/{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://{companyName}.api.joinluminous.com/external/api/v1/purchase-orders/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'order_date' => '2024-01-15',
'supplier_id' => 123,
'items' => [
[
'quantity' => 10.5,
'id' => 456,
'product_id' => 123,
'sku' => 'WIDGET-001',
'unit_price' => 49.99,
'presentment_unit_price' => 46,
'ordered_qty' => 10.5,
'received_qty' => 5,
'expected_ship_date' => '2026-08-15',
'expected_arrival_date' => '2026-08-20',
'lot_id' => 789,
'lot_number' => 'LOT-12345',
'lot_name' => '<string>',
'uom_id' => 1,
'source_sku' => 'SUPPLIER-SKU-123',
'tags' => [
'priority',
'fragile'
],
'custom_fields' => [
'Lot Number' => 'LOT-12345',
'Expiry Date' => '2024-12-31'
]
]
],
'warehouse_id' => 1,
'location_id' => 1,
'order_status' => 'active',
'order_numbers' => [
'PO-2024-001',
'SUPPLIER-PO-123'
],
'invoice_date' => '2024-01-16',
'incoterm' => 'exw',
'payment_terms' => 'Net 30',
'currency_code' => 'EUR',
'exchange_rate' => 1.085,
'total_shipping_cost' => 50,
'total_tax' => 80,
'volume_target_cbm' => 67,
'public_note' => 'Please ship via express delivery',
'private_note' => 'Rush order - expedite processing',
'requested_ship_date' => '2024-01-20',
'arrival_due_date' => '2024-01-25',
'shipment_type' => 'Sea',
'original_arrival_due_date' => '2024-01-25',
'override_transit_days' => 35,
'ship_to' => [
'address_1' => '123 Main Street',
'address_2' => 'Suite 100',
'city' => 'Anytown',
'state' => 'CA',
'zip' => '90210',
'country' => 'United States',
'default_ship_to_address' => 'warehouse'
],
'payments' => [
[
'payment_date' => '2024-01-15',
'payment_type' => 'check',
'paid_amount' => 500,
'remarks' => 'Check #1234',
'external_id' => 'PAY-EXT-12345'
]
],
'custom_fields' => [
'Customer PO' => 'PO-98765',
'Priority Level' => 'High'
],
'tags' => [
'urgent',
'priority',
'rush-order'
]
]),
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/purchase-orders/{id}"
payload := strings.NewReader("{\n \"order_date\": \"2024-01-15\",\n \"supplier_id\": 123,\n \"items\": [\n {\n \"quantity\": 10.5,\n \"id\": 456,\n \"product_id\": 123,\n \"sku\": \"WIDGET-001\",\n \"unit_price\": 49.99,\n \"presentment_unit_price\": 46,\n \"ordered_qty\": 10.5,\n \"received_qty\": 5,\n \"expected_ship_date\": \"2026-08-15\",\n \"expected_arrival_date\": \"2026-08-20\",\n \"lot_id\": 789,\n \"lot_number\": \"LOT-12345\",\n \"lot_name\": \"<string>\",\n \"uom_id\": 1,\n \"source_sku\": \"SUPPLIER-SKU-123\",\n \"tags\": [\n \"priority\",\n \"fragile\"\n ],\n \"custom_fields\": {\n \"Lot Number\": \"LOT-12345\",\n \"Expiry Date\": \"2024-12-31\"\n }\n }\n ],\n \"warehouse_id\": 1,\n \"location_id\": 1,\n \"order_status\": \"active\",\n \"order_numbers\": [\n \"PO-2024-001\",\n \"SUPPLIER-PO-123\"\n ],\n \"invoice_date\": \"2024-01-16\",\n \"incoterm\": \"exw\",\n \"payment_terms\": \"Net 30\",\n \"currency_code\": \"EUR\",\n \"exchange_rate\": 1.085,\n \"total_shipping_cost\": 50,\n \"total_tax\": 80,\n \"volume_target_cbm\": 67,\n \"public_note\": \"Please ship via express delivery\",\n \"private_note\": \"Rush order - expedite processing\",\n \"requested_ship_date\": \"2024-01-20\",\n \"arrival_due_date\": \"2024-01-25\",\n \"shipment_type\": \"Sea\",\n \"original_arrival_due_date\": \"2024-01-25\",\n \"override_transit_days\": 35,\n \"ship_to\": {\n \"address_1\": \"123 Main Street\",\n \"address_2\": \"Suite 100\",\n \"city\": \"Anytown\",\n \"state\": \"CA\",\n \"zip\": \"90210\",\n \"country\": \"United States\",\n \"default_ship_to_address\": \"warehouse\"\n },\n \"payments\": [\n {\n \"payment_date\": \"2024-01-15\",\n \"payment_type\": \"check\",\n \"paid_amount\": 500,\n \"remarks\": \"Check #1234\",\n \"external_id\": \"PAY-EXT-12345\"\n }\n ],\n \"custom_fields\": {\n \"Customer PO\": \"PO-98765\",\n \"Priority Level\": \"High\"\n },\n \"tags\": [\n \"urgent\",\n \"priority\",\n \"rush-order\"\n ]\n}")
req, _ := http.NewRequest("PATCH", 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.patch("https://{companyName}.api.joinluminous.com/external/api/v1/purchase-orders/{id}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"order_date\": \"2024-01-15\",\n \"supplier_id\": 123,\n \"items\": [\n {\n \"quantity\": 10.5,\n \"id\": 456,\n \"product_id\": 123,\n \"sku\": \"WIDGET-001\",\n \"unit_price\": 49.99,\n \"presentment_unit_price\": 46,\n \"ordered_qty\": 10.5,\n \"received_qty\": 5,\n \"expected_ship_date\": \"2026-08-15\",\n \"expected_arrival_date\": \"2026-08-20\",\n \"lot_id\": 789,\n \"lot_number\": \"LOT-12345\",\n \"lot_name\": \"<string>\",\n \"uom_id\": 1,\n \"source_sku\": \"SUPPLIER-SKU-123\",\n \"tags\": [\n \"priority\",\n \"fragile\"\n ],\n \"custom_fields\": {\n \"Lot Number\": \"LOT-12345\",\n \"Expiry Date\": \"2024-12-31\"\n }\n }\n ],\n \"warehouse_id\": 1,\n \"location_id\": 1,\n \"order_status\": \"active\",\n \"order_numbers\": [\n \"PO-2024-001\",\n \"SUPPLIER-PO-123\"\n ],\n \"invoice_date\": \"2024-01-16\",\n \"incoterm\": \"exw\",\n \"payment_terms\": \"Net 30\",\n \"currency_code\": \"EUR\",\n \"exchange_rate\": 1.085,\n \"total_shipping_cost\": 50,\n \"total_tax\": 80,\n \"volume_target_cbm\": 67,\n \"public_note\": \"Please ship via express delivery\",\n \"private_note\": \"Rush order - expedite processing\",\n \"requested_ship_date\": \"2024-01-20\",\n \"arrival_due_date\": \"2024-01-25\",\n \"shipment_type\": \"Sea\",\n \"original_arrival_due_date\": \"2024-01-25\",\n \"override_transit_days\": 35,\n \"ship_to\": {\n \"address_1\": \"123 Main Street\",\n \"address_2\": \"Suite 100\",\n \"city\": \"Anytown\",\n \"state\": \"CA\",\n \"zip\": \"90210\",\n \"country\": \"United States\",\n \"default_ship_to_address\": \"warehouse\"\n },\n \"payments\": [\n {\n \"payment_date\": \"2024-01-15\",\n \"payment_type\": \"check\",\n \"paid_amount\": 500,\n \"remarks\": \"Check #1234\",\n \"external_id\": \"PAY-EXT-12345\"\n }\n ],\n \"custom_fields\": {\n \"Customer PO\": \"PO-98765\",\n \"Priority Level\": \"High\"\n },\n \"tags\": [\n \"urgent\",\n \"priority\",\n \"rush-order\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://{companyName}.api.joinluminous.com/external/api/v1/purchase-orders/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"order_date\": \"2024-01-15\",\n \"supplier_id\": 123,\n \"items\": [\n {\n \"quantity\": 10.5,\n \"id\": 456,\n \"product_id\": 123,\n \"sku\": \"WIDGET-001\",\n \"unit_price\": 49.99,\n \"presentment_unit_price\": 46,\n \"ordered_qty\": 10.5,\n \"received_qty\": 5,\n \"expected_ship_date\": \"2026-08-15\",\n \"expected_arrival_date\": \"2026-08-20\",\n \"lot_id\": 789,\n \"lot_number\": \"LOT-12345\",\n \"lot_name\": \"<string>\",\n \"uom_id\": 1,\n \"source_sku\": \"SUPPLIER-SKU-123\",\n \"tags\": [\n \"priority\",\n \"fragile\"\n ],\n \"custom_fields\": {\n \"Lot Number\": \"LOT-12345\",\n \"Expiry Date\": \"2024-12-31\"\n }\n }\n ],\n \"warehouse_id\": 1,\n \"location_id\": 1,\n \"order_status\": \"active\",\n \"order_numbers\": [\n \"PO-2024-001\",\n \"SUPPLIER-PO-123\"\n ],\n \"invoice_date\": \"2024-01-16\",\n \"incoterm\": \"exw\",\n \"payment_terms\": \"Net 30\",\n \"currency_code\": \"EUR\",\n \"exchange_rate\": 1.085,\n \"total_shipping_cost\": 50,\n \"total_tax\": 80,\n \"volume_target_cbm\": 67,\n \"public_note\": \"Please ship via express delivery\",\n \"private_note\": \"Rush order - expedite processing\",\n \"requested_ship_date\": \"2024-01-20\",\n \"arrival_due_date\": \"2024-01-25\",\n \"shipment_type\": \"Sea\",\n \"original_arrival_due_date\": \"2024-01-25\",\n \"override_transit_days\": 35,\n \"ship_to\": {\n \"address_1\": \"123 Main Street\",\n \"address_2\": \"Suite 100\",\n \"city\": \"Anytown\",\n \"state\": \"CA\",\n \"zip\": \"90210\",\n \"country\": \"United States\",\n \"default_ship_to_address\": \"warehouse\"\n },\n \"payments\": [\n {\n \"payment_date\": \"2024-01-15\",\n \"payment_type\": \"check\",\n \"paid_amount\": 500,\n \"remarks\": \"Check #1234\",\n \"external_id\": \"PAY-EXT-12345\"\n }\n ],\n \"custom_fields\": {\n \"Customer PO\": \"PO-98765\",\n \"Priority Level\": \"High\"\n },\n \"tags\": [\n \"urgent\",\n \"priority\",\n \"rush-order\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"data": {
"id": 123,
"order_numbers": [
"<string>"
],
"created_by": 12,
"created_by_name": "Pat Buyer",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"order_status": "active",
"order_date": "2023-12-25",
"invoice_date": "2023-12-25",
"arrival_due_date": "2023-12-25",
"requested_ship_date": "2023-12-25",
"original_arrival_due_date": "2023-12-25",
"shipment_type": "Air",
"override_transit_days": 123,
"order_type": 123,
"incoterm": "<string>",
"tracking_info": "<string>",
"payment_terms": "<string>",
"supplier_id": 123,
"item_count": 123,
"total_qty_ordered": 123,
"total_qty_received": 123,
"total_qty_remaining": 123,
"receipt_status": "awaiting_shipment",
"currency_code": "EUR",
"exchange_rate": 1.085,
"order_cost": 123,
"total_tax": 123,
"total_shipping_cost": 123,
"total_cost": 123,
"total_paid": 123,
"total_due": 123,
"total_volume_cbm": 123,
"total_weight_kg": 123,
"lines_missing_dimensions": 123,
"volume_target_cbm": 123,
"volume_remaining_cbm": 123,
"volume_fill_percent": 123,
"down_payment": 123,
"public_note": "<string>",
"private_note": "<string>",
"starred": true,
"items": [
{
"id": 123,
"purchase_order_id": 123,
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"quantity": 123,
"presentment_unit_price": 123,
"unit_price": 123,
"unit": "<string>",
"tax": 123,
"discount_amount": 123,
"line_total": 123,
"expected_ship_date": "2023-12-25",
"expected_arrival_date": "2023-12-25",
"requested_ship_date": "2023-12-25",
"arrival_due_date": "2023-12-25",
"shipment_type": "Air",
"original_arrival_due_date": "2023-12-25",
"override_transit_days": 123,
"quantity_received": 123,
"received_quantity": 123,
"quantity_ordered": 123,
"quantity_shipped": 123,
"quantity_billed": 123,
"quantity_allocated": 123,
"quantity_released": 123,
"under_covered_quantity": 123,
"remaining_to_ship": 123,
"remaining_to_receive": 123,
"open_quantity": 40,
"closed_at": null,
"close_reason": null,
"available_to_allocate": 123,
"volume_cbm": 123,
"line_volume_cbm": 123,
"weight_kg": 123,
"line_weight_kg": 123,
"allocations": [
{
"sales_order_id": 123,
"sales_order_number": "<string>",
"quantity_allocated": 123,
"quantity_released": 123,
"peg_ids": [
123
]
}
],
"source_sku": "<string>",
"product": {
"id": 123,
"name": "<string>",
"description": "<string>",
"retail_price": 123,
"wholesale_price": 123,
"unit_cost": 123,
"product_weight": 123,
"product_length": 123,
"product_width": 123,
"product_height": 123,
"sellable": true,
"discontinued": true,
"image_url": "<string>",
"variant_attributes": {},
"sku": "<string>",
"upc": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
},
"base_unit_of_measure": {
"id": 123,
"name": "<string>",
"abbreviation": "<string>"
},
"ordered_unit_of_measure": {
"id": 123,
"name": "<string>",
"abbreviation": "<string>"
},
"lot": {
"id": 123,
"lot_number": "<string>",
"expiration_date": "2023-12-25"
}
}
],
"supplier": {
"id": 123,
"status": 123,
"name": "<string>",
"description": "<string>",
"street_address": "<string>",
"city": "<string>",
"state": "<string>",
"zip": "<string>",
"country": "<string>",
"contact_name": "<string>",
"contact_email": "<string>",
"contact_phone": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"custom_fields": {
"Region": "Southwest",
"Preferred Carrier": "UPS"
}
},
"payments": [
{
"id": 123,
"payment_date": "2023-12-25",
"payment_type": "cash",
"paid_amount": 123,
"remarks": "<string>",
"external_id": "<string>",
"created_by": {
"id": 123,
"name": "<string>"
},
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}
],
"ship_to": {
"address_1": "<string>",
"address_2": "<string>",
"city": "<string>",
"state": "<string>",
"zip": "<string>",
"country": "<string>",
"default_ship_to_address": "ship_to_address"
},
"warehouse_id": 123,
"location_id": 123,
"warehouse": {
"id": 123,
"name": "<string>"
},
"location": {
"id": 123,
"name": "<string>"
},
"tags": [
{
"id": 123,
"name": "<string>",
"description": "<string>",
"icon": "<string>",
"color": "<string>"
}
],
"fulfillment_orders": [
{
"id": 123,
"order_number": "<string>",
"order_status": "<string>"
}
],
"custom_fields": {}
}
}{
"message": "<string>"
}{
"message": "<string>"
}{
"message": "<string>"
}{
"message": "<string>"
}Update a purchase order (PATCH alias)
Same as PUT /purchase-orders/{id}: only the fields you send change, and items, when sent,
replaces every line. See that operation for the full behavior, including supplier currency
(currency_code, exchange_rate, items[].presentment_unit_price).
curl --request PATCH \
--url https://{companyName}.api.joinluminous.com/external/api/v1/purchase-orders/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"order_date": "2024-01-15",
"supplier_id": 123,
"items": [
{
"quantity": 10.5,
"id": 456,
"product_id": 123,
"sku": "WIDGET-001",
"unit_price": 49.99,
"presentment_unit_price": 46,
"ordered_qty": 10.5,
"received_qty": 5,
"expected_ship_date": "2026-08-15",
"expected_arrival_date": "2026-08-20",
"lot_id": 789,
"lot_number": "LOT-12345",
"lot_name": "<string>",
"uom_id": 1,
"source_sku": "SUPPLIER-SKU-123",
"tags": [
"priority",
"fragile"
],
"custom_fields": {
"Lot Number": "LOT-12345",
"Expiry Date": "2024-12-31"
}
}
],
"warehouse_id": 1,
"location_id": 1,
"order_status": "active",
"order_numbers": [
"PO-2024-001",
"SUPPLIER-PO-123"
],
"invoice_date": "2024-01-16",
"incoterm": "exw",
"payment_terms": "Net 30",
"currency_code": "EUR",
"exchange_rate": 1.085,
"total_shipping_cost": 50,
"total_tax": 80,
"volume_target_cbm": 67,
"public_note": "Please ship via express delivery",
"private_note": "Rush order - expedite processing",
"requested_ship_date": "2024-01-20",
"arrival_due_date": "2024-01-25",
"shipment_type": "Sea",
"original_arrival_due_date": "2024-01-25",
"override_transit_days": 35,
"ship_to": {
"address_1": "123 Main Street",
"address_2": "Suite 100",
"city": "Anytown",
"state": "CA",
"zip": "90210",
"country": "United States",
"default_ship_to_address": "warehouse"
},
"payments": [
{
"payment_date": "2024-01-15",
"payment_type": "check",
"paid_amount": 500,
"remarks": "Check #1234",
"external_id": "PAY-EXT-12345"
}
],
"custom_fields": {
"Customer PO": "PO-98765",
"Priority Level": "High"
},
"tags": [
"urgent",
"priority",
"rush-order"
]
}
'import requests
url = "https://{companyName}.api.joinluminous.com/external/api/v1/purchase-orders/{id}"
payload = {
"order_date": "2024-01-15",
"supplier_id": 123,
"items": [
{
"quantity": 10.5,
"id": 456,
"product_id": 123,
"sku": "WIDGET-001",
"unit_price": 49.99,
"presentment_unit_price": 46,
"ordered_qty": 10.5,
"received_qty": 5,
"expected_ship_date": "2026-08-15",
"expected_arrival_date": "2026-08-20",
"lot_id": 789,
"lot_number": "LOT-12345",
"lot_name": "<string>",
"uom_id": 1,
"source_sku": "SUPPLIER-SKU-123",
"tags": ["priority", "fragile"],
"custom_fields": {
"Lot Number": "LOT-12345",
"Expiry Date": "2024-12-31"
}
}
],
"warehouse_id": 1,
"location_id": 1,
"order_status": "active",
"order_numbers": ["PO-2024-001", "SUPPLIER-PO-123"],
"invoice_date": "2024-01-16",
"incoterm": "exw",
"payment_terms": "Net 30",
"currency_code": "EUR",
"exchange_rate": 1.085,
"total_shipping_cost": 50,
"total_tax": 80,
"volume_target_cbm": 67,
"public_note": "Please ship via express delivery",
"private_note": "Rush order - expedite processing",
"requested_ship_date": "2024-01-20",
"arrival_due_date": "2024-01-25",
"shipment_type": "Sea",
"original_arrival_due_date": "2024-01-25",
"override_transit_days": 35,
"ship_to": {
"address_1": "123 Main Street",
"address_2": "Suite 100",
"city": "Anytown",
"state": "CA",
"zip": "90210",
"country": "United States",
"default_ship_to_address": "warehouse"
},
"payments": [
{
"payment_date": "2024-01-15",
"payment_type": "check",
"paid_amount": 500,
"remarks": "Check #1234",
"external_id": "PAY-EXT-12345"
}
],
"custom_fields": {
"Customer PO": "PO-98765",
"Priority Level": "High"
},
"tags": ["urgent", "priority", "rush-order"]
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
order_date: '2024-01-15',
supplier_id: 123,
items: [
{
quantity: 10.5,
id: 456,
product_id: 123,
sku: 'WIDGET-001',
unit_price: 49.99,
presentment_unit_price: 46,
ordered_qty: 10.5,
received_qty: 5,
expected_ship_date: '2026-08-15',
expected_arrival_date: '2026-08-20',
lot_id: 789,
lot_number: 'LOT-12345',
lot_name: '<string>',
uom_id: 1,
source_sku: 'SUPPLIER-SKU-123',
tags: ['priority', 'fragile'],
custom_fields: {'Lot Number': 'LOT-12345', 'Expiry Date': '2024-12-31'}
}
],
warehouse_id: 1,
location_id: 1,
order_status: 'active',
order_numbers: ['PO-2024-001', 'SUPPLIER-PO-123'],
invoice_date: '2024-01-16',
incoterm: 'exw',
payment_terms: 'Net 30',
currency_code: 'EUR',
exchange_rate: 1.085,
total_shipping_cost: 50,
total_tax: 80,
volume_target_cbm: 67,
public_note: 'Please ship via express delivery',
private_note: 'Rush order - expedite processing',
requested_ship_date: '2024-01-20',
arrival_due_date: '2024-01-25',
shipment_type: 'Sea',
original_arrival_due_date: '2024-01-25',
override_transit_days: 35,
ship_to: {
address_1: '123 Main Street',
address_2: 'Suite 100',
city: 'Anytown',
state: 'CA',
zip: '90210',
country: 'United States',
default_ship_to_address: 'warehouse'
},
payments: [
{
payment_date: '2024-01-15',
payment_type: 'check',
paid_amount: 500,
remarks: 'Check #1234',
external_id: 'PAY-EXT-12345'
}
],
custom_fields: {'Customer PO': 'PO-98765', 'Priority Level': 'High'},
tags: ['urgent', 'priority', 'rush-order']
})
};
fetch('https://{companyName}.api.joinluminous.com/external/api/v1/purchase-orders/{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://{companyName}.api.joinluminous.com/external/api/v1/purchase-orders/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'order_date' => '2024-01-15',
'supplier_id' => 123,
'items' => [
[
'quantity' => 10.5,
'id' => 456,
'product_id' => 123,
'sku' => 'WIDGET-001',
'unit_price' => 49.99,
'presentment_unit_price' => 46,
'ordered_qty' => 10.5,
'received_qty' => 5,
'expected_ship_date' => '2026-08-15',
'expected_arrival_date' => '2026-08-20',
'lot_id' => 789,
'lot_number' => 'LOT-12345',
'lot_name' => '<string>',
'uom_id' => 1,
'source_sku' => 'SUPPLIER-SKU-123',
'tags' => [
'priority',
'fragile'
],
'custom_fields' => [
'Lot Number' => 'LOT-12345',
'Expiry Date' => '2024-12-31'
]
]
],
'warehouse_id' => 1,
'location_id' => 1,
'order_status' => 'active',
'order_numbers' => [
'PO-2024-001',
'SUPPLIER-PO-123'
],
'invoice_date' => '2024-01-16',
'incoterm' => 'exw',
'payment_terms' => 'Net 30',
'currency_code' => 'EUR',
'exchange_rate' => 1.085,
'total_shipping_cost' => 50,
'total_tax' => 80,
'volume_target_cbm' => 67,
'public_note' => 'Please ship via express delivery',
'private_note' => 'Rush order - expedite processing',
'requested_ship_date' => '2024-01-20',
'arrival_due_date' => '2024-01-25',
'shipment_type' => 'Sea',
'original_arrival_due_date' => '2024-01-25',
'override_transit_days' => 35,
'ship_to' => [
'address_1' => '123 Main Street',
'address_2' => 'Suite 100',
'city' => 'Anytown',
'state' => 'CA',
'zip' => '90210',
'country' => 'United States',
'default_ship_to_address' => 'warehouse'
],
'payments' => [
[
'payment_date' => '2024-01-15',
'payment_type' => 'check',
'paid_amount' => 500,
'remarks' => 'Check #1234',
'external_id' => 'PAY-EXT-12345'
]
],
'custom_fields' => [
'Customer PO' => 'PO-98765',
'Priority Level' => 'High'
],
'tags' => [
'urgent',
'priority',
'rush-order'
]
]),
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/purchase-orders/{id}"
payload := strings.NewReader("{\n \"order_date\": \"2024-01-15\",\n \"supplier_id\": 123,\n \"items\": [\n {\n \"quantity\": 10.5,\n \"id\": 456,\n \"product_id\": 123,\n \"sku\": \"WIDGET-001\",\n \"unit_price\": 49.99,\n \"presentment_unit_price\": 46,\n \"ordered_qty\": 10.5,\n \"received_qty\": 5,\n \"expected_ship_date\": \"2026-08-15\",\n \"expected_arrival_date\": \"2026-08-20\",\n \"lot_id\": 789,\n \"lot_number\": \"LOT-12345\",\n \"lot_name\": \"<string>\",\n \"uom_id\": 1,\n \"source_sku\": \"SUPPLIER-SKU-123\",\n \"tags\": [\n \"priority\",\n \"fragile\"\n ],\n \"custom_fields\": {\n \"Lot Number\": \"LOT-12345\",\n \"Expiry Date\": \"2024-12-31\"\n }\n }\n ],\n \"warehouse_id\": 1,\n \"location_id\": 1,\n \"order_status\": \"active\",\n \"order_numbers\": [\n \"PO-2024-001\",\n \"SUPPLIER-PO-123\"\n ],\n \"invoice_date\": \"2024-01-16\",\n \"incoterm\": \"exw\",\n \"payment_terms\": \"Net 30\",\n \"currency_code\": \"EUR\",\n \"exchange_rate\": 1.085,\n \"total_shipping_cost\": 50,\n \"total_tax\": 80,\n \"volume_target_cbm\": 67,\n \"public_note\": \"Please ship via express delivery\",\n \"private_note\": \"Rush order - expedite processing\",\n \"requested_ship_date\": \"2024-01-20\",\n \"arrival_due_date\": \"2024-01-25\",\n \"shipment_type\": \"Sea\",\n \"original_arrival_due_date\": \"2024-01-25\",\n \"override_transit_days\": 35,\n \"ship_to\": {\n \"address_1\": \"123 Main Street\",\n \"address_2\": \"Suite 100\",\n \"city\": \"Anytown\",\n \"state\": \"CA\",\n \"zip\": \"90210\",\n \"country\": \"United States\",\n \"default_ship_to_address\": \"warehouse\"\n },\n \"payments\": [\n {\n \"payment_date\": \"2024-01-15\",\n \"payment_type\": \"check\",\n \"paid_amount\": 500,\n \"remarks\": \"Check #1234\",\n \"external_id\": \"PAY-EXT-12345\"\n }\n ],\n \"custom_fields\": {\n \"Customer PO\": \"PO-98765\",\n \"Priority Level\": \"High\"\n },\n \"tags\": [\n \"urgent\",\n \"priority\",\n \"rush-order\"\n ]\n}")
req, _ := http.NewRequest("PATCH", 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.patch("https://{companyName}.api.joinluminous.com/external/api/v1/purchase-orders/{id}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"order_date\": \"2024-01-15\",\n \"supplier_id\": 123,\n \"items\": [\n {\n \"quantity\": 10.5,\n \"id\": 456,\n \"product_id\": 123,\n \"sku\": \"WIDGET-001\",\n \"unit_price\": 49.99,\n \"presentment_unit_price\": 46,\n \"ordered_qty\": 10.5,\n \"received_qty\": 5,\n \"expected_ship_date\": \"2026-08-15\",\n \"expected_arrival_date\": \"2026-08-20\",\n \"lot_id\": 789,\n \"lot_number\": \"LOT-12345\",\n \"lot_name\": \"<string>\",\n \"uom_id\": 1,\n \"source_sku\": \"SUPPLIER-SKU-123\",\n \"tags\": [\n \"priority\",\n \"fragile\"\n ],\n \"custom_fields\": {\n \"Lot Number\": \"LOT-12345\",\n \"Expiry Date\": \"2024-12-31\"\n }\n }\n ],\n \"warehouse_id\": 1,\n \"location_id\": 1,\n \"order_status\": \"active\",\n \"order_numbers\": [\n \"PO-2024-001\",\n \"SUPPLIER-PO-123\"\n ],\n \"invoice_date\": \"2024-01-16\",\n \"incoterm\": \"exw\",\n \"payment_terms\": \"Net 30\",\n \"currency_code\": \"EUR\",\n \"exchange_rate\": 1.085,\n \"total_shipping_cost\": 50,\n \"total_tax\": 80,\n \"volume_target_cbm\": 67,\n \"public_note\": \"Please ship via express delivery\",\n \"private_note\": \"Rush order - expedite processing\",\n \"requested_ship_date\": \"2024-01-20\",\n \"arrival_due_date\": \"2024-01-25\",\n \"shipment_type\": \"Sea\",\n \"original_arrival_due_date\": \"2024-01-25\",\n \"override_transit_days\": 35,\n \"ship_to\": {\n \"address_1\": \"123 Main Street\",\n \"address_2\": \"Suite 100\",\n \"city\": \"Anytown\",\n \"state\": \"CA\",\n \"zip\": \"90210\",\n \"country\": \"United States\",\n \"default_ship_to_address\": \"warehouse\"\n },\n \"payments\": [\n {\n \"payment_date\": \"2024-01-15\",\n \"payment_type\": \"check\",\n \"paid_amount\": 500,\n \"remarks\": \"Check #1234\",\n \"external_id\": \"PAY-EXT-12345\"\n }\n ],\n \"custom_fields\": {\n \"Customer PO\": \"PO-98765\",\n \"Priority Level\": \"High\"\n },\n \"tags\": [\n \"urgent\",\n \"priority\",\n \"rush-order\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://{companyName}.api.joinluminous.com/external/api/v1/purchase-orders/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"order_date\": \"2024-01-15\",\n \"supplier_id\": 123,\n \"items\": [\n {\n \"quantity\": 10.5,\n \"id\": 456,\n \"product_id\": 123,\n \"sku\": \"WIDGET-001\",\n \"unit_price\": 49.99,\n \"presentment_unit_price\": 46,\n \"ordered_qty\": 10.5,\n \"received_qty\": 5,\n \"expected_ship_date\": \"2026-08-15\",\n \"expected_arrival_date\": \"2026-08-20\",\n \"lot_id\": 789,\n \"lot_number\": \"LOT-12345\",\n \"lot_name\": \"<string>\",\n \"uom_id\": 1,\n \"source_sku\": \"SUPPLIER-SKU-123\",\n \"tags\": [\n \"priority\",\n \"fragile\"\n ],\n \"custom_fields\": {\n \"Lot Number\": \"LOT-12345\",\n \"Expiry Date\": \"2024-12-31\"\n }\n }\n ],\n \"warehouse_id\": 1,\n \"location_id\": 1,\n \"order_status\": \"active\",\n \"order_numbers\": [\n \"PO-2024-001\",\n \"SUPPLIER-PO-123\"\n ],\n \"invoice_date\": \"2024-01-16\",\n \"incoterm\": \"exw\",\n \"payment_terms\": \"Net 30\",\n \"currency_code\": \"EUR\",\n \"exchange_rate\": 1.085,\n \"total_shipping_cost\": 50,\n \"total_tax\": 80,\n \"volume_target_cbm\": 67,\n \"public_note\": \"Please ship via express delivery\",\n \"private_note\": \"Rush order - expedite processing\",\n \"requested_ship_date\": \"2024-01-20\",\n \"arrival_due_date\": \"2024-01-25\",\n \"shipment_type\": \"Sea\",\n \"original_arrival_due_date\": \"2024-01-25\",\n \"override_transit_days\": 35,\n \"ship_to\": {\n \"address_1\": \"123 Main Street\",\n \"address_2\": \"Suite 100\",\n \"city\": \"Anytown\",\n \"state\": \"CA\",\n \"zip\": \"90210\",\n \"country\": \"United States\",\n \"default_ship_to_address\": \"warehouse\"\n },\n \"payments\": [\n {\n \"payment_date\": \"2024-01-15\",\n \"payment_type\": \"check\",\n \"paid_amount\": 500,\n \"remarks\": \"Check #1234\",\n \"external_id\": \"PAY-EXT-12345\"\n }\n ],\n \"custom_fields\": {\n \"Customer PO\": \"PO-98765\",\n \"Priority Level\": \"High\"\n },\n \"tags\": [\n \"urgent\",\n \"priority\",\n \"rush-order\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"data": {
"id": 123,
"order_numbers": [
"<string>"
],
"created_by": 12,
"created_by_name": "Pat Buyer",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"order_status": "active",
"order_date": "2023-12-25",
"invoice_date": "2023-12-25",
"arrival_due_date": "2023-12-25",
"requested_ship_date": "2023-12-25",
"original_arrival_due_date": "2023-12-25",
"shipment_type": "Air",
"override_transit_days": 123,
"order_type": 123,
"incoterm": "<string>",
"tracking_info": "<string>",
"payment_terms": "<string>",
"supplier_id": 123,
"item_count": 123,
"total_qty_ordered": 123,
"total_qty_received": 123,
"total_qty_remaining": 123,
"receipt_status": "awaiting_shipment",
"currency_code": "EUR",
"exchange_rate": 1.085,
"order_cost": 123,
"total_tax": 123,
"total_shipping_cost": 123,
"total_cost": 123,
"total_paid": 123,
"total_due": 123,
"total_volume_cbm": 123,
"total_weight_kg": 123,
"lines_missing_dimensions": 123,
"volume_target_cbm": 123,
"volume_remaining_cbm": 123,
"volume_fill_percent": 123,
"down_payment": 123,
"public_note": "<string>",
"private_note": "<string>",
"starred": true,
"items": [
{
"id": 123,
"purchase_order_id": 123,
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"quantity": 123,
"presentment_unit_price": 123,
"unit_price": 123,
"unit": "<string>",
"tax": 123,
"discount_amount": 123,
"line_total": 123,
"expected_ship_date": "2023-12-25",
"expected_arrival_date": "2023-12-25",
"requested_ship_date": "2023-12-25",
"arrival_due_date": "2023-12-25",
"shipment_type": "Air",
"original_arrival_due_date": "2023-12-25",
"override_transit_days": 123,
"quantity_received": 123,
"received_quantity": 123,
"quantity_ordered": 123,
"quantity_shipped": 123,
"quantity_billed": 123,
"quantity_allocated": 123,
"quantity_released": 123,
"under_covered_quantity": 123,
"remaining_to_ship": 123,
"remaining_to_receive": 123,
"open_quantity": 40,
"closed_at": null,
"close_reason": null,
"available_to_allocate": 123,
"volume_cbm": 123,
"line_volume_cbm": 123,
"weight_kg": 123,
"line_weight_kg": 123,
"allocations": [
{
"sales_order_id": 123,
"sales_order_number": "<string>",
"quantity_allocated": 123,
"quantity_released": 123,
"peg_ids": [
123
]
}
],
"source_sku": "<string>",
"product": {
"id": 123,
"name": "<string>",
"description": "<string>",
"retail_price": 123,
"wholesale_price": 123,
"unit_cost": 123,
"product_weight": 123,
"product_length": 123,
"product_width": 123,
"product_height": 123,
"sellable": true,
"discontinued": true,
"image_url": "<string>",
"variant_attributes": {},
"sku": "<string>",
"upc": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
},
"base_unit_of_measure": {
"id": 123,
"name": "<string>",
"abbreviation": "<string>"
},
"ordered_unit_of_measure": {
"id": 123,
"name": "<string>",
"abbreviation": "<string>"
},
"lot": {
"id": 123,
"lot_number": "<string>",
"expiration_date": "2023-12-25"
}
}
],
"supplier": {
"id": 123,
"status": 123,
"name": "<string>",
"description": "<string>",
"street_address": "<string>",
"city": "<string>",
"state": "<string>",
"zip": "<string>",
"country": "<string>",
"contact_name": "<string>",
"contact_email": "<string>",
"contact_phone": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"custom_fields": {
"Region": "Southwest",
"Preferred Carrier": "UPS"
}
},
"payments": [
{
"id": 123,
"payment_date": "2023-12-25",
"payment_type": "cash",
"paid_amount": 123,
"remarks": "<string>",
"external_id": "<string>",
"created_by": {
"id": 123,
"name": "<string>"
},
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}
],
"ship_to": {
"address_1": "<string>",
"address_2": "<string>",
"city": "<string>",
"state": "<string>",
"zip": "<string>",
"country": "<string>",
"default_ship_to_address": "ship_to_address"
},
"warehouse_id": 123,
"location_id": 123,
"warehouse": {
"id": 123,
"name": "<string>"
},
"location": {
"id": 123,
"name": "<string>"
},
"tags": [
{
"id": 123,
"name": "<string>",
"description": "<string>",
"icon": "<string>",
"color": "<string>"
}
],
"fulfillment_orders": [
{
"id": 123,
"order_number": "<string>",
"order_status": "<string>"
}
],
"custom_fields": {}
}
}{
"message": "<string>"
}{
"message": "<string>"
}{
"message": "<string>"
}{
"message": "<string>"
}Authorizations
Body
Milestone status (token or numeric id). Also accepts 30 (production_active) and 88 (delivered) by id. Writes a milestone row and updates the PO header.
draft (101) and cancelled (100) are order states, not timeline milestones. They do not
count as incoming stock and the purchase order cannot take a new receipt while in either state.
Creating a purchase order with order_status: draft saves it as a draft from the start, so its
lines never post incoming. Moving it to an open milestone later posts incoming at that point.
active, production_started, production_completed, in_transit, completed, draft, cancelled, deleted "active"
Incoterm (delivery term) for the purchase order, given as a logistic code configured for the account (e.g. exw, fob, ddp). Matching is case-insensitive — both the lower-case code (exw) and its upper-case label (EXW) are accepted. Returned on the purchase order resource as incoterm. If omitted, the account default is applied.
"exw"
Payment terms for the purchase order. Must exactly match one of the payment terms configured for the account (Manage > Suppliers); matching is case-sensitive (Net 30 passes where net 30 fails). Returned on the purchase order resource as payment_terms. If omitted, the account default is applied.
"Net 30"
The purchase order's supplier currency: a three-letter code, in any case, listed by
GET /currency/available. null puts the purchase order in base currency. Sending your base
currency code explicitly also puts it in base currency, but stores the code (rate 1) so responses
return it instead of null.
On create, omitting it applies the supplier's default currency (base currency when the supplier has
none). On update, omit to leave the currency and rate unchanged. Costs and totals stay in base currency.
Changing the currency restates presentment_unit_price at the new rate on every line the request
does not price (unit_price and costs do not change). Responds 422 on currency_code when the code
is unknown or no rate exists on or before order_date (send exchange_rate to supply one).
3"EUR"
Base-currency units per 1 unit of currency_code. Requires currency_code. If omitted, the rate on or
before order_date is used. While the currency stays the same on update, the stored rate is kept and
a different value here is ignored.
1e-8 <= x <= 99999999991.085
Freight mode used by the Transit Time Matrix. Matching is case-insensitive — sea and SEA are
stored as Sea — but any other value returns 422. On update, omit to keep the stored value or send
null to clear it.
When a request sends shipment_type or override_transit_days and the PO has a warehouse, the
Original ETA (original_arrival_due_date) and current ETA (arrival_due_date) are filled from the
transit matrix if empty. Arrival dates sent in the same request are always kept as sent.
When the PO has no requested_ship_date, the count starts from today, unless the account's
transit_eta_requires_ship_date setting is on (off by default). Then both dates stay empty until the
PO has a requested ship date, and a PUT /purchase-orders/{id} that sends requested_ship_date to a
PO that already has a freight mode or override fills them while they are empty, even without
shipment_type or override_transit_days in the request. Transfer POs are not affected.
Air, Sea, Road, Rail, Express, null "Sea"