LateShipment.com API Documentation - OneTrack

Modified on: Wed, 29 Jul, 2026 at 11:54 AM

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

Header Key

Type

Description

 

X-Auth-Email

String

Registered LateShipment email address.

X-Auth-Key

String

API authentication key.

X-Auth-trackno

String

Shipment tracking number.

Content-Type

String

application/json


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

Header Key

Type

Description / Sample

 

X-Auth-Email

String

Registered LateShipment email address.

X-Auth-Key

String

API authentication key.

X-Auth-trackno

String

Single tracking number (e.g., 123456)

Content-Type

String

application/json


Option B: Multiple Tracking Numbers

Header Key

Type

Description / Sample

 

X-Auth-Email

String

Registered LateShipment email address.

X-Auth-Key

String

API authentication key.

X-Auth-trackno

String

Comma-separated tracking numbers (e.g., 123456,123456A,123456AB)

Content-Type

String

application/json


Option C: Date Range Filter

Header Key

Type

Description / Sample

 

X-Auth-Email

String

Registered LateShipment email address.

X-Auth-Key

String

API authentication key.

X-Auth-from-date

Date

Start date for filtering results (e.g., YYYY-MM-DD)

X-Auth-to-date

Date

End date for filtering results (e.g., YYYY-MM-DD)

Content-Type

String

application/json


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

Header Key

Type

Description

 

X-Auth-Email

String

Registered LateShipment email address.

X-Auth-Key

String

API authentication key.

X-Auth-trackno

String

Shipment tracking number.

X-lost-damage

String

Status code indicating claim type.

X-carrier-type

String

Carrier name / identifier.


Status Codes for X-lost-damage

Status Code

Description

 

L

Lost

D

Damage

T

Lost in Transit

W

Delivered to Wrong Address

I

In Transit


Body Parameters (JSON Base64 Encoded)

Parameter

Requirement

Description

 

package_img_one

Mandatory (*)

Base64-encoded string of primary package image.

purchase_inv

Mandatory (*)

Base64-encoded string of purchase invoice.

package_img_two

Optional

Base64-encoded string of secondary package image.


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

Header Key

Value / Description

 

Accept

*/*

Cache-Control

no-cache

Connection

keep-alive

Content-Type

application/json

X-Auth-Key

API Key (e.g., XXXXXX)

X-Auth-email

Registered Email (e.g., XXXX@XX.XX)



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

Result Status

HTTP Status

Message / Description

 

Success

200 OK

Request Received Successfully

Failed

409 Conflict

Order Number, Trackingnumber, Carrier Type should not be empty

Failed

409 Conflict

Invalid Data Format (JSON) / Invalid JSON format

Failed

401 Unauthorized

Authorization Header Error. Check Your Authorization Email and Authorization Key

Failed

400 Bad Request

Authorization Header Error. Content-Type : application/json only accepted

Failed

400 Bad Request

Authorization Header Error. Authorization Email and Authorization Key Required



Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article