Introduction

Welcome, The purpose of Lemonmode API documentation is to help user understand and make use of API calls to get tracking details for lemonmode tracking number.

Authentication

Making use of basic authentication, each request must include an authentication header, with a base-64 encoded value. Credentials for basic authentication is provided via mail

Code Example: 'Authorization: Basic [base64(username:password)]'

Throttling Limit

Throttle limit of API call is 25 hits per min.

APIs

API section covers all calls used for the operations as mentioned below-

Get Tracking Details

This call help us to retrieve all tracking details with respect to Lemonmode tracking Id or Order Number.

Input parameters- Lemonmode Tracking ID/ Order Number.

Url end point-

Sandbox-

For Lemonmode Tracking number-

https://lemonmode.com/sandbox?tracking_number={lemon mode tracking number}

For Order number-

https://lemonmode.com/sandbox?order_id={Order number}

Production-

For Lemonmode Tracking number-

https://lemonmode.com/operations?tracking_number={lemon mode tracking number}

For Order number-

https://lemonmode.com/operations?order_id={Order number}

Method-

GET

Tracking Status Description

Status
Description
LOC
Order Placed
LITU
Order Manifested
LRU
Shipment arrived at Hub
LTI
In Transit to India
LAE
Arrived at Europe Hub
LAI
Arrived in India
LUC
Under Custom Clearance
OP
Dispatched from Mumbai Hub
OM
Order Manifested
OC
Order Cancelled
PP
Order Picked Up
OD
Order Dispatched
OT
Order in Transit
OO
Order Out for Delivery
NDR
Failed Attempt at Delivery
DL
Order Delivered
RTO
Order Returned Back
RTO-OT
RTO in Transit
RTO-OO
RTO out for delivery
RTP
RTO Reached Pickrr Warehouse
RTD
Order Returned to Consignee
UD
Undelivered

Programming Languages

Section intro goes here. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Quisque finibus condimentum nisl id vulputate. Praesent aliquet varius eros interdum suscipit. Donec eu purus sed nibh convallis bibendum quis vitae turpis. Duis vestibulum diam lorem, vitae dapibus nibh facilisis a. Fusce in malesuada odio.

PHP

Code Example:



<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => 'https://lemonmode.com/operations?tracking_number=1710446256',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => 'GET',
CURLOPT_HTTPHEADER => array(
'Authorization: Basic [base64(username:password)]'
),
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;
?>

Java

Code Example:



OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
Request request = new Request.Builder()
  .url("https://lemonmode.com/operations?tracking_number=1710446256")
  .method("GET", null)
  .addHeader("Authorization", "Basic [base64(username:password)]")
  .build();
Response response = client.newCall(request).execute();

Python

Code Example:



import http.client
conn = http.client.HTTPSConnection("lemonmode.com")
payload = ""
headers = {
  "Authorization": "Basic [base64(username:password)]"
}
conn.request("GET", "/operations?tracking_number=1710446256", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))

CURL

Code Example:


	
curl --location --request GET 'https://lemonmode.com/operations?tracking_number=1710446256' \
--header 'Authorization: Basic [base64(username:password)]'

HTTP

Code Example:



GET /operations?tracking_number=1710446256 HTTP/1.1
Host: lemonmode.com
Authorization: Basic [base64(username:password)]

C#

Code Example:



var client = new RestClient('https://lemonmode.com/operations?tracking_number=1710446256');
client.Timeout = -1;
var request = new RestRequest(Method.GET);
request.AddHeader('Authorization', 'Basic [base64(username:password)]');
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);