LateShipment.com API Documentation
OneTrack & Webhook Integration Specifications
This document provides technical integration specifications for LateShipment.com APIs, covering real-time shipment tracking, lost and damage claim management, and order webhook synchronization.
1. Tracking API
Retrieve live tracking information for individual shipments.
Endpoint: https://smart.lateshipment.com/DEMapi/data_api.php
HTTP Method: GET / POST
Request Headers
2. Lost & Damage Status Fetch API
Fetch lost and damage claim statuses using single tracking, bulk tracking, or date filtering options.
Endpoint: https://smart.lateshipment.com/DEMapi/lostdamage_api.php
Option A: Single Tracking Number
Option B: Multiple Tracking Numbers
Option C: Date Range Filter
3. Lost & Damage Submission API
Submit lost and damage claims with associated proof documents.
Endpoint: https://smart.lateshipment.com/DEMapi/lostdamage_submit_api.php
HTTP Method: POST
Request Headers
Status Codes for X-lost-damage
Body Parameters (JSON Base64 Encoded)
Sample Request Body
{
"package_img_one": "+XXXX/XXXXXXXXX",
"purchase_inv": "XXXXXXXXXXXXXX"
}
4. Generic Webhook API
Push order and tracking details to LateShipment via single or bulk POST requests.
Request Headers
4.1 Single Order Webhook
Endpoint: https://smart.lateshipment.com/Genericwebhook/webhookapi.php
HTTP Method: POST
PHP cURL Implementation
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "https://smart.lateshipment.com/Genericwebhook/webhookapi.php");
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $json_data);
$headers = [
"Accept: */*",
"Cache-Control: no-cache",
"Connection: keep-alive",
"Content-Type: application/json",
"X-Auth-Key: XXXXXX",
"X-Auth-email: XXXX@XX.XX"
];
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$server_output = curl_exec($ch);
print_r($server_output);
curl_close($ch);
Single Order JSON Payload Schema
{
"order_no": "<< Order No >>",
"order_date": "<< Order Date >>",
"customer_name": "<< Customer Name >>",
"customer_email": "<< Customer Email >>",
"customer_phoneno": "<< Customer Phone Number >>",
"trackingnumber": "<< Tracking Number >>",
"carrier_type": "<< Carrier Type >>",
"product": "<< Product Name >>",
"productid": "<< Product Id >>",
"quantity": "<< Quantity >>",
"image_url": "<< Image Url >>",
"product_price": "<< Product Space >>",
"subtotal_amount": "<< Subtotal Amount >>",
"shipping_amount": "<< Shipping Amount >>",
"payment_status": "<< Payment Status >>",
"package_status": "<< Package Status >>",
"amount": "<< Amount >>",
"Number_of_items": "<< Number of items >>",
"shipping_name": "<< Shipping Name >>",
"shipping_street": "<< Shipping Street >>",
"shipping_city": "<< Shipping City >>",
"shipping_state": "<< Shipping State >>",
"shipping_zip": "<< Shipping Zip >>",
"shipping_country": "<< Shipping Country >>",
"billing_name": "<< Billing Name >>",
"billing_street": "<< Billing Street >>",
"billing_city": "<< Billing City >>",
"billing_state": "<< Billing State >>",
"billing_zip": "<< Billing Zip >>",
"billing_country": "<< Billing Country >>"
}
4.1.1 Single Product Payload
{
"order_no": "ORD-100294",
"order_date": "2026-07-29 14:30:00",
"customer_name": "Jane Doe",
"customer_email": "jane@example.com",
"customer_phoneno": "+15551234567",
"trackingnumber": "1Z9999999999999999",
"carrier_type": "UPS",
"product": "Product A Name",
"productid": "SKU-001",
"quantity": "2",
"image_url": "https://example.com/p1.jpg",
"product_price": "29.99",
"subtotal_amount": "104.45",
"shipping_amount": "5.00",
"payment_status": "Paid",
"package_status": "Shipped",
"amount": "109.45",
"Number_of_items": "3",
"shipping_name": "Jane Doe",
"shipping_street": "123 Main Street",
"shipping_city": "Austin",
"shipping_state": "TX",
"shipping_zip": "78701",
"shipping_country": "US",
"billing_name": "Jane Doe",
"billing_street": "123 Main Street",
"billing_city": "Austin",
"billing_state": "TX",
"billing_zip": "78701",
"billing_country": "US"
}
4.1.2 Multi Product Payload
{
"order_no": "ORD-100294",
"order_date": "2026-07-29 14:30:00",
"customer_name": "Jane Doe",
"customer_email": "jane@example.com",
"customer_phoneno": "+15551234567",
"trackingnumber": "1Z9999999999999999",
"carrier_type": "UPS",
"product": "Product A Name, Product B Name, Product C Name",
"productid": "SKU-001, SKU-002, SKU-003",
"quantity": "2, 1, 3",
"image_url": "https://example.com/p1.jpg, https://example.com/p2.jpg, https://example.com/p3.jpg",
"product_price": "29.99, 14.50, 9.99",
"subtotal_amount": "104.45",
"shipping_amount": "5.00",
"payment_status": "Paid",
"package_status": "Shipped",
"amount": "109.45",
"Number_of_items": "3",
"shipping_name": "Jane Doe",
"shipping_street": "123 Main Street",
"shipping_city": "Austin",
"shipping_state": "TX",
"shipping_zip": "78701",
"shipping_country": "US",
"billing_name": "Jane Doe",
"billing_street": "123 Main Street",
"billing_city": "Austin",
"billing_state": "TX",
"billing_zip": "78701",
"billing_country": "US"
}
4.2 Bulk Orders Webhook
Endpoint: https://smart.lateshipment.com/Genericwebhookbulk/webhookapi_bulk.php
HTTP Method: POST
Bulk Orders JSON Payload Schema
{
"tracking": [
{
"order_no": "ORD-100293",
"order_date": "2026-07-29 14:00:00",
"customer_name": "Jane Doe",
"customer_email": "jane@example.com",
"customer_phoneno": "+15551234567",
"trackingnumber": "1Z9999999999999999",
"carrier_type": "UPS",
"product": "Product A Name",
"productid": "SKU-001",
"quantity": "1",
"image_url": "https://example.com/p1.jpg",
"product_price": "29.99",
"subtotal_amount": "29.99",
"shipping_amount": "5.00",
"payment_status": "Paid",
"package_status": "Shipped",
"amount": "34.99",
"Number_of_items": "1",
"shipping_name": "Jane Doe",
"shipping_street": "123 Main Street",
"shipping_city": "Austin",
"shipping_state": "TX",
"shipping_zip": "78701",
"shipping_country": "US",
"billing_name": "Jane Doe",
"billing_street": "123 Main Street",
"billing_city": "Austin",
"billing_state": "TX",
"billing_zip": "78701",
"billing_country": "US"
},
{
"order_no": "ORD-100294",
"order_date": "2026-07-29 14:30:00",
"customer_name": "John Smith",
"customer_email": "john@example.com",
"customer_phoneno": "+15559876543",
"trackingnumber": "9400100000000000000000",
"carrier_type": "USPS",
"product": "Product A Name, Product B Name",
"productid": "SKU-001, SKU-002",
"quantity": "2, 1",
"image_url": "https://example.com/p1.jpg, https://example.com/p2.jpg",
"product_price": "29.99, 14.50",
"subtotal_amount": "74.48",
"shipping_amount": "5.00",
"payment_status": "Paid",
"package_status": "Shipped",
"amount": "79.48",
"Number_of_items": "2",
"shipping_name": "John Smith",
"shipping_street": "456 Market Street",
"shipping_city": "San Francisco",
"shipping_state": "CA",
"shipping_zip": "94105",
"shipping_country": "US",
"billing_name": "John Smith",
"billing_street": "456 Market Street",
"billing_city": "San Francisco",
"billing_state": "CA",
"billing_zip": "94105",
"billing_country": "US"
}
]
}
4.3 Response Status Codes & Error Handling for Webhook
Was this article helpful?
That’s Great!
Thank you for your feedback
Sorry! We couldn't be helpful
Thank you for your feedback
Feedback sent
We appreciate your effort and will try to fix the article
