curl --request GET \
--url localhost:///8080/v1/orderPreparations/{reference}import requests
url = "localhost:///8080/v1/orderPreparations/{reference}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('localhost:///8080/v1/orderPreparations/{reference}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_PORT => "8080",
CURLOPT_URL => "localhost:///8080/v1/orderPreparations/{reference}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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 := "localhost:///8080/v1/orderPreparations/{reference}"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("localhost:///8080/v1/orderPreparations/{reference}")
.asString();require 'uri'
require 'net/http'
url = URI("localhost:///8080/v1/orderPreparations/{reference}")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"client_role_on_order": "buyer",
"commercial_invoice_ids": [
"<string>"
],
"customer_names_for_whom_order_is_prepared": [
"<string>"
],
"external_user_ids": [
"<string>"
],
"freight_method": "air",
"hazardous_details": "UN1845 - Dry ice",
"incoterm": "cfr",
"instructions": {
"should_label_packages": true,
"should_palletise": true,
"origin_certification_type": "atr",
"should_certify_commercial_invoices": true,
"target_pickup_date": "2021-10-11"
},
"locations": {
"preparing_warehouse_id": "<string>",
"delivery_location_id": "<string>"
},
"name": "<string>",
"on_behalf_of_client_id": "<string>",
"on_behalf_of_user_id": "<string>",
"owner_in_charge_of_moving_goods_in_fca_export": true,
"picking_references": [
"<string>"
],
"refrigerated_details": "+2°C/+8°C",
"total_commercial_invoice_amount": 123,
"total_commercial_invoice_amount_currency": "AED"
}{}Fetch an order preparation
Fetch an order preparation with its reference
curl --request GET \
--url localhost:///8080/v1/orderPreparations/{reference}import requests
url = "localhost:///8080/v1/orderPreparations/{reference}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('localhost:///8080/v1/orderPreparations/{reference}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_PORT => "8080",
CURLOPT_URL => "localhost:///8080/v1/orderPreparations/{reference}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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 := "localhost:///8080/v1/orderPreparations/{reference}"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("localhost:///8080/v1/orderPreparations/{reference}")
.asString();require 'uri'
require 'net/http'
url = URI("localhost:///8080/v1/orderPreparations/{reference}")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"client_role_on_order": "buyer",
"commercial_invoice_ids": [
"<string>"
],
"customer_names_for_whom_order_is_prepared": [
"<string>"
],
"external_user_ids": [
"<string>"
],
"freight_method": "air",
"hazardous_details": "UN1845 - Dry ice",
"incoterm": "cfr",
"instructions": {
"should_label_packages": true,
"should_palletise": true,
"origin_certification_type": "atr",
"should_certify_commercial_invoices": true,
"target_pickup_date": "2021-10-11"
},
"locations": {
"preparing_warehouse_id": "<string>",
"delivery_location_id": "<string>"
},
"name": "<string>",
"on_behalf_of_client_id": "<string>",
"on_behalf_of_user_id": "<string>",
"owner_in_charge_of_moving_goods_in_fca_export": true,
"picking_references": [
"<string>"
],
"refrigerated_details": "+2°C/+8°C",
"total_commercial_invoice_amount": 123,
"total_commercial_invoice_amount_currency": "AED"
}{}Path Parameters
Response
Order preparation found
Order preparation found
Role of the client on this order (buyer or seller)
buyer, seller List of commercial invoice IDs to include in the request
Names of customers for whom the order is being prepared
IDs of external users who should have access
Mode of transportation for the shipment
air, ocean, rail, truck Details about the hazardous nature of the goods in the OP
"UN1845 - Dry ice"
International commercial terms for the shipment
cfr, cif, cip, cpt, dap, dat, ddp, dpu, exw, fas, fca, fob Packaging and documentation instructions
Show child attributes
Show child attributes
Warehouse and delivery locations
Show child attributes
Show child attributes
Name of the order preparation request
Client ID if creating on behalf of another client
User ID if creating on behalf of another user
Whether the owner is responsible for moving goods in FCA export
Picking references for the goods to prepare
Temperature instruction details for the OP
"+2°C/+8°C"
Total amount from all commercial invoices
Currency of the total commercial invoice amount
AED, AUD, BHD, BRL, CAD, CHF, CNY, EUR, GBP, HKD, IDR, INR, JPY, KRW, KWD, MXN, MYR, NZD, PLN, SEK, SGD, THB, TWD, USD, XOF, XPF, ZAR 