You are using an unsupported browser. Please update your browser to the latest version on or before July 31, 2020.
close

How do I connect my in-house order management system with my LateShipment.com account?

You can connect your API enabled in-house order processing system to push data to your LateShipment.com account when you create a label for the shipment.

Add the following code to your server. Your account contains a unique API key to ensure the data you share with us is done securely. Enter your account's API key in the request along with the email address associated with your LateShipment.com account.

    url = "https://smart.lateshipment.com/Genericwebhook/webhookapi.php"
    payload = "<< JSON Data >>"
    headers = {
        'X-Auth-Email': "demo1@lateshipment.com",
        'X-Auth-Key': "308473bc1fff0454ce6831ab3",
        'Content-Type': "application/json"
    }

    response = requests.request("POST", url, data=payload, headers=headers)
    print(response.text)

At the event of Label Creation for every order, you would need to deliver a JSON payload in the body of a POST request.

Required Parameters

Parameter Description
API Key X digit API key generated by the user
Authorization Email Customer Authorization Email
Request Body JSON Data in required format

JSON Data Format

    {
    "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 >>",
    "amount":"<< Amount >>",
    "number_of_items":"<< Number of Items >>",
    "shipping_address":"<< shipper address >>",
    "billing_address":"<< Billing address >>"
    }

Sample Request:

    {
    "order_no":"54321",
    "order_date":"2019-07-25 19:08:49",
    "customer_name":"User Name",
    "customer_email":"user@example.com",
    "customer_phoneno":"1234567890",
    "trackingnumber":"123456789123456789",
    "carrier_type":"UPS",
    "product":"Chin Cup For Softball Face Mask",
    "amount":"9.99",
    "number_of_items":"2",
    "shipping_address":"Lacy Bailey,14 Lingo Rd,greenbrier,us 72058-8501",
    "billing_address":"Lacy Bailey,14 Lingo Rd,greenbrier,us 72058-8501"
    }

Sample Response:

    {
    "message":"Request Received Successfully",
    "status":"Success"
    }

HTTP Status codes

Result Status Message
Success Success(200 OK) Request Received Successfully
Order Details Not Found Failed(409 Conflict) Order Number,Trackingnumber,Carrier Type should not be empty
Invalid Data Format (JSON) Failed(409 Conflict) Invalid JSON format
Invalid API Key / Invalid Authorization Email Failed(401 Unauthorized) Authorization Header Error. Check Your Authorization Email and Authorization Key
Content-Type Error Failed(400 Bad Request) Authorization Header Error. Content-Type : application/json only accepted
API Key / Authorization Email Not Found Failed(400 Bad Request) Authorization Header Error. Authorization Email and Authorization Key Required
  • 48
  • 23-Nov-2020
  • 115 Views

A Four-fold Advantage In One Simple Tool

Shipping Cost Savings

Save up to 20% with automated refunds for 50+ service failures & billing errors including late & lost deliveries.

Delivery Support Dashboard

Get predictive alerts for parcel delays, promptly intervene and proactively take action before customer impact

Customer Delivery Notifications

Send custom or automated customer notifications to for shipping events like “shipped, attempted & delivered”.

Branded Tracking Pages

Build fully-customizable order tracking pages for your customers to improve your brand’s recall and sales.

What are you waiting for?