Shipments
Retrieve Shipment Details (v5.2)
Returns everything Retrieve Shipment Details v5.0
returns, plus: shipment_type ("return" or null), a returns
object for Return Shipments, line_items, collection_point, rating,
parcel_recipient_information, and pod_url (carrier proof of
delivery; the URL expires after 7 days and is regenerated per response).
Each event’s location is enriched from a single place string to a
full address object with coordinates and timezone.
GET
/
v5-2-0
/
shipment
/
details
/
Retrieve Shipment Details (v5.2)
curl --request GET \
--url https://api.perform.ai/v5-2-0/shipment/details/ \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.perform.ai/v5-2-0/shipment/details/"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.perform.ai/v5-2-0/shipment/details/', 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://api.perform.ai/v5-2-0/shipment/details/",
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://api.perform.ai/v5-2-0/shipment/details/"
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://api.perform.ai/v5-2-0/shipment/details/")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.perform.ai/v5-2-0/shipment/details/")
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{
"api_response": "<string>",
"data": {
"shipment_uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"shipment_id": "<string>",
"shipment_reference": "<string>",
"additional_reference": "<string>",
"tracking_number": "<string>",
"carrier_reference": "<string>",
"carrier": {
"id": "<string>",
"name": "<string>",
"country_iso": [
"<string>"
],
"language": [
"<string>"
],
"supported_languages": [
"<string>"
],
"contact": "<string>",
"site_link": "<string>"
},
"created_date": "<string>",
"updated_date": "<string>",
"source": "<string>",
"status": "<string>",
"current_phase": {
"name": "<string>",
"key": "<string>"
},
"tags": [
"<string>"
],
"notification_email": [
"<string>"
],
"notification_phone": [
"<string>"
],
"tracking_page_reference": "<string>",
"order": {
"order_uuid": "<string>",
"order_id": "<string>",
"order_reference": "<string>",
"source_type": "<string>",
"source_name": "<string>",
"created_date": "<string>",
"updated_date": "<string>"
},
"recipient_address": {
"address_name": "<string>",
"location_type": "<string>",
"entity_reference": "<string>",
"salutation": "<string>",
"first_name": "<string>",
"last_name": "<string>",
"line1": "<string>",
"line2": "<string>",
"line3": "<string>",
"street_name": "<string>",
"house_number": "<string>",
"city": "<string>",
"postal_code": "<string>",
"state_or_province": "<string>",
"region": "<string>",
"country": "<string>",
"country_code": "<string>",
"email": "jsmith@example.com",
"phone": "<string>",
"fax": "<string>",
"company": "<string>",
"tax_id": "<string>",
"full": "<string>"
},
"sender_address": {
"address_name": "<string>",
"location_type": "<string>",
"entity_reference": "<string>",
"salutation": "<string>",
"first_name": "<string>",
"last_name": "<string>",
"line1": "<string>",
"line2": "<string>",
"line3": "<string>",
"street_name": "<string>",
"house_number": "<string>",
"city": "<string>",
"postal_code": "<string>",
"state_or_province": "<string>",
"region": "<string>",
"country": "<string>",
"country_code": "<string>",
"email": "jsmith@example.com",
"phone": "<string>",
"fax": "<string>",
"company": "<string>",
"tax_id": "<string>",
"full": "<string>"
},
"to_address": {
"address_name": "<string>",
"location_type": "<string>",
"entity_reference": "<string>",
"salutation": "<string>",
"first_name": "<string>",
"last_name": "<string>",
"line1": "<string>",
"line2": "<string>",
"line3": "<string>",
"street_name": "<string>",
"house_number": "<string>",
"city": "<string>",
"postal_code": "<string>",
"state_or_province": "<string>",
"region": "<string>",
"country": "<string>",
"country_code": "<string>",
"email": "jsmith@example.com",
"phone": "<string>",
"fax": "<string>",
"company": "<string>",
"tax_id": "<string>",
"full": "<string>"
},
"from_address": {
"address_name": "<string>",
"location_type": "<string>",
"entity_reference": "<string>",
"salutation": "<string>",
"first_name": "<string>",
"last_name": "<string>",
"line1": "<string>",
"line2": "<string>",
"line3": "<string>",
"street_name": "<string>",
"house_number": "<string>",
"city": "<string>",
"postal_code": "<string>",
"state_or_province": "<string>",
"region": "<string>",
"country": "<string>",
"country_code": "<string>",
"email": "jsmith@example.com",
"phone": "<string>",
"fax": "<string>",
"company": "<string>",
"tax_id": "<string>",
"full": "<string>"
},
"return_address": {
"address_name": "<string>",
"location_type": "<string>",
"entity_reference": "<string>",
"salutation": "<string>",
"first_name": "<string>",
"last_name": "<string>",
"line1": "<string>",
"line2": "<string>",
"line3": "<string>",
"street_name": "<string>",
"house_number": "<string>",
"city": "<string>",
"postal_code": "<string>",
"state_or_province": "<string>",
"region": "<string>",
"country": "<string>",
"country_code": "<string>",
"email": "jsmith@example.com",
"phone": "<string>",
"fax": "<string>",
"company": "<string>",
"tax_id": "<string>",
"full": "<string>"
},
"shipment_value": {
"amount": 123,
"currency": "<string>"
},
"total_shipping_cost": {
"amount": 123,
"currency": "<string>"
},
"shipping_costs": [
{
"name": "<string>",
"reference": "<string>",
"unit_quantity": 123,
"unit_cost": {
"amount": 123,
"currency": "<string>"
},
"total_cost": {
"amount": 123,
"currency": "<string>"
}
}
],
"cod_value": {
"amount": 123,
"currency": "<string>"
},
"dimensions": {
"length": 123,
"width": 123,
"height": 123,
"unit": "<string>"
},
"weight": {
"amount": 123,
"unit": "<string>"
},
"linked_shipments": [
{
"tracking_number": "<string>",
"carrier_reference": "<string>",
"carrier": {
"id": "<string>",
"name": "<string>",
"country_iso": [
"<string>"
],
"language": [
"<string>"
],
"supported_languages": [
"<string>"
],
"contact": "<string>",
"site_link": "<string>"
}
}
],
"expected_delivery": {
"from": "<string>",
"to": "<string>"
},
"payment_type": "<string>",
"item_count": 123,
"packaging_type": "<string>",
"note": "<string>",
"shipping_service": "<string>",
"description_of_goods": "<string>",
"handling_instructions": "<string>",
"sales_channel": "<string>",
"documents": [
{
"document_uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"document_id": "<string>",
"name": "<string>",
"type": "<string>",
"file_format": "<string>",
"created_date": "<string>",
"additional_info": {}
}
],
"all_events": [
{
"event": "<string>",
"event_key": "<string>",
"phase": "<string>",
"phase_key": "<string>",
"time": "<string>",
"timezone": "<string>",
"carrier_name": "<string>",
"location": {
"place": "<string>",
"full": "<string>",
"formatted_address": "<string>",
"location_type": "<string>",
"line1": "<string>",
"line2": "<string>",
"line3": "<string>",
"postal_code": "<string>",
"city": "<string>",
"state_or_province": "<string>",
"region": "<string>",
"country": "<string>",
"country_code": "<string>",
"longitude": "<string>",
"latitude": "<string>",
"timezone": "<string>"
},
"additional_info": {}
}
],
"additional_info": {},
"shipment_type": "<string>",
"returns": {
"order_id": "<string>",
"id": "<string>",
"return_id": "<string>",
"return_status": "pending approval",
"total_refund_amount": "<string>",
"refund_is_calculated": true,
"comment": "<string>",
"return_proofs": [
{
"url": "<string>",
"file_name": "<string>"
}
],
"requested_date": "<string>",
"updated_at": "<string>",
"reject_reason": "<string>",
"refund_method": "<string>",
"return_method": "<string>",
"cost_of_return": "<string>",
"cost_is_calculated": true,
"additional_cost": "<string>",
"internal_notes": "<string>",
"approver_email": "<string>",
"booking_id": "<string>",
"shipment_pk": 123
},
"line_items": [
{
"product_name": "<string>",
"product_id": "<string>",
"product_reference": "<string>",
"product_category": "<string>",
"product_description": "<string>",
"product_origin_country_code": "<string>",
"hs_code": "<string>",
"customs_description": "<string>",
"quantity": 1,
"product_image_url": "<string>",
"product_url": "<string>",
"product_weight": 1,
"product_weight_unit": "<string>",
"line_item_weight": 1,
"line_item_weight_unit": "<string>",
"currency_code": "<string>",
"product_cost": 1,
"subtotal_cost": 1,
"discount_amount": 1,
"tax_amount": 1,
"misc_cost": 1,
"total_price": 1,
"return_id": "<string>",
"return_reason": "<string>",
"additional_info": {}
}
],
"collection_point": {
"uuid": "<string>",
"collection_point_identifier": "<string>",
"address": {},
"status": "<string>",
"lat": 123,
"lng": 123,
"operating_hours_calc": [
{
"service_name": "<string>",
"operating_day": "<string>",
"time_zone": "<string>",
"first_open_hours": "<string>",
"second_open_hours": "<string>",
"first_cutoff": "<string>",
"second_cutoff": "<string>"
}
],
"additional_info": {},
"updated_date": "<string>"
},
"rating": {
"id": "<string>",
"value": 123,
"categories": [
"<string>"
],
"comment": "<string>"
},
"parcel_recipient_information": "<string>",
"pod_url": "<string>"
}
}{
"api_response": "<string>",
"message": "<string>",
"errors": {}
}{
"api_response": 403,
"message": "Key not authorized"
}{
"api_response": "<string>",
"message": "<string>"
}{
"api_response": 429,
"message": "Throttled"
}{
"api_response": "500",
"message": "System error"
}Authorizations
Used by every functional endpoint. Generate the token with POST /auth/oauth/token/ and send it as Authorization: Bearer {token}.
Query Parameters
Perform.AI identifier of the Shipment. Provide either shipment_uuid or shipment_id.
Your identifier of the Shipment. Provide either shipment_uuid or shipment_id.
Maximum string length:
50⌘I
Retrieve Shipment Details (v5.2)
curl --request GET \
--url https://api.perform.ai/v5-2-0/shipment/details/ \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.perform.ai/v5-2-0/shipment/details/"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.perform.ai/v5-2-0/shipment/details/', 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://api.perform.ai/v5-2-0/shipment/details/",
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://api.perform.ai/v5-2-0/shipment/details/"
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://api.perform.ai/v5-2-0/shipment/details/")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.perform.ai/v5-2-0/shipment/details/")
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{
"api_response": "<string>",
"data": {
"shipment_uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"shipment_id": "<string>",
"shipment_reference": "<string>",
"additional_reference": "<string>",
"tracking_number": "<string>",
"carrier_reference": "<string>",
"carrier": {
"id": "<string>",
"name": "<string>",
"country_iso": [
"<string>"
],
"language": [
"<string>"
],
"supported_languages": [
"<string>"
],
"contact": "<string>",
"site_link": "<string>"
},
"created_date": "<string>",
"updated_date": "<string>",
"source": "<string>",
"status": "<string>",
"current_phase": {
"name": "<string>",
"key": "<string>"
},
"tags": [
"<string>"
],
"notification_email": [
"<string>"
],
"notification_phone": [
"<string>"
],
"tracking_page_reference": "<string>",
"order": {
"order_uuid": "<string>",
"order_id": "<string>",
"order_reference": "<string>",
"source_type": "<string>",
"source_name": "<string>",
"created_date": "<string>",
"updated_date": "<string>"
},
"recipient_address": {
"address_name": "<string>",
"location_type": "<string>",
"entity_reference": "<string>",
"salutation": "<string>",
"first_name": "<string>",
"last_name": "<string>",
"line1": "<string>",
"line2": "<string>",
"line3": "<string>",
"street_name": "<string>",
"house_number": "<string>",
"city": "<string>",
"postal_code": "<string>",
"state_or_province": "<string>",
"region": "<string>",
"country": "<string>",
"country_code": "<string>",
"email": "jsmith@example.com",
"phone": "<string>",
"fax": "<string>",
"company": "<string>",
"tax_id": "<string>",
"full": "<string>"
},
"sender_address": {
"address_name": "<string>",
"location_type": "<string>",
"entity_reference": "<string>",
"salutation": "<string>",
"first_name": "<string>",
"last_name": "<string>",
"line1": "<string>",
"line2": "<string>",
"line3": "<string>",
"street_name": "<string>",
"house_number": "<string>",
"city": "<string>",
"postal_code": "<string>",
"state_or_province": "<string>",
"region": "<string>",
"country": "<string>",
"country_code": "<string>",
"email": "jsmith@example.com",
"phone": "<string>",
"fax": "<string>",
"company": "<string>",
"tax_id": "<string>",
"full": "<string>"
},
"to_address": {
"address_name": "<string>",
"location_type": "<string>",
"entity_reference": "<string>",
"salutation": "<string>",
"first_name": "<string>",
"last_name": "<string>",
"line1": "<string>",
"line2": "<string>",
"line3": "<string>",
"street_name": "<string>",
"house_number": "<string>",
"city": "<string>",
"postal_code": "<string>",
"state_or_province": "<string>",
"region": "<string>",
"country": "<string>",
"country_code": "<string>",
"email": "jsmith@example.com",
"phone": "<string>",
"fax": "<string>",
"company": "<string>",
"tax_id": "<string>",
"full": "<string>"
},
"from_address": {
"address_name": "<string>",
"location_type": "<string>",
"entity_reference": "<string>",
"salutation": "<string>",
"first_name": "<string>",
"last_name": "<string>",
"line1": "<string>",
"line2": "<string>",
"line3": "<string>",
"street_name": "<string>",
"house_number": "<string>",
"city": "<string>",
"postal_code": "<string>",
"state_or_province": "<string>",
"region": "<string>",
"country": "<string>",
"country_code": "<string>",
"email": "jsmith@example.com",
"phone": "<string>",
"fax": "<string>",
"company": "<string>",
"tax_id": "<string>",
"full": "<string>"
},
"return_address": {
"address_name": "<string>",
"location_type": "<string>",
"entity_reference": "<string>",
"salutation": "<string>",
"first_name": "<string>",
"last_name": "<string>",
"line1": "<string>",
"line2": "<string>",
"line3": "<string>",
"street_name": "<string>",
"house_number": "<string>",
"city": "<string>",
"postal_code": "<string>",
"state_or_province": "<string>",
"region": "<string>",
"country": "<string>",
"country_code": "<string>",
"email": "jsmith@example.com",
"phone": "<string>",
"fax": "<string>",
"company": "<string>",
"tax_id": "<string>",
"full": "<string>"
},
"shipment_value": {
"amount": 123,
"currency": "<string>"
},
"total_shipping_cost": {
"amount": 123,
"currency": "<string>"
},
"shipping_costs": [
{
"name": "<string>",
"reference": "<string>",
"unit_quantity": 123,
"unit_cost": {
"amount": 123,
"currency": "<string>"
},
"total_cost": {
"amount": 123,
"currency": "<string>"
}
}
],
"cod_value": {
"amount": 123,
"currency": "<string>"
},
"dimensions": {
"length": 123,
"width": 123,
"height": 123,
"unit": "<string>"
},
"weight": {
"amount": 123,
"unit": "<string>"
},
"linked_shipments": [
{
"tracking_number": "<string>",
"carrier_reference": "<string>",
"carrier": {
"id": "<string>",
"name": "<string>",
"country_iso": [
"<string>"
],
"language": [
"<string>"
],
"supported_languages": [
"<string>"
],
"contact": "<string>",
"site_link": "<string>"
}
}
],
"expected_delivery": {
"from": "<string>",
"to": "<string>"
},
"payment_type": "<string>",
"item_count": 123,
"packaging_type": "<string>",
"note": "<string>",
"shipping_service": "<string>",
"description_of_goods": "<string>",
"handling_instructions": "<string>",
"sales_channel": "<string>",
"documents": [
{
"document_uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"document_id": "<string>",
"name": "<string>",
"type": "<string>",
"file_format": "<string>",
"created_date": "<string>",
"additional_info": {}
}
],
"all_events": [
{
"event": "<string>",
"event_key": "<string>",
"phase": "<string>",
"phase_key": "<string>",
"time": "<string>",
"timezone": "<string>",
"carrier_name": "<string>",
"location": {
"place": "<string>",
"full": "<string>",
"formatted_address": "<string>",
"location_type": "<string>",
"line1": "<string>",
"line2": "<string>",
"line3": "<string>",
"postal_code": "<string>",
"city": "<string>",
"state_or_province": "<string>",
"region": "<string>",
"country": "<string>",
"country_code": "<string>",
"longitude": "<string>",
"latitude": "<string>",
"timezone": "<string>"
},
"additional_info": {}
}
],
"additional_info": {},
"shipment_type": "<string>",
"returns": {
"order_id": "<string>",
"id": "<string>",
"return_id": "<string>",
"return_status": "pending approval",
"total_refund_amount": "<string>",
"refund_is_calculated": true,
"comment": "<string>",
"return_proofs": [
{
"url": "<string>",
"file_name": "<string>"
}
],
"requested_date": "<string>",
"updated_at": "<string>",
"reject_reason": "<string>",
"refund_method": "<string>",
"return_method": "<string>",
"cost_of_return": "<string>",
"cost_is_calculated": true,
"additional_cost": "<string>",
"internal_notes": "<string>",
"approver_email": "<string>",
"booking_id": "<string>",
"shipment_pk": 123
},
"line_items": [
{
"product_name": "<string>",
"product_id": "<string>",
"product_reference": "<string>",
"product_category": "<string>",
"product_description": "<string>",
"product_origin_country_code": "<string>",
"hs_code": "<string>",
"customs_description": "<string>",
"quantity": 1,
"product_image_url": "<string>",
"product_url": "<string>",
"product_weight": 1,
"product_weight_unit": "<string>",
"line_item_weight": 1,
"line_item_weight_unit": "<string>",
"currency_code": "<string>",
"product_cost": 1,
"subtotal_cost": 1,
"discount_amount": 1,
"tax_amount": 1,
"misc_cost": 1,
"total_price": 1,
"return_id": "<string>",
"return_reason": "<string>",
"additional_info": {}
}
],
"collection_point": {
"uuid": "<string>",
"collection_point_identifier": "<string>",
"address": {},
"status": "<string>",
"lat": 123,
"lng": 123,
"operating_hours_calc": [
{
"service_name": "<string>",
"operating_day": "<string>",
"time_zone": "<string>",
"first_open_hours": "<string>",
"second_open_hours": "<string>",
"first_cutoff": "<string>",
"second_cutoff": "<string>"
}
],
"additional_info": {},
"updated_date": "<string>"
},
"rating": {
"id": "<string>",
"value": 123,
"categories": [
"<string>"
],
"comment": "<string>"
},
"parcel_recipient_information": "<string>",
"pod_url": "<string>"
}
}{
"api_response": "<string>",
"message": "<string>",
"errors": {}
}{
"api_response": 403,
"message": "Key not authorized"
}{
"api_response": "<string>",
"message": "<string>"
}{
"api_response": 429,
"message": "Throttled"
}{
"api_response": "500",
"message": "System error"
}