Skip to main content

Shipment Booking

This service allows you to book a single shipment.

Do not forget to authenticate your request,

Request body Parameters

Shipment Parameters

Request Parameters
ParameterRequiredTypeRulesDescription
referenceNoStringShipment reference
shipperNameYesStringMust be alphanumeric and must be between 3 and 32 characters longShipper Name
shipperPhoneYesStringMust be a valid phone numberShipper phone Number
shipperCountryYesStringMust be an iso 2 digit country codeShipper country
shipperStateYesStringMust be alphanumericShipper State/Province
shipperCityYesStringMust be alphanumericShipper City
shipperPostCodeYesStringMust be alphanumericShipper Post Code
shipperAddress1YesStringMust be alphanumeric and must be between 5 and 32 characters longShipper Address Line 1
shipperAddress2NoStringMust be alphanumeric and must be between 5 and 32 characters longShipper Address Line 2
consigneeNameYesStringMust be alphanumeric and must be between 3 and 32 characters longConsignee Name
consigneePhoneYesStringMust be a valid phone numberConsignee Phone Number
consigneeCountryYesStringMust be an iso 2 digit country codeConsignee country
consigneeStateYesStringMust be alphanumericConsignee State/Province
consigneeCityYesStringMust be alphanumericConsignee City
consigneePostCodeYesStringMust be alphanumericConsignee Post Code
consigneeAddress1YesStringMust be alphanumeric and must be between 5 and 32 characters longConsignee Address Line 1
consigneeAddress2NoStringMust be alphanumeric and must be between 5 and 32 characters longConsignee Address Line 2
packageTypeYesStringMust be either 'PACKAGE' or 'DOCUMENT'Shipment Package Type
serviceCodeNoStringIf your account is set to direct booking, then this is required.Shipment Service Code
currencyYesStringMust be a valid ISO 4217 currency codeShipment deceleration currency
itemsYesArrayCheck Items TableShipment Product Information
boxesYesArrayCheck Boxes TableShipment Box Information

Items

Items Parameters

Items are the products that you would like to ship.

ParameterRequiredTypeRulesDescription
hsYesStringMust be numerical and between 5 and 12 digits longProduct HS Code
descriptionYesStringMust be alphanumerical and between 3 and 32 characters longProduct Description
valueYesNumberMust be numberProduct Value
quantityYesNumberMust be numberProduct Quantity
weightYesNumberMust be number, Must be in KGProduct Weight

Boxes

Box Parameters

Boxes are considered the wrapping containers of your products. The total quantity of boxes will dictate how many labels you will get to print.

ParameterRequiredTypeRulesDescription
widthYesNumberMust be number, Must be in CMBox Width
lengthYesNumberMust be number, Must be in CMBox Length
heightYesNumberMust be number, Must be in CMBox Height
weightYesNumberMust be number, Must be in KGBox Weight
quantityYesNumberMust be numberBox Quantity

Document

Documents Shipment

If your shipment is a document, make sure that you set the packageType as 'DOCUMENT', and use the bellow items and boxes as an example.
If you would like to ship all of your documents together, Use one box object and set the dimensions as the largest document dimensions. Use the total weight of all of your documents.

  "items": [
{
"hs": "48021000", // Use this HS code
"description": "Certificate of birth", // Describe the document
"value": 10.2, // Provide the appropriate value
"quantity": 2, // Provide the number of documents
"weight": 0.4 // Provide the appropriate weight
}
],
"boxes": [
{
"width": 20, // Provide the dimensions of your document
"length": 15, // Provide the dimensions of your document
"height": 15, // Provide the dimensions of your document
"weight": 1, // Provide the appropriate weight
"quantity": 1 // Provide the number of your documents
}
]

Request

Request URL :

https://srv.eliexpress.com.tr/api/v2/client-integration/new-shipment

Request Method :

POST

Content-Type :

application/json

Request Body :

{
"shipment": {
"reference": "ABCD123456789",
"shipperName": "John Doe",
"shipperPhone": "902124703737",
"shipperCountry": "TR",
"shipperState": "Istanbul",
"shipperCity": "Kucukcekmece",
"shipperPostCode": "34303",
"shipperAddress1": "Halkali Merkez Mahallesi",
"shipperAddress2": "Tuna Caddesi, Hekim Sokak No:16",
"consigneeName": "Jane Doe",
"consigneePhone": "61212345678",
"consigneeCountry": "AU",
"consigneeState": "Queensland",
"consigneeCity": "Pimpama",
"consigneePostCode": "4209",
"consigneeAddress1": "Mrs Smith 98 Shirley Street",
"packageType": "PACKAGE",
"currency": "USD",
"items": [
{
"hs": "62171070",
"description": "Socks",
"value": 10.2,
"quantity": 2,
"weight": 0.4
}
],
"boxes": [
{
"width": 20,
"length": 15,
"height": 15,
"weight": 1,
"quantity": 1
}
],
serviceCode :"1"
}
}

Response

Response Body :

I your shipment booking was successful, the server will respond with a success true, and the tracking number of your shipment.

{
"success": true,
"message": "Shipment booking successful",
"trackingNumber": "ELI1654937293642O"
}

If you failed to authenticate the server will respond with a request unauthorized message.

{
"success": false,
"message": "Request Unauthorized"
}

If your shipment booking was unsuccessful, the server will response with a success false, and a list of errors.

{
"success": false,
"message": "Bad shipment data provided",
"errors": [
"Shipper name must be alphanumeric",
"Shipper state must be alphanumeric",
"Shipper city must be alphanumeric",
"Shipper postcode must be alphanumeric",
"Shipper address line 1 must be between 5 and 32 characters long",
"If provided, shipper address line 2 must be between 5 and 32 characters long",
"Consignee name must be between 3 and 32 characters long",
"Consignee country must be an iso 2 digit country code",
"Consignee state must be alphanumeric",
"Consignee city must be alphanumeric",
"Consignee postcode must be alphanumeric",
"Shipment package type must be either PACKAGE or DOCUMENT",
"Shipment deceleration currency must be a valid ISO 4217 currency code",
"Shipment item 1 HS code must be numerical",
"Shipment item 1 value must be a number",
"Shipment item 1 quantity must be a number",
"Shipment item 1 weight must be a number",
"Shipment box 1 weight must be a number",
"Shipment box 1 width must be a number",
"Shipment box 1 length must be a number",
"Shipment box 1 height must be a number",
"Shipment box 1 quantity must be a number"
]
}

Depending on your account type the server might respond with a success false stating that you do not have access to ship to that country. In that case please contact Eli in order to resolve this issue.

{
"success": false,
"message": "You do not have access to ship to this country, please contact eli if this is a problem"
}