Ekart B2C API Document
Ekart B2C API Document
Failure
1.1 Forward
Stage API URL - https://staging.ekartlogistics.com/v2/shipments/create
Production API URL - https://api.ekartlogistics.com/v2/shipments/create
Input Parameters
The section contains the description of all the fields available (including the optional fields)
in the create shipment API.
client_name Unique merchant code Client name should "Client name is null "
(Mandatory - YES) shared once at the time of not be blank “Invalid client name
client on-boarding by eKart <value>”
Client name should
be valid <value> is the value
sent in the payload
goods_category Must be one of the following If the field is passed, Goods category is
(Mandatory - NO) values: it should not be null either null or empty
1. ESSENTIAL or empty.
2. NON_ESSENTIAL Invalid goods
If not passed default value category, Provided
will be NON_ESSENTIAL value: <value>
<Service_leg> is
the value passed for
this field
service_types Must be one of the following Must be a valid No error. Value will
(Mandatory - NO) values: value be ignored
1. REGIONAL_HANDOVE
R
2. DELAYED_DISPATCH
Source - data section: Either one of location code or address in source and return sections is
mandatory.
Source - address
address_line2
(Mandatory - NO)
Return_location
Contains the details of the location whether the RTO shipments have to be returned. If neither
the location_code nor the address is present, source location will be considered as the
return_location.
address_line2
(Mandatory - NO)
Shipment Details
shipment_dimensions
First max value of LBH can be 75, second max value can be 55. Max volumetric weight
(L*B*H/6000) can be 21.25
Total_tax_value Total tax value of the given Should be a float total_tax_value is not
Mandatory - NO) shipment item. in correct format
Hsn HSN of the shipment item, Required if shipment hsn is not present
(Mandatory - NO) should be an 8 digit value value exceeds HSN value is invalid
50000
Order_id Order id for the shipment Should not be NULL Shipment Item
(Mandatory - YES) item (this corresponds to Attribute ORDER_ID
the order id provided by the is null"
ecommerce platform)
(Min Length- 6,
Alphanumeric)
Alphanumeric with /
and - are only
allowed
Handling Attributes
"shipment": {
"client_reference_id": "ABCD",
"tracking_id": "CLTC0000000001",
"shipment_value": 2000,
"shipment_dimensions": {
"length": {
"value": 1
},
"breadth": {
"value": 1
},
"height": {
"value": 1
},
"weight": {
"value": 1
}
},
"return_label_desc_1": "",
"return_label_desc_2": "",
"shipment_items": [
{
"product_id": "134883075",
"category": "Apparel",
"product_title": "Mast&HarbourBlackHandbag: Handbags",
"quantity": 1,
"cost": {
"total_sale_value": 500,
"total_tax_value": 100,
“tax_breakup”:{
“cgst”:0.0,
“sgst”:0.0,
“igst”:100.0
}
},
"seller_details": {
"seller_reg_name": "Seller Registered Legal Name",
“gstin_id”:””
},
“hsn” :””,
“ern”:””,
“discount”:0.0,
"item_attributes": [
{
"name": "order_id",
"value": "ABCD"
},
{
"name": "invoice_id",
"value": "INV1234"
},
{
"name": "item_dimensions",
"value": "l:b:h:w"
},
{
"name": "brand_name",
"value": "Peter England"
}
],
"handling_attributes": [
{
"name": "isFragile",
"value": "false"
},
{
"name": "isDangerous",
"value": "false"
}
]
}
]
}
}
]
}
]
}
Failure
1. Payload validation - 400 Response Status
{
"response": [
{
"tracking_id": "CLTC0000000001",
"status": "REQUEST_REJECTED",
"message": [
"Largest value of dimension exceeds max allowed value - 75.0"
]
}
],
"request_id": "4cd55a87-1c1e-4a8d-aa48-6410a3cb8d07"
}
1.2 Reverse
Stage API URL - https://staging.ekartlogistics.com/v2/shipments/create
Production API URL - https://api.ekartlogistics.com/v2/shipments/create
Input Parameters
The section contains the description of all the fields available (including the optional fields)
in the create shipment API for RVP shipments.
client_name Unique merchant code Client name should "Client name is null "
(Mandatory - YES) shared once at the time not be blank “Invalid client name
of client on-boarding by <value>”
eKart Client name should
be valid <value> is the value
sent in the payload
service_code is the
value sent for
service code
<Service_leg> is
the value passed for
this field
Source details: Either location_code or the address should be present. If both are
present, preference will be given to location_code over address.
Source - address
Destination: Location code of the facility where the item has to be returned. Either
location_code or the address should be present. If both are present, preference will be
given to location_code over address.
Destination - address
address_line2
(Mandatory - NO)
Shipment Details
shipment_dimensions
First max value of LBH can be 75, second max value can be 55. Max volumetric weight
(L*B*H/6000) can be 21.25
sub_reason
(Mandatory - NO)
},
"seller_details":{
"seller_reg_name":"Seller Registered Legal Name",
“gstin_id”:””
},
“hsn”:””,
“ern”:””,
“discount”:””,
"item_attributes":[
{
"name":"order_id",
"value":"ABCD"
},
{
"name":"invoice_id",
"value":"INV1234"
}
],
"pickup_info":{
"reason":"OTHER_REASON",
"sub_reason":"OTHER_REASON",
"reason_description":"Customer requested for Return"
},
"smart_checks":[
{
"item_title":"BodyTantrumSolidMen'sGreyTrackPants",
"checks":{
"D_DAMAGE_CTH_CHECK":{
"inputs":{
},
"is_mandatory":false
},
"M_BRAND_CHECK_ON_PRODUCT_FOOTWEAR":{
"inputs":{
"brand_name":"BodyTantrum"
},
"is_mandatory":true
},
"M_PRODUCT_IMAGE_COLOR_PATTERN_MATCH":{
"inputs":{
"item_image":"http: //www.abc.xyz"
},
"is_mandatory":true
},
"M_BRAND_CHECK_ON_PRODUCT_APPAREL":{
"inputs":{
"brand_name":"BodyTantrum"
},
"is_mandatory":true
},
"P_TAG_AVAILABLE_CHECK":{
"inputs":{
},
"is_mandatory":true
}
}
}
]
}
]
}
}
]
}
]
}
Failure
1. {
"request_id": "R02",
"response": [
{
"tracking_id": "CLTC0000000001",
"status": "REQUEST_REJECTED",
"message": "Reason for Request Rejection"
}
]
}
2. Rate limit Exceeded - 403 Response status
{
"forbidden": "Rate limit exceeded"
}
Response Codes:
200 - Request received
400 - Bad request (validation failed, message will contain the exact validation failed)
401 - Authorization failed
404 - Resource not found
403 - Forbidden (Rate limit exceeded)
500 - Service is down
hsPro1.2.1 Smart Checks
Input Parameters
The section contains the description of all the smart checks available in the create shipment
API for RVP shipments.
The payload will contain the information of smart check keys and their corresponding inputs
along with if the check is mandatory.
Checks Inputs
M_BASIC_IMAGE_MATCH ITEM_IMAGE
M_PRODUCT_IMAGE_COLOR_PATTERN_MATCH ITEM_IMAGE
M_BRAND_CHECK_ON_PRODUCT_ALL BRAND_NAME
M_BRAND_CHECK_ON_PRODUCT_APPAREL BRAND_NAME
M_BRAND_CHECK_ON_TAG_ALL BRAND_NAME
M_BRAND_CHECK_ON_PRODUCT_FOOTWEAR BRAND_NAME
M_SIZE_CHECK_ON_PRODUCT_ALL SIZE
M_SIZE_CHECK_ON_PRODUCT_FOOTWEAR SIZE
M_SIZE_CHECK_ON_TAG_ALL SIZE
C_IMEI_CHECK IMEI_NO
M_BRAND_PRODUCT_TYPE_TV PRODUCT_TYPE_BRAND_NAME
M_PRODUCT_TYPE_CAPACITY_WM PRODUCT_TYPE_CAPACITY
M_PRODUCT_TYPE_CAPACITY_REF PRODUCT_TYPE_CAPACITY
M_PRODUCT_TYPE_REF PRODUCT_TYPE
M_PRODUCT_TYPE_TV PRODUCT_TYPE
M_PRODUCT_TYPE_WM PRODUCT_TYPE
M_SIZE_CHECK_TV SIZE
M_CAPACITY_CHECK_REF CAPACITY
M_CAPACITY_CHECK_WM CAPACITY
M_MODEL_CHECK MODEL_NAME
M_BRAND_CHECK_AC PRODUCT_TYPE_BRAND_NAME
M_TYPE_CHECK_AC PRODUCT_TYPE_CAPACITY
M_CAPACITY_AC CAPACITY
D_DAMAGE_CTH_CHECK null
D_STAIN_CHECK null
D_SCREEN_DAMAGE_CHECK null
D_MAJOR_BODY_DAMAGE_CHECK null
D_SWITCH_ON_CHECK null
D_BODY_DAMAGE_CHECK_LAPTOP_PREXO null
D_SCREEN_DAMAGE_TV null
D_BODY_DAMAGE_TV null
D_BODY_DAMAGE_REF null
D_BODY_DAMAGE_WM null
D_WORKING_CONDITION_TV null
D_WORKING_CONDITION_REF null
D_WORKING_CONDITION_WM null
D_BODY_DAMAGE_AC null
D_DISPLAY_PANEL_DAMAGE_CHECK_LAPTOP null
D_DISPLAY_ISSUE_CHECK_LAPTOP null
D_HINGES_DAMAGE_CHECK null
D_KEYS_MISSING_OR_DAMAGED_CHECK null
D_SCREEN_COMING_OUT_CHECK_MOBILE null
D_DISPLAY_ISSUE_CHECK_MOBILE null
D_BODY_DAMAGE_CRACKS_CHECK null
D_BODY_PARTS_MISSING_DAMAGED_CHECK null
D_BATTERY_BULGE_OR_BENT_CHECK null
D_FUNCTIONAL_CHECK null
D_BATTERY_MISSING_DAMAGED_CHECK null
D_RUST_DAMAGE_AC null
C_ICLOUD_LOCK_CHECK null
C_SERIAL_CHECK_LAPTOP_RVP SERIAL_NO
C_SERIAL_CHECK_LAPTOP_PREXO SERIAL_NO
C_SCREEN_LOCK_CHECK null
C_SIRI_CHECK null
C_LEGAL_INFO_CHECK null
C_SERIAL_CHECK_ON_BOX SERIAL_NO
C_SERIAL_CHECK SERIAL_NO
C_LAPTOP_PROCESSOR_CHECK PROCESSOR_TYPE
C_SERIAL_CHECK_ELECTRONICS SERIAL_NO
C_SERIAL_CHECK_LIFESTYLE SERIAL_NO
C_SERIAL_CHECK_WITHOUT_VALIDATION SERIAL_NO
C_SAMSUNG_FAKE_CHECK null
C_LAPTOP_DOA_SEAL_INTACT null
COMPLETION_CODE CODE
P_AVAILABILITY_CHECK ITEM_DESCRIPTION QUANTITY
P_TAG_AVAILABLE_CHECK null
P_BOX_AVAILABLE_CHECK null
P_BOX_CONDITION_CHECK null
P_WARRANTY_AVAILABLE_CHECK null
P_MRP_VALUE_CHECK MRP_VALUE
CHARGER_AVAILABLE_CHECK null
CHARGER_EARPHONE_AVAILABLE_CHECK null
P_DOA_SEAL_CHECK null
P_CHARGER_USB_AVAILABLE_CHECK ITEMS_NAME
P_BOX_AVAILABLE_CHECK_WITH_INPUT ITEM_NAME
COPPER_PIPE_AVAILABLE_CHECK_AC null
CHARGER_AVAILABLE_CHECK_WITH_INPUT ITEM_TYPE
P_QUANTITY_AC null
},
"is_mandatory": false
},
"D_STAIN_CHECK": {
"inputs": {
},
"is_mandatory": false
},
"M_BRAND_CHECK_ON_PRODUCT_FOOTWEAR": {
"inputs": {
"brand_name": "BodyTantrum"
},
"is_mandatory": true
},
"M_PRODUCT_IMAGE_COLOR_PATTERN_MATCH": {
"inputs": {
"item_image": "http: //www.abc.xyz"
},
"is_mandatory": true
},
"M_BRAND_CHECK_ON_PRODUCT_APPAREL": {
"inputs": {
"brand_name": "BodyTantrum"
},
"is_mandatory": true
},
"P_TAG_AVAILABLE_CHECK": {
"inputs": {
},
"is_mandatory": true
}
}
}]
}
Description
The HIH services include product exchange and replacement. The payload will contain the
information for both the forward and the reverse legs in case of HIH services. The
description of the fields have been covered in earlier sections.
},
"category":"Apparel",
"quantity":1,
"cost":{
"total_sale_value":500,
"total_tax_value":100,
"tax_breakup":{
"cgst":100,
"sgst":0,
"igst":0
}
},
"seller_details":{
"seller_reg_name":"Seller Registered Legal Name",
"gstin_id":""
},
"item_attributes":[
{
"name":"order_id",
"value":"ABCD"
},
{
"name":"invoice_id",
"value":"INV1234"
}
],
"smart_checks":[
{
"item_title":"BodyTantrumSolidMen'sGreyTrackPants",
"checks":{
"D_DAMAGE_CTH_CHECK":{
"inputs":{
},
"is_mandatory":false
},
"D_STAIN_CHECK":{
"inputs":{
},
"is_mandatory":false
},
"M_BRAND_CHECK_ON_PRODUCT_FOOTWEAR":{
"inputs":{
"brand_name":"BodyTantrum"
},
"is_mandatory":true
},
"M_BRAND_CHECK_ON_PRODUCT_APPAREL":{
"inputs":{
"brand_name":"BodyTantrum"
},
"is_mandatory":true
},
"P_TAG_AVAILABLE_CHECK":{
"inputs":{
},
"is_mandatory":true
}
}
}
]
}
]
}
}
]
}
]
}
Failure
Rate limit Exceeded - 403 Response status
{
"forbidden": "Rate limit exceeded"
}
3.1 Forward
Stage API URL - https://staging.ekartlogistics.com/v1/offerings
Production API URL - https://api.ekartlogistics.com/v1/offerings
Input Parameters
The section contains the description of all the fields available (including the optional fields)
in the serviceability and SLA API for Forward type shipment.
Should strictly be a
6 digit pincode
service_type Indicates the type of Should not be null Invalid service type
(Mandatory - Yes) service request. Should be or empty.
FORWARD
Failure
Rate limit Exceeded - 403 Response status
{
"forbidden": "Rate limit exceeded"
}
3.2 Reverse
Stage API URL - https://staging.ekartlogistics.com/v1/offerings
Production API URL - https://api.ekartlogistics.com/v1/offerings
Input Parameters
The section contains the description of all the fields available (including the optional fields)
in the serviceability and SLA API for Reverse type shipment.
Should strictly be a
6 digit pincode
seller_pincode Pincode of the seller Should not be null Both seller and RC
(Mandatory - One of location. or empty Pincode cannot be
seller_pincode or null.
rc_pincode is Should strictly be a
mandatory. If both 6 digit pincode Pincode is Invalid.
present rc_pincode will
be considered for
serviceability.)
rc_pincode Pincode of the location Should not be null Both seller and RC
(Mandatory - One of where the shipment will or empty Pincode cannot be
seller_pincode or be returned. null.
rc_pincode is Should strictly be a
mandatory. If both 6 digit pincode Pincode is Invalid
present rc_pincode will
be considered for
serviceability.)
3.3 Prexo/Replacement
Stage API URL - https://staging.ekartlogistics.com/v1/offerings
Production API URL - https://api.ekartlogistics.com/v1/offerings
Input Parameters
The section contains the description of all the fields available (including the optional fields)
in the serviceability and SLA API for Prexo/Replacement type shipment.
Should strictly be a
6 digit pincode
service_type Indicates the type of Should not be null Invalid service type
(Mandatory - Yes) service request. Should be or empty.
PREXO or REPLACEMENT
{
"reason": "",
"sub_reasons": [],
"request_id": null,
"vendor_tracking_id": "ABCC0001201928",
"merchant_reference_id": "ABCC0001201928",
"status": "delivered",
"shipment_type": "OutgoingShipment",
"remarks": "",
"merchant_code": "ABC",
"merchant_name": "ABC Corp.",
"event_date": "2019-01-27 20:47:52",
"expected_delivery_slot": {
"start_time": "2019-01-27 20:47:52",
"end_time": "2019-01-27 20:47:52",
},
"event_date": "2019-01-27 20:47:52",
"courier_name": "flipkartlogistics-cod",
"seller_id": "ABC",
"location": "fkl_Binola_ABC",
"event": "slot_update"
}
4. Cancel/RTO API
The create RTO API allows client to create an RTO for a shipment. This request will be
allowed if the shipment is not Out_for_delivery or if the shipment has not been already
delivered. This is not allowed for large post pickup
Headers-
HTTP_X_MERCHANT_CODE : (As shared by Ekart Team)
Authorization : Bearer <Token>
Failure
Rate limit Exceeded - 403 Response status
{
"forbidden": "Rate limit exceeded"
}
5. Cancel RVP API
Cancel RVP Api allows clients to Cancel RVP Pickups for a shipment. This request will be
allowed if the shipment is not picked. Cancellation won’t be allowed post pickups. Only
single shipment is applicable as part of a single RVP request.
Headers-
Failure
Bad Request 400
{
"request_id": "R04",
"response_details": [
{
"tracking_id": "<trackingId>",
"status": "REQUEST_REJECTED",
“message”: [“<error message>”]
}
]
}
This allows the client to update the dispatch_date if the client is passing the value of
delayed_dispatch flag as true in the create request. This is not allowed for large. Pls note
that if you are passing the delayed_dispatch flag as TRUE then the pickup date will be d+30.
Failure
Rate limit Exceeded - 403 Response status
{
"forbidden": "Rate limit exceeded"
}
6.2 RFR, Update Customer Contact, Update Customer Address
RFR:
{
"update_request_type": "RESCHEDULE_DELIVERY_DATE",
"update_request_details": {
"updated_delivery_date": "2022-11-04"
},
"tracking_id": "<tracking_id>"
}
Response
{
"request_id": "R08",
"response_details": [
{
"tracking_id": "CLTC0000000001",
"status": "REQUEST_RECEIVED/REQUEST_REJECTED",
"message": "Reason for Request Rejection"
}
]
}
7. Auth API
This allows the client to get a bearer token which will be used to authenticate all the other
APIs.
Success
{
"Authorization": "Bearer
eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJla2wtZHVyaW4tc3RhZ2UiLCJhdWQiOiJ7XCJ
tZXJjaGFudFwiOlwiTVlOXCJ9IiwiZ3JhbnRfdHlwZSI6ImNsaWVudF9jcmVkZW50aWFscyIsInNjb3
BlIjpbInVzZXIucHJvZmlsZSJdLCJpc3MiOiJodHRwOi8vMTAuMjQuMC4xNjUiLCJleHAiOjE2Mzc1Nz
k3NjYsImlhdCI6MTYzNzU3NjE2NiwianRpIjoiZTkzMTIyOGItYWE3Ni00YzU1LThkNzctYzhkNDU2Z
TZjOGI3IiwiY2xpZW50X2lkIjoiZWtsLWR1cmluLXN0YWdlIn0.B4mgv7m3fwUvdIZ5teq9WJblxooj
Ve4Pg-yvxzh3KWmKno_r-
XFTBUOAwjk4KxzNBa068NgJr3uxbLmObh22RPSHKiRl8adB85vsDjohHgt0iAvXv4QWIrF9fDbSg
W5nzRT1vPo-BtTu7QA1BupqLQb-_sUcWHfsuRFe1bmFq1iV-
nkzKdUPoL_w1rz89mY3Z6cqLUZ61KfzpRz6yR7A2gIw_HT31Tw5BUdcw435vAiVzdsMpYeFhl2E
cY0jJlN7eg8zBbacP-ObqUADyV8LBmMlY01of5eEJYeT6QOdZBEGaSbsaLv6-
LekES1NAETmLL2HoBmSXH0JlYMl13BEA"
}
Failure
Rate limit Exceeded - 403 Response status
{
"forbidden": "Rate limit exceeded"
}
Token Details:
a. Expiry Time - 60min. Request a new token before that or you will get unauthorised
response on all APIs