Add Order Intl
Order creation API will let you upload the order details where you can also create the multiple orders using a single request. System will not let you create an order in case of no proper validation.
Production URL
Parameter
Field | Type | Description | Mandatory |
---|---|---|---|
data | Json | Data is the package data which further categorize by keys pick location details & shipments. Refer to the request example for more clarity on usage. | Yes |
access_token | Varchar | You will get this from IThink Logistics team. | Yes |
secret_key | Varchar | You will get this from IThink Logistics team. | Yes |
logistics | Varchar | Logistics name (iThink Logistics/aramex) | No |
logistics_service_type | Varchar | Logistics_service_type name if given | No |
api_source | Integer | You will get this from IThink Logistics team. | No |
shipments | json | Order & product details | Yes |
pickup_address_id | Integer | Warehouse Id from panel | Yes |
order_id | Varchar | Order number | Yes |
order_date | Datetime | Order creation date(date format -> 2022-10-14) | Yes |
pickup_date | Datetime | Order pickup date(date format -> 2022-10-14) | No |
vat_number | Varchar | An Identifier used in many countries, including the countries of the European Union, for value-added tax purposes. | No |
country_code | Varchar | ISO country code (US/GB/CA/..etc) | Yes |
order_currency | Varchar | ISO currency code Allowed values (INR/CAD/USD/GBP/AUD/AED/EUR) | Yes |
customer_name | Varchar | Customer name | Yes |
address_type | Varchar | Address type Allowed values residential/ business if empty default value is residential | No |
company_name | Varchar | Name of company | if address_type = bussiness then yes |
customer_address1 | Varchar | Customer address line-1 | Yes |
customer_address2 | Varchar | Customer address line-2 | No |
pincode | Varchar | Customer pincode | Yes |
state_name | Varchar | Customer state name | No |
city_name | Varchar | Customer city name | No |
customer_mobile | Integer | Customer mobile number | Yes |
customer_email | Varchar | Customer email address | No |
customer_note | Varchar | Customer note/despriction | No |
is_package_document | Varchar | Type of order Allowed values (package/document) if empty default value is package | No |
ship_length | Float | Shipment length | No |
ship_width | Float | Shipment width | No |
ship_height | Float | Shipment height | Yes |
phy_weight | Float | Shipment weight | Yes |
csb_type | Varchar | CSB type Allowed values csb4/csb5 | Yes |
customer_invoice_number | Varchar | Invoice number | Yes |
customer_invoice_date | Datetime | Invoice date (date format -> 2022-10-14) | Yes |
customer_invoice_amount | Float | Invoice amount | Yes |
terms_of_invoice | Varchar | Terms of invoice Allowed values ddu/ddp | Yes |
tax_payment_option | Varchar | Tax payment option Allowed values NA/Against Bond/ Under taking/IGST | Yes |
is_meis | Varchar | MEIS Allowed values yes/no | No |
document_id | Varchar | Document type Allowed values Airline Tickets-Issued or Validated,Annual Reports,Bill of loading,Blueprints,Booklets,brochures-non advertising,Business cards,Cash Letters | if is_package_document = document then yes |
document_reference | Varchar | Reference (appears on shipping label/waybill) | No |
is_having_battery | Varchar | Package contain battery Allowed values yes/no | Yes |
battery_type | Varchar | Type of battery Allowed values NA/Lithium Ion Polymer/Lithium Ion Alloy | if is_having_battery = yes then yes |
battery_packing | Varchar | Battery packaging Allowed values NA/Inside Equipment/Packaged with Equipment/Battery Only | if is_having_battery = yes then yes |
vat_charges | Float | Vat charges | No |
fuel_surchages | Float | Fuel surchages | No |
reverse_charges | Float | Reverse charges | No |
handling_charges | Float | Handling charges | No |
other_charges | Float | Other charges | No |
freight_charges | Float | Freight charges | No |
insurance_charges | Float | Insurance charges | No |
export_charges | Float | Export charges | No |
item_name | Varchar | Product name | Yes |
item_value | Float | Product price | Yes |
quantity | Integer | Product quantity | Yes |
hsn_code | Integer | Product HSN code | Yes |
weight | Float | Product weight | Yes |
origin_country_code | Varchar | ISO country code IN/US..etc | Yes |
tax_rate | Float | Product tax rate value | No |
sku | Varchar | Product SKU | No |
{ "data": { "access_token": "", "secret_key": "", "logistics": "iThink Logistics", "logistics_service_type": "", "api_source": "", "shipments": [{ "pickup_address_id": "33097", "order_id": "#1547", "order_date": "2023-02-21", "pickup_date": "2023-02-23", "vat_number": "", "country_code": "US", "order_currency": "INR", #INR/CAD/USD/GBP/AUD/AED/EUR "customer_name": "kunal", "address_type": "", #residential/ business "company_name": "", "customer_address1": "a/303", "customer_address2": "", "pincode": "28212", "state_name": "", "city_name": "", "customer_mobile": "9XXXXXXXXX", "customer_email": "", "customer_note": "", "is_package_document": "package", #package/document "ship_length": "5", "ship_width": "5", "ship_height": "5", "phy_weight": "2.00", "csb_type": "csb4", #csb4/csb5 "customer_invoice_number": "#API_inc_00", "customer_invoice_date": "2022-10-14", "customer_invoice_amount": "1200.00", "terms_of_invoice": "ddp", #ddu/ddp "tax_payment_option": "Against bond", # NA/Against Bond/ Under taking/IGST "is_meis": "", "is_insure_shipment": "no", "insure_amount": "", "document_id": "", "document_reference": "", "is_having_battery": "no", #yes/no "battery_type": "", #NA/Lithium Ion Polymer/Lithium Ion Alloy "battery_packing": "", #NA/Inside Equipment/Packaged with Equipment/Battery Only "vat_charges": "", "fuel_surchages": "", "reverse_charges": "", "handling_charges": "", "other_charges": "", "freight_charges": "", "insurance_charges": "", "export_charges": "", "package_detail": [{ "item_name": "tshirt", "item_value": "400.00", "quantity": "2", "hsn_code": "1234567890", "weight": 1.00, "origin_country_code": "IN", "tax_rate": "", "sku": "123" }, { "item_name": "car", "item_value": "200.00", "quantity": "2", "hsn_code": "1234567891", "weight": 1.00, "origin_country_code": "IN", "tax_rate": "", "sku": "1234" } ] }] } }
{ "data": [ { "status": "SUCCESS", "airway_bill_no": "ITL100025489XXXXX", "logistics_name": "iThink Logistics", "logistics_service_type": "", "remark": "Order Booked Successfully", "tracking_link": "https://www.ithinklogistics.co.in/postship/tracking_intl/ITL100025489XXXXX", "refnum": "#1547" } ] }
Sample Code
$curl = curl_init(); curl_setopt_array($curl, array( CURLOPT_URL => "https://my.ithinklogistics.com/api_v3/order_intl/add.json", CURLOPT_RETURNTRANSFER => true, CURLOPT_ENCODING => "", CURLOPT_MAXREDIRS => 10, CURLOPT_TIMEOUT => 30, CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, CURLOPT_CUSTOMREQUEST => "POST", CURLOPT_POSTFIELDS => "{\"data\":{\"access_token\":\"\",\"secret_key\":\"\",\"logistics\":\"iThink Logistics\",\"logistics_service_type\":\"\",\"api_source\":\"\",\"shipments\":[{\"pickup_address_id\":\"33097\",\"order_id\":\"#1547\",\"order_date\":\"2023-02-21\",\"pickup_date\":\"2023-02-23\",\"vat_number\":\"\",\"country_code\":\"US\",\"order_currency\":\"INR\",\"customer_name\":\"test2\",\"address_type\":\"re\",\"company_name\":\"\",\"customer_address1\":\"a\\/303\",\"customer_address2\":\"\",\"pincode\":\"28212\",\"state_name\":\"\",\"city_name\":\"\",\"customer_mobile\":\"9XXXXXXXXX\",\"customer_email\":\"\",\"customer_note\":\"\",\"is_package_document\":\"package\",\"ship_length\":\"5\",\"ship_width\":\"5\",\"ship_height\":\"5\",\"phy_weight\":\"2.00\",\"csb_type\":\"csb4\",\"customer_invoice_number\":\"#API_inc_00\",\"customer_invoice_date\":\"2022-10-14\",\"customer_invoice_amount\":\"1200.00\",\"terms_of_invoice\":\"ddp\",\"tax_payment_option\":\"Against bond\",\"is_meis\":\"\",\"is_insure_shipment\":\"yes\",\"insure_amount\":\"\",\"document_id\":\"\",\"document_reference\":\"\",\"is_having_battery\":\"yes\",\"battery_type\":\"\",\"battery_packing\":\"Battery Only\",\"vat_charges\":\"\",\"fuel_surchages\":\"\",\"reverse_charges\":\"\",\"handling_charges\":\"\",\"other_charges\":\"\",\"freight_charges\":\"\",\"insurance_charges\":\"\",\"export_charges\":\"\",\"package_detail\":[{\"item_name\":\"master-test\",\"item_value\":\"400.00\",\"quantity\":\"2\",\"hsn_code\":\"1234567890\",\"weight\":\"1\",\"origin_country_code\":\"IN\",\"tax_rate\":\"\",\"sku\":\"123\"},{\"item_name\":\"car\",\"item_value\":\"200.00\",\"quantity\":\"2\",\"hsn_code\":\"1234567891\",\"weight\":\"1\",\"origin_country_code\":\"IN\",\"tax_rate\":\"\",\"sku\":\"1234\"}]},{\"pickup_address_id\":\"33097\",\"order_id\":\"#master-test_new_3\",\"order_date\":\"2023-02-21\",\"pickup_date\":\"2023-02-23\",\"vat_number\":\"\",\"country_code\":\"US\",\"order_currency\":\"INR\",\"customer_name\":\"test2\",\"address_type\":\"business\",\"company_name\":\"sd12\",\"customer_address1\":\"a\\/303\",\"customer_address2\":\"\",\"pincode\":\"28212\",\"state_name\":\"\",\"city_name\":\"\",\"customer_mobile\":\"9XXXXXXXXX\",\"customer_email\":\"\",\"customer_note\":\"\",\"is_package_document\":\"package\",\"ship_length\":\"5\",\"ship_width\":\"5\",\"ship_height\":\"5\",\"phy_weight\":\"2.00\",\"csb_type\":\"csb4\",\"customer_invoice_number\":\"#API_inc_00\",\"customer_invoice_date\":\"2022-10-14\",\"customer_invoice_amount\":\"1200.00\",\"terms_of_invoice\":\"ddp\",\"tax_payment_option\":\"Against bond\",\"is_meis\":\"\",\"is_insure_shipment\":\"yes\",\"insure_amount\":\"\",\"document_id\":\"\",\"document_reference\":\"\",\"is_having_battery\":\"yes\",\"battery_type\":\"\",\"battery_packing\":\"Battery Only\",\"vat_charges\":\"\",\"fuel_surchages\":\"\",\"reverse_charges\":\"\",\"handling_charges\":\"\",\"other_charges\":\"\",\"freight_charges\":\"\",\"insurance_charges\":\"\",\"export_charges\":\"\",\"package_detail\":[{\"item_name\":\"master-test\",\"item_value\":\"400.00\",\"quantity\":\"2\",\"hsn_code\":\"1234567890\",\"weight\":\"1\",\"origin_country_code\":\"IN\",\"tax_rate\":\"\",\"sku\":\"123\"},{\"item_name\":\"car\",\"item_value\":\"200.00\",\"quantity\":\"2\",\"hsn_code\":\"1234567891\",\"weight\":\"1\",\"origin_country_code\":\"IN\",\"tax_rate\":\"\",\"sku\":\"1234\"}]}]}}", CURLOPT_HTTPHEADER => array( "cache-control: no-cache", "content-type: application/json" ) )); $response = curl_exec($curl); $err = curl_error($curl); curl_close($curl); if ($err) { echo "cURL Error #:" . $err; } else { echo $response; }
import requests url = "https://my.ithinklogistics.com/api_v3/order_intl/add.json" payload = "{\"data\":{\"access_token\":\"\",\"secret_key\":\"\",\"logistics\":\"iThink Logistics\",\"logistics_service_type\":\"\",\"api_source\":\"\",\"shipments\":[{\"pickup_address_id\":\"33097\",\"order_id\":\"#1547\",\"order_date\":\"2023-02-21\",\"pickup_date\":\"2023-02-23\",\"vat_number\":\"\",\"country_code\":\"US\",\"order_currency\":\"INR\",\"customer_name\":\"test2\",\"address_type\":\"re\",\"company_name\":\"\",\"customer_address1\":\"a\\/303\",\"customer_address2\":\"\",\"pincode\":\"28212\",\"state_name\":\"\",\"city_name\":\"\",\"customer_mobile\":\"9XXXXXXXXX\",\"customer_email\":\"\",\"customer_note\":\"\",\"is_package_document\":\"package\",\"ship_length\":\"5\",\"ship_width\":\"5\",\"ship_height\":\"5\",\"phy_weight\":\"2.00\",\"csb_type\":\"csb4\",\"customer_invoice_number\":\"#API_inc_00\",\"customer_invoice_date\":\"2022-10-14\",\"customer_invoice_amount\":\"1200.00\",\"terms_of_invoice\":\"ddp\",\"tax_payment_option\":\"Against bond\",\"is_meis\":\"\",\"is_insure_shipment\":\"yes\",\"insure_amount\":\"\",\"document_id\":\"\",\"document_reference\":\"\",\"is_having_battery\":\"yes\",\"battery_type\":\"\",\"battery_packing\":\"Battery Only\",\"vat_charges\":\"\",\"fuel_surchages\":\"\",\"reverse_charges\":\"\",\"handling_charges\":\"\",\"other_charges\":\"\",\"freight_charges\":\"\",\"insurance_charges\":\"\",\"export_charges\":\"\",\"package_detail\":[{\"item_name\":\"master-test\",\"item_value\":\"400.00\",\"quantity\":\"2\",\"hsn_code\":\"1234567890\",\"weight\":\"1\",\"origin_country_code\":\"IN\",\"tax_rate\":\"\",\"sku\":\"123\"},{\"item_name\":\"car\",\"item_value\":\"200.00\",\"quantity\":\"2\",\"hsn_code\":\"1234567891\",\"weight\":\"1\",\"origin_country_code\":\"IN\",\"tax_rate\":\"\",\"sku\":\"1234\"}]},{\"pickup_address_id\":\"33097\",\"order_id\":\"#master-test_new_3\",\"order_date\":\"2023-02-21\",\"pickup_date\":\"2023-02-23\",\"vat_number\":\"\",\"country_code\":\"US\",\"order_currency\":\"INR\",\"customer_name\":\"test2\",\"address_type\":\"business\",\"company_name\":\"sd12\",\"customer_address1\":\"a\\/303\",\"customer_address2\":\"\",\"pincode\":\"28212\",\"state_name\":\"\",\"city_name\":\"\",\"customer_mobile\":\"9XXXXXXXXX\",\"customer_email\":\"\",\"customer_note\":\"\",\"is_package_document\":\"package\",\"ship_length\":\"5\",\"ship_width\":\"5\",\"ship_height\":\"5\",\"phy_weight\":\"2.00\",\"csb_type\":\"csb4\",\"customer_invoice_number\":\"#API_inc_00\",\"customer_invoice_date\":\"2022-10-14\",\"customer_invoice_amount\":\"1200.00\",\"terms_of_invoice\":\"ddp\",\"tax_payment_option\":\"Against bond\",\"is_meis\":\"\",\"is_insure_shipment\":\"yes\",\"insure_amount\":\"\",\"document_id\":\"\",\"document_reference\":\"\",\"is_having_battery\":\"yes\",\"battery_type\":\"\",\"battery_packing\":\"Battery Only\",\"vat_charges\":\"\",\"fuel_surchages\":\"\",\"reverse_charges\":\"\",\"handling_charges\":\"\",\"other_charges\":\"\",\"freight_charges\":\"\",\"insurance_charges\":\"\",\"export_charges\":\"\",\"package_detail\":[{\"item_name\":\"master-test\",\"item_value\":\"400.00\",\"quantity\":\"2\",\"hsn_code\":\"1234567890\",\"weight\":\"1\",\"origin_country_code\":\"IN\",\"tax_rate\":\"\",\"sku\":\"123\"},{\"item_name\":\"car\",\"item_value\":\"200.00\",\"quantity\":\"2\",\"hsn_code\":\"1234567891\",\"weight\":\"1\",\"origin_country_code\":\"IN\",\"tax_rate\":\"\",\"sku\":\"1234\"}]}]}}" headers = { 'content-type': "application/json", 'cache-control': "no-cache" } response = requests.request("POST", url, data=payload, headers=headers) print(response.text)
OkHttpClient client = new OkHttpClient(); MediaType mediaType = MediaType.parse("application/json"); RequestBody body = RequestBody.create(mediaType, "{\"data\":{\"access_token\":\"\",\"secret_key\":\"\",\"logistics\":\"iThink Logistics\",\"logistics_service_type\":\"\",\"api_source\":\"\",\"shipments\":[{\"pickup_address_id\":\"33097\",\"order_id\":\"#1547\",\"order_date\":\"2023-02-21\",\"pickup_date\":\"2023-02-23\",\"vat_number\":\"\",\"country_code\":\"US\",\"order_currency\":\"INR\",\"customer_name\":\"test2\",\"address_type\":\"re\",\"company_name\":\"\",\"customer_address1\":\"a\\/303\",\"customer_address2\":\"\",\"pincode\":\"28212\",\"state_name\":\"\",\"city_name\":\"\",\"customer_mobile\":\"9XXXXXXXXX\",\"customer_email\":\"\",\"customer_note\":\"\",\"is_package_document\":\"package\",\"ship_length\":\"5\",\"ship_width\":\"5\",\"ship_height\":\"5\",\"phy_weight\":\"2.00\",\"csb_type\":\"csb4\",\"customer_invoice_number\":\"#API_inc_00\",\"customer_invoice_date\":\"2022-10-14\",\"customer_invoice_amount\":\"1200.00\",\"terms_of_invoice\":\"ddp\",\"tax_payment_option\":\"Against bond\",\"is_meis\":\"\",\"is_insure_shipment\":\"yes\",\"insure_amount\":\"\",\"document_id\":\"\",\"document_reference\":\"\",\"is_having_battery\":\"yes\",\"battery_type\":\"\",\"battery_packing\":\"Battery Only\",\"vat_charges\":\"\",\"fuel_surchages\":\"\",\"reverse_charges\":\"\",\"handling_charges\":\"\",\"other_charges\":\"\",\"freight_charges\":\"\",\"insurance_charges\":\"\",\"export_charges\":\"\",\"package_detail\":[{\"item_name\":\"master-test\",\"item_value\":\"400.00\",\"quantity\":\"2\",\"hsn_code\":\"1234567890\",\"weight\":\"1\",\"origin_country_code\":\"IN\",\"tax_rate\":\"\",\"sku\":\"123\"},{\"item_name\":\"car\",\"item_value\":\"200.00\",\"quantity\":\"2\",\"hsn_code\":\"1234567891\",\"weight\":\"1\",\"origin_country_code\":\"IN\",\"tax_rate\":\"\",\"sku\":\"1234\"}]},{\"pickup_address_id\":\"33097\",\"order_id\":\"#master-test_new_3\",\"order_date\":\"2023-02-21\",\"pickup_date\":\"2023-02-23\",\"vat_number\":\"\",\"country_code\":\"US\",\"order_currency\":\"INR\",\"customer_name\":\"test2\",\"address_type\":\"business\",\"company_name\":\"sd12\",\"customer_address1\":\"a\\/303\",\"customer_address2\":\"\",\"pincode\":\"28212\",\"state_name\":\"\",\"city_name\":\"\",\"customer_mobile\":\"9XXXXXXXXX\",\"customer_email\":\"\",\"customer_note\":\"\",\"is_package_document\":\"package\",\"ship_length\":\"5\",\"ship_width\":\"5\",\"ship_height\":\"5\",\"phy_weight\":\"2.00\",\"csb_type\":\"csb4\",\"customer_invoice_number\":\"#API_inc_00\",\"customer_invoice_date\":\"2022-10-14\",\"customer_invoice_amount\":\"1200.00\",\"terms_of_invoice\":\"ddp\",\"tax_payment_option\":\"Against bond\",\"is_meis\":\"\",\"is_insure_shipment\":\"yes\",\"insure_amount\":\"\",\"document_id\":\"\",\"document_reference\":\"\",\"is_having_battery\":\"yes\",\"battery_type\":\"\",\"battery_packing\":\"Battery Only\",\"vat_charges\":\"\",\"fuel_surchages\":\"\",\"reverse_charges\":\"\",\"handling_charges\":\"\",\"other_charges\":\"\",\"freight_charges\":\"\",\"insurance_charges\":\"\",\"export_charges\":\"\",\"package_detail\":[{\"item_name\":\"master-test\",\"item_value\":\"400.00\",\"quantity\":\"2\",\"hsn_code\":\"1234567890\",\"weight\":\"1\",\"origin_country_code\":\"IN\",\"tax_rate\":\"\",\"sku\":\"123\"},{\"item_name\":\"car\",\"item_value\":\"200.00\",\"quantity\":\"2\",\"hsn_code\":\"1234567891\",\"weight\":\"1\",\"origin_country_code\":\"IN\",\"tax_rate\":\"\",\"sku\":\"1234\"}]}]}}"); Request request = new Request.Builder() .url("https://my.ithinklogistics.com//api_v3/order_intl/add.json") .post(body) .addHeader("content-type", "application/json") .addHeader("cache-control", "no-cache") .build(); Response response = client.newCall(request).execute();
var client = new RestClient("https://my.ithinklogistics.com/api_v3/order_intl/add.json"); var request = new RestRequest(Method.POST); request.AddHeader("cache-control", "no-cache"); request.AddHeader("content-type", "application/json"); request.AddParameter("application/json", "{\"data\":{\"access_token\":\"\",\"secret_key\":\"\",\"logistics\":\"iThink Logistics\",\"logistics_service_type\":\"\",\"api_source\":\"\",\"shipments\":[{\"pickup_address_id\":\"33097\",\"order_id\":\"#1547\",\"order_date\":\"2023-02-21\",\"pickup_date\":\"2023-02-23\",\"vat_number\":\"\",\"country_code\":\"US\",\"order_currency\":\"INR\",\"customer_name\":\"test2\",\"address_type\":\"re\",\"company_name\":\"\",\"customer_address1\":\"a\\/303\",\"customer_address2\":\"\",\"pincode\":\"28212\",\"state_name\":\"\",\"city_name\":\"\",\"customer_mobile\":\"9XXXXXXXXX\",\"customer_email\":\"\",\"customer_note\":\"\",\"is_package_document\":\"package\",\"ship_length\":\"5\",\"ship_width\":\"5\",\"ship_height\":\"5\",\"phy_weight\":\"2.00\",\"csb_type\":\"csb4\",\"customer_invoice_number\":\"#API_inc_00\",\"customer_invoice_date\":\"2022-10-14\",\"customer_invoice_amount\":\"1200.00\",\"terms_of_invoice\":\"ddp\",\"tax_payment_option\":\"Against bond\",\"is_meis\":\"\",\"is_insure_shipment\":\"yes\",\"insure_amount\":\"\",\"document_id\":\"\",\"document_reference\":\"\",\"is_having_battery\":\"yes\",\"battery_type\":\"\",\"battery_packing\":\"Battery Only\",\"vat_charges\":\"\",\"fuel_surchages\":\"\",\"reverse_charges\":\"\",\"handling_charges\":\"\",\"other_charges\":\"\",\"freight_charges\":\"\",\"insurance_charges\":\"\",\"export_charges\":\"\",\"package_detail\":[{\"item_name\":\"master-test\",\"item_value\":\"400.00\",\"quantity\":\"2\",\"hsn_code\":\"1234567890\",\"weight\":\"1\",\"origin_country_code\":\"IN\",\"tax_rate\":\"\",\"sku\":\"123\"},{\"item_name\":\"car\",\"item_value\":\"200.00\",\"quantity\":\"2\",\"hsn_code\":\"1234567891\",\"weight\":\"1\",\"origin_country_code\":\"IN\",\"tax_rate\":\"\",\"sku\":\"1234\"}]},{\"pickup_address_id\":\"33097\",\"order_id\":\"#master-test_new_3\",\"order_date\":\"2023-02-21\",\"pickup_date\":\"2023-02-23\",\"vat_number\":\"\",\"country_code\":\"US\",\"order_currency\":\"INR\",\"customer_name\":\"test2\",\"address_type\":\"business\",\"company_name\":\"sd12\",\"customer_address1\":\"a\\/303\",\"customer_address2\":\"\",\"pincode\":\"28212\",\"state_name\":\"\",\"city_name\":\"\",\"customer_mobile\":\"9XXXXXXXXX\",\"customer_email\":\"\",\"customer_note\":\"\",\"is_package_document\":\"package\",\"ship_length\":\"5\",\"ship_width\":\"5\",\"ship_height\":\"5\",\"phy_weight\":\"2.00\",\"csb_type\":\"csb4\",\"customer_invoice_number\":\"#API_inc_00\",\"customer_invoice_date\":\"2022-10-14\",\"customer_invoice_amount\":\"1200.00\",\"terms_of_invoice\":\"ddp\",\"tax_payment_option\":\"Against bond\",\"is_meis\":\"\",\"is_insure_shipment\":\"yes\",\"insure_amount\":\"\",\"document_id\":\"\",\"document_reference\":\"\",\"is_having_battery\":\"yes\",\"battery_type\":\"\",\"battery_packing\":\"Battery Only\",\"vat_charges\":\"\",\"fuel_surchages\":\"\",\"reverse_charges\":\"\",\"handling_charges\":\"\",\"other_charges\":\"\",\"freight_charges\":\"\",\"insurance_charges\":\"\",\"export_charges\":\"\",\"package_detail\":[{\"item_name\":\"master-test\",\"item_value\":\"400.00\",\"quantity\":\"2\",\"hsn_code\":\"1234567890\",\"weight\":\"1\",\"origin_country_code\":\"IN\",\"tax_rate\":\"\",\"sku\":\"123\"},{\"item_name\":\"car\",\"item_value\":\"200.00\",\"quantity\":\"2\",\"hsn_code\":\"1234567891\",\"weight\":\"1\",\"origin_country_code\":\"IN\",\"tax_rate\":\"\",\"sku\":\"1234\"}]}]}}", ParameterType.RequestBody); IRestResponse response = client.Execute(request);
require 'uri' require 'net/http' url = URI("https://my.ithinklogistics.com/api_v3/order_intl/add.json") http = Net::HTTP.new(url.host, url.port) http.use_ssl = true http.verify_mode = OpenSSL::SSL::VERIFY_NONE request = Net::HTTP::Post.new(url) request["content-type"] = 'application/json' request["cache-control"] = 'no-cache' request.body = "{\"data\":{\"access_token\":\"\",\"secret_key\":\"\",\"logistics\":\"iThink Logistics\",\"logistics_service_type\":\"\",\"api_source\":\"\",\"shipments\":[{\"pickup_address_id\":\"33097\",\"order_id\":\"#1547\",\"order_date\":\"2023-02-21\",\"vat_number\":\"\",\"country_code\":\"US\",\"order_currency\":\"INR\",\"customer_name\":\"test2\",\"address_type\":\"re\",\"company_name\":\"\",\"customer_address1\":\"a\\/303\",\"customer_address2\":\"\",\"pincode\":\"28212\",\"state_name\":\"\",\"city_name\":\"\",\"customer_mobile\":\"9XXXXXXXXX\",\"customer_email\":\"\",\"customer_note\":\"\",\"is_package_document\":\"package\",\"ship_length\":\"5\",\"ship_width\":\"5\",\"ship_height\":\"5\",\"phy_weight\":\"2.00\",\"csb_type\":\"csb4\",\"customer_invoice_number\":\"#API_inc_00\",\"customer_invoice_date\":\"2022-10-14\",\"customer_invoice_amount\":\"1200.00\",\"terms_of_invoice\":\"ddp\",\"tax_payment_option\":\"Against bond\",\"is_meis\":\"\",\"is_insure_shipment\":\"yes\",\"insure_amount\":\"\",\"document_id\":\"\",\"document_reference\":\"\",\"is_having_battery\":\"yes\",\"battery_type\":\"\",\"battery_packing\":\"Battery Only\",\"vat_charges\":\"\",\"fuel_surchages\":\"\",\"reverse_charges\":\"\",\"handling_charges\":\"\",\"other_charges\":\"\",\"freight_charges\":\"\",\"insurance_charges\":\"\",\"export_charges\":\"\",\"package_detail\":[{\"item_name\":\"master-test\",\"item_value\":\"400.00\",\"quantity\":\"2\",\"hsn_code\":\"1234567890\",\"weight\":\"1\",\"origin_country_code\":\"IN\",\"tax_rate\":\"\",\"sku\":\"123\"},{\"item_name\":\"car\",\"item_value\":\"200.00\",\"quantity\":\"2\",\"hsn_code\":\"1234567891\",\"weight\":\"1\",\"origin_country_code\":\"IN\",\"tax_rate\":\"\",\"sku\":\"1234\"}]},{\"pickup_address_id\":\"33097\",\"order_id\":\"#master-test_new_3\",\"order_date\":\"2023-02-21\",\"vat_number\":\"\",\"country_code\":\"US\",\"order_currency\":\"INR\",\"customer_name\":\"test2\",\"address_type\":\"business\",\"company_name\":\"sd12\",\"customer_address1\":\"a\\/303\",\"customer_address2\":\"\",\"pincode\":\"28212\",\"state_name\":\"\",\"city_name\":\"\",\"customer_mobile\":\"9XXXXXXXXX\",\"customer_email\":\"\",\"customer_note\":\"\",\"is_package_document\":\"package\",\"ship_length\":\"5\",\"ship_width\":\"5\",\"ship_height\":\"5\",\"phy_weight\":\"2.00\",\"csb_type\":\"csb4\",\"customer_invoice_number\":\"#API_inc_00\",\"customer_invoice_date\":\"2022-10-14\",\"customer_invoice_amount\":\"1200.00\",\"terms_of_invoice\":\"ddp\",\"tax_payment_option\":\"Against bond\",\"is_meis\":\"\",\"is_insure_shipment\":\"yes\",\"insure_amount\":\"\",\"document_id\":\"\",\"document_reference\":\"\",\"is_having_battery\":\"yes\",\"battery_type\":\"\",\"battery_packing\":\"Battery Only\",\"vat_charges\":\"\",\"fuel_surchages\":\"\",\"reverse_charges\":\"\",\"handling_charges\":\"\",\"other_charges\":\"\",\"freight_charges\":\"\",\"insurance_charges\":\"\",\"export_charges\":\"\",\"package_detail\":[{\"item_name\":\"master-test\",\"item_value\":\"400.00\",\"quantity\":\"2\",\"hsn_code\":\"1234567890\",\"weight\":\"1\",\"origin_country_code\":\"IN\",\"tax_rate\":\"\",\"sku\":\"123\"},{\"item_name\":\"car\",\"item_value\":\"200.00\",\"quantity\":\"2\",\"hsn_code\":\"1234567891\",\"weight\":\"1\",\"origin_country_code\":\"IN\",\"tax_rate\":\"\",\"sku\":\"1234\"}]}]}}" response = http.request(request) puts response.read_body